On running the below code i get this error 'AttributeError: 'module' object has no attribute 'ReportQueryBuilder''. Please do the needful.
*Code:* import sys from googleads import adwords def main(client): # Initialize appropriate service. report_downloader = client.GetReportDownloader(version='v201710') # Create report query. report_query = (adwords.ReportQueryBuilder() .Select('CampaignId', 'AdGroupId', 'Id', 'Criteria', 'CriteriaType', 'FinalUrls', 'Impressions', 'Clicks', 'Cost') .From('CRITERIA_PERFORMANCE_REPORT') .Where('Status').In('ENABLED', 'PAUSED') .During('LAST_7_DAYS') .Build()) # You can provide a file object to write the output to. For this # demonstration we use sys.stdout to write the report to the screen. report_downloader.DownloadReportWithAwql( report_query, 'CSV', sys.stdout, skip_report_header=False, skip_column_header=False, skip_report_summary=False, include_zero_impressions=True) if __name__ == '__main__': # Initialize client object. adwords_client = adwords.AdWordsClient.LoadFromStorage() main(adwords_client) Thanks! On Thursday, 16 November 2017 09:42:35 UTC+5:30, harish....@latentview.com wrote: > > Oh. We miss having ad group label filter in ad report. > I want to know which python file should I use for downloading report. I > see the following, > download_criteria_report_as_stream_with_awql.py > download_criteria_report_as_stream_with_selector.py > download_criteria_report_as_string_with_awql.py > download_criteria_report_as_string_with_selector.py > download_criteria_report_with_awql.py > download_criteria_report_with_selector.py > get_report_fields.py > parallel_report_download.py > > Would you mind explaining these? I read the docs given but I could not > understand. Thanks! > > On Wednesday, 15 November 2017 23:17:30 UTC+5:30, Bharani Cherukuri > (AdWords API Team) wrote: >> >> Hi Harish, >> >> That's right, with the AdGroup Performance Report >> <https://developers.google.com/adwords/api/docs/appendix/reports/adgroup-performance-report>, >> >> you will be able to retrieve statistics aggregated at the Ad group level >> with one row per ad group. You can take a look at the available Report >> types >> <https://developers.google.com/adwords/api/docs/appendix/reports/all-reports> >> and >> our Reporting code samples in Java here >> <https://developers.google.com/adwords/api/docs/samples/java/reporting>. >> Code samples in other languages are also available here >> <https://developers.google.com/adwords/api/docs/clientlibraries>. I'm >> afraid, we will not be able to provide call support at the moment. Feel >> free to mention your concerns on this forum and you will get a response >> promptly. >> >> Regards, >> Bharani, AdWords API Team >> >> On Tuesday, November 14, 2017 at 5:05:21 AM UTC-5, >> harish....@latentview.com wrote: >>> >>> Is it possible to apply adgroup label filter while downloading ad >>> performance report? (This is not possible using the UI) >>> >>> This email may contain confidential and privileged information for the sole >>> use of the intended recipient. Any review or distribution by others is >>> strictly prohibited. If you are not the intended recipient, please reply >>> back to the sender about the error and delete all copies of this email >>> message. Thank you. >>> >>> -- This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please reply back to the sender about the error and delete all copies of this email message. Thank you. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/4690eeef-0a63-4829-9c1a-f06c214ef18f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.