Error in Google Ads in customers.campaignBudgets.mutate

155 views
Skip to first unread message

Muhammad Haseeb

unread,
Jul 9, 2023, 4:03:30 AM7/9/23
to Google Ads API and AdWords API Forum
When I'm calling this api to Google Ads API explorer it's working fine but on calling from my code in node js it's giving error  message: 'The caller does not have permission', with error 403 and  'request-id': 'Yx07iORrYruWwV8S9cizIg',
 I've standard access of Google Ads Developer token
I've given following permission in OAuth. You can check in screenshotScreenshot from 2023-07-09 12-56-19.png


Kindly help me to call campainBudget API to solve this error
error message 
ERROR :  {
  code: 403,
  message: 'The caller does not have permission',
  status: 'PERMISSION_DENIED',
  details: [
    {
      '@type': 'type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure',
      errors: [Array],
      requestId: 'Yx07iORrYruWwV8S9cizIg'
    }
  ]
}

Google Ads API Forum Advisor

unread,
Jul 10, 2023, 5:12:32 AM7/10/23
to unknow...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to Google Ads API Forum.

With regards to your concern, I can see that you are encountering the PERMISSION_DENIED error. Kindly note that this error indicates that the authenticated user doesn't have the permission to do the change. If you're accessing a client customer, the manager's customer id must be set in the login-customer-id header. 

You will need to ensure that the user / email address you used to generate the credentials indeed has access to the account in your request. If the user / email address has access or is associated with the MCC / manager account, you will need to specify the said MCC / manager account ID as the value of the login-customer-id field. For common structures in calling a request in API, you may refer to our API Call Structure for more information.

Links included in this email:

 
This message is in relation to case "ref:_00D1U1174p._5004Q2msxWj:ref"

Thanks,
 
Google Logo Google Ads API Team


Muhammad Haseeb

unread,
Jul 10, 2023, 6:29:59 AM7/10/23
to Google Ads API and AdWords API Forum
I added login-customer-id in heaer but still getting same error
Message has been deleted

Google Ads API Forum Advisor

unread,
Jul 10, 2023, 1:18:52 PM7/10/23
to unknow...@gmail.com, adwor...@googlegroups.com

Hi,

Can you please try regenerating your OAuth credentials by following our guide (https://developers.google.com/google-ads/api/docs/first-call/oauth-cloud-project)? I suggest that you check this guide (https://developers.google.com/google-ads/api/docs/oauth/internals#access_and_refresh_token) as well for more information on generating access and refresh tokens based on your application type. Please make sure that you are generating OAuth credentials for a user that has access to the Google Ads account that you're trying to access. 

If the issue persists even after doing the above details, you may send us the below complete API logs generated on your end and the user / email address that you used in your authentication process for further investigation.

You may send these information to us via Reply privately to author option.

Reply all
Reply to author
Forward
0 new messages