Comments (5)
Thanks for reporting this. We'll look into it.
The HeaderHandler should refresh the access token automatically whenever an API call is made after expiry; I don't see an instance where that wouldn't be invoked. The first thing that comes to mind is that there might be a race condition with the refresh and access token invalidation (on the API side).
If this is the case, one workaround might be to handle this exception by simply trying again (triggering the refresh), although I would recommend you use some backoff so that you don't send the subsequent requests immediately.
from googleads-python-lib.
When we switched to oauth2client, we took advantage of a feature that allows us to refresh approximately five minutes before access token expiry. This should no longer be an issue.
from googleads-python-lib.
This issue has happened to me now and can't get over it. Could you explain please ?
sudo python mftraffic.py
No handlers could be found for logger "suds.resolver"
Traceback (most recent call last):
File "mftraffic.py", line 130, in
main(adwords_client)
File "mftraffic.py", line 82, in main
estimates = traffic_estimator_service.get(selector)
File "/usr/local/lib/python2.7/dist-packages/googleads/common.py", line 296, in MakeSoapRequest
for arg in args])
File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 521, in call
return client.invoke(args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 581, in invoke
result = self.send(soapenv)
File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 619, in send
description=tostr(e), original_soapenv=original_soapenv)
File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 670, in process_reply
raise WebFault(fault, replyroot)
suds.WebFault: Server raised fault: '[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'']'
I am trying to use your API, but it is one of the worst nightmares I've been put through. Could you please, please, provide a guide on how to properly create a test account and link it to a production manager test account in order to get access to the API, and prove me that it actually works ?
from googleads-python-lib.
Hello,
This is not related to the bug you reopened. A cursory glance seems to indicate that this is related to the Service you're attempting to use requiring a Client Customer Id. My guess is that you probably didn't specify one in the googleads.yaml file. If that's not the case though, follow up with some more details and I'll take a closer look.
from googleads-python-lib.
Hi, thanks for your time, great support :D
I've followed some new videos on Google Developers YouTube Channel and I sorted it out. It turn out that I needed both a developer token on my existing account and a new MCC test account. Thanks for your help :)
from googleads-python-lib.
Related Issues (20)
- Can I use GetDataDownloader with version = v202202 after February 2023 ? HOT 1
- HTTPSConnectionPool(host='accounts.google.com', port=443): Max retries exceeded with url: /o/oauth2/token (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))
- google.api_core.exceptions.ServiceUnavailable: 503 Bad file descriptor in v12 HOT 1
- Unable to Use goodeads to latest Composer Version HOT 3
- Error: No module named 'google.api_core HOT 1
- How to properly use the API to generate a report? HOT 2
- Generating a report and getting different values HOT 2
- How to filter by Child Publisher Network Code?
- How to export the API generated report in the UI? HOT 9
- How to get all mobile applications using the api?
- Is there a way to get all apps that are on the report and not on the inventory? HOT 2
- How to filter a report using an app name with a backtick?
- Enable constructing GoogleServiceAccountClient with Credentials.from_service_account_info method HOT 1
- Google Group for the Ads API no longer available HOT 1
- Google Ad Manager API - googleads library compatibility HOT 1
- When is googleads 36.0.0 python package sunset date? HOT 4
- GoogleRefreshTokenClient could not authenticate to create AdManager Client - 401 Unauthorized HOT 1
- KeyError occured when trying to access the 'report_service.runReportJob()' function HOT 1
- Method to authenticate via environment variables HOT 1
- Google Ad Manager API Custom Dimensions Using saved_report_query HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googleads-python-lib.