Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 595 Bytes

readme.md

File metadata and controls

12 lines (7 loc) · 595 Bytes

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.