Hello,
Thank you for reaching out to the Google Ads API Support.
Apparently you are getting an AuthorizationError: USER_PERMISSION_DENIED error when trying to create a campaign. This is because the User doesn't have permission to access the customer. Please note that if you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header.
To prevent this kind of error, I would suggest specifying the login-customer-id as the manager account ID without hyphens (-). That being said, 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 MCC / manager account's ID without hyphens (-) as the value of the login-customer-id field.
Furthermore, if the issue persists, can you please provide us with the complete request and response logs generated as shown in the respective links, so we can check on our end the errors being thrown?
If you haven't enabled logging yet, it can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. For REST interface requests, you can enable logging via the curl command by using the -i flag.
You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.
Regards,
![]() |
Google Ads API Team |