google.api_core.exceptions.PermissionDenied: 403 Request had insufficient authentication scopes. [reason: "ACCESS_TOKEN_SCOPE_INSUFFICIENT" domain: "googleapis.com" metadata {key: "method" value: "google.ads.googleads.v9.services.GoogleAdsService.SearchStream'}
metadata {key: "service" value: "googleads.googleapis.com"}].
I thought the issue was not explicitly adding the adwords scope for the SearchStream call, but generating a new refresh token with that scope gave me another error shown below:
I'm pretty confident that I followed the documentation correctly, so I was wondering if anyone had any advice on how I could tackle this issue. If it helps, I'm getting the errors above when trying the get_campaigns.py example. Thanks!
|
||||||
Hi Edmon,
Thanks for your response, I am also a member of the Google Ads API team and let me provide support to your concern.
Moving forward to your concern. When accessing the web browser for the URL to create the refresh token, you will need to be in a session using the same user / email address used to generate the client ID and client secret.
Let us know if you have any questions.
Regards,
|
||||||