Trying to access Adwords api for the first time.

Customer ID: 274-384-0461
Developer token is approved.

OAuth 2.0 authorization successful!

Your refresh token is: 1/----------------------
Traceback (most recent call last):
File "get_campaigns.py", line 111, in <module>
main(adw_client)
File "get_campaigns.py", line 57, in main
page = campaign_service.Get(selector)[0]
File 
"/usr/local/lib/python2.7/dist-packages/adspygoogle/common/GenericApiService.py",
 
line 365, in CallMethod
self._HandleLogsAndErrors(buf, start_time, stop_time, error)
File 
"/usr/local/lib/python2.7/dist-packages/adspygoogle/adwords/GenericAdWordsService.py",
 
line 240, in _HandleLogsAndErrors
raise e
adspygoogle.adwords.AdWordsErrors.AdWordsGoogleInternalError: 
[QuotaCheckError.INCOMPLETE_SIGNUP @ ; trigger:'<null>']



Code is below:
flow = client.OAuth2WebServerFlow(
client_id='239116976396-bkkf81b7c0f2t55dtj86bi6ng3fvb171.apps.googleusercontent.com',
client_secret='xxx',
scope='https://adwords.google.com/api/adwords',
user_agent='AD_MANAGER',
redirect_uri='urn:ietf:wg:oauth:2.0:oob')


authorize_url = flow.step1_get_authorize_url()
print authorize_url

code = raw_input('Code: ').strip()

try:
credentials = flow.step2_exchange(code)
except client.FlowExchangeError, e:
print 'Authentication has failed: %s' % e
sys.exit(1)
else:
print ('OAuth 2.0 authorization successful!\n\n'
'Your refresh token is: %s' % credentials.refresh_token)

# Initialize client object.
adw_client = AdWordsClient(headers={
'oauth2credentials': credentials,
'userAgent': 'AD_MANAGER',
  'developerToken': 'xxx'
})



main(adw_client)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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/groups/opt_out.

Reply via email to