Creating Ad Units and Placing Tags
An ad unit is one placement on your site with a fixed size. Each has an ID such as TGM-SPN-MOB01 that you will see in your reports.
Creating an ad unit
Section titled “Creating an ad unit”Open Ad Units & Tags, select Create New Ad Unit, choose the property and the slot size — 300x250, 728x90, or the floating banner, which anchors to the bottom of the screen — and name it after where it appears. Then copy its placement from Get Tags on the unit’s row. Tags become available once the property is approved and live on our network.
Placing an ad unit
Section titled “Placing an ad unit”A placement is markup only. It never includes the tag, because the site tag is added once per site (see Installing the Site Tag and Your CNAME):
<div data-tgm-unit="TGM-SPN-MOB01"></div>- HTML: paste the placement where the ad should render. The same unit can appear on many pages, and more than once on a page.
- WordPress: use the TerraGaming Media Ad block, widget or the
[tgm_ad unit="…"]shortcode from our plugin, or a Custom HTML block. - Apps and frameworks: the React, Vue and Laravel packages render it as
<TgmAd unit="…" />or<x-tgm-ad unit="…" />. - Google Ad Manager: add the GAM snippet from Get Tags → Google Ad Manager as a custom (third-party) HTML creative with Serve into a SafeFrame turned off. SafeFrame delivery is not supported. This is the only placement that carries its own loader, because a creative runs in its own frame.
Checking delivery
Section titled “Checking delivery”Revenue Reports breaks impressions and earnings down by ad unit.
