0

我正在尝试在 Google HTML5 视频播放器中测试视频广告。但是,当我投放广告时,伴随横幅广告没有出现。这是来自 VAST 的伴随横幅:

<Creative id="65393060" sequence="1">
 <CompanionAds>
  <Companion id="65393060" width="300" height="250">
   <StaticResource creativeType="image/jpeg"><![CDATA[https://upload.wikimedia.org/wikipedia/commons/2/24/Ad-MediumRectangle-300x250.jpg]]></StaticResource>
   <TrackingEvents>
    <Tracking event="creativeView"><![CDATA[https://googleads4.g.doubleclick.net/pcs/view?xai=AKAOjstsTn-EaW1qCpFP8ZfnnD3WA-FvBRQQqjL6Zsorvcg_b2mBA825XyOmESX3oEFPWEYsBfGOZnwFDoULoM_W2XoJotTnj5_cHibpaP0QuuKj&sig=Cg0ArKJSzHCpDSHDWEEtEAE&urlfix=1&adurl=]]></Tracking>
   </TrackingEvents>
   <CompanionClickThrough><![CDATA[https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjstsTn-EaW1qCpFP8ZfnnD3WA-FvBRQQqjL6Zsorvcg_b2mBA825XyOmESX3oEFPWEYsBfGOZnwFDoULoM_W2XoJotTnj5_cHibpaP0QuuKj&sig=Cg0ArKJSzCLZtsCz6JLn&urlfix=1&adurl=https://www.adobe.com/marketing-cloud/customer-experience.html%3Fsdid%3D162BDWN7%26mv%3Ddisplay]]></CompanionClickThrough>
  </Companion>
 </CompanionAds>
</Creative>

谁能告诉我为什么?我在这里测试这个:

https://developers.google.com/interactive-media-ads/docs/sdks/html5/vastinspector

4

1 回答 1

1

您的随播广告配置看起来不错。我从 google 复制了 sampel-vast.xml 并添加了您的 Companion - 所以它看起来像:

<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0">
    <Ad id="...">
        <InLine>
            <AdSystem>...</AdSystem>
            <AdTitle>...</AdTitle>
            <Description>...</Description>
            <Error>...</Error>
            <Impression>...</Impression>
            <Creatives>
                <Creative id="..." sequence="1">
                    <Linear skipoffset="...">...</Linear>
                </Creative>
                <Creative id="..." sequence="1">
                    <CompanionAds>
                        <Companion id="..." width="300" height="250">
                            <StaticResource creativeType="image/jpeg"><![CDATA[https://upload.wikimedia.org/wikipedia/commons/2/24/Ad-MediumRectangle-300x250.jpg]]></StaticResource>
                            <TrackingEvents>
                                <Tracking event="creativeView"><![CDATA[https://googleads4.g.doubleclick.net/pcs/view?xai=AKAOjstsTn-EaW1qCpFP8ZfnnD3WA-FvBRQQqjL6Zsorvcg_b2mBA825XyOmESX3oEFPWEYsBfGOZnwFDoULoM_W2XoJotTnj5_cHibpaP0QuuKj&sig=Cg0ArKJSzHCpDSHDWEEtEAE&urlfix=1&adurl=]]></Tracking>
                            </TrackingEvents>
                            <CompanionClickThrough><![CDATA[https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjstsTn-EaW1qCpFP8ZfnnD3WA-FvBRQQqjL6Zsorvcg_b2mBA825XyOmESX3oEFPWEYsBfGOZnwFDoULoM_W2XoJotTnj5_cHibpaP0QuuKj&sig=Cg0ArKJSzCLZtsCz6JLn&urlfix=1&adurl=https://www.adobe.com/marketing-cloud/customer-experience.html%3Fsdid%3D162BDWN7%26mv%3Ddisplay]]>    </CompanionClickThrough>
                        </Companion>
                    </CompanionAds>
                </Creative>
            </Creatives>
            <Extensions>...</Extensions>
        </InLine>
    </Ad>
</VAST>

它有效。

潜在问题可能是:

  • Creative \ sequence不匹配(未提供线性部分)

    Companion \ sequence需要匹配Linear \ sequence

  • CORS分别。访问控制允许来源问题

    如果您在浏览器控制台中看到有关 Access-Control-Allow-Origin 问题的错误,您可能需要编辑服务器配置。
    例如,一个快速的解决方案是.htaccess在您的 apache www 目录中编辑文件 - 例如:

    <IfModule mod_headers.c> Header set Access-Control-Allow-Origin https://imasdk.googleapis.com Header set Access-Control-Allow-Credentials true </IfModule>

如果这根本没有帮助,您将需要在您的问题中添加更多信息。像:

  • 浏览器控制台输出
  • 完整的巨大.xml
  • 服务器细节分别。您选择了哪个选项VAST XMLVAST TAG

祝你今天过得愉快。

于 2016-03-29T16:21:46.047 回答