PERMISSION_DENIED

346 views
Skip to first unread message

Kenneth Perez

unread,
Mar 22, 2024, 3:20:23 PM3/22/24
to Google Ads API and AdWords API Forum
hello everyone, anyone who can solve my doubt in theory I followed all the steps but I get this error when consulting the calendar resources.

{
  "error": {
    "code": 403,
    "message": "Request had insufficient authentication scopes.",
    "errors": [
      {
        "message": "Insufficient Permission",
        "domain": "global",
        "reason": "insufficientPermissions"
      }
    ],
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
        "domain": "googleapis.com",
        "metadata": {
          "service": "admin.googleapis.com",
          "method": "ccc.hosted.frontend.directory.v1.DirectoryResourcesCalendars.List"
        }
      }
    ]
  }
}

Google Ads API Forum Advisor

unread,
Mar 22, 2024, 6:15:53 PM3/22/24
to adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

After checking the provided logs, I could see that you are getting the USER_PERMISSION_DENIED error. This means the user doesn't have permission to access the customer. According to the documentation, if you're accessing the customer please specify the login-customer-id as the manager account ID without hyphens (-). Client libraries have built in support for this. Also, you may refer to the Call structure document for more information.

Also, I would kindly request you to check if you have a correct access level to the Google Ads account that you are accessing and share the screenshot with us for further investigation. Also, I would request you to kindly provide the email address which you are trying to authenticate. 
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02s0BPp:ref" (ADR-00228413)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages