Hi Ivan, Yes, you'll need to include that field in your selector to ensure it is returned.
Best, - Eric Koleda, AdWords API Team On Friday, March 9, 2012 12:27:33 PM UTC-5, [email protected] wrote: > > Hi All, > > I am retrieving CampaignCriteria using the CampaignCriterionService and > casting them to Location object types. I want to differentiate the > location targeting using the displayType field but it is not being > populated. Do I need to specify the field in the selector? > > foreach (GoogleApi.CampaignCriterion temptarget in objCampTargetpage.entries) > { > if (temptarget.criterion.type.Equals(GoogleApi.CriterionType.LOCATION)) > { > GoogleApi.Location l = (GoogleApi.Location)temptarget.criterion;switch > (l.displayType) > { ... > > > Thanks. > > -Ivan > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
