Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 广域标记url错误:广告错误:AdError 1012:由于网络错误,无法从服务器请求广告_Xml_Google Dfp_Vast - Fatal编程技术网

Xml 广域标记url错误:广告错误:AdError 1012:由于网络错误,无法从服务器请求广告

Xml 广域标记url错误:广告错误:AdError 1012:由于网络错误,无法从服务器请求广告,xml,google-dfp,vast,Xml,Google Dfp,Vast,我创建了一个庞大的xml版本2,它遵循适当的标准。我正试着用计算机验证它 验证器中有两个选项。要么上传WAST标签,要么上传WAST XML。我粘贴了一个巨大的标签(即指向xml文件的链接),它给了我这个错误 Ad error: AdError 1012: Unable to request ads from server due to network error. 但是,当我将xml本身粘贴到广域xml字段选项中时,广告运行得非常好。由于安全原因,我无法共享xml。有没有办法知道可能是什么问

我创建了一个庞大的xml版本2,它遵循适当的标准。我正试着用计算机验证它

验证器中有两个选项。要么上传WAST标签,要么上传WAST XML。我粘贴了一个巨大的标签(即指向xml文件的链接),它给了我这个错误

Ad error: AdError 1012: Unable to request ads from server due to network error.
但是,当我将xml本身粘贴到广域xml字段选项中时,广告运行得非常好。由于安全原因,我无法共享xml。有没有办法知道可能是什么问题?

我复制了
(10:51:46)广告错误:AdError 1012:由于网络错误,无法从服务器请求广告。
问题

在检查控制台错误后,我发现问题与
CORS
有关


然后我添加了
https://imasdk.googleapis.com
添加到我的API的允许来源列表,问题得到解决。希望这也是您的根本原因

IMA Inspector会抛出该错误,例如,如果您的标记未通过HTTPS传递。如果你使用了HTTPS,你能共享标签吗?@Zero2我尝试了http和HTTPS…给出了相同的错误。实际上,我可以共享一个修改过的标签,而不是真正的安全问题,如果这会有帮助的话。事实上,我有相同的原因。谢谢。你能详细说明一下你是如何解决的吗?