DoubleClick for Publishers 具有响应式网站大小映射的页外广告位
DoubleClick for Publishers Out-Of-Page Slot with Size Mapping for Responsive sites
有谁知道如何使用 Google sizeMapping 对象定位页外广告位以投放自适应广告?
我试过使用 "Out-of-page" 作为大小,但它不起作用。
var outOfPageMapping = googletag.sizeMapping().addSize(['out-of-page']).
addSize([0, 0], ['Out-of-page']).
addSize([1000, 0], []).
build();
好吧,在我改进 google 搜索以在引号中包含“页外”之后,我能够找到一个 Google DFP 组和答案!
https://productforums.google.com/forum/#!topic/dfp/OqW_uLU9TJ0
感谢 Nico Hiort af Ornas 和 Google 支持的 Rajkumar!
这是 Rajkumar 对 Nico 询问的回复。我测试过,有效:
I read through the post and yes, DFP supports responsive design for
out-of-page ad units and you can call defineSizeMapping() function on
defineOutOfPageSlot(). You will just need to add the size [1, 1] to
the sizeMapping function. Here is a sample design:
var sizeMapping = googletag.sizeMapping().
addSize([0, 0], []).
addSize([1210, 0], [1, 1]).
build();
googletag.defineOutOfPageSlot('...','...').defineSizeMapping(sizeMapping).addService(googletag.pubads());
有谁知道如何使用 Google sizeMapping 对象定位页外广告位以投放自适应广告?
我试过使用 "Out-of-page" 作为大小,但它不起作用。
var outOfPageMapping = googletag.sizeMapping().addSize(['out-of-page']).
addSize([0, 0], ['Out-of-page']).
addSize([1000, 0], []).
build();
好吧,在我改进 google 搜索以在引号中包含“页外”之后,我能够找到一个 Google DFP 组和答案!
https://productforums.google.com/forum/#!topic/dfp/OqW_uLU9TJ0
感谢 Nico Hiort af Ornas 和 Google 支持的 Rajkumar!
这是 Rajkumar 对 Nico 询问的回复。我测试过,有效:
I read through the post and yes, DFP supports responsive design for out-of-page ad units and you can call defineSizeMapping() function on defineOutOfPageSlot(). You will just need to add the size [1, 1] to the sizeMapping function. Here is a sample design:
var sizeMapping = googletag.sizeMapping(). addSize([0, 0], []). addSize([1210, 0], [1, 1]). build(); googletag.defineOutOfPageSlot('...','...').defineSizeMapping(sizeMapping).addService(googletag.pubads());