Serve through Google Ad Manager
If your ad slots are managed in Google Ad Manager (GAM), each TerraGaming Media unit runs as a custom HTML creative.
1. One creative per unit
Section titled “1. One creative per unit”In GAM, create a Third-party (custom HTML) creative for each placement, and turn off “Serve into a SafeFrame”. The tag cannot run inside a SafeFrame and stays off there.
2. Creative code
Section titled “2. Creative code”Each creative carries its own loader, because a creative runs in its own frame. This is the only
case where a unit includes tag.js:
<div data-tgm-unit="TGM-ABC-HRS01"></div><script async src="https://tgmads.example.com/tag.js"></script>Before your CNAME is verified, the loader carries your ids:
<script async src="https://cdn.terramedia-sandbox.com/tag.js" data-tgm-property="PROP-…" data-tgm-publisher="PUB-…"></script>.
The portal’s Get Tags → Google Ad Manager tab shows each unit’s creative code.
- The page itself needs no site tag for GAM-only placements. In-article ads need the site tag on the page.
- Consent: the creative reads your consent manager from the page (friendly iframe), the same as on the page.
