Hi James, Automatic placements will not be returned along with managed placements or keywords, and you can't retrieve them with any of the Criterion services. To determine which websites your ads served on you can run a Placement report:
http://code.google.com/apis/adwords/docs/developer/adwords_api_report_contentplacement.html On Jan 30, 3:35 am, James604 <[email protected]> wrote: > CampaignCriterionService is for negative criterion. so how to get > those automatic placements? > > James > > On Jan 29, 11:45 am, James604 <[email protected]> wrote: > > > > > Hi there, > > > I have successfully pulled down over 60,000 criterions along with the > > mapping with Adgroups. When I am reviewing my data, I found that those > > automatic placements are not pulled down. But I did pull down all of > > the managed placements. > > > C# code > > ----------------------- > > AdGroupCriterionService service = new > > AdGroupCriterionService(); > > service.RequestHeader = Adwords.RequestHeader; > > List<AdGroupCriterionIdFilter> filters = new > > List<AdGroupCriterionIdFilter>(); > > foreach (long id in adGroupIds) > > { > > AdGroupCriterionIdFilter idFilter = new > > AdGroupCriterionIdFilter(); > > idFilter.adGroupId = id; > > idFilter.adGroupIdSpecified = true; > > filters.Add(idFilter); > > } > > AdGroupCriterionSelector selector = new > > AdGroupCriterionSelector(); > > //selector.criterionUseSpecified = true; > > //selector.criterionUse = CriterionUse.BIDDABLE; // > > selector.idFilters = filters.ToArray(); > > selector.userStatuses = new UserStatus[] { }; //All > > status. > > selector.statsSelector = new StatsSelector(); > > selector.statsSelector.dateRange = new DateRange(); > > selector.statsSelector.dateRange.min = "19700101"; > > selector.statsSelector.dateRange.max = "20380101"; > > > AdGroupCriterionPage page = new AdGroupCriterionPage(); > > page = service.get(selector); > > > return page; > > ///-------------------------------------------------------------- > > > I have read the Adwords Help page about "Automatic Placement" > > fromhttps://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=99463 > > > so automatic placement is on Campaign level? How can I get those > > automatic placements, which service should i use? > > CampaignTargetService or CampaignCriterionService?? Anyone can clarify > > for me. > > > BTW, if I set selector.criterionUse = CriterionUse.NEGATIVE ( so > > negative criterions are only on campaign level? Basically, if I use > > CampaignCriterionService, I can get those criterions, too? Am I right? > > I haven't touched CampaignCriterionService too much.) > > > Thanks as always. > > > James -- 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.
