Hi,

Could you provide the error that you encounter when you perform this 
operation? Using the above program, you'll encounter the 
CampaignCriterionError.CONCRETE_TYPE_REQUIRED 
<https://developers.google.com/adwords/api/docs/reference/v201609/CampaignCriterionService.CampaignCriterionError>.
 
You need to create a concrete criterion of type IpBlock 
<https://developers.google.com/adwords/api/docs/reference/v201609/CampaignCriterionService.IpBlock>
 
and then provide this to NegativeCampaignCriterion 
<https://developers.google.com/adwords/api/docs/reference/v201609/CampaignCriterionService.NegativeCampaignCriterion>.
 
This example 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201609/Targeting/AddCampaignTargetingCriteria.php#L131>
 shows 
how to add a negative keyword criterion at the campaign level. You need to 
add the negative IpBlock criterion in a similar fashion. Could you try this 
out and let me know if it works?

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9d1e1de9-3f1b-4e9b-9c84-b1f6dbe34b90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • IPBLOCK Adwords... manager
    • Re: IPBLOC... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to