Hi,

I have just resolved an error that I have been debugging for a while, and 
I'm not sure it was really a fault with my code. The issue is the ordering 
of the "Predicates" node within the SOAP body. In scenario 1, I get a 400 
INVALID REPORT DEFINITION XML, and scenario 2, I get a 200 ok with full 
response. Is this expected behaviour? I not using any of the AdWords 
libraries to generate the SOAP or request.


Scenario 1 - 400 INVALID REPORT DEFINITION XML - (Trigger: Invalid 
ReportDefinition Xml: cvc-complex-type.2.4.a: Invalid content was found 
starting with element 'predicates'. One of 
'{"https://adwords.google.com/api/adwords/cm/v201710":ordering, 
"https://adwords.google.com/api/adwords/cm/v201710":paging}' is expected.)

<reportDefinition
xmlns="https://adwords.google.com/api/adwords/cm/v201710";>
<selector>
<fields>CampaignId</fields>
<fields>AdGroupId</fields>
<fields>CampaignName</fields>
<fields>AdGroupName</fields>
<fields>Criteria</fields>
<fields>Status</fields>
<fields>SystemServingStatus</fields>
<fields>Impressions</fields>
<fields>Clicks</fields>
<fields>Cost</fields>
<fields>AverageCpc</fields>
<fields>Ctr</fields>
<fields>TrackingUrlTemplate</fields>
<fields>FinalMobileUrls</fields>
<fields>FinalUrls</fields>
<fields>AveragePosition</fields>
<fields>SearchImpressionShare</fields>
<fields>QualityScore</fields>
<fields>AccountCurrencyCode</fields>
<fields>AccountDescriptiveName</fields>
<dateRange>
<min>20171220</min>
<max>20171227</max>
</dateRange>
<predicates>
<field>Clicks</field>
<operator>GREATER_THAN</operator>
<values>0</values>
</predicates>
</selector>
<reportName>Report</reportName>
<reportType>KEYWORDS_PERFORMANCE_REPORT</reportType>
<dateRangeType>CUSTOM_DATE</dateRangeType>
<downloadFormat>CSV</downloadFormat>
</reportDefinition>


Scenario 2 - 200 OK

<reportDefinition
xmlns="https://adwords.google.com/api/adwords/cm/v201710";>
<selector>
<fields>CampaignId</fields>
<fields>AdGroupId</fields>
<fields>CampaignName</fields>
<fields>AdGroupName</fields>
<fields>Criteria</fields>
<fields>Status</fields>
<fields>SystemServingStatus</fields>
<fields>Impressions</fields>
<fields>Clicks</fields>
<fields>Cost</fields>
<fields>AverageCpc</fields>
<fields>Ctr</fields>
<fields>TrackingUrlTemplate</fields>
<fields>FinalMobileUrls</fields>
<fields>FinalUrls</fields>
<fields>AveragePosition</fields>
<fields>SearchImpressionShare</fields>
<fields>QualityScore</fields>
<fields>AccountCurrencyCode</fields>
<fields>AccountDescriptiveName</fields>
<predicates>
<field>Clicks</field>
<operator>GREATER_THAN</operator>
<values>0</values>
</predicates>
<dateRange>
<min>20171220</min>
<max>20171227</max>
</dateRange>
</selector>
<reportName>Report</reportName>
<reportType>KEYWORDS_PERFORMANCE_REPORT</reportType>
<dateRangeType>CUSTOM_DATE</dateRangeType>
<downloadFormat>CSV</downloadFormat>
</reportDefinition>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7cb466c1-29b2-41ce-920d-26a6fd5b8ae5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Predicates Er... luke.anderson via AdWords API Forum
    • Re: Pred... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum

Reply via email to