Google Adwords API - How Do I Validate My Ad Correctly

44 views
Skip to first unread message

Ronny Lehne

unread,
Jul 6, 2021, 3:35:48 AM7/6/21
to AdWords API and Google Ads API Forum
Hello.

First of all: Sorry for my bad English.

We have created the option of booking Google Ads in our customer system. This is done via the Google Adwords API. Now we have several cases where the ad violates the guidelines and throws an error. e.g. a word was not allowed or a number was recognized as a telephone number.

We set up a validation based on this example:

However, this seems to assume that an ad group exists:

Const AD_GROUP_ID = 'INSERT_AD_GROUP_ID_HERE';

Now I get the current AdGroups from the report and pick one with the status "enabled" in order to assign this ID to the AdGroupAd to have an existing AdGroupID.
But when I run the validation I got an error:

OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY @ operations [0]

what am I doing wrong here?
How can I validate the ad?
Is there another possibility with a temporary AdGroup or something similar?

Unfortunately, I'm still a bit new to the Google Adwords/Ads API. Some things are not so clear to me yet and I am a little perplexed right now.

Many thanks in advance for your help.

Google Ads API Forum Advisor

unread,
Jul 7, 2021, 2:10:26 AM7/7/21
to blues...@gmail.com, adwor...@googlegroups.com
Hi Ronny,

Thank you for posting your concern. See my response below for each question:

1. what am I doing wrong here?
To investigate this issue, please provide the complete SOAP request and response logs generated on your end where we can see the error OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY. You can provide it via Reply privately to author option.

2. How can I validate the ad?
Could you provide more details to this question? If you are asking for the details of the policies and rules for creating ad to avoid the policy related error, then the right team that you need to reach out is the product team via this link.

3. Is there another possibility with a temporary AdGroup or something similar?
Could you provide more details to this question so that I can accurately check this? A sample scenario may greatly help on checking this question.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2JYsKu:ref
Reply all
Reply to author
Forward
0 new messages