yaml = r'C:\Users\Owner\Documents\Python\adwords_yay\googleads.yaml'

import sys
from googleads import adwords


adwords_client = adwords.AdWordsClient.LoadFromStorage(yaml)
report_downloader = adwords_client.GetReportDownloader(version='v201502')

report = {
    'reportName': 'Test Campaign Report Name',
    'dateRangeType': 'LAST_7_DAYS',
    'reportType': 'CAMPAIGN_PERFORMANCE_REPORT',
    'downloadFormat': 'CSV',
    'selector': {'fields': ['CampaignName', 'Impressions', 'Clicks', 'Cost'
]},
    # Enable to get rows with zero impressions.
    'includeZeroImpressions': 'false'
}

report_downloader.DownloadReport(report, sys.stdout)

Why am I allowed to use 'includeZeroImpressions' but if I try to include 
options like 'skipReportHeader', 'skipColumnHeader', 'skipReportSummary' found 
in the Reporting Basics 
<https://developers.google.com/adwords/api/docs/guides/reporting?hl=en> 
section, it doesn't work?

I have learned that I can define these in the DownloadReport(report, 
sys.stdout) as keyword arguments but I'm mainly trying to understand why I 
can use 'includeZeroImpressions' in the report body but can't use the other 
options?  Is it based on what's allowed in the reportdefinition.xsd 
<https://adwords.google.com/api/adwords/reportdownload/v201506/reportDefinition.xsd>
 and 
are those all the options we have in terms of defining the report 
definition?  Newbie question. Just want to make sure I'm on the right track.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2631483c-2207-434b-8b14-fbb386779401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to