Hi,
I have followed every step in as mentioned in the doc but when trying to 
get campaign data, no results are returned. However, there are plenty of 
results when we manually sign in to our Google Ads account. 

I followed these steps:
1) Created a new project and got CLIENT ID and CLIENT SECRET
2) Ran the generate_refresh_token.py and obtained the refresh token
3) Updated developer token, Client ID, client secret and Refresh token to 
googleads.yaml

However, when I run this script, no results are returned:
from googleads import adwords
def main(client):
  # Initialize appropriate service.
  report_downloader = client.GetReportDownloader(version='v201809')

  # Create report query.
  report_query = (adwords.ReportQueryBuilder()
                  .Select('CampaignId')
                  .From('CAMPAIGN_PERFORMANCE_REPORT')
                  .During('LAST_30_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)

adwords_client = adwords.AdWordsClient.LoadFromStorage(path)
adwords_client.SetClientCustomerId('Some Value')
main(adwords_client)

Output:

"CAMPAIGN_PERFORMANCE_REPORT (Dec 8, 2019-Jan 6, 2020)"
Campaign ID
Total


Any help to get campaign data from my Ads account will be greatly appreciated.

 Thanks in advance

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/88d834dc-988a-4d83-a18a-980a58a75086%40googlegroups.com.

Reply via email to