Hi Miloš, You will need to create an IpBlock <https://developers.google.com/adwords/api/docs/reference/v201609/CampaignCriterionService.IpBlock> object then set its ipAddress. Then you can set the criterion of the NegativeCampaignCriterion <https://developers.google.com/adwords/api/docs/reference/v201609/CampaignCriterionService.NegativeCampaignCriterion> object to the IpBlock you created.
Your SOAP request should look like this: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <ns1:RequestHeader xmlns:ns1= "https://adwords.google.com/api/adwords/cm/v201609" soapenv:mustUnderstand= "0"> <ns1:clientCustomerId>XXXXXX</ns1:clientCustomerId> <ns1:developerToken>REDACTED</ns1:developerToken> <ns1:userAgent>XXXXXX</ns1:userAgent> <ns1:validateOnly>false</ns1:validateOnly> <ns1:partialFailure>false</ns1:partialFailure> </ns1:RequestHeader> </soapenv:Header> <soapenv:Body> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201609"> <operations> <operator>ADD</operator> <operand xmlns:ns2= "https://adwords.google.com/api/adwords/cm/v201609" xsi:type= "ns2:NegativeCampaignCriterion"> <ns2:campaignId>XXXXX</ns2:campaignId> <ns2:criterion xsi:type="ns2:IpBlock"> <ns2:ipAddress>1.2.3.0/24</ns2:ipAddress> </ns2:criterion> </operand> </operations> </mutate> </soapenv:Body> </soapenv:Envelope> Please let me know if you face any issues. Cheers, Anthony 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 [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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. 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/1b9d6aea-934b-4ca3-ad78-51a49f7688a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
