403 Request had insufficient authentication scopes

6,276 views
Skip to first unread message

Wang Fred

unread,
Apr 14, 2023, 4:31:25 AM4/14/23
to Google Ads API and AdWords API Forum
I followed the instructions to create the client ID, client secret, and get the refresh token and put them in the yaml file. Then execute the script to get the keyword idea, which results in an error. How can I solve it?

google.api_core.exceptions.PermissionDenied: 403 Request had insufficient authentication scopes. [reason: "ACCESS_TOKEN_SCOPE_INSUFFICIENT"
domain: "googleapis.com"
metadata {
  key: "service"
  value: "googleads.googleapis.com"
}
metadata {
  key: "method"
  value: "google.ads.googleads.v13.services.KeywordPlanIdeaService.GenerateKeywordIdeas"
}
]

I'm still new to Python, thank you for help.

Google Ads API Forum Advisor

unread,
Apr 14, 2023, 8:00:28 AM4/14/23
to etn...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for raising this issue to the Google Ads API support team.

Regarding the error you are encountering, I would suggest referring and seeing the below guides. Please make sure that the below guides were followed in order to avoid the said error.
Also, our guide for the Google Ads API scope (https://developers.google.com/google-ads/api/docs/oauth/internals#scope).

Let us know how it goes on your end.

Regards,
Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2kVT1u:ref
Reply all
Reply to author
Forward
Message has been deleted
0 new messages