US states laws
For US states laws, we recommend enabling restricted data processing in ad requests to Google Ad Manager / AdSense when a user has opted out of personal data processing (selling, sharing, etc.).
This can be implemented by adding code on your website with the following logic:
Disable initial ad loading on the page until Didomi is ready.
Check if the regulation that applies is a US regulation and if the user has opted out via the Didomi API. Enable restricted data processing in that case.
Code sample
The following code disables GPT automatic ad loading on page load and refreshes ads after Didomi is ready on the page.
This will interact with your existing GPT ad code and must be thoroughly tested on your website to confirm that the ads behave as expected in all regulations.
Last updated