I am given a client id. I am findng the documeation for the python api lacking on this regards. Given a mcc account with api access..how do one get a report for all campaigns with a given client id?
Thanks On Wed, Mar 19, 2014 at 4:53 AM, Monty808 <[email protected]> wrote: > Whats the deal witythe below error? This is from the python api. Is it > sayihg my clienht_id in nkt valid? wow! I am using mcc. > > adwords: > developer_token: sssssss > user_agent: test > client_id: really!!!!!!.apps.googleusercontent.com > client_secret: cccccccc > refresh_token: cccc > > > client = > adwords.AdWordsClient.LoadFromStorage(path='/home/ubuntu/googleads.yaml') > report_downloader = client.GetReportDownloader(version='v201402') > # Create report definition. > report = { > 'reportName': 'Last 7 days CRITERIA_PERFORMANCE_REPORT', > 'dateRangeType': 'LAST_7_DAYS', > 'reportType': 'CRITERIA_PERFORMANCE_REPORT', > 'downloadFormat': 'CSV', > 'selector': { > 'fields': ['CampaignId', 'AdGroupId', 'Id', 'CriteriaType', > 'Criteria', 'Impressions', 'Clicks', 'Cost'] > }, > # Enable to get rows with zero impressions. > 'includeZeroImpressions': 'false' > } > f = open('tewt','w') > report_downloader.DownloadReport(report, f) > f.close() > > -- > -- > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 a topic in the > Google Groups "AdWords API Forum" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/adwords-api/1ivHYEIPVFE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
