Adding Negative Keywords

119 views
Skip to first unread message

Meraklı Web

unread,
May 24, 2022, 10:59:07 AM5/24/22
to Google Ads API and AdWords API Forum
https://github.com/googleads/google-ads-php/blob/d603048b9070a435ba50247b9dfe77f208809437/examples/BasicOperations/AddKeywords.php

Hello, there is keyword addition in the sample codes, but no negative keyword insertion.

can't we do this?

Google Ads API Forum Advisor

unread,
May 25, 2022, 3:03:02 AM5/25/22
to alimertu...@gmail.com, adwor...@googlegroups.com

Hi there,

Thanks for reaching out to the Google Ads API Forum.

Since you are looking to add negative keywords using this code, you can refer to this documentation on the different criteria that you can target/exclude in either the campaign or ad group level. At the campaign level, you can only exclude keywords and you will need to specify negative = true on a keyword's CampaignCriterion, and create it using the CampaignCriterionService.

For the ad group level, you can either target or exclude keywords. For excluding the keywords, you will then need to specify negative = true in the AdGroupCriterion, using the AdGroupCriterionService.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bD0uO:ref

Meraklı Web

unread,
May 25, 2022, 4:32:44 AM5/25/22
to Google Ads API and AdWords API Forum
Thank you ,
The error I'm getting now is Google Ads failure details: mutate_error: Resource was not found. I couldn't understand what it means exactly, the codes I used are examples to try

25 Mayıs 2022 Çarşamba tarihinde saat 10:03:02 UTC+3 itibarıyla adsapi şunları yazdı:

Google Ads API Forum Advisor

unread,
May 25, 2022, 9:53:21 PM5/25/22
to alimertu...@gmail.com, adwor...@googlegroups.com
Hi,

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

With regards to your concern, you’ve encountered RESOURCE_NOT_FOUND error, this means that the requested resource is not found.

For our team to better check it, could you please provide to us the complete API logs (request and response with request-id ) so our team can try and replicate the report and issue you are encountering?

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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