Hi Siddhesh,
Thanks for reaching out. It is not a good idea to post the developer token and OAuth credentials in the forum as these information are highly sensitive so I would suggest you not to disclose them in the public place at any time in the future. As for your case, StatusCode=PermissionDenied indicates that the account you used to authenticate does not have the access to the customer account you are querying on. Specifically, you are using 5614642714 for both loginCustomerId and CustomerId in the request. You would need to make sure the OAuth credentials were generated by an email address which has the Administrative access to account 5614642714. Also, you need to set a login-customer-id in your local configuration, please refer to this blog post on how to implement it. Please let me know if you have any further questions.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Siddhesh,
Thanks for reaching out. StatusCode=PermissionDenied indicates that the account you used to authenticate does not have the access to the customer account you are querying on. You would need to make sure the OAuth credentials were generated by an email address which has the Administrative access to the account you query on. Also, you need to set a login-customer-id in your local configuration, please refer to this blog post on how to implement it. Please let me know if you have any further questions.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Siddhesh,
When you make an API call (with login-customer-id), you must specify the customer ID of a manager account that manages the Google Ads account for which you're requesting the invoice. In your case, you need to specify the login-customer-id with the customer ID of the manager account for 1234567890. Please refer to this documentation for more details. Please give it a try and if the issue persists, please send us the complete request and response logs along with the client customer Id and login-customer-id via Reply privately to author option.
Thanks and regards,
Xiaoming, Google Ads API Team