Hi Minh Le, Do you know how to add each of the proximity targets to each of the CampaignCriterion? ProximityTarget object has been removed in new version 201109.
On Jan 14, 12:45 am, Minh Le <[email protected]> wrote: > - Create a list of Proximity > - Create a list of CampaignCriterion, add each of the proximity > targets to each of the CampaignCriterion > - Use this function (C#) > > public static void addCampaignCriteria(AdWordsUser user, > long campaignId, CampaignCriterion[] criteria, > CampaignCriterionService campaignCriterionService) > { > List<CampaignCriterionOperation> operations = > new List<CampaignCriterionOperation>(); > > foreach (CampaignCriterion criterion in criteria) > { > CampaignCriterionOperation operation = > new CampaignCriterionOperation(); > operation.@operator = Operator.ADD; > operation.operand = criterion; > operations.Add(operation); > } > > try > { > CampaignCriterionReturnValue retVal = > campaignCriterionService.mutate(operations.ToArray()); > > //display added criteria > if (retVal != null && retVal.value != null > && retVal.value.Length > 0) > { > foreach (CampaignCriterion temp in retVal.value) > { > Console.WriteLine("Campaign criterion with > campaign id = \"{0}\", criterion id = " + > "\"{1}\" and type = > \"{2}\" was added.", > temp.campaignId, > temp.criterion.id, > > temp.criterion.CriterionType); > } > } > else > { > Console.WriteLine("No campaign criteria were > added."); > } > } > catch (Exception ex) { } > } > > On Jan 13, 1:42 am, Alex Tran <[email protected]> wrote: > > > Withversion200909, I used ProximityTarget + GeoTarget + > > GeoTargetList + GeoTargetOperation to add GeoLocation to Campaign. > > Now I want to upgrade toversion201109, and I dug all the document > > but dont know how to do that with thisversion. > > > (I need to expand 300geolocations limit) > > > Please give me a hand. > > Thank you > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
