Hi,

I'm currently following this guide to set up Google Ads API for my project:
https://developers.google.com/google-ads/api/docs/first-call/overview#config
(I want to upload offline conversions programmatically through the api)

1) I successfully requested a developer token
2) I created a OAuth2 client ID and client secret
3) I struggle to generate the OAuth2 refresh token
https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-web

If I run the script mentioned in the docs and open the URL, then I get this 
error:
*python3 authenticate_in_web_application.py --client_secrets_path 
client_secret.json *

*Paste this URL into your browser: *
*https://accounts.google.com/o/oauth2/auth?response_type=codexxxxxxxxx*

*Waiting for authorization and callback to: http://localhost:8080...*
*Traceback (most recent call last):*
*  File "authenticate_in_web_application.py", line 203, in <module>*
*    main(args.client_secrets_path, configured_scopes)*
*  File "authenticate_in_web_application.py", line 81, in main*
*    code = _get_authorization_code(passthrough_val)*
*  File "authenticate_in_web_application.py", line 112, in 
_get_authorization_code*
*    params = _parse_raw_query_params(data)*
*  File "authenticate_in_web_application.py", line 160, in 
_parse_raw_query_params*
*    params = match.group(1)*
*AttributeError: 'NoneType' object has no attribute 'group'*

What I am missing?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4d9bdfa5-7456-4996-ae4b-c93bcef46b43n%40googlegroups.com.

Reply via email to