Ad Manager Tag Generator & Tester Beta

User owns setup: False
User logged in: False
Sign In!
Generate Tags
Direct URL: /%data.pageSetup.directURL%/ Short URL to this setup
Direct URL: /%data.pageSetup.directURL%/ Short URL to this setup

GPt Video Tag

open_in_new Send to Video Suite Inspector content_copy Copy Video Code to clipboard
/%ctrl.htmlDecode(data.pageSetup.videoTag)%/

GPT <HEAD> code

content_copy Copy Head Code to clipboard
/%ctrl.htmlDecode(data.pageSetup.headTag)%/

Adslots <BODY> code

content_copy Copy Body Code to clipboard
/%ctrl.htmlDecode(data.pageSetup.bodyTag)%/

Live Ads

open_in_new Open External Test Page campaign_show Open Google Publisher Console refresh Refresh Live Ads
QR code for Mobile G Generator Page S Satging Page

Tag Settings

live_help GPT API Reference
/%type.name%/ Sets the DFP Netowrk ID for the current
setup.

Must be a valid DFP Premium or Small Business
Network ID.
This field is required.
Network ID must be digits only.
?
Accepeted formats: Key=Value or Key=[V1;V2;V#]

Hit Space, Enter or Comma to declare multiple KVs.
?
Single Request Architecture (SRA) Enable or Disable Single Request Architecture.
?
Advanced Options Show Advanced GPT Options.
?
Size Mapping (Responsive Design) Enable Size Mapping.

Multiple Size Maps can be declared at once, and individually associated to ad slots.
Size Maps cannot be associated to Video and OOP Adslots.
?
Adx/AdSense Settings Enable Adx/AdSense settings at page level.
?
Video Tag (VAST) Enable the Video Tag Generator.

Only 1 Video Tag can be generated at a time, and the Video Tag is always Ad Slot #1.
There is no Live Preview of Video Tags.
?

Advanced Settings

Sets page level ad category exclusion
label.

Accepeted formats: Label1, Label#
Enter label in the specified format.
?
Enter PPID in the specified format.
Accepeted formats:

Any alphanumeric string.
ie. AB123456789
?
location_on Set to current Location map Pick Location from a Map
Accepeted formats:

Latitude,Longitude[,Precision]
postcode CODE,Country
City,Country

Only a single location is allowed for each set up.
Enter GPS location in the specified format.
?
Collapse Empty DIVs Sets whether the slot div should be hidden
when there is no ad in the slot.
?
Disable Initial Load Disables requests for ads on page load, but
allows ads to be requested with a
googletag.pubads().refresh() call.
?
Force SafeFrame at Page Level Configures whether all ads on the page should
be forced to be rendered using a SafeFrame container.
?
Center Ads Enables or disables centering of ads.
?
Multi Size Validation Explicitly enable or disable multi
size validation for AMP tags.
?
Include AMP Placeholders Includes AMP Placeholder and Fallback
DIVs to the AMP tag.
?
Disable Cookies Sets cookie options for GPT on the page.
When this is enabled Cookies are ignored for
the current ad request.
?
Disable Publisher Console Disables the Google Publisher Console.
?
Tag for Child-Directed Treatment Configures whether the page should be
treated as child-directed.
?

Size Mapping

Name of the current Mapping.

Select this Mapping name for at least one ad slot in the setup.
remove_circle Remove this Mapping
?
The Viewport size to Map.
The Viewport reppresents the minimum screen size
that the mapping should aplly to.
Viewports are declared as single sizes.

Accepted format: WxH
/%itemsz.label%/ The Request Sizes to be applied to a Viewport.
Multiple Sizes can be applied to a single Viewport.

Accepeted formats: WxH or Fluid

Hit Space enter or Comma to declare multiple sizes.
Fluid size can only be declared as a single size.
remove_circle Remove this Screen Size
add_circle Add new Screen Size
/%data.szmaps[data.szmaps.indexOf(map)]|json%/
add Add New Size Map

Adx/AdSense Settings

Content URL for Adx/AdSense Requests.

It reppresents the Page URL where the ads should
be delivering.

Must be a valid URL: ie. HTTP://www.google.com
Enter a valid URL.
?
Channel IDs for Adx/AdSense ad requests.

Accepted format: ChannleID1+ChannelID#
Enter channles in the correct format.
?
AdSense UI Elements Enable Additional AdSense UI settings.
?

Colors

Reset Resets Colors to default values.
/%type.name%/ Force AdSense to return the specified Ad Type. /%type.name%/ Force Ad border corner.

rc:10 for very rounded corners,
rc:6 for slightly rounded corners,
rc:0 for square corners (default).

Video Settings

Master/Companion Enable or Disable Master/Companion Setups.

When this is enabled the 1st ad slot is the
Video ad slot; other ad slots can be set
individually to be companions of the video
ad slot.

When this is disabled only a single video
ad slot can be generated.
?
Allow non-companion Ads When enabled, allows companion ad slots to
deliver ads that are not par of a Master/Companion
Line Item.

When disabled, the companoin ad slots will
only deliver ads of Master/Companion Line
Itmes, if the Master Tag delivers an ad.
?
Enable companion autofill Sets whether companion slots that have not
been filled will be automatically backfilled.
?
/%type.name%/
?
Enter ID in the correct format.
Sets the video content information to be
sent along with the ad requests for targeting
and content exclusion purposes.
?
Enter ID in the correct format.
Sets the video content information to be
sent along with the ad requests for targeting
and content exclusion purposes.
Ad slot /%data.adslots.indexOf(slot) + 1%/ - Video only - Companion
Companion Set this ad slot as a companion of the
Video Adslot.
This will prevent the adslot to be set
as Out of Page.
Out Of Page Set this ad slot as Out Of Page.
OOP ad slot cannot be set as companions
to video slots.
Force SafeFrame Configures whether ads in this slot should
be forced to be rendered using a
SafeFrame container.

When Page level SafeFrame is enabled,
this switch can be used to prevent this
adslot to be delivered in a SafeFrame.
?
Accepeted formats:

AU.Level1/AU.Level2/AU.Level#
AU.Level > AU.Level2 > AU.Level#
This field is required.
Enter the ad unit name in the specified format.
content_copy Copy Ad Unit Code to all ad slots.
/%item.label%/ Accepeted formats: WxH or Fluid

Hit Space enter or Comma to declare multiple sizes.
Fluid size can only be declared as a single size.

GPT Light Only supports single size requests.
To Use multiple Sizes disable GPT Light.
/%map.name%/
Accepeted formats: Key=Value or Key=[V1;V2;V#]

Hit Space, Enter or Comma to declare multiple KVs.
Sets a slot-level ad category exclusion
label on this slot.

Accepeted formats: Label1, Label#
Enter labels in the specified format.
Enter a valid URL or %%CLICK_URL_UNESC%%.
Sets a click URL as a prefix to the clickthrough URL
from the DFP ad server (the landing page associated
with the creative).

Must be a valid URL: ie. http://www.clickcounter.com
Or the DFP Macro: %%CLICK_URL_UNESC%%
remove Remove Adslot /%data.adslots.indexOf(slot) + 1%/
add Add Adslot to position /%data.adslots.indexOf(slot) + 2%/
remove Remove Adslot /%data.adslots.indexOf(slot) + 1%/
add Add Adslot to position /%data.adslots.indexOf(slot) + 2%/
Generate Tags
Form Data:

  form_url: "dfpgpt.appspot.com"
  nh: "false"
  strings: "{'div_pre': u'', 'qr': u'', 'head_pre': u'', 'live_ads': u'', 'adsense_settings': u'', 'header': u'', 'additional_settings': u'', 'live_ads_pre': u'', 'vid_pre': u'', 'gpt_info': u''}"
  vo: "vast"

Scope:
/% tooltips_delay | json %/
/% data | json %/
    
Generated Data:
gptSettings:  /% gptSettings | json %/
gptAdvanced:  /% gptAdvanced | json %/
gptAdsense:   /% gptAdsense | json %/
gptVideo:     /% gptVideo | json %/
    
Generated Adslots:
/% gptAdslots | json %/
    
Controller:
/% ctrl | json %/