Hello, im kinda new in world of APIs but i did a bit of programing with 
Python (Django mostly), I am having a problem with connection to API.

First i did adwords account, then i made one maneger account and also one 
TEST account (but it is strange because it doesn't say anywhere that is 
test acc, like in instructions).
I made my OATH2 authorization with my test account first and everything 
went smoothly, but when it come to connectig to API, it says this:

C:\Programiranje\googleads-python-lib-master\examples\adwords\v201605\basic_operations>python
 
>> get_campaigns.py
>
> INFO:oauth2client.client:Refreshing access_token
>
> DEBUG:suds.transport.http:opening 
>> (https://adwords.google.com/api/adwords/cm/v201605/CampaignService?wsdl)
>
> DEBUG:suds.transport.http:sending:
>
> URL: https://adwords.google.com/api/adwords/cm/v201605/CampaignService
>
> HEADERS: {'Soapaction': '""', 'SOAPAction': '""', 'Content-Type': 
>> 'text/xml; charset=utf-8', 'Content-type': 'text/xml; charset=utf-8', 
>> 'Authorization': u'Bearer 
>> ya29.Ci8iAxOuKGNlbRWWVnI7aIUW-JJoPnQ3nkkPuA9wm8k-FZS_-gAasQKjmHRGmC8Ztg'}
>
> MESSAGE:
>
> <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope 
>> xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201605"; 
>> xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"; 
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>> xmlns:tns="https://adwords.google.com/api/adwords/cm/v201605"; 
>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Header><tns:RequestHeader><tns:clientCustomerId>228-151-8225</tns:clientCustomerId><tns:developerToken>MtR-X7LbNWSR2pybndR16A</tns:developerToken><tns:userAgent>testProject
>>  
>> (AwApi-Python, googleads/4.2.0, 
>> Python/2.7.11)</tns:userAgent><tns:validateOnly>false</tns:validateOnly><tns:partialFailure>false</tns:partialFailure></tns:RequestHeader></SOAP-ENV:Header><ns1:Body><ns0:get><ns0:serviceSelector><ns0:fields>Id</ns0:fields><ns0:fields>Name</ns0:fields><ns0:fields>Status</ns0:fields><ns0:paging><ns0:startIndex>0</ns0:startIndex><ns0:numberResults>100</ns0:numberResults></ns0:paging></ns0:serviceSelector></ns0:get></ns1:Body></SOAP-ENV:Envelope>
>
> ERROR:suds.client:<suds.sax.document.Document instance at 0x03B7C5A8>
>
> Traceback (most recent call last):
>
>   File "get_campaigns.py", line 74, in <module>
>
>     main(adwords_client)
>
>   File "get_campaigns.py", line 56, in main
>
>     page = campaign_service.get(selector)
>
>   File "build\bdist.win32\egg\googleads\common.py", line 616, in 
>> MakeSoapRequest
>
>   File "C:\Python27\lib\site-packages\suds\client.py", line 521, in 
>> __call__
>
>     return client.invoke(args, kwargs)
>
>   File "C:\Python27\lib\site-packages\suds\client.py", line 581, in invoke
>
>     result = self.send(soapenv)
>
>   File "C:\Python27\lib\site-packages\suds\client.py", line 619, in send
>
>     description=tostr(e), original_soapenv=original_soapenv)
>
>   File "C:\Python27\lib\site-packages\suds\client.py", line 670, in 
>> process_reply
>
>     raise WebFault(fault, replyroot)
>
> suds.WebFault: Server raised fault: 
>> '[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']'
>
>
I did all it is necessary in  googleads.yaml , i hope i type right values, 
for my developer token i did token from master maneger account, then i 
provided client customer ID also from my master and client_id and 
client_secret from my test account ( wich is connected to master) and also 
my refresh token that i made it from my client_id and client_secret on TEST 
account....

Please help me set this thing up, i went trought instructions 20x times 
today and it still doesn't work :( 



 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ee304de7-931b-42ce-a996-8b212c312bfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to