βοΈConfiguration
This section provides a detailed overview of the configuration files used in the Header Bidding wrapper.
Before You Begin
Confirm GAM ad unit CODES and full paths
Align device detection names with
deviceDetection.jsonDecide targeting prefix and understand SafeFrames/S2S implications
Common Pitfalls
Using GAM ad unit NAME instead of CODE
Double quotes inside HTML
data-JSON; prefer single quotes on attributesDevice labels mismatch between page and config
config.json
id
idDescription: An identification number used internally within the wrappers, not across different wrapper instances.
Notes: It must be an integer.
Default: 9999
{
"id" : 12345
}code
codeDescription: The identification name of the wrapper. It must be unique.
file
fileDescription: The name of the file as hosted on the CDN. This is used to build, deploy, and purge. It must be unique.
Notes: It is best practice for the file name to be lowercase.
blockAutoBuild
blockAutoBuildDescription: If true, it will not allow the wrapper to be automatically built.
Default: false
globalVar
globalVarDescription: The variable that Prebid will use. The wrapper uses a custom variable name for Prebid to avoid conflicts with other wrappers on the page.
targetingPrefix
targetingPrefixDescription: Sets the prefix of targeting key-values used for sending bids to GAM. For example, [prefix]_bidder, [prefix]_hb, [prefix]_adid.
Important: If you use a custom prefix (not hb), anything related to Prebid Server and Safe Frames will be disabled.
Default: hb
url
urlDescription: The URL to the site where the wrapper will be implemented.
dfpAccount
dfpAccountDescription: The GAM account ID of the main account.
dfpChildAccount
dfpChildAccountDescription: The GAM account ID of the child account. If this is set for an MCM network, it will use the GAM tags appropriate for MCM, using both the main and child account. Do not set it if it is not an MCM network.
adunitMapping
adunitMappingDescription: The method of mapping the div tags implemented in the page with the config built in the wrapper.
Possible Values:
adunit: Matches based on adunit (data-aa-adunitof the div -> with the propertyadunitfromadunits.json).targeting: Matches based on a key targeting (data-aa-targetingof the div -> with the propertytargetingfromadunits.json).
Default: adunit
adunitMappingKey
adunitMappingKeyDescription: The name of the key-value that will be used for mapping. It only works when adunitMapping is targeting.
Default: pos
gist
gistDescription: The URL to the location of tags that the publisher needs to implement on the page.
analytics.clarity
analytics.clarityDescription: To enable Clarity analytics, use the ID provided in the dashboard.
Default: false
analytics.gtm
analytics.gtmDescription: Enables a GTM container.
Parameters:
containerId: The Google Tag Manager Container ID. Required; without this, the GTM container will not be loaded.dataLayer: The name of the variable for Data Layer. Default isdataLayer; if not set, it will use the default.
analytics.prebid
analytics.prebidDescription: Enables a Prebid analytics provider. Can take an array for multiple providers or an object for a single one.
wrapper.timeout
wrapper.timeoutDescription: The maximum time in milliseconds that the header bidding auction will wait for bids.
Default: 2000
wrapper.conditionalTimeout
wrapper.conditionalTimeoutDescription: The maximum time in milliseconds that the header bidding auction will wait for bids for each device type (as defined in deviceDetection.json). It will overwrite the default timeout if the device is detected.
wrapper.timeoutFallback
wrapper.timeoutFallbackDescription: The maximum time in milliseconds that the wrapper will wait until it makes the GAM ad request.
Default: 5000
wrapper.bidRequestWaitTime
wrapper.bidRequestWaitTimeDescription: The time in milliseconds that the processing of ads will be throttled to ensure all processing occurs simultaneously.
Default: 50
wrapper.disableBidders
wrapper.disableBiddersDescription: An array of bidder names that will be excluded from all auctions (completely disabled).
wrapper.disableClientSideAdapters
wrapper.disableClientSideAdaptersDescription: An array of bidder names that will be excluded from all client-side auctions (they will still run in S2S).
wrapper.geoFilter
wrapper.geoFilterDescription: Filters out bidders based on Geo Detection. Geo Detection is asynchronous and might resolve after the auction is initiated, so this functionality is not 100% guaranteed. The value is an object where each key is a bidder name.
Filter Options (for each bidder):
whitelist: Enables the bidder only for specified countries.blacklist: Disables the bidder for specified countries.
Each option takes an array of country codes (ISO).
wrapper.geoFilterUserId
wrapper.geoFilterUserIdDescription: Filters out User IDs based on Geo Detection. Geo Detection is asynchronous and might resolve after the User ID is initiated, so this functionality is not 100% guaranteed. The value is an object where each key is a User ID name.
Filter Options (for each User ID):
whitelist: Enables the User ID only for specified countries.blacklist: Disables the User ID for specified countries.
Each option takes an array of country codes (ISO).
wrapper.patternBlocking
wrapper.patternBlockingDescription: A feature to block the wrapper from executing based on URL, user agent, or geo country patterns. When a pattern matches, the wrapper will halt execution immediately. Each rule type (href, userAgent, geo) is enabled if its array exists and has at least one pattern.
Parameters:
href:Description: An array of patterns to match against the
window.location.href. If this array exists and has length > 0, href pattern blocking is enabled.Possible Values:
Wildcard strings (e.g.,
/admin/*,*staging*).*matches any sequence of characters,?matches a single character.Regex strings, prefixed with
regex:(e.g.,regex:^https?://(dev|staging)\.example\.com/).
userAgent:Description: An array of patterns to match against the
navigator.userAgent. If this array exists and has length > 0, user agent pattern blocking is enabled.Possible Values:
Wildcard strings (e.g.,
*bot*).Regex strings, prefixed with
regex:(e.g.,regex:Puppeteer|Playwright).
geo:Description: An array of 2-letter country codes (ISO 3166-1 alpha-2) to block. If this array exists and has length > 0, geo pattern blocking is enabled. The wrapper will halt execution if the detected country matches any code in the array.
Possible Values:
2-letter country codes (e.g.,
"US","CA","GB","FR","DE").
Notes:
Geo detection is asynchronous (happens after the wrapper loads).
When country is detected, the geo check is performed before any event handlers run.
If the detected country matches a blocked country, an error is thrown and execution stops completely.
If the country is not blocked, the wrapper proceeds normally.
Code Examples:
Notes:
The
hrefanduserAgentchecks are performed immediately at script load before any processing begins (synchronous).The
geocheck is performed after the country is detected (asynchronous):Geo detection happens in the background after the wrapper loads
Once the country is detected, the geo check runs in the callback before emitting any events
If the country matches a blocked country, an error is thrown and execution halts completely
If the country is not blocked, the wrapper proceeds normally
Each rule type is independently enabled based on the presence and length of its array.
Wildcard matching (for href and userAgent) is case-insensitive.
For regex patterns, you can control flags within the pattern itself.
Country code matching is case-insensitive.
wrapper.disableInitialProcessAdsOnPage
wrapper.disableInitialProcessAdsOnPageDescription: If true, it will disable any automatic processing of ads on page load.
Default: false
wrapper.prebidServer.enabled
wrapper.prebidServer.enabledDescription: Enables Prebid Server for Hybrid bidding (both Client and S2S).
wrapper.prebidServer.accountId
wrapper.prebidServer.accountIdDescription: Prebid Server Account ID, if required by the Prebid Server.
wrapper.prebidServer.endpoint
wrapper.prebidServer.endpointDescription: Updates the Prebid Server Endpoint. This is the URL endpoint for the auction.
wrapper.prebidServer.syncEndpoint
wrapper.prebidServer.syncEndpointDescription: Updates the Prebid Server Sync Endpoint. This is the URL endpoint for user synchronization.
wrapper.prebidServer.maxTimeout
wrapper.prebidServer.maxTimeoutDescription: Updates the Prebid Server Max Timeout. This is the maximum time allowed for the S2S auction to respond.
wrapper.prebidServer.bidders
wrapper.prebidServer.biddersDescription: Updates the Prebid Server Bidders. This is the list of bidders that are allowed to run on S2S.
bidAdjustments.pubshare
bidAdjustments.pubshareDescription: All header bidding bids will be adjusted with this value.
Default: 1
bidAdjustments.s2s
bidAdjustments.s2sDescription: Header bidding bids received through Server 2 Server will be adjusted to this value.
Default: 1
bidAdjustments.networks
bidAdjustments.networksDescription: Adjusts bids from individual networks. Each bid from the specified network will be multiplied by the adjustment factor.
lazyLoading.preViewLength
lazyLoading.preViewLengthDescription: The distance of the ads on the page, in pixels, from the active viewport when ads will be requested.
Default: 1000
lazyLoading.preViewPorts
lazyLoading.preViewPortsDescription: The distance of the ads on the page, in number of viewports, depending on the device, when ads will be requested. If set, this will overwrite lazyLoading.preViewLength.
Default: false
lazyLoading.scrollEventDelay
lazyLoading.scrollEventDelayDescription: The time in milliseconds that the scroll event is throttled to mitigate latency.
Default: 400
targeting.refreshIteration
targeting.refreshIterationDescription: The name of the key-value used to count refreshes.
Default: refresh_count
targeting.refreshedInventory
targeting.refreshedInventoryDescription: The name of the key-value used to mark if the inventory is refreshed or not.
Default: false
targeting.refreshedAccelerateSeconds
targeting.refreshedAccelerateSecondsDescription: If enabled, it will set a key-value representing the seconds that the refresh was accelerated with.
Default: false
targeting.speed
targeting.speedDescription: If true, it sends key-values related to speed.
Key-Values:
wrap_l: The load time of the wrapper (relative to page navigation).gpt_l: The load time of thegoogletaglibrary (relative to wrapper load time).page_r: The load time of the page (relative to wrapper load time).waai: The time until the auction initiated (relative to wrapper load time), tracked only for the first auction.waae: The time until the auction ended (relative to auction init).wabt: The bidders that timeout (relative to what Prebid detects as timeout).wabtr: The bidders that timeout by not sending a bid until the GAM ad request is made.cndl: Connection DownLink.0: Unknown.0.1: Under 1MB.1: 1-9.99 MB.10: 10-99.99 MB.100: 100-999.99 MB.1000: >= 1000 MB.
cnrtt: Connection RTT.0: Unknown.10: <= 10ms.100: <= 100ms.900: <= 900ms.1000: >= 1000ms.
cntp: Connection Type. Possible values:na,bluetooth,cellular,ethernet,none,wifi,wimax,other,unknown.cnet: Connection Effective Type. Possible values:na,slow-2g,2g,3g,4g,5g.cnsd: Connection Save Data. Possible values:true,false.
Default: true
targeting.pageAdDensity
targeting.pageAdDensityDescription: If true, it sends key-values related to Page Ad Density.
Key-Values:
padpr(Page Ad Density PreRequest): Represents ad density before requests based on the biggest ad size available.pad(Page Ad Density): Represents ad density after ads have been rendered.
Default: true
targeting.utmKeyValues
targeting.utmKeyValuesDescription: If true, it sends key-values related to UTM values.
Key-Values:
utm_sourceutm_mediumutm_campaignutm_content
Default: true
targeting.uids
targeting.uidsDescription: If true, it sends key-values related to User Identification Services/Providers.
Key-Values:
uids: Sends the value of each User ID Service/Provider that identifies a user.uids_c: Sends the count of all User ID Services that identified a user.Individual key-value for each User ID Service/Provider: Sets a key with the name of the User ID Service/Provider.
Default: false
targeting.topicsapi
targeting.topicsapiDescription: If true, it sends key-values with the values from Topics API interests.
Notes: The topicsFpdModule must be added as it is not included by default anymore.
Default: false
targeting.gads
targeting.gadsDescription: If true, it sends key-values indicating whether the GAM cookie gads is set.
Default: false
targeting.cookieEnabled
targeting.cookieEnabledDescription: If true, it sends key-values indicating whether the browser allows third-party cookies.
Default: false
targeting.browserLangCode
targeting.browserLangCodeDescription: If true, it sends key-values related to the user's language as set up in the browser.
Default: false
targeting.referrer
targeting.referrerDescription: If true, it sends key-values related to the referrer domain.
Default: false
targeting.domain
targeting.domainDescription: If true, it sends key-values related to the domain where the wrapper is loaded.
Default: false
targeting.code
targeting.codeDescription: If true, it sends the key-value wrapCode related to the wrapper code.
Default: false
targeting.id
targeting.idDescription: If true, it sends the key-value wrapId related to the wrapper ID.
Default: false
targeting.prerendering
targeting.prerenderingDescription: If true, it sends the key-value prst related to the prerendering state of the page.
Key-Value Definition:
prst
no
The page is not prerendered.
before
The page is prerendering but not activated yet.
after
The page was prerendered and is now activated.
References:
Default: false
targeting.pageNavigationType
targeting.pageNavigationTypeDescription: If true, it sends the key-value pnType related to the page navigation type.
Key-Value Definition:
pnType
reload
Page was reloaded/refreshed.
push
New navigation entry (normal navigation).
replace
Current entry was replaced.
traverse
Navigation through history (back/forward).
navigate
Normal navigation (clicking a link, typing a URL, etc.).
back_forward
Navigation via browser back/forward buttons.
prerender
Page was prerendered.
reserved
Reserved value.
unknown
When navigation type cannot be determined.
Default: false
targeting.device
targeting.deviceDescription: If true, it sends key-values related to the device detected from the browser user agent.
Default: false
targeting.browser
targeting.browserDescription: If true, it sends key-values related to the browser detected from the browser user agent.
Default: false
targeting.os
targeting.osDescription: If true, it sends key-values related to the operating system detected from the browser user agent.
Default: false
abtests.uids
abtests.uidsDescription: Enables A/B testing for User IDs. When a User Identification Service/Provider identifies a user, it splits the traffic 50/50: half the time it sends the User ID to networks, and half the time it does not. The key-values sent to GAM will be nameOfUserID+test, with values true (User ID sent to network), false (User ID not sent to network), or na (User ID not identified).
Default: false
refresh.stopAdvertisers
refresh.stopAdvertisersDescription: An array of GAM advertiser/company IDs that will stop the refresh after an impression from them is displayed.
Notes: Values must be numeric, not strings.
Default: false
refresh.pauseOutOfFocus
refresh.pauseOutOfFocusDescription: When true, it will not refresh until the page is in focus.
Default: false
refresh.pauseOutOfView
refresh.pauseOutOfViewDescription: Pauses refresh when the adunit is out of view.
Properties:
threshold: A float from0to1. It will refresh only when the ad is in the active viewport. The value represents the threshold;0represents one pixel,1represents all pixels of the element.adunits: An array of strings representing adunits thatpauseOutOfViewwill apply to. It also accepts the wildcard*for all adunits.
refresh.maxLimit
refresh.maxLimitDescription: The maximum number of refreshes allowed for an adunit. The refresh counter starts at 0 for the initial load and increments with each refresh.
Valid Values:
false: Disables this limit (no maximum refresh limit)0: No refreshes allowed (ad will not refresh)1or higher: Number of refreshes allowed before stopping
Default: false
refresh.maxEmpty
refresh.maxEmptyDescription: The maximum number of empty responses from GAM before stopping refreshes. The empty counter starts at 0 and increments each time GAM returns an empty response. Refreshes will stop when the count reaches this limit.
Valid Values:
falseor0: Disables this limit (refreshes continue regardless of empty responses)1or higher: Number of empty responses tolerated before stopping refreshesSetting to
1means "stop after the first empty response"
Default: false
refresh.maxConsecutiveEmpty
refresh.maxConsecutiveEmptyDescription: The maximum number of consecutive empty responses from GAM before stopping refreshes. The consecutive empty counter starts at 0 and increments each time GAM returns an empty response, but resets to 0 when a non-empty response is received. Refreshes will stop when consecutive empties reach this limit.
Valid Values:
falseor0: Disables this limit (refreshes continue regardless of consecutive empty responses)1or higher: Number of consecutive empty responses tolerated before stopping refreshesSetting to
1means "stop after the first empty response"
Default: false
refresh.forceRefreshRateForAdvertiser
refresh.forceRefreshRateForAdvertiserDescription: Changes the refresh rate for a specific GAM advertiser/company. Takes an array of objects with advertiserId and refreshRate properties.
Default: false
refresh.accelerate
refresh.accelerateDescription: Accelerates refresh by reducing the refresh time by a specific number of seconds if the estimated CPM is higher than the specified value. Takes an array of objects with estCPM and seconds properties.
Default: false
refresh.continueOnEmpty
refresh.continueOnEmptyDescription: Applies only to viewable refresh. If GAM returns an empty response, and viewable refresh is enabled, refresh will not stop. A one-time refresh is scheduled with the same refresh rate as the viewable one, effectively transforming the next viewable refresh into a timed refresh.
Notes:
refresh.maxLimit,refresh.maxEmpty,refresh.maxConsecutiveEmptyapply. Refreshes will be counted and will stop if any limit is reached.refresh.accelerateapplies. The refresh is accelerated if there is a bid according to settings.refresh.pauseOutOfFocusapplies; if enabled, it will not refresh while the tab is out of focus.refresh.stopAdvertisersandrefresh.forceRefreshRateForAdvertiserdo not apply if the response is empty as there is no advertiser.
Default: false
refresh.viewabilityProvider
refresh.viewabilityProviderDescription: Defines the viewability provider for refresh.
Possible Values:
gam: Uses the GAM viewability event.wrapper: Uses the internal viewability detection for refresh.
Default: gam
deviceDetection
deviceDetectionDescription: The method of detecting the size of the site.
Possible Values:
window: Detects the size of the window/tab (if the window is resized or the tag is inside an iframe and cannot access the top window, it will detect that size).screen: Detects the screen size, not taking into account the actual window/tab.
Default: window
dfp.collapseEmptyDivs
dfp.collapseEmptyDivsDescription: If GAM has an empty response, collapses the size of the divs.
Default: false
dfp.emptyCreativeFallback
dfp.emptyCreativeFallbackDescription: If GAM has an empty response but there is a header bidding bid, delivers the ad without GAM.
Default: true
dfp.failedToFetchFallback
dfp.failedToFetchFallbackDescription: After a specific amount of time, adunits are checked if GAM displayed an ad. If not and there are Header Bidding bids available, delivers the ad without GAM.
Default: false
dfp.houseFallback
dfp.houseFallbackDescription: Specifies creatives to serve in case there is no demand from GAM or Prebid. Requires dfp.emptyCreativeFallback or dfp.failedToFetchFallback to be enabled. The value is an object where keys are sizes and values are the HTML creative. It will deliver the creative corresponding to the size of the adunit. If the adunit has multiple sizes and multiple creatives are available, one will be randomly selected.
Default: false
dfp.forceSafeFramesUnderFloor
dfp.forceSafeFramesUnderFloorDescription: Enables GAM's SafeFrames if the Header Bidding bid is under the floor.
Notes: If enabled, it will disable Amazon and bidders that are not compatible with Safe Frames.
Default: false
dfp.forceSafeFramesForAdunits
dfp.forceSafeFramesForAdunitsDescription: Enables GAM's SafeFrames on specific adunits. The full adunit path must be specified.
Notes: If enabled, it will disable Amazon for the adunits it is enabled for. It will also disable bidders that are not compatible with Safe Frames.
Default: false
dfp.forceSafeFrames
dfp.forceSafeFramesDescription: If true, it will enable GAM's SafeFrames.
Notes: If enabled, it will disable Amazon and bidders that are not compatible with Safe Frames.
Default: false
dfp.flexibleSafeFramesSignal
dfp.flexibleSafeFramesSignalDescription: [NEW INNOVATIVE FEATURE] An industry-first solution for granular SafeFrame control at the impression level. Instead of forcing SafeFrames on all inventory (which limits bidder participation and monetization), Flexible Safe Frames Signal provides intelligent, bid-level control by setting the hb_sframe key-value based on winning bid characteristics. This revolutionary approach allows publishers to:
Maximize Revenue: Only apply SafeFrames when needed, keeping high-performing bidders active on most inventory
Surgical Precision: Target specific bidders, advertiser domains, categories, or ad units
Risk Management: Protect sensitive inventory or high-value pages with granular SafeFrame rules
Enhanced Reporting: Track which impressions are served within SafeFrames via the
hb_sframekey-valueSmart Optimization: Different SafeFrame strategies for different inventory segments
When enabled, the module sets the hb_sframe key-value for every impression. All conditions are evaluated with OR logic - if ANY condition matches, the signal is set to 1, otherwise 0. When disabled, no key-value is set.
Parameters:
enabled(boolean, required): Set totrueto activate the module and start setting thehb_sframekey-value. Whenfalseor not set, the module is inactive and no key-value is set.bidders: Array of bidder codes. Enables SafeFrames for specific bidders (e.g., protect against specific SSPs).adomains: Array of advertiser domains. Enables SafeFrames for specific advertisers (e.g., competitor exclusion or brand safety).acats: Array of IAB category codes. Enables SafeFrames for specific ad categories (e.g., sensitive verticals).adunits: Array of GAM ad unit paths. Enables SafeFrames for specific inventory locations (e.g., homepage only).
Output: When enabled, sets the hb_sframe key-value to 1 (SafeFrames recommended) or 0 (standard rendering) for every impression. When disabled, no key-value is set.
Use Cases:
Brand Safety: "Enable SafeFrames for specific advertiser domains or sensitive categories"
Selective Enforcement: "Enable SafeFrames only on homepage and article pages, not in-feed inventory"
Bidder Management: "Enable SafeFrames for specific bidders with compliance concerns"
Category Control: "Enable SafeFrames for sensitive content categories requiring additional protection"
Default: Not configured (feature inactive)
Code Examples:
Notes:
Set
enabled: trueto activate the module; when disabled or not set, no key-value is setAll conditions use OR logic - if ANY condition matches,
hb_sframeis set to1The key-value is set at the slot level for each ad impression
Can be used with GAM creative templates or line item targeting for conditional SafeFrame rendering
Compatible with all header bidding demand sources and GAM features
Does not automatically disable bidders (unlike global SafeFrame settings)
prebid
prebidDescription: Prebid configuration.
Reference: Prebid documentation setConfig
prebid.bidCaching
prebid.bidCachingDescription: Stores bids to be reused in future auctions. If false, it is disabled.
Properties:
maxLength: The maximum size of the bid in bytes, to prevent bids with very large creatives.floor: Stores only bids above this CPM.
Default: false
userSync.triggerAction
userSync.triggerActionDescription: Defines the user interaction that will trigger a user sync.
Possible Values: scroll, click, idle, timed.
Default: idle
userSync.triggerDelay
userSync.triggerDelayDescription: Delay (in milliseconds) after the triggerAction occurs before initiating user sync.
Default: 5000
prebidBidderSpecific
prebidBidderSpecificDescription: Prebid configuration for specific bidders. Can take an array for multiple bidders or an object for a single one.
Reference: Prebid documentation setBidderConfig
amazon
amazonDescription: Configures the Amazon/A9 wrapper.
Properties:
enabled: Enables/disables the wrapper.pubID: The Amazon ID, from the AM or Dashboard.adServer: The ad server.
amazon.declareRefresh
amazon.declareRefreshDescription: Optional parameter for Amazon/A9 Config that will send the adRefresh parameter as configuration.
Reference: Amazon/A9 Config documentation
Possible Values:
true: SendsadRefreshto0for initial requests and1for refresh requests.false: Does not sendadRefreshat all.
Default: false
amazon.schain
amazon.schainDescription: Optional parameter for Amazon/A9 Config that will send the schain parameter as configuration.
Reference: Schain Object
Notes: The object passed will be assigned to the schain property of the Amazon configuration.
Code Examples:
amazon.timeout
amazon.timeoutDescription: Sets a custom timeout for Amazon/A9 bid requests in milliseconds. When configured, Amazon will use this timeout value independently from the Prebid/wrapper timeout. This allows you to optimize Amazon's bidding window separately from other header bidding partners.
How It Works:
If set to a valid number (greater than 0), Amazon will use this custom timeout for bid requests
If set to
false,0, or not included, Amazon will use the default Prebid/wrapper timeoutThe timeout applies to both the Amazon
fetchBidscall and the wrapper's internal fallback mechanismWhen a custom timeout is set, a log message will indicate that Amazon is using a custom timeout value
Use Cases:
Give Amazon more time to respond when they historically return slower but valuable bids
Reduce Amazon's timeout when you need faster page loads and Amazon responds quickly
Test different timeout strategies for Amazon independently from other bidders
Valid Values:
false: Use default Prebid timeout (default behavior)0: Use default Prebid timeout (same as false)Any positive number: Custom timeout in milliseconds (e.g.,
1500,2500)
Default: false (uses Prebid/wrapper timeout)
Code Examples:
Notes:
Amazon's timeout is independent from Prebid's timeout
If Amazon times out, the auction will continue and ads will render normally
The wrapper includes a safety mechanism to ensure ads render even if Amazon fails or times out
When
amazon.timeoutis set, you'll see a log message:__ A9/Amazon : Using custom timeout: [value]
forceReWrittingPBJS
forceReWrittingPBJSDescription: If true, it clones the Prebid global variable as pbjs to avoid conflicts with GAM creatives. When there are multiple instances of Prebid on the page, this must be disabled.
Default: false
adunits.json
Description: This file contains settings individually for each adunit of the wrapper.
Notes:
Each entry is an adunit.
Cannot have multiple adunits mapped to the same div.
You can have multiple divs mapped to the same adunit.
Each adunit has the following properties:
adunit
adunitDescription: The GAM adunit path.
device
deviceDescription: An array of devices (as defined in deviceDetection.json) where the adunit will display.
mediaTypes
mediaTypesDescription: MediaTypes in the format accepted by Prebid.
Reference: Prebid documentation AdUnit Reference
conditionalMediaTypes
conditionalMediaTypesDescription: MediaTypes for each device type (as defined in deviceDetection.json). It will overwrite the default MediaTypes if the device is detected.
additionalNonHBSizes
additionalNonHBSizesDescription: Sizes that are added to the GAM request, but not the header bidding requests.
conditionalNonHBSizes
conditionalNonHBSizesDescription: Additional sizes for each device type (as defined in deviceDetection.json). It will overwrite the default additionalNonHBSizes if the device is detected.
outofpage
outofpageDescription: If true, defines the adunit as Out Of Page.
Default: false
targeting
targetingDescription: Key-value name combination to send as targeting to GAM. Takes an object where the key of the object is the name of the key-value. The values can be a string or an array of strings.
lazyLoaded
lazyLoadedDescription: If true, enables lazy loading for the adunit.
Default: false
richMediaFormat
richMediaFormatDescription: Enables a rich media format for the adunit. Takes an object with type and options properties.
Default: -
refreshTimed
refreshTimedDescription: The time in seconds after which the adunit will be automatically refreshed. Set to 0 to disable timed refresh.
Default: 0
refreshViewable
refreshViewableDescription: The time in seconds after which the adunit will be refreshed once it becomes viewable. Set to 0 to disable viewable refresh.
Default: 0
css
cssDescription: CSS styles to apply to the div.
Default: -
bids
bidsDescription: An array of Prebid bidder configurations for the adunit. Each bidder object contains the bidder name and its parameters.
Reference: Full list of Prebid bidders and parameters can be found here.
Default: []
bids filters:
bids filters:Description: Uses the specific bid entry only if the condition is satisfied; otherwise, the bid will be ignored.
size filter
size filterDescription: Uses the specific bid if the size set in the filter matches one of the requested sizes.
Value: An array of width and height: [width,height].
device filter
device filterDescription: Uses the specific bid if the device set in the filter matches the detected device.
Value: An array of values from the devices listed in the deviceDetection.json file (e.g., ["desktop","tablet","mobile"]).
testParameter filter
testParameter filterDescription: Uses the specific bid only if the value of testParameter is set to true in the URL query string. It is used to create test pages.
Example: If the value is set to testBidder, for the bid to be used, the URL where the wrapper is called must have testBidder=true (e.g., https://example.com?testBidder=true).
deviceDetection.json
Description: This file defines the types of devices that will be used in adunits.json. The condition is based on the screen or window size, depending on how it is configured in config.json at deviceDetection.
Properties (for each device entry):
name: The name of the device.condition: A condition that needs to be respected for that device to be detected.
Notes:
Conditions with any of the
<,=,>operators are accepted.Can use macro
{SCREENWIDTH}for the size of the window/screen.It must cover the full width of the screen possibilities from
0to infinite.The devices must not overlap.
Default:
modules.json
Description: This file contains all modules used by Prebid. Each network will have one module. The generic syntax is biddernameBidAdapter. There are some exceptions.
Notes:
indexExchangemodule is namedixBidAdapter.Bidders using an alias will use the module of the parent bidder (e.g.,
districtm,gourmetadswill useappnexusBidAdapter).
Last updated