Hi,

Does anyone know how to create negative keywords for Smart Display 
campaigns?

I tried the "standard" way of setting them with other campaign types but 
keep getting errors.

campaign_criterion_operation = 
client.get_type("CampaignCriterionOperation", version="v6")
campaign_criterion = campaign_criterion_operation.create
campaign_criterion.campaign = some campaign_resource_name
campaign_criterion.negative = True
criterion_keyword = campaign_criterion.keyword
criterion_keyword.text = phrase
criterion_keyword.match_type = client.get_type('KeywordMatchTypeEnum', 
version='v6').UNKNOWN
campaign_criterion_operations.append(campaign_criterion_operation)
 
I tried using different KeywordMatchTypes, but BROAD, PHRASE, UNSPECIFIED, 
all didn't work.

Thanks in advance!
Che

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/af36ba7b-9444-4a8c-949e-af0b7850c1c3n%40googlegroups.com.

Reply via email to