【发布时间】:2013-09-25 09:48:24
【问题描述】:
我们在页面上有一系列 DFP 广告,每次用户点击图库查看器上的每个缩略图图标时,它们都会使用 javascript refresh() 调用自动刷新:
googletag.pubads().refresh();
问题在于,如果用户快速点击图库,则广告会在每次点击时不断刷新,最终可能会出现空白广告,因为系统无法跟上用户点击的速度。
因此,我只想在广告完全加载完成后才调用刷新。
有什么方法可以检测广告位内广告的加载状态吗?
我们的广告是通过以下方式定义的:
slot_header_lge = googletag.defineSlot('/XXX/Header-Home-Large', [945, 230], 'div-gpt-ad-Header-Large').addService(googletag.pubads());
googletag.pubads().enableAsyncRendering();
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
【问题讨论】:
标签: javascript ads adsense google-dfp