Encountering errors trying to create self refresh token

25 views
Skip to first unread message

Doron Nazaretsky

unread,
Jan 23, 2022, 1:57:08 PM1/23/22
to Google Ads API and AdWords API Forum
Hi, 

As described in a previous post, I'm trying to walk through your guide and failing on step 3.
I'm running the example script "authenticate_in_web_application.py" while specifying the "client_secrets_path" and keep getting this error "AttributeError: 'NoneType' object has no attribute 'group'". 
Looks like the code expects some query parameters which the example does not include in it's GET request.

I tried all the steps in the guide both on Windows 10 and WSL 2 (Ubuntu), even tried to run it in a isolated docker container based on python3.6 but failed due to network problems between the container and the host.

I would appreciate your help on this.

Google Ads API Forum Advisor

unread,
Jan 24, 2022, 4:51:26 AM1/24/22
to dor...@codefuel.com, adwor...@googlegroups.com

Hi Doron,

Thank you for reaching out to us.

With regard to your "previous post", it seems that your post has already been removed. Then, for the error that you've encountered, can you confirm if you're using the latest python library version? It mentioned that, as of v20.0.0 this library is not compatible with Python versions less than Python 3.6. Also suds is no longer supported in this library, zeep is now the only supported SOAP client.

In addition to that, I've seen this forum thread that has the same concern as yours but was able to fix their concern by installing the new ubuntu operating system. I would suggest doing the same and check if this works for you. You can also check the similar case in the github issue tracker, and post an issue related to this on the said issue tracker.

Regards,

Google Logo
Princess Pamela Pineda
Google Ads API Team
 

 



ref:_00D1U1174p._5004Q2VOkSJ:ref
Reply all
Reply to author
Forward
0 new messages