Ad Integration

We have integrated the Google IMA SDK and also a custom VAST Adapter. You can utilize the following macros to customize your AdTag URL.

The macros are replaced automacially during the Adrequest.

Macros

  • {random}: A random number to ensure URL uniqueness.

  • {referrer}: URL-encoded referrer of the current page.

  • {consentString}: User's consent string.

  • {loggedin}: Boolean indicating if the user is logged in.

Example:

https://pubads.g.doubleclick.net/gampad/ads
?iu=/21775744923/external/single_ad_samples
&sz=640x480
&cust_params=sample_ct%3Dlinear%26loggedin%3D{loggedin}
&ciu_szs=300x250%2C728x90
&gdfp_req=1
&output=vast
&unviewed_position_start=1
&env=vp
&url={referrer}
&gdpr_consent={consentString}
&correlator={random}

Smartclip Integration

If you are using Smartclip, we are automatically replacing and inserting the parameters consent and optout.

Last updated