ExcludedLocationSelector
包含用于筛选和排序排除位置的方法。 有关选择器的信息,请参阅 选择器。
用法示例:
var shoppingCampaign = AdsApp.shoppingCampaigns().withIds(["123456789"]).get().next();
var iterator = shoppingCampaign.targeting().excludedLocations()
.withLimit(10)
.get();
while (iterator.hasNext()) {
var excludedLocation = iterator.next();
}
方法
方法名称 | 返回类型 | 说明 |
---|---|---|
get | ExcludedLocationIterator | 获取用于循环访问排除位置列表的迭代器。 |
withLimit (int limit) | ExcludedLocationSelector | 获取与选择条件匹配的前 n 个 排除位置。 |
获取
获取 迭代器 用于循环访问排除位置的列表。
返回
类型 | 说明 |
---|---|
ExcludedLocationIterator | 用于循环访问排除的位置的迭代器。 |
withLimit (int 限制)
获取与选择条件匹配的前 n 个 排除位置。
参数
名称 | 类型 | 说明 |
---|---|---|
limit | int | 要返回的排除位置数。 实际数字可能更少。 |
返回
类型 | 说明 |
---|---|
ExcludedLocationSelector | 应用了限制的选择器。 |