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 |