I download data from CAMPAIGN_LOCATION_TARGET_REPORT via API v201809. At the same time I download data from CAMPAIGN_PERFORMANCE_REPORT.
I use fileds: Cost, Impressions, Clicks. The SUM in total of this fields (Cost, Impressions, Clicks) has some differens beetween two repots: CAMPAIGN_LOCATION_TARGET_REPORT, CAMPAIGN_PERFORMANCE_REPORT Numbers from CAMPAIGN_PERFORMANCE_REPORT are the same like in Web-inferface - everything is OK. But number from CAMPAIGN_LOCATION_TARGET_REPORT is little bit bigger. I don't understand why? Can you download this two reports for account 478-325-6348 and dates 2018-12-01 - 2018-12-31 all campaigns (no restrictions) and see the difference. My excpectations: SUMs should be the same. But I didnt get. The code is below: 1) fields = ['CampaignId', 'CampaignName', 'CampaignStatus', 'Id', 'Date', 'Interactions', 'InteractionTypes', 'Clicks', 'Impressions', 'Cost','Engagements', 'VideoViews', 'ViewThroughConversions', 'AveragePosition', 'CampaignStatus'] include_zero_impressions = True report_query = (adwords.ReportQueryBuilder() .Select(*fields) .From('CAMPAIGN_LOCATION_TARGET_REPORT') .Where('CampaignStatus').In('ENABLED', 'PAUSED') .During(start_date.strftime('%Y%m%d') + ',' + end_date.strftime('%Y%m%d')) .Build()) res = report_downloader.DownloadReportAsStringWithAwql( report_query, 'CSV', skip_report_header=True, skip_column_header=False, skip_report_summary=True, include_zero_impressions=include_zero_impressions) import pandas as pd from io import StringIO adwords_df = pd.read_csv(StringIO(res)) 2) report = 'CAMPAIGN_PERFORMANCE_REPORT' fields_query = ['Date', 'AccountDescriptiveName', 'AdvertisingChannelType', 'AdvertisingChannelSubType', 'AdNetworkType1', 'CampaignId', 'CampaignName', 'Impressions', 'Clicks', 'Cost', 'AccountCurrencyCode'] report_query = (adwords.ReportQueryBuilder() .Select(*fields_query) .From(report) .Where('CampaignStatus').In('ENABLED', 'PAUSED') .During(start_date.strftime('%Y%m%d') + ', ' + end_date.strftime('%Y%m%d')) .Build()) res = report_downloader.DownloadReportAsStringWithAwql( report_query, 'CSV', skip_report_header=True, skip_column_header=False, skip_report_summary=True, include_zero_impressions=False, ) adwords_df = pd.read_csv(StringIO(res)) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 and Google Ads 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/94044857-61d3-45f9-a8e6-32ef4e0f11c8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.