【问题标题】:Empty vast tag occasionally偶尔清空大标签
【发布时间】:2021-12-06 14:57:17
【问题描述】:

为什么大标签偶尔会空?我正在使用此处的示例进行测试:https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/tags#single-vpaid-2.0-linear

我可以选择任何大链接,例如:

https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirectlinear&correlator=

当我在浏览器中打开它并偶尔重新加载这个 url 时,我只能在大标签中得到这个:(而不是完整的大文档)

<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0"/>

这是怎么回事?

【问题讨论】:

    标签: vast google-ima


    【解决方案1】:

    您需要确保对 VAST 代码的每个请求都包含不同的相关因子,例如:

    https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&...&correlator=4345645667
    

    您可以轻松地将相关器随机数生成器创建为变量:

    var randNum = Math.floor(Math.random() * (9999999 - 1 + 1)).toString();
    var vastUrl = "https://pubads...&correlator="+ randomCorrelator;
    

    有关所需参数的完整文档,请参阅 here

    【讨论】:

    • 所以它只是缓存破坏?
    • 是的,据我了解
    猜你喜欢
    • 2013-02-27
    • 2011-08-09
    • 2017-12-28
    • 1970-01-01
    • 2020-07-29
    • 1970-01-01
    • 1970-01-01
    • 2013-01-17
    • 1970-01-01
    相关资源
    最近更新 更多