Hi Dean,

Thank you for your question.

You can use the keyword_view to retrieve statistics of both positive and 
negative keywords by filtering using the ad_group_criterion.negative attribute. 
The said negative attribute can be included in a single query since the 
ad_group_criterion is an attributed resource of this view. For the currently 
active ones, you can include a filter using the ad_group_criterion.status 
field. Below is a sample query you can use :

SELECT keyword_view.resource_name, ad_group_criterion.criterion_id, 
ad_group_criterion.negative, ad_group_criterion.keyword.text
FROM keyword_view
WHERE ad_group_criterion.status = 'ENABLED'

As for negative keywords lists, you can retrieve their information via the 
shared_set view and by filtering using the shared_set.type = NEGATIVE_KEYWORDS. 
Unfortunately, retrieving their statistics is currently not possible. 
Individual statistics of keywords can be retrieved instead via the keyword_view.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2NSFLk:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3-OFT000000000000000000000000000000000000000000000QZ3SMS00eU8IoeBrTIOTLiAyqgynNA%40sfdc.net.

Reply via email to