Funding Choices is an easy-to-use messaging tool that can help you comply with the EU General Data Protection Regulation (GDPR), and recover lost revenue from ad blocking users.
This guide demonstrates how to use Funding Choices with the IMA HTML5 SDK.
Prerequisites
You must have a Funding Choices account linked to your Ad Manager account.
To create a Funding Choices account, go to Privacy & messaging in the Ad Manager UI and select Go to Funding Choices. The Funding Choices account is then created automatically in the background.
Adding the Funding Choices script
The IMA HTML5 SDK interacts with the Funding Choices API automatically once Funding Choices is included on the page. Once you include the Funding Choices script to your page, no additional code is needed. To obtain your Funding Choices script, go to the Funding Choices UI and select Deployment. From that page copy the site script and paste it into your site's HTML. See the below code snippet for an example of this:
index.html
<html> <head> ... <script> // Insert Funding Choices script here--must load before IMA. </script> </head> <body> ... <script src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script> <script src="ads.js"></script> </body> </html>
For more information on obtaining and updating the script, please look at this Funding Choices help article. For information and methods available in the Funding Choices API, see the Funding Choices JavaScript API documentation.