Hi,

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

It seems this issue is not a billing issue for campaign creation on a test 
account but rather a misconfiguration with the OAuth/account linkage and the 
user's access level to the test client account. The error messages strongly 
suggest the Google user associated with the OAuth token does not have the 
necessary permissions within the client account itself. Based on the provided 
information, it appears that you’ve encountered the 
"OPERATION_NOT_PERMITTED_FOR_CONTEXT’ error while attempting to create a 
campaign. This error occurs when an operation is not allowed within the current 
context. The NOT_ADS_USER error triggers when the provided email address/user 
account is not associated with any Google Ads account. To know the proper steps 
to create the campaigns in the test account, please refer to the Create test 
accounts and campaigns API documentation for step-by-step guidance. This code 
example explains how you programmatically create the campaign in the Google Ads 
account via the API.

To know the exact reasons, kindly provide the complete API logs (request and 
response logs with request-id and request header) generated at your end when 
creating the campaigns via the API in the test account and observe the 
specified errors.

Kindly note that you have to enable logging if you are using a client library. 
You can refer to the guides for Java, .Net, PHP, Python, Ruby, or Perl to 
enable logging at your end. For REST interface requests, you can enable logging 
via the curl command by using the -i flag.

You can send the details via the Reply privately to the author option or direct 
private reply to this email.

Thanks,

Google Ads API Team


Feedback
How was our support today?


[2025-10-23 16:14:24Z GMT] This message is in relation to case 
"ref:!00D1U01174p.!500Ht01vRaiR:ref" (ADR-00336356)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/8v5JJ000000000000000000000000000000000000000000000T4LEG000F5PPJJXLTHmxqGrCVJJdYA%40sfdc.net.
  • Te... Patrick Abogado
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to