Enumerations | |
---|---|
Companion
|
Defines a set of constants for the companion backfill setting. |
Vpaid
|
A set of constants for enabling VPAID functionality. |
Enumerations
CompanionBackfillMode
CompanionBackfillMode
If the value is ALWAYS
, companion backfill will be attempted in all
situations, even when there is no main ad returned.
If the value is ON_MASTER_AD
, companion backfill will be attempted if
there is a main ad with fewer companions than there are companion slots. The missing
companions will be backfilled.
The default value is ALWAYS
.
... let slot1 = googletag.defineSlot('/1234/adunit', [300, 250], 'slot-div'); slot1.addService(googletag.companionAds()).addService(googletag.pubads()); ... googletag.companionAds().setRefreshUnfilledSlots(true); ... googletag.enableServices();
googletag.pubads().disableInitialLoad(); ... googletag.enableServices();
Enumeration Members | |
---|---|
ALWAYS
|
|
ON_
|
VpaidMode
VpaidMode