Dear Google...please help!



I even tried the below but get an error.  

report = {
            'reportName': 'Last 7 days CRITERIA_PERFORMANCE_REPORT',
            'dateRangeType': 'LAST_7_DAYS',
            'reportType': 'CRITERIA_PERFORMANCE_REPORT',
            'downloadFormat': 'CSV',
            'clientCustomerId':"xxx-xxx-xxx",
            'selector': {
                'fields': ['CampaignId', 'AdGroupId', 'Id', 'CriteriaType',
                           'Criteria', 'Impressions', 'Clicks', 'Cost']
            },
            # Enable to get rows with zero impressions.
            'includeZeroImpressions': 'false'
        }


File 
"/usr/local/lib/python2.7/dist-packages/suds_jurko-0.6-py2.7.egg/suds/mx/core.py",
 line 71, in append
    if self.start(content):
  File 
"/usr/local/lib/python2.7/dist-packages/suds_jurko-0.6-py2.7.egg/suds/mx/literal.py",
 line 86, in start
    raise TypeNotFound(content.tag)
suds.TypeNotFound: Type not found: 'clientCustomerId'






On Saturday, March 22, 2014 12:22:42 PM UTC+8, Monty808 wrote:
>
> Hi,
>
>
> Google documentation for working with MCC and clients is not very good.  I 
> mean.....where do I put the client id?
>
> I am using the python api.,,,ad wow...how do I specify a client id?  
> Google..please help.............
>
> adwords_client = 
> adwords.AdWordsClient.LoadFromStorage(path='/etc/googleads.yaml')
> report_downloader = adwords_client.GetReportDownloader(version='v201402')
> report_query = ('SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, 
> '
>                   'Impressions, Clicks, Cost '
>                   'FROM CRITERIA_PERFORMANCE_REPORT '
>                   'WHERE Status IN [ACTIVE, PAUSED] '
>                   'DURING LAST_7_DAYS')
>
> with open('adwords_client', 'w') as output_file:
>     report_downloader.DownloadReportWithAwql(report_query, 'CSV', 
> output_file)
>
> googleads.errors.AdWordsReportBadRequestError: Type: 
> AuthenticationError.CLIENT_CUSTOMER_ID_INVALID
>
>
> adwords:
>   developer_token:test
>   user_agent: test
>   client_id: test
>   refresh_token: test
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.

Reply via email to