我正在尝试为一个网络项目引入间质广告,但我对如何使用现有的adslot感到困惑,而不为其定义标准(甚至可能吗?)
来自这里的文档:https://developers.google.com/publisher-tag/reference https://developers.google.com/publisher-tag/guides/key-value-targeting
有一些示例显示要显示的广告类别,例如:
Googletag.defineSlot(‘/1234567/体育’,728,90,'div-1');
或
googletag.defineOutOfPageSlot('/6355419/Travel/Europe/France/Paris',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);
但这两种格式都没有被接受,而且文档在其他示例中似乎也有些欠缺。
任何帮助都很感激。
发布于 2022-05-17 06:41:04
interstitialSlot = googletag.defineOutOfPageSlot('/26*****997/auto',
googletag.enums.OutOfPageFormat.INTERSTITIAL);
用这个,只等24小时
https://stackoverflow.com/questions/72257075
复制相似问题