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:
window._sp_.gdpr.loadPrivacyManagerOtt(GDPR_OTT_ID)
window._sp_.ccpa.loadPrivacyManagerOtt(USPrivacy_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.
<button onclick="window._sp_.gdpr.loadPrivacyManagerOtt(123456)">OTT/CTV GDPR</button>
<a href="javascript:window.sp_.gdpr.loadPrivacyManagerModalOtt(123456);">OTT/CTV GDPR</a>
<button onclick="window._sp_.ccpa.loadPrivacyManagerOtt(789876)">OTT/CTV USPrivacy</button>
<a href="javascript:window.sp_.ccpa.loadPrivacyManagerModalOtt(789876);">OTT/CTV USPrivacy</a>
Comments
0 comments