Hi Mario,
You need to perform a CampaignCriterionService
<https://developers.google.com/adwords/api/docs/reference/v201609/CampaignCriterionService>
REMOVE
operation to remove the IpBlock
<https://developers.google.com/adwords/api/docs/reference/v201609/CampaignCriterionService.IpBlock>
criterion
from a campaign. The code should look like this:
$campaignCriterionService =
$user->GetService('CampaignCriterionService', ADWORDS_VERSION);
$campaignCriteria = array();
// Create operations.
$operations = array();
// Add a negative campaign criterion.
$ipBlock = new IpBlock();
$ipBlock->id = $criterionId;
$negativeCriterion = new NegativeCampaignCriterion();
$negativeCriterion->campaignId = $campaignId;
$negativeCriterion->criterion = $ipBlock;
$operations[] = new CampaignCriterionOperation($negativeCriterion,
'REMOVE');
// Make the mutate request.
$result = $campaignCriterionService->mutate($operations);
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 [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/84101390-4287-4b3b-9129-9367590204df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.