Giter Site home page Giter Site logo

Comments (5)

msaniscalchi avatar msaniscalchi commented on May 23, 2024

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.

msaniscalchi avatar msaniscalchi commented on May 23, 2024

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.

stefantcristian avatar stefantcristian commented on May 23, 2024

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.

msaniscalchi avatar msaniscalchi commented on May 23, 2024

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.

stefantcristian avatar stefantcristian commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.