标签-有效分类广告系列、广告组,广告、关键词
可用于:
1.广告系列只用于一年中的某些时段
2.加了一些新的关键字进广告组,想比较和原关键字的效果
3.一个用户有多个广告系列,用标签来区分广告系列集合
4.Your application needs to mark certain objects as processed, audited, highlighted, etc.
创建标签
- Create a
TextLabel
object. - Set its name.
- Wrap the
TextLabel
in aLabelOperation
and send it to LabelService.mutate.
以广告系列为例:
CampaignService.mutateLabels needs one or more CampaignLabel objects, each of which consists of:
labelId
- The ID of a labelcampaignId
- The ID of a campaign
CampaignLabel
object for each label/campaign pair you want to add, wrap it in a
CampaignLabelOperation
with the
ADD
operator, and send it to
CampaignService.mutateLabels
.
用标签获取对象
SELECT Id, Name, Labels
WHERE Labels CONTAINS_ANY [123456, 789012, 345678]
tips:
1.filter不要用label name,用label ID
2.只支持CONTAINS_ALL
, CONTAINS_ANY
, and CONTAINS_NONE
.
在报表中使用标签