Help improve the Google Publisher Tag developer experience. Share your thoughts in our survey.

Tag pages with infinite content

You can dynamically generate new ad content using the Google Publisher Tag library.

A sample of the full code you would use to implement tags with infinite page contents is shown below. The sample features a button on the bottom of the page to dynamically generate new content.

Sample implementation

View demo