【问题标题】:AdManager - how to measure viewabilityAdManager - 如何衡量可见度
【发布时间】:2020-11-25 00:45:41
【问题描述】:

我使用 Google AdManager,但遇到了这个问题。 如何衡量通过广告单元占位符呈现的广告素材的可见度?

AdManager 在 iframe 中呈现所有广告素材。我使用这个脚本来操作父页面:

var w=window.parent; //parent window reference
var d=w.document; //parent document reference
var jQuery = w.jQuery; //reference to jQuery in parent page context
var ifr = d.getElementById(window.frameElement.id);
ifr.style.display = 'none'; //hide iframe to avoid empty white place on the page
    
jQuery('...banner location...').after(...rendering creative out of adManager ad unit);

它运行良好,但 AdManager 当然不会衡量此广告素材的可见度。有没有办法解决这个问题?

无法通过脚本移动 DOM 中的广告单元,因为您无法移动 iframe 和脚本等活动元素。 使用 adUnit 作为可点击层并通过“位置:绝对”将其移动到呈现的广告上方并不容易,因为不同的容器(广告单元和真正的广告占位符)使用“位置:相对”重置绝对坐标。 因此脚本必须计算两个元素的实际位置,但一次是不够的。该页面包含交互式元素,元素的坐标可能会随时间而变化。

有没有更简单的方法? 我能否以某种方式告诉 AdManager,此元素是广告素材的一部分,并且可以在其处于活动视口时计算可见度?

感谢您的回答。

【问题讨论】:

    标签: ads measure google-ad-manager


    【解决方案1】:

    根据官方文档 (here),无法测量广告 iframe 之外的可见度:

    自定义 JavaScript 作为插入 广告 iframe 内其他位置的实际内容,但在 有创造力的 。 Active View 将搜索一秒钟 类属性 GoogleActiveViewInnerContainer。这扩展到 广告容器的大小,但允许容器大小为 从广告 iframe 中测量。

    如果您找到一种通过强制使用新的 iframe 尺寸来在广告 iframe 中呈现广告素材的方法,则可以将呈现的广告素材封装在 div class="GoogleActiveViewInnerContainer" 中,以告知 Active View 在哪里观看可见度。遗憾的是,它只适用于广告 iframe。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-15
      • 2021-06-04
      • 1970-01-01
      • 2013-03-28
      • 2011-04-26
      • 2010-09-13
      • 2020-07-20
      • 1970-01-01
      相关资源
      最近更新 更多