/google-ads-test-angularjs

Test to debug issues with Google Adsense and AngularJS

Primary LanguageHTML

Google Adsense Angular JS Test

This is a demo of getting Google Adsense to work with AngularJS

View it here

For more information, please contact Leonard Teo.

Description of the problem

AngularJS (created by Google) is a single-page-application framework. It loads in content dynamically without a full refresh of the DOM (Document Object Model). This appears to be incompatible with Adsense and DFP.

To fix this, pass in a random value to the ad-region parameter. See the source code for more details.