Hi Pratik,
Thank you for reaching out. The documentation you quoted was a prior version and was deprecated. The current version does not have the get() instead it is getCustomer() which requires you to provide the client customer id to make the API calls.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Pratik,
Thank you for reaching out. If you need to get the client customer id from users that are authorized through your app you would need to use getCustomer() and set your manager account id as the client customer id, then you would be able to get all the direct customer accounts under your manager account.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Pratik,
Thank you for reaching out. The error USER_PERMISSION_DENIED usually occurs when there is no link between the manager account authenticated in the request and the client account specified in the headers. This type of issue is not due to the authentication itself. Rather, it is because the account you are authenticated with does not have the management rights to the client customer account as they are not linked. You would need to make sure they are linked in order to successfully make the API call.
Thanks and regards,
Xiaoming, Google Ads API Team