Forum Moderators: martinibuster
set
adSlot.set(key, value)
Sets values for AdSense parameters on a particular ad slot. This will override any values set at the service level for this key. See the set table above for a list of available keys and values. Calling this function more than once for the same key will override previously set values for that key. All values must be set before any display call.
Parameters:
string key - Key name of the parameter for which to set a value.
string value - Value of the key.
Example:
// setting targeting on a single ad slot
var slot = googletag.defineSlot("/1234567/skyscraper", [160, 600]).addService(googletag.pubads());
slot.set("adsense_background_color", "#FFFFFF");