Hi Yang, You can use the custom date range when you want to retrieve the data you had for the last three months. You may refer to the sample code below:
.During(start_date='<enter_start_date_here>', end_date='<enter_end_date_here >') Note that the values for start date and end date should be in the format YYYYMMDD. You may also visit this link <https://developers.google.com/adwords/api/docs/guides/awql#using_awql_with_reports> for more information. Regards, Dannison AdWords API Team On Thursday, November 22, 2018 at 1:41:24 AM UTC+8, [email protected] wrote: > > report_downloader = client.GetReportDownloader(version='v201809') > > # Create report query. > report_query = (adwords.ReportQueryBuilder() > .Select('Id,Date') > .From('KEYWORDS_PERFORMANCE_REPORT') > .Where('CampaignStatus').In('ENABLED', 'PAUSED') > .During('LAST_7_DAYS') > .Build()) > results=report_downloader.DownloadReportAsStringWithAwql( report_query, > 'CSV', skip_report_header=True, skip_column_header=True, > skip_report_summary=True, include_zero_impressions=True) > > I am using this script to download keywords performance report, what > should I do if I would like to download the last 3 months? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads 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/2646a8c8-daed-4163-a75b-4407c24a8208%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
