⚡
GPT
Code
Generator
Google Ad Manager · Production-ready tag code
0
Ad Units
0
Mappings
📂 Configurations
Google Ad Manager
Global Settings
Network
Network Code
Page Options
⚡ SRA — Single Request Architecture
🛡 Force SafeFrame
Page Key-Value Targeting
Page KVs apply to
every ad slot
on the page via
googletag.setConfig({ targeting: {...} })
. See the
📖 Guide
tab for CMS integration patterns.
+ Add Page KV
Size Mapping Library
+ New Mapping
Define responsive size mappings once, then
assign them to any ad unit
. Each mapping has named breakpoints with viewport dimensions and ad sizes.
No mappings yet. Click "+ New Mapping" to create one.
Ad Units
No ad units yet. Click "+ Add Unit".
↺ Refresh Code
🖥 Desktop
Desktop slots only
📱 Tablet
Tablet slots only
📲 Mobile
Mobile slots only
Generated Code
HEAD Snippet
BODY Snippets
Page KV Code
📖 Guide
Copy
🛠
Configure and click Generate
Copy
📄
Add ad units to see body code
Copy
🏷
Add page-level KV pairs to generate this snippet
📖
Click Generate to load the implementation guide
✓ Copied to clipboard
💾 Configurations
✕
Save current configuration
💾 Save
Saved configurations
⬇ Export all as JSON
⬆ Import from JSON