AdSense Attributes

The table below lists the attributes that can be set with the googletag.PubAdsService.set(key, value) or googletag.Slot.set(key, value) methods. These AdSense attributes are typically set when creating or editing ad slots in DFP. These methods allow the publisher to override these server-side settings on a per-request basis.

New attribute Legacy attribute Example Allowed values

adsense_channel_ids

google_ad_channel

271828183+314159265

valid AdSense channel IDs, separated by '+'

adsense_ad_types

google_ad_type

text_image

text, image, text_image

adsense_ad_format

google_ad_format

250x250_as

468x60_as, 234x60_as, 125x125_as, 120x600_as, 160x600_as, 180x150_as, 120x240_as, 200x200_as, 250x250_as, 300x250_as, 336x280_as, 728x90_as

adsense_background_color

google_color_bg

#000000

hexadecimal colors

adsense_border_color

google_color_border

#000000

hexadecimal colors

adsense_link_color

google_color_link

#000000

hexadecimal colors

adsense_text_color

google_color_text

#000000

hexadecimal colors

adsense_url_color

google_color_url

#000000

hexadecimal colors

adsense_ui_features

google_ui_features

rc:10

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

page_url

N/A

www.mysite.com

valid URL

The table below lists the attributes that can be set with the googletag.PassbackSlot.set(key, value) method. These methods allow the publisher to override these settings for the Passback context.

New attribute Legacy attribute Example Allowed values

page_url

N/A

www.mysite.com

valid URL

Send feedback about...

Google Publisher Tag