# Tag pages with infinite content

# Tag pages with infinite content

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

> [!CAUTION]
> **Caution:** Competitive exclusions and roadblocks are only guaranteed to be honored for ads served by either a single [Single request architecture (SRA)](http://support.google.com/admanager/answer/183282) request or a sequence of serial SRA requests. Making multiple SRA requests in parallel may result in competitive ads being displayed on the same page.

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](https://googleads.github.io/google-publisher-tag-samples/infinite-content/js/demo.html)

### JavaScript

## Loading...

<iframe id="builder" class="fixed-size" loading="lazy"></iframe>

## Loading...

[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/infinite-content/js) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback:+infinite-content/js)

### TypeScript

## Loading...

<iframe id="builder" class="fixed-size" loading="lazy"></iframe>

## Loading...

[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/infinite-content/ts) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback:+infinite-content/ts)