Hi, I tried to pull the data for all campaigns and their metrics. I got the following error.
Error Message: googleads.errors.AdWordsReportBadRequestError: Type: RateExceededError. RATE_EXCEEDED Trigger: Basic Access Daily Reporting Quota Field Path: None Right now I was able to pull the data based on client_customer_id. My organization have more than 100 client_customer_ids. So looped each customer id and pulling the data. I think that is the reason I was getting "RateExceededError.RATE_EXCEEDED" error. *Is there a way I can get all the campaigns and their metrics in a single API call instead of loop?* Following code I am using. def download_Performance_Criteria_Report(): for client_customer_id in account_list: o2client = GoogleRefreshTokenClient(adc['client_id'],adc['client_secret' ],adc['refresh_token']) client=AdWordsClient(adc['developer_token'],o2client,'OBI', client_customer_id=client_customer_id) _fpath=os.path.join('D:/adwords/inbound/Adwords_MMA_'+str( client_customer_id)+'_'+datetime.datetime.now().strftime( "%Y%m%d%H%M") + '.csv') ## client = AdWordsClient.LoadFromStorage('googleads.yaml') rep_downloader = client.GetReportDownloader(version='v201710') report = { 'reportName' : 'CAMPAIGN_PERFORMANCE_REPORT', 'dateRangeType' :'CUSTOM_DATE', 'reportType': 'CAMPAIGN_PERFORMANCE_REPORT', 'downloadFormat': 'CSV', 'selector': { 'fields': ['CampaignId','CampaignName','ExternalCustomerId', 'CustomerDescriptiveName','Impressions','Clicks','Cost','Date'], 'dateRange' : { 'min': '20170101' , 'max' : '20171231'} } } _f=open(_fpath,'wb') rep_downloader.DownloadReport(report,output=_f,skip_report_header=False, skip_column_header=False,skip_report_summary=True) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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. 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/83d9dfc3-4704-4fbd-8194-2ee21c12eba1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.