我正在尝试在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
答案 0 :(得分:1)
您的Companion Ad配置看起来很好。我从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
missmatch (未提供线性部分)
Companion \ sequence
需要与Linear \ sequence
CORS resp。 Access-Control-Allow-Origin问题
如果您在浏览器控制台中看到有关Access-Control-Allow-Origin问题的错误,您可能需要编辑服务器配置。
例如,快速解决方案是编辑apache www目录中的.htaccess
文件 - 例如:
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin https://imasdk.googleapis.com
Header set Access-Control-Allow-Credentials true
</IfModule>
如果这根本没有帮助,您需要在问题中添加更多信息。喜欢:
VAST XML
或VAST TAG
度过愉快的一天。