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.


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


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


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

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



Article is closed for comments.