Re: Error: Developer Token not approved

2018-12-27 Thread ravneet kaur

The customer Id I ma using is 476-516-3182 and error logs are in the 
attachment. Could someone have a look on it.


On Thursday, December 20, 2018 at 6:57:47 PM UTC-5, ravne...@gmail.com 
wrote:
>
>
> I am testing the google ads APIs and even though i have created a test 
> manager account and oauth creds against the account, I keep getting 
> "Developer_Token_not_approver" error. Does this occur to anyone else? or if 
> anyone has any workarounds, please let me know.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1d4adeda-7a2c-4161-ad1f-d63e87e3970e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PS C:\analytics> python .\get-compaign.py
Your default encoding, cp1252, is not UTF-8. Please run this script with UTF-8 
encoding to avoid errors.
Traceback (most recent call last):
  File ".\get-compaign.py", line 40, in 
main(adwords_client)
  File ".\get-compaign.py", line 23, in main
page = campaign_service.get(selector)
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googleads\common.py",
 line 1382, in MakeSoapRequest
*packed_args, _soapheaders=soap_headers)['body']['rval']
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\proxy.py",
 line 42, in __call__
self._op_name, args, kwargs)
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\wsdl\bindings\soap.py",
 line 121, in send
options=options)
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\wsdl\bindings\soap.py",
 line 85, in _create
client, envelope, http_headers, operation_obj, options)
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\plugins.py",
 line 33, in apply_egress
envelope, http_headers, operation, binding_options)
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googleads\common.py",
 line 1106, in egress
custom_headers = self._header_handler.GetHTTPHeaders()
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googleads\adwords.py",
 line 548, in GetHTTPHeaders
http_headers = self._adwords_client.oauth2_client.CreateHttpHeader()
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googleads\oauth2.py",
 line 194, in CreateHttpHeader
self.Refresh()
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googleads\oauth2.py",
 line 211, in Refresh
google.auth.transport.requests.Request(session=session))
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\google\oauth2\credentials.py",
 line 136, in refresh
self._client_secret))
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\google\oauth2\_client.py",
 line 237, in refresh_grant
response_data = _token_endpoint_request(request, token_uri, body)
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\google\oauth2\_client.py",
 line 111, in _token_endpoint_request
_handle_error_response(response_body)
  File 
"C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\google\oauth2\_client.py",
 line 61, in _handle_error_response
error_details, response_body)
google.auth.exceptions.RefreshError: ('unauthorized_client: Unauthorized', '{\n 
 "error": "unauthorized_client",\n  "error_description": "Unauthorized"\n}')
PS C:\analytics>

Re: Error: Developer Token not approved

2018-12-20 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

The QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED 

 error 
means that you are using an unapproved developer token to make calls 
against a production account. An unapproved developer token can only make 
calls against test AdWords accounts. This said, it is possible that you are 
making an API call against a production account rather that the test 
account. See the test account guide 

 for 
more information.

I would suggest to make sure that you are using a test client account ID 
set up in the clientCustomerID of your request header. If you confirm that 
you are indeed using a test account in your request header, could you 
provide the complete SOAP request and response logs so I could further 
check this? Please reply via *Reply privately to author*.

Thanks and regards,
Luis
AdWords API Team

On Friday, December 21, 2018 at 7:57:47 AM UTC+8, ravneet0828 wrote:
>
>
> I am testing the google ads APIs and even though i have created a test 
> manager account and oauth creds against the account, I keep getting 
> "Developer_Token_not_approver" error. Does this occur to anyone else? or if 
> anyone has any workarounds, please let me know.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7b92ce50-ca7a-4d7f-b54e-bfd36b8e3e60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.