I'm trying to get a geo performance report in v201109 that's filtered
by city. My request is:
<reportDefinition>
<selector>
<fields>CityCriteriaId</fields>
<fields>Impressions</fields>
<predicates>
<field>CityCriteriaId</field>
<operator>EQUALS</operator>
<values>Atlanta</values>
</predicates>
<dateRange>
<min>20110101</min>
<max>20111229</max>
</dateRange>
</selector>
<reportName>AutomateAnalytics report</reportName>
<reportType>GEO_PERFORMANCE_REPORT</reportType>
<dateRangeType>CUSTOM_DATE</dateRangeType>
<downloadFormat>XML</downloadFormat>
</reportDefinition>
This returns:
!!!2|||-1|||[SelectorError.INVALID_PREDICATE_VALUE @ selector;
trigger:'Atlanta'; errorDetails:Atlanta]???
I notice in the report fields documentation (http://code.google.com/
apis/adwords/docs/appendix/reports.html#geo), the city field has these
parameters:
CityCriteriaId City city Integer Name of the city as a string.
So the data type is defined as integer, but the notes say it's a
string. Maybe this discrepancy is related to the error I receive? The
country and metro area fields are also marked as integers in the
documentation.
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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