[英]why is my DFP OOP Ad not showing?
是否有人通過dfp從rubicon項目投放視頻廣告?
我的代碼設置如下,看來我也從廣告服務器上找回了一些東西,但是oop視頻廣告沒有顯示?
<head>
...
<!-- google tag serice -->
<script src='https://www.googletagservices.com/tag/js/gpt.js'></script>
<!-- End google tag service -->
...
</head>
<body>
...
<!-- /net-work-id/ad-unit-code -->
<div id='div-gpt-ad-x-0'>
<script>
googletag.cmd.push(function () {
googletag.defineOutOfPageSlot('/net-work-id/ad-unit-code', 'div-gpt-ad-x-0')
.addService(googletag.pubads());
googletag.pubads().enableSyncRendering();
googletag.enableServices();
googletag.display('div-gpt-ad-x-0');
});
</script>
</div>
...
</body>
密切關注網絡呼叫,發現3個呼叫:
GET: http://entitlements.jwplayer.com/xxx.json
Response:
{
"canPlayAds": true
}
GET: https://video-ads.rubiconproject.com/video/xx/xx/xx/xx/vast.xml?width=640&height=360:
<?xml version="1.0"?>
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="2.0">
<Ad id="1">
<InLine>
<AdSystem>ad sys</AdSystem>
<AdTitle>VPAID Wrapper</AdTitle>
<Description>VAST for ad sys VPAID ad serving</Description>
<Impression>
<![CDATA[https://xxx]]>
</Impression>
<Creatives>
<Creative sequence="1">
<Linear>
<Duration>00:00:30</Duration>
<AdParameters>
< ![CDATA[{
"host": "example.com",
"path": "\/a\/api\/vast.xml",
"assets_url": ":\/\/xxx.com\/video\/assets\/",
"query_parameters": {
"account_id": "xxx",
"site_id": "xxx",
"zone_id": "xxx",
"size_id": "xxx",
"width": "640",
"height": "360"
},
"stats_base_url": "https:xxx",
"emily_base_url": "https:xxx/usync.html",
"emily_accts": ["xxx", ...],
"whiteops_throttle": "10",
"moat_partner_code": "xxx",
"throttle_rate": {
"moat": "0.05"
},
"protocol": "https"
}
]] >
</AdParameters>
<MediaFiles>
<MediaFile apiFramework="VPAID" delivery="progressive" type="application/x-shockwave-flash" width="640" height="360">
<![CDATA[https://example.com/video/xxx.swf]]>
</MediaFile>
<MediaFile apiFramework="VPAID" delivery="progressive" type="application/javascript" width="640" height="360">
<![CDATA[https://example.com/video/xxx.js]]>
</MediaFile>
<MediaFile apiFramework="VPAID" delivery="progressive" type="application/x-shockwave-flash" width="640" height="360">
<![CDATA[https://example.com/video/xxx.swf]]>
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
</Creatives>
</InLine>
</Ad>
我認為最后一次調用發生在<iframe>
內部,查詢參數包括上述響應中的列表:
響應:
<iframe>
https://optimized-by.rubiconproject.com/a/api/vast.xml?account_id=xx&..
<?xml version="1.0" encoding="UTF-8"?>
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0" xsi:noNamespaceSchemaLocation="vast.xsd">
<!-- Code: psaNRF -->
</VAST>
只需在響應中輸入<!-- Code: psaNRF -->
。
有人可以跳進我的鞋子嗎?
看起來您有一個VAST
xml,其中包含一組VPAID
廣告素材,這些VPAID
素材又加載了另一個VAST
網址(請查看AdParameters
選項)。第二個VAST網址未返回任何內容(您的第二個空響應),因此沒有顯示任何內容
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.