Hi Michael,

The link on how to create Adwords client without yaml is broken. How can i 
do this today?



On Monday, 24 March 2014 05:37:13 UTC-7, Michael Cloonan (AdWords API Team) 
wrote:
>
> Hi!
>
> You can set the client_customer_id for the Python library in the 
> googleads.yaml 
> <https://github.com/googleads/googleads-python-lib/blob/master/googleads.yaml>
>  
> file, which should go in your home directory. You'll notice this is 
> included by default, but is commented out. Just un-comment it out and add 
> your value and you should be good to go.
>
> You can't set the Client Customer ID in the report request directly; it 
> needs to be part of the SOAP headers which are defined differently. You can 
> see an example of how to do this without the .yaml file in the 
> create_adwords_client_without_yaml.py 
>
> <https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/authentication/create_adwords_client_without_yaml.py>
> file.
>
> Regards,
> Mike, AdWords API Advisor
>
> On Saturday, March 22, 2014 1:02:21 AM UTC-4, Monty808 wrote:
>>
>> 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:
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/28b8d6f4-2e63-41d1-9018-4513c5106076%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to