Hello Szabolcs,

"ACTIVE" is not a valid status, see:

  https://developers.google.com/adwords/api/docs/appendix/reports#ad

Try predicate:
:predicates => [
  {:field => 'Status', :operator => 'IN', :values => ['ENABLED', 'PAUSED']}
]

Also, note "predicates" should be an array.


-Danial, AdWords API Team.


On Friday, September 20, 2013 9:43:50 PM UTC+4, Szabolcs Pal wrote:
>
> Hey all,
>
> I have problems retrieving Ad Performance Report when adding a predicate 
> to the selector fields. I get a AdwordsApi::Errors::ReportXmlError.
> My ad report definition is as follows (I'm using the ruby client library 
> v201302):
>
> ad_report_definition = {
>   :selector => {
>     :fields => fields,
>     :predicates => {
>       :field => 'Status',
>       :operator => 'IN',
>       :values => ['ACTIVE', 'PAUSED']
>     },
>     :date_range => {
>       :min => start_date.gsub('-',''),
>       :max => end_date.gsub('-','')
>     }
>   },
>   :report_name => 'Custom AD_PERFORMANCE_REPORT',
>   :report_type => 'AD_PERFORMANCE_REPORT',
>   :date_range_type => 'CUSTOM_DATE',
>   :download_format => 'CSV',
>   :include_zero_impressions => true
> }
>
> I wanted to include paused ads in the report, because it seems they are 
> not included by default so I added the predicate with the Status condition, 
> but this change breaks the report request. 
> If I remove the :predicate part the request finishes successfully. Any 
> ideas what I might be missing/misconfiguring?
>
> Thanks,
> Szabolcs.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to