It might be related to the fact that you are doing a REMOVE operation.
Is it possible that the campaign you are modifying doesn't have these
provinces already attached? The error might be telling you that that
campaign doesn't have those specific provinces, so they can't be removed.
Jim
--
=
Thank you Jim for your reply!
I've just modified my code trough the way indicated by you:
$campaignCriterionService = $user->GetService('CampaignCriterionService',
'v201109');
$campaignCriteria = array();
$provincia = array();
foreach ($id_camp as $id){
//$campaignId = (float) '57171644';
$cam
Campaign geo targeting has changed quite a bit in v201109.
One big change is that you can't use the SET operator to replace all the
geo targets in one call. Instead, you have to issue ADD and REMOVE
operations for the specific geo targets. This means you'll have to compute
the difference betw
Hi, I've a problem with GeoTargetList in php api v201109!!
With api v201101 I use this code to set province-target
$on = array();
$i=0;
foreach ($attivate as $pr){
$provincia = new ProvinceTarget();
$provincia->provinceCode = $pr;
$provincia->excluded = false;
$on[$i] = $provincia;
$i++;
}
// Cr