Hi,

I am using the python API to download the ad_performance_report. But the 
download fails for most of the accounts with 400 code.
However, the report downloads just fine if I were to select just one 
columns say for instance AccountDescriptiveName. 

So this leads me to believe that there is something wrong in the attributes 
I am pulling is it ?? 


[24771/0] Loading report for customer ID "8587222000" into 
"/tmp/ad/tmp_ad_8587222430.txt"...
Report failed for customer ID "8980045630" with code "400" after "1" 
retries.
[24772/0] Loading report for customer ID "70460630000" into 
"/tmp/ad/tmp_ad_7046063516.txt"...
Report failed for customer ID "4510339000" with code "400" after "1" 
retries.



REPORT DEFINITION:

  report_definition = {
      'reportName': 'Custom AD_PERFORMANCE_REPORT',
      'dateRangeType': 'YESTERDAY',
      'reportType': 'AD_PERFORMANCE_REPORT',
      'downloadFormat': 'TSV',
      'selector': {
          'fields': 
['AccountCurrencyCode','AccountDescriptiveName','AccountTimeZone','AdGroupId','AdGroupName','AdGroupStatus','AdNetworkType1','AdType','AverageCpc','AverageCpm','AveragePosition','CampaignId','CampaignName','CampaignStatus','Clicks','Cost','CriterionId','Ctr','CustomerDescriptiveName','Date','Description1','Description2','Device','DevicePreference','DisplayUrl','ImageAdUrl','ImageCreativeName','Impressions','Status'],
          'predicates': {
              'field': 'CampaignStatus',
              'operator': 'IN',
              'values': ['ENABLED']
          }
      },
  }

I have zeroimpression set to False.

self.report_downloader.DownloadReport(
              self.report_definition, 
output=handler,skip_report_header=True,skip_column_header=True, 
skip_report_summary=True,
        include_zero_impressions=False, client_customer_id=customer_id)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6ac2eef4-2151-49dc-9262-f52675fd0476%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to