Permission: Campaign entities

The OTT/CTV message JavaScript code is a snippet that is added to a property and allows an end-user to resurface a OTT/CTV message. Using this link/button, end-users can directly manage their consent preferences on an ongoing basis. 


Create OTT/CTV message JavaScript code

Click Messages on the left-hand panel and select a regulatory regime (GDPR Messages or U.S. Privacy Messages)

Click OTT/CTV from either subsequent menu.

Screen_Shot_2023-01-18_at_10.33.23_AM.png

Use the property field in the upper right-hand corner to select a property for which you will resurface an OTT/CTV message.

Screen_Shot_2021-10-26_at_3.47.08_PM.png

Locate the ID for a OTT/CTV message on the subsequent list. 

Screen_Shot_2023-01-18_at_10.35.58_AM.png

The OTT/CTV message JavaScript code uses a loadPrivacyManagerModalOtt function to pass the specific OTT/CTV message ID.

The format of the JavaScript code depends on the regulatory framework to which the OTT/CTV message belongs. Please see the table below for the appropriate formatting:

GDPR TCF U.S. Privacy
window._sp_.gdpr.loadPrivacyManagerOtt(GDPR_OTT_ID)

Implement OTT/CTV message JavaScript code

Attach the OTT/CTV message JavaScript code to an event handler on your OTT/CTV property. Most organizations who implement the JavaScript code will attach the function to the onclick event of an element.

GDPR TCF U.S. Privacy
<button onclick="window._sp_.gdpr.loadPrivacyManagerOtt(123456)">OTT/CTV GDPR</button>
<a href="javascript:window.sp_.gdpr.loadPrivacyManagerModalOtt(123456);">OTT/CTV GDPR</a>
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.