Hi,

I am using AdWords API report downloader to get Store Visits for all my 
campaigns daily.
I Can see the store visits in the AdWords Dashboard, but the API does not 
pull these Store Visits in the report.

Sometimes the report pulls the Store Visits, but not for all campaigns that 
have store visits in the AdWords dashboard.

I am using the following code:

import logging
import sys
from googleads import adwords

logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.transport').setLevel(logging.DEBUG)
client_file = "C:\Lowes\python\ga\googleads.yaml"

def main(client):
  report_downloader = client.GetReportDownloader(version='v201802')

  report = {
      'reportName': 'Last 7 days CRITERIA_PERFORMANCE_REPORT',
      'dateRangeType': 'LAST_7_DAYS',
      
      'reportType': 'CRITERIA_PERFORMANCE_REPORT',
      'downloadFormat': 'CSV',
      'selector': {
          'fields': 
['CampaignId','ConversionCategoryName','ConversionTypeName','ExternalConversionSource','AllConversions']
      }
  }

  # 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.DownloadReport(
      report, sys.stdout, skip_report_header=True, skip_column_header=False,
      skip_report_summary=True, include_zero_impressions=False)


if __name__ == '__main__':
  adwords_client = adwords.AdWordsClient.LoadFromStorage(client_file)
  adwords_client.SetClientCustomerId('XXXXXXXXX')
  main(adwords_client)


Can you please take a look at it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/75b2a7f4-a37a-44ec-b640-92744a13f6ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Adwords API does no... reporting

Reply via email to