How to get account-level negative keywords?

168 views
Skip to first unread message

Dmytro Tonkikh

unread,
Apr 19, 2023, 6:55:30 AM4/19/23
to Google Ads API and AdWords API Forum
Hi there

I want to get negative keywords from the account level via GAPI.
Screenshot 2023-04-19 at 11.49.58.png

I used this GAQL query:
SELECT customer_negative_criterion.id, customer_negative_criterion.type,  customer_negative_criterion.resource_name FROM customer_negative_criterion WHERE customer_negative_criterion.type = 'KEYWORD'

But it returns nothing.

And I see that it is impossible to create a negative criterion with the type "KEYWORD" - because there is no 'keyword' type in the documentation - link

Can you help or clarify how to get account negatives?

Google Ads API Forum Advisor

unread,
Apr 19, 2023, 10:40:02 AM4/19/23
to dmy...@tonkikh.com, adwor...@googlegroups.com

Hi Dmytro, 

Thanks for reaching out to the Google Ads API Forum. I hope you are doing well today.

Moving forward to our concern about “negative keywords from the account level”, for our team to further compare, investigate, and validate why you are encountering issues, can you provide more information?
 

  • Provide the complete (request and response with request-id) logs with request ID generated as shown in the respective links.
  • Complete screenshots (without cropping) from the Google Ads UI of the data the you are retrieving.


We do this to check and to provide the right recommendation.

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. This will cause the tool to include the HTTP response headers in the output.

For additional information, you may also see the Targeting: Criteria guide, the CampaignCriterionService and AdGroupCriterionService support targeting or excluding various types of criteria. Having said that, you may add the negative keywords by using the CampaignCriterionService.

Reference links:


Have a great day.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2ko2sx:ref

Google Ads API Forum Advisor

unread,
Apr 19, 2023, 10:46:47 AM4/19/23
to adwor...@googlegroups.com, dmy...@tonkikh.com

Hi Dmytro, 

In addition to my previous response, you can provide the information 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,

Yunjung Cho

unread,
Aug 31, 2023, 11:29:07 AM8/31/23
to Google Ads API and AdWords API Forum
Hi team!

I have the same issue. 
I can see we have 1 keyword added to the account level negative keyword list, but nothing returns even without any filters.

Is there any progress on this issue?

Regards,
Screenshot 2023-08-31 at 16.25.49.png
"SELECT customer_negative_criterion.id, customer_negative_criterion.type, "
+ " customer_negative_criterion.resource_name "
+ " FROM customer_negative_criterion "

Dmytro Tonkikh

unread,
Aug 31, 2023, 12:26:01 PM8/31/23
to Google Ads API and AdWords API Forum
I already found the solution - with version 14. 

You have to get all keywords where shared set typ = ACCOUN_LEVEL_NEGATIVE_KEYWORD_LIST

Yunjung Cho

unread,
Aug 31, 2023, 12:38:32 PM8/31/23
to Google Ads API and AdWords API Forum
Thank you Dmytro!

I will try that.
I'm trying to add or remove account level negative keywords with API as an end goal. 
Since it's quite different topic, will create a new conversation. 

Many thanks

Google Ads API Forum Advisor

unread,
Aug 31, 2023, 3:10:57 PM8/31/23
to yunju...@adthena.com, adwor...@googlegroups.com

Hi,

Thank you for coming back to us and for the updates. I hope you are doing well today.

@Dmytro Tonkikh 
Thank you for providing your insights on this matter. It is highly appreciated.

@Yunjung Cho
Since we can’t further investigate and validate this matter on your account. Could you please confirm if it is already resolved on your end? 

If you need any further assistance on this matter, feel free to contact us again and provide the needed information as mentioned before. But please note that, if you have other issues or concerns we recommend creating a new forum or email thread for better tracking and updates.

Have a great day.
 

This message is in relation to case "ref:_00D1U1174p._5004Q2ko2sx:ref"

Thanks,

 
Google Logo Google Ads API Team


Yunjung Cho

unread,
Sep 1, 2023, 4:01:29 AM9/1/23
to Google Ads API and AdWords API Forum
Thank you all.

Yes I've created a new forum and you can close my inquiry. 

Michael König

unread,
Oct 2, 2024, 3:52:24 PM10/2/24
to Google Ads API and AdWords API Forum
Hello Dmytro, 

could you list the complet GAQL-query. Thank you :-)

Best Regards
Michael
Reply all
Reply to author
Forward
0 new messages