Google adslot语法-有没有办法不指定标准?



我正试图为一个网络项目引入插页式广告,但我对如何使用现有的地址而不定义标准感到困惑(或者如果它甚至是可能的?)

从这里的文档:https://developers.google.com/publisher-tag/referencehttps://developers.google.com/publisher-tag/guides/key-value-targeting

有一些例子显示了要显示的广告的选定类别,例如:

googletag.defineSlot("/1234567/运动",(728、90),"-"),

googletag.defineOutOfPageSlot('/6355419/旅游/欧洲/法国/巴黎,googletag.enums.OutOfPageFormat.INTERSTITIAL);

当我尝试使用示例代码与我的帐户ID和广告单元名称时,它不起作用。我不想在这个阶段定义类别,我希望它是自动完成的。

例如

interstitialSlot = googletag.defineOutOfPageSlot('/26*****997/auto',
googletag.enums.OutOfPageFormat.INTERSTITIAL);

interstitialSlot = googletag.defineOutOfPageSlot('/26*****997/interstitial-unit-name',
googletag.enums.OutOfPageFormat.INTERSTITIAL);

但是这两种格式都不被接受,并且文档在其他示例中似乎有些缺乏。

感谢您的帮助。

interstitialSlot = googletag.defineOutOfPageSlot('/26*****997/auto',

googletag.enums.OutOfPageFormat.INTERSTITIAL);

使用这个,只等待24小时

最新更新