- 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:
> With version 200909, I used ProximityTarget + GeoTarget +
> GeoTargetList + GeoTargetOperation to add GeoLocation to Campaign.
> Now I want to upgrade to version 201109, and I dug all the document
> but dont know how to do that with this version.
>
> (I need to expand 300 geo locations 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