I am utilizing the python client library for the Google Ads API. Alls has been working as expected and all of a sudden began running extremely slow when running locally on my Mac. Ran the cProfile tool and found that this 'next_event' method from gRPC has started taking between 8-10secs per call.

Even basic usage of the API (i.e. GAQL to pull in campaign names) returns the same latency issue.

ncalls  tottime  percall  cumtime  percall filename:lineno(function)         1    8.123    8.123    8.126    8.126 {method 'next_event' of 'grpc._cython.cygrpc.SegregatedCall' objects} 

Have tried various versions of Python and the google-ads and gRPC packages. Others have ran this same code from the same repo/branch on their machines and do not experience this issue so I am trying to determine what about my environment/Mac is causing this issue.

Tag:google-ads-api, grpc, python, cython

Add a new comment.