Hi there,

I have successfully created a shared set with negative keywords via the API 
and I can see it in the Ads web interface as well.
Also, when I query the GoogleAdsService for this particular shared set, I 
can see its status as ENABLED.

My problem is that I cannot associate this shared set 
to CustomerNegativeCriterionService. I get 
the NEGATIVE_KEYWORD_SHARED_SET_DOES_NOT_EXIST error. This is my (Python) 
code:

negative_kws_op = ads_client.get_type("CustomerNegativeCriterionOperation")
negative_kws = negative_kws_op.create
negative_kws.negative_keyword_list.shared_set = 
customers/{my_customer}/sharedSets/{shared_set_that_i_created}

customer_negative_criterion_service = ads_client.get_service(
"CustomerNegativeCriterionService")
customer_negative_criterion_service.mutate_customer_negative_criteria(
    customer_id=customer_id, operations=[negative_kws_op]
)

Is something that I do wrong ?

Thanks in advance for your help!

Ionut

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/ad15dff8-e118-4351-a82c-1e55289df585n%40googlegroups.com.

Reply via email to