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" from
https://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.