从Google AdWords API返回错误

时间:2016-04-13 19:05:51

标签: google-adwords

我正在尝试将我的Google AdWords API流程升级到最新版本(从v201506升级到v201603),我收到了Google的错误:

Invalid ReportDefinition Xml: cvc-complex-type.2.4.d: Invalid content was found starting with element 'includeZeroImpressions'. No child element is expected at this point

我的XML如下:

<?xml version="1.0" encoding="UTF-8"?>
<reportDefinition>
    <selector>
        <fields>AccountDescriptiveName</fields>
        <fields>Date</fields>
        <fields>CampaignName</fields>
        <fields>AdGroupName</fields>
        <fields>Clicks</fields>
        <fields>CampaignId</fields>
        <fields>AdGroupId</fields>
    </selector>
    <reportName>AdWord-Performance-Report-#570e9612587f9</reportName>
    <reportType>ADGROUP_PERFORMANCE_REPORT</reportType>
    <dateRangeType>TODAY</dateRangeType>
    <downloadFormat>TSV</downloadFormat>
    <includeZeroImpressions>true</includeZeroImpressions>
</reportDefinition>

我在Google AdWords api博客中找不到任何有关includeZeroImpressions更改的参考信息......有什么想法吗?

1 个答案:

答案 0 :(得分:1)

该死的......没关系。我现在在迁移指南中看到它:

删除了ReportDefinition中的includeZeroImpressions字段。请使用HTTP标头在报告结果中包含零展示次数。