Hi Eric, Thanks for the detailed explanation. Very much appreciated.
Greg. On Nov 7, 2:51 am, AdWords API Advisor <[email protected]> wrote: > Hi Greg, > > There is a restriction in the AdWords system that prevents you from > targeting the ages 0-17 explicitly. You can see this behavior in the > AdWords web interface, that when you exclude any age group the 0-17 > age group is automatically excluded. > > The API doesn't operate on exclusions, but rather inclusions. This > means that you must either not set any age targeting (which then > targets all ages) or you must not explicitly target the 0-17 age > group. > > Best, > - Eric Koleda, AdWords API Team > > On Nov 5, 6:09 pm, Greg <[email protected]> wrote: > > > Hi All, > > > I am getting the above error when using the CampainTargetService. > > > I'm looking for further information on the above error and how to > > solve it. Java API. > > > I am calling mutate on a CampainTargetService object passing in a > > number of CampaignTargetOperation objects, one of which has an array > > (with a single AgeTarget object) as its operand. As such: > > > ... > > > DemographicTargetList ageTargetList = new > > DemographicTargetList(); > > ageTargetList.setCampaignId(myCampaignId); > > ageTargetList.setTargets(new DemographicTarget[] { > > new AgeTarget > > (null, 0, AgeTargetAge.AGE_0_17) } ); > > > CampaignTargetOperation ageTargetOperation = new > > CampaignTargetOperation(); > > ageTargetOperation.setOperand(ageTargetList); > > ageTargetOperation.setOperator(Operator.SET); > > > myCampaignTargetService.mutate(new > > CampaignTargetOperation[] > > { genderTargetOperation, > > ageTargetOperation}); > > > (genderTargetOperation specifies MALE). > > > What am I missing? > > > All help appreciated. Many thanks. > > > Greg. -- 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.
