Skip to content

Commit

Permalink
Add Teads
Browse files Browse the repository at this point in the history
Closes #199
  • Loading branch information
MisterPhilip committed Feb 25, 2023
1 parent 4cf67b2 commit 6fac757
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
Binary file added src/assets/images/icons/TEADS16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/styles/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ $icons: (
"Segment": $iconPath + "SEGMENT16x16.png",
"Snapchat": $iconPath + "SNAPCHAT16x16.png",
"SplitIO": $iconPath + "SPLITIO16x16.png",
"Teads": $iconPath + "TEADS16x16.png",
"Tealium iQ": $iconPath + "TEALIUM16x16.png",
"Tealium EventStream": $iconPath + "TEALIUM16x16.png",
"TikTok": $iconPath + "TIKTOK16x16.png",
Expand Down
49 changes: 49 additions & 0 deletions src/providers/Teads.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* Teads Universal Pixel
*
* @class
* @extends BaseProvider
*/
class TeadsProvider extends BaseProvider {
constructor() {
super();
this._key = "TEADS";
this._pattern = /https:\/\/t\.teads\.tv\/track(?:.*[&#?]tag_version=)/;
this._name = "Teads";
this._type = "marketing";
this._keywords = ["Teads"];
}

/**
* Retrieve the column mappings for default columns (account, event type)
*
* @return {{}}
*/
get columnMapping()
{
return {
"account": "buyer_pixel_id",
"requestType": "action"
};
}

/**
* Retrieve the group names & order
*
* @returns {*[]}
*/
get groups()
{
return [];
}

/**
* Get all of the available URL parameter keys
*
* @returns {{}}
*/
get keys()
{
return {};
}
}

0 comments on commit 6fac757

Please sign in to comment.