googleads / google-publisher-tag-samples

Google Publisher Tag (GPT) code samples.
https://developers.google.com/publisher-tag/samples
Apache License 2.0
38 stars 22 forks source link

Sample feedback: display-web-interstitial-ad/js #91

Closed tss-legal-code closed 5 months ago

tss-legal-code commented 6 months ago

no ad is loaded, but I see message in the console:

pubads_impl.js?cb=31083530:24 [GPT] Interstitial /6355419/Travel/Europe/France/Paris not requested: Unable to access local storage to determine if the frequency cap has been exceeded due to insufficient user consent.

maybe demo example should be supplied with some consent management script ?

jimper commented 5 months ago

Hi @tss-legal-code, since the sample doesn't include a consent management script, GPT should be operating under the assumption that gathering user consent isn't necessary. That means that the error you're seeing is likely due to the browser itself (or maybe an extension like an ad blocker) blocking access to local storage.