Skip to main content

Import Ad Units

info

setup > View Website > Manage Ad Units > Import

You can start from Download the ad unit import template.

import template

Legends

NameScopeDescriptionExampleType
idoptionalWhen the ID exists, update the corresponding ad unit; when the ID is empty, create a new ad unit; Note that only ad units of the current website are supported.12number
namerequiredad unit nameleft-1string
coderequired for prebid Ad units(is_prebid=1)GAM inventory code/123456789/left-1string
div_idrequired for Dynamic ad units(is_dynamic=1) and regular ad units(is_anchor=0 & is_interstitial=0)Div ID Nameleft-1string
sizesrequired for non-interstitial prebid Ad units(is_interstitial=0)ad size mappingSize Mappingstring
notesoptionaldescript the location etcpage a's ad unitstring
hardflooroptionalthe lowest CPM price a bid will need to meet for each Prebid auction.0.25string
refreshoptionalOnly non-interstitial prebid ad units are valid. 1 refreshes the ad, 0 does not refresh.1number
refresh_timesoptionalNumber of refreshes. default=0(Unlimited), can choose 1-600number
lazy_loadoptionalOnly non-interstitial ad units are valid. 1 lazyload the ad, 0 does not lazyload.0number
is_prebidoptional1 is for prebid ad unit, 0 is for custom ad unit.1number
is_anchoroptional1 is for sticky ad unit, 0 is for non-sticky ad unit.0number
is_interstitialoptional1 is for interstitial ad unit, 0 is for non-interstitial ad unit.0number
is_dynamicoptional1 is for dynamic ad unit, 0 is for non-dynamic ad unit.0number
dynamic_moderequired for dynamic Ad units(is_dynamic=1)dynamic ad modeslot_modestring
slot_mode_typerequired for dynamic_mode=slot_modeslot mode typeafterstring
slot_mode_selectorrequired for dynamic_mode=slot_modedynamic ad(slot_mode) slot element selector(CSS selectors)#mainstring
interval_mode_intervalsrequired for dynamic_mode=interval_modeInsert ad units every n slot elements.4number
interval_mode_selectorrequired for dynamic_mode=interval_modedynamic ad(interval_mode) slot element selector(CSS selectors).list-itemstring
website_display_rules_idsoptionalThe display rules that need to be applied to the ad unit, separated by , for multiple display rules. If empty, the ad unit will be loaded on all pages of the website.1,2,3,4string
fallback_adunit_idoptionalfallback ad unit ID23number
is_fallbackoptional1 is for fallback ad unit, 0 is for non-fallback ad unit.0number
statusrequired1 is for enabled ad unit, 0 is for disabled ad unit.1number
[bidder]:enabledrequired for prebid Ad units(is_prebid=1)1 is for enabled bidder config, 0 is for disabled bidder config.1number
[bidder]:params:[param_a]required for prebid Ad units(is_prebid=1)see Bid Params configuration examplesee Bid Paramsstring

Size Mapping

NameDescriptionExample
staticwill be applied on all devices, separated by , for multiple sizes728x90, 300x250
dynamicDifferent sizes will be applied on different devices according to the configuration, separated by ; for multiple device configurations.d:728x90; t:300x250,728x90; m:300x250; default:300x250,728x90,1x1;

Devices

NameDescription
ddesktop
ttablet
mmobile
defaultOther devices.

Dynamic Mode

NameDescription
slot_modeInsert an AD according to the slot rule
height_modeEvery fold
interval_modeEvery x slot element

Slot Mode Type

NameDescription
beforeinsert before slot element
afterinsert after slot element
insideinsert into slot element

Bid Params configuration example

Unique Bidder

adyoulike:enabledadyoulike:params:placement
1194f787b85c829fb8822cdaf1ae64435

Duplicate Bidder

adyoulike:1:enabledadyoulike:1:params:placementadyoulike:2:enabledadyoulike:2:params:placement
1194f787b85c829fb8822cdaf1ae644351194f787b85c829fb8822cdaf1ae64436