GAM Content Area
Google Ad Manager (GAM)
Uses the Google Publisher Tag (GPT) library for advanced ad serving. Supports custom targeting, key-values, yield optimization, and third-party ad networks. Network code is required to serve ads.
Ad Unit Structure
Top Banner: /6355419/Travel/Europe/France/Paris (728x90)
In-Content: /6355419/Travel/Europe/France/Paris (300x250)
Sidebar: /6355419/Travel/Europe/France/Paris (300x250)
Bottom Banner: /6355419/Travel/Europe/France/Paris (728x90)
6355419 is Google's official web GPT demo network
(21775744923 is for mobile SDK only — web slots stay empty).
Setup Steps
1. Create a GAM account at admanager.google.com
2. Get your Network Code from Admin → Network settings
3. Create ad units under Inventory → Ad units
4. Create line items and link creatives
5. Enter Network Code above and click Apply
GPT API Reference
googletag.defineSlot(path, sizes, divId) → defines an ad slot
googletag.pubads().setTargeting(key, value) → page-level targeting
googletag.pubads().enableSingleRequest() → SRA mode
googletag.display(divId) → renders the ad