AI-generated Key Takeaways
-
The table outlines AdSense attributes that can be modified using
googletag.PubAdsService.set
orgoogletag.Slot.set
methods, enabling publishers to override server-side settings. -
These attributes, typically managed in Google Ad Manager, include options for specifying ad channels, types, formats, colors, and test mode.
-
Publishers can customize the appearance of ads with attributes controlling background, border, link, text, and URL colors, along with UI features like rounded corners.
-
Additional attributes allow setting the document language and page URL for more context and control.
-
The table provides examples of allowed values and links to relevant documentation for each attribute.
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
Google Ad Manager. These methods allow the publisher to override these server-side settings
on a per-request basis.
New attribute | Legacy attribute | Example | Allowed values |
---|---|---|---|
|
|
|
Valid AdSense channel IDs, separated by '+' |
|
|
|
|
|
|
|
|
|
|
|
hexadecimal colors |
|
|
|
Hexadecimal colors |
|
|
|
Hexadecimal colors |
|
|
|
Set |
|
|
|
Hexadecimal colors |
|
|
|
Hexadecimal colors |
|
|
|
|
|
|
|
A valid ISO 639-1 language code. |
|
|
|
Valid URLs |