Google DFP广告管理系统返回400 Bad Request

时间:2014-10-30 04:08:57

标签: google-dfp http-status-code-400

尝试让广告位在我的网站上运行。我提供了一组工作得很好的测试槽,然后我删除了这些并创建了适当的命名槽。但是现在,请求url一直在返回NetworkError:400错误的请求...它会让我发疯。我已经验证并且网址不是2k字符限制。

我构建了一个非常简单的小测试页面,但它仍然没有显示广告。我在该广告单元中设置了默认的“众议院”订单项广告,但它现在才显示。我可以在代码中看到iframe但由于错误它是空的。 我的普通代码更复杂,广告单元和响应代码更多,但测试代码非常简单:

<html>

<head>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') +
'//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();

googletag.cmd.push(function() {
    googletag.defineSlot('/xxxxxxxx/OCR-rightsidebar-skyscraper', [160, 600], 'div-gpt-ad-1414630314403-5').addService(googletag.pubads());
  googletag.pubads().enableSingleRequest();
    googletag.enableServices();

});

</script>

<body>

<!-- OCR-rightsidebar-skyscraper -->
<div id='div-gpt-ad-1414630314403-5' style='width:160px; height:600px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1414630314403-5'); });
</script>
</div>

</body>

</html>

有什么我在这里看不到的吗? 有没有人经历过400个pubads.g.doubleclick.net? 任何想法如何解决这个问题?我搜索过,但到目前为止我所遇到的一切都没有用。

由于

0 个答案:

没有答案