Connected TV Tags¶
The MediaGrid Connected TV (CTV) tags are URLs which are called from the Ad Server/SSP when the device video player calls for the VAST Markup. These URLs contain parameters which should be filled with values when called. These tags help to verify impressions and the impression context when looking to monetize CTV.
We strongly recommend that you work with your SSP or Ad Server in order to replace as many parameters within the tag as possible. The required and recommended macros are essential for monetization, and some of the optional fields are also viewed as very important by certain buyers.
Note
If the CTV channels/apps you wish to monetize with The MediaGrid have an ads.txt or app-ads.txt file, we strongly recommend that you request an ads.txt entry from us and ensure that it is included in the respective party’s file. This will increase monetization through enabling Buyers to validate the sources of the traffic they buy. See the Ads.txt Compliance section for more details.
Setting Up Ad Tags¶
Setting up ad tags requires you to construct a URL with the relevant Tag URL Parameters. For further details or implementation questions, contact pubsupport@themediagrid.com. The team can provide you with ad tags and help you to set them up for any CTV ad unit.
To expedite the process, you should request all the necessary CTV Ad units using a copy of this mapping sheet. The ad unit structure mainly depends on your Ad Server/SSP setup, however we suggest categorizing the ad units by app/bundle, and also separating the best performing bundles.
Sample CTV Tags¶
# The Macros in this URL would be replaced by the Device or Bid
# Response values to which they refer when the video
# player calls the VAST Markup from the VAST Server
https://grid.bidswitch.net/adv_ctv?auid={AD_UNIT_ID}&ifa={IFA}&dnt={DO_NOT_TRACK}&bi={BUNDLE_ID}&an={APP_NAME}&ua={USER_AGENT}&ip={IP}&h={PLAYER_HEIGHT}&w={PLAYER_WIDTH}&exp={IMP_EXPIRATION_TIME}&content_id={CONTENT_ID}&content_livestream={CONTENT_LIVESTREAM}&content_title={CONTENT_TITLE}×tamp={TIMESTAMP}&gdpr={GDPR}&gdpr_consent={GDPR_CONSENT}&us_privacy={US_PRIVACY}
# The MediaGrid recognises the values being returned by the
# parameters that reference them
https://grid.bidswitch.net/adv_ctv?timestamp=1601885840&auid=32964&ifa=2af493bf-1960-42af-bac7-f0ef8441e401&dnt=false&bi=roku.mychannel.tv&an=mychannel.tv&ua=Roku%2FDVP-9.30+%28249.30E04194A%29&ip=71.224.109.51&h=1080&w=1920&exp=1000
Tag URL Parameters¶
Tag URL Parameters |
Description |
---|---|
bi |
(Required) Returns the value for the |
an |
(Required) Returns the value for the |
auid |
(Required) Returns the ad unit ID, e.g. |
ifa |
(Recommended) Returns the value for the |
exp |
(Recommended) Returns the value for the |
gdpr |
(Recommended) Indicates if GDPR applies. |
gdpr_consent |
(Recommended) If GDPR applies (i.e if |
us_privacy |
(Recommended) Passes the CCPA compliant US Privacy string that indicates
whether the user has “opted-in” or “opted-out” of the sale of their data, e.g.
|
content_album |
(Optional) Returns the value for the |
content_artist |
(Optional) Returns the value for the |
content_cat |
(Optional) Returns the value for the |
content_contentrating |
(Optional) Returns the value for the |
content_context |
(Optional) Returns the value for the
|
content_embeddable |
(Optional) Returns the value for the |
content_episode |
(Optional) Returns the value for the |
content_genre |
(Optional) Returns the value for the |
content_id |
(Optional) Returns the value for the |
content_isrc |
(Optional) Returns the value for the |
content_keywords |
(Optional) Returns the value for the |
content_language |
(Optional) Returns the value for the |
content_len |
(Optional) Returns the value for the |
content_livestream |
(Optional) Returns the value for the |
content_prodq |
(Optional) Returns the value for the
|
content_producer_cat |
(Optional) Returns the value for the |
content_producer_domain |
(Optional) Returns the value for the |
content_producer_id |
(Optional) Returns the value for the |
content_producer_name |
(Optional) Returns the value for the |
content_qagmediarating |
(Optional) Returns the value for the |
content_season |
(Optional) Returns the value for the |
content_series |
(Optional) Returns the value for the |
content_sourcerelationship |
(Optional) Returns the value for the |
content_title |
(Optional) Returns the value for the |
content_url |
(Optional) Returns the value for the |
content_userrating |
(Optional) Returns the value for the |
content_videoquality |
(Optional) Returns the value for the
|
dnt |
(Optional) Returns the value for the |
h |
(Optional) Returns the value for the player height, |
ip |
(Optional) Returns the value for the |
timestamp |
(Optional) Returns a UNIX timestamp indicating when the CTV tag call was
made, e.g. |
ua |
(Optional) Returns the value for the |
w |
(Optional) Returns the value for the player height, |