REST Resource: advertisers.targetingTypes.assignedTargetingOptions

资源:AssignTargetingOption

一个已分配的定位选项,用于指定具有定位设置的实体的定位选项状态。

JSON 表示法
{
  "name": string,
  "assignedTargetingOptionId": string,
  "assignedTargetingOptionIdAlias": string,
  "targetingType": enum (TargetingType),
  "inheritance": enum (Inheritance),

  // Union field details can be only one of the following:
  "channelDetails": {
    object (ChannelAssignedTargetingOptionDetails)
  },
  "appCategoryDetails": {
    object (AppCategoryAssignedTargetingOptionDetails)
  },
  "appDetails": {
    object (AppAssignedTargetingOptionDetails)
  },
  "urlDetails": {
    object (UrlAssignedTargetingOptionDetails)
  },
  "dayAndTimeDetails": {
    object (DayAndTimeAssignedTargetingOptionDetails)
  },
  "ageRangeDetails": {
    object (AgeRangeAssignedTargetingOptionDetails)
  },
  "regionalLocationListDetails": {
    object (RegionalLocationListAssignedTargetingOptionDetails)
  },
  "proximityLocationListDetails": {
    object (ProximityLocationListAssignedTargetingOptionDetails)
  },
  "genderDetails": {
    object (GenderAssignedTargetingOptionDetails)
  },
  "videoPlayerSizeDetails": {
    object (VideoPlayerSizeAssignedTargetingOptionDetails)
  },
  "userRewardedContentDetails": {
    object (UserRewardedContentAssignedTargetingOptionDetails)
  },
  "parentalStatusDetails": {
    object (ParentalStatusAssignedTargetingOptionDetails)
  },
  "contentInstreamPositionDetails": {
    object (ContentInstreamPositionAssignedTargetingOptionDetails)
  },
  "contentOutstreamPositionDetails": {
    object (ContentOutstreamPositionAssignedTargetingOptionDetails)
  },
  "deviceTypeDetails": {
    object (DeviceTypeAssignedTargetingOptionDetails)
  },
  "audienceGroupDetails": {
    object (AudienceGroupAssignedTargetingOptionDetails)
  },
  "browserDetails": {
    object (BrowserAssignedTargetingOptionDetails)
  },
  "householdIncomeDetails": {
    object (HouseholdIncomeAssignedTargetingOptionDetails)
  },
  "onScreenPositionDetails": {
    object (OnScreenPositionAssignedTargetingOptionDetails)
  },
  "carrierAndIspDetails": {
    object (CarrierAndIspAssignedTargetingOptionDetails)
  },
  "keywordDetails": {
    object (KeywordAssignedTargetingOptionDetails)
  },
  "negativeKeywordListDetails": {
    object (NegativeKeywordListAssignedTargetingOptionDetails)
  },
  "operatingSystemDetails": {
    object (OperatingSystemAssignedTargetingOptionDetails)
  },
  "deviceMakeModelDetails": {
    object (DeviceMakeModelAssignedTargetingOptionDetails)
  },
  "environmentDetails": {
    object (EnvironmentAssignedTargetingOptionDetails)
  },
  "inventorySourceDetails": {
    object (InventorySourceAssignedTargetingOptionDetails)
  },
  "categoryDetails": {
    object (CategoryAssignedTargetingOptionDetails)
  },
  "viewabilityDetails": {
    object (ViewabilityAssignedTargetingOptionDetails)
  },
  "authorizedSellerStatusDetails": {
    object (AuthorizedSellerStatusAssignedTargetingOptionDetails)
  },
  "languageDetails": {
    object (LanguageAssignedTargetingOptionDetails)
  },
  "geoRegionDetails": {
    object (GeoRegionAssignedTargetingOptionDetails)
  },
  "inventorySourceGroupDetails": {
    object (InventorySourceGroupAssignedTargetingOptionDetails)
  },
  "digitalContentLabelExclusionDetails": {
    object (DigitalContentLabelAssignedTargetingOptionDetails)
  },
  "sensitiveCategoryExclusionDetails": {
    object (SensitiveCategoryAssignedTargetingOptionDetails)
  },
  "exchangeDetails": {
    object (ExchangeAssignedTargetingOptionDetails)
  },
  "subExchangeDetails": {
    object (SubExchangeAssignedTargetingOptionDetails)
  },
  "thirdPartyVerifierDetails": {
    object (ThirdPartyVerifierAssignedTargetingOptionDetails)
  },
  "poiDetails": {
    object (PoiAssignedTargetingOptionDetails)
  },
  "businessChainDetails": {
    object (BusinessChainAssignedTargetingOptionDetails)
  },
  "contentDurationDetails": {
    object (ContentDurationAssignedTargetingOptionDetails)
  },
  "contentStreamTypeDetails": {
    object (ContentStreamTypeAssignedTargetingOptionDetails)
  },
  "nativeContentPositionDetails": {
    object (NativeContentPositionAssignedTargetingOptionDetails)
  },
  "omidDetails": {
    object (OmidAssignedTargetingOptionDetails)
  },
  "audioContentTypeDetails": {
    object (AudioContentTypeAssignedTargetingOptionDetails)
  },
  "contentGenreDetails": {
    object (ContentGenreAssignedTargetingOptionDetails)
  },
  "youtubeVideoDetails": {
    object (YoutubeVideoAssignedTargetingOptionDetails)
  },
  "youtubeChannelDetails": {
    object (YoutubeChannelAssignedTargetingOptionDetails)
  },
  "sessionPositionDetails": {
    object (SessionPositionAssignedTargetingOptionDetails)
  }
  // End of list of possible types for union field details.
}
字段
name

string

仅限输出。此已分配定位选项的资源名称。

assignedTargetingOptionId

string

仅限输出。指定的定位选项的唯一 ID。ID 仅在给定资源和定位类型中唯一。其他上下文中可能会重复使用该表。

assignedTargetingOptionIdAlias

string

仅限输出。assignedTargetingOptionId 的别名。在检索或删除现有定位条件时,此值可代替 assignedTargetingOptionId

只有以下定位类型的所有已分配定位选项均支持此字段:

  • TARGETING_TYPE_AGE_RANGE
  • TARGETING_TYPE_DEVICE_TYPE
  • TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION
  • TARGETING_TYPE_ENVIRONMENT
  • TARGETING_TYPE_EXCHANGE
  • TARGETING_TYPE_GENDER
  • TARGETING_TYPE_HOUSEHOLD_INCOME
  • TARGETING_TYPE_NATIVE_CONTENT_POSITION
  • TARGETING_TYPE_OMID
  • TARGETING_TYPE_PARENTAL_STATUS
  • TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION
  • TARGETING_TYPE_VIDEO_PLAYER_SIZE
  • TARGETING_TYPE_VIEWABILITY

为订单项分配的以下定位类型定位选项也支持此字段:

  • TARGETING_TYPE_CONTENT_INSTREAM_POSITION
  • TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION
targetingType

enum (TargetingType)

仅限输出。指明此已分配定位选项的类型。

inheritance

enum (Inheritance)

仅限输出。所分配的定位选项的沿用状态。

联合字段 details。有关所分配的定位选项的详细信息。只能填写一个详细信息字段,且必须对应 targeting_typedetails 只能是下列其中一项:
channelDetails

object (ChannelAssignedTargetingOptionDetails)

频道详情。当 targetingTypeTARGETING_TYPE_CHANNEL 时,将填充此字段。

appCategoryDetails

object (AppCategoryAssignedTargetingOptionDetails)

应用类别详细信息。当 targetingTypeTARGETING_TYPE_APP_CATEGORY 时,将填充此字段。

appDetails

object (AppAssignedTargetingOptionDetails)

应用详情。当 targetingTypeTARGETING_TYPE_APP 时,将填充此字段。

urlDetails

object (UrlAssignedTargetingOptionDetails)

网址详情。当 targetingTypeTARGETING_TYPE_URL 时,将填充此字段。

dayAndTimeDetails

object (DayAndTimeAssignedTargetingOptionDetails)

日期和时间详情。当 targetingTypeTARGETING_TYPE_DAY_AND_TIME 时,将填充此字段。

ageRangeDetails

object (AgeRangeAssignedTargetingOptionDetails)

年龄段详细信息。当 targetingTypeTARGETING_TYPE_AGE_RANGE 时,将填充此字段。

regionalLocationListDetails

object (RegionalLocationListAssignedTargetingOptionDetails)

区域位置列表详情。当 targetingTypeTARGETING_TYPE_REGIONAL_LOCATION_LIST 时,将填充此字段。

proximityLocationListDetails

object (ProximityLocationListAssignedTargetingOptionDetails)

邻近位置列表的详细信息。当 targetingTypeTARGETING_TYPE_PROXIMITY_LOCATION_LIST 时,将填充此字段。

genderDetails

object (GenderAssignedTargetingOptionDetails)

性别详细信息。当 targetingTypeTARGETING_TYPE_GENDER 时,将填充此字段。

videoPlayerSizeDetails

object (VideoPlayerSizeAssignedTargetingOptionDetails)

视频播放器尺寸详情。当 targetingTypeTARGETING_TYPE_VIDEO_PLAYER_SIZE 时,将填充此字段。

userRewardedContentDetails

object (UserRewardedContentAssignedTargetingOptionDetails)

用户奖励内容的详细信息。当 targetingTypeTARGETING_TYPE_USER_REWARDED_CONTENT 时,将填充此字段。

parentalStatusDetails

object (ParentalStatusAssignedTargetingOptionDetails)

育儿状况详情。当 targetingTypeTARGETING_TYPE_PARENTAL_STATUS 时,将填充此字段。

contentInstreamPositionDetails

object (ContentInstreamPositionAssignedTargetingOptionDetails)

内容插播位置详细信息。当 targetingTypeTARGETING_TYPE_CONTENT_INSTREAM_POSITION 时,将填充此字段。

contentOutstreamPositionDetails

object (ContentOutstreamPositionAssignedTargetingOptionDetails)

内容外播位置详细信息。当 targetingTypeTARGETING_TYPE_CONTENT_OUTSTREAM_POSITION 时,将填充此字段。

deviceTypeDetails

object (DeviceTypeAssignedTargetingOptionDetails)

设备类型详细信息。当 targetingTypeTARGETING_TYPE_DEVICE_TYPE 时,将填充此字段。

audienceGroupDetails

object (AudienceGroupAssignedTargetingOptionDetails)

受众群体定位详情。当 targetingTypeTARGETING_TYPE_AUDIENCE_GROUP 时,将填充此字段。每项资源只能定位到一个目标对象群组选项。

browserDetails

object (BrowserAssignedTargetingOptionDetails)

浏览器详细信息。当 targetingTypeTARGETING_TYPE_BROWSER 时,将填充此字段。

householdIncomeDetails

object (HouseholdIncomeAssignedTargetingOptionDetails)

家庭收入详情。当 targetingTypeTARGETING_TYPE_HOUSEHOLD_INCOME 时,将填充此字段。

onScreenPositionDetails

object (OnScreenPositionAssignedTargetingOptionDetails)

屏幕上的位置详细信息。当 targetingTypeTARGETING_TYPE_ON_SCREEN_POSITION 时,将填充此字段。

carrierAndIspDetails

object (CarrierAndIspAssignedTargetingOptionDetails)

运营商和 ISP 详细信息。当 targetingTypeTARGETING_TYPE_CARRIER_AND_ISP 时,将填充此字段。

keywordDetails

object (KeywordAssignedTargetingOptionDetails)

关键字详细信息。当 targetingTypeTARGETING_TYPE_KEYWORD 时,将填充此字段。

每项资源最多可以分配 5000 个直接否定关键字。可指定的肯定关键字的数量没有限制。

negativeKeywordListDetails

object (NegativeKeywordListAssignedTargetingOptionDetails)

关键字详细信息。当 targetingTypeTARGETING_TYPE_NEGATIVE_KEYWORD_LIST 时,将填充此字段。

每项资源最多可以分配 4 个否定关键字列表。

operatingSystemDetails

object (OperatingSystemAssignedTargetingOptionDetails)

操作系统详细信息。当 targetingTypeTARGETING_TYPE_OPERATING_SYSTEM 时,将填充此字段。

deviceMakeModelDetails

object (DeviceMakeModelAssignedTargetingOptionDetails)

设备品牌和型号详情。当 targetingTypeTARGETING_TYPE_DEVICE_MAKE_MODEL 时,将填充此字段。

environmentDetails

object (EnvironmentAssignedTargetingOptionDetails)

环境详情。当 targetingTypeTARGETING_TYPE_ENVIRONMENT 时,将填充此字段。

inventorySourceDetails

object (InventorySourceAssignedTargetingOptionDetails)

广告资源来源详细信息。当 targetingTypeTARGETING_TYPE_INVENTORY_SOURCE 时,将填充此字段。

categoryDetails

object (CategoryAssignedTargetingOptionDetails)

类别详细信息。当 targetingTypeTARGETING_TYPE_CATEGORY 时,将填充此字段。

定位到某个类别会同时定位到其子类别。如果某个类别已从定位条件中排除,但其中包含某个子类别,系统会优先排除该类别。

viewabilityDetails

object (ViewabilityAssignedTargetingOptionDetails)

可见度详细信息。当 targetingTypeTARGETING_TYPE_VIEWABILITY 时,将填充此字段。

每个资源只能定位 1 个可见度选项。

authorizedSellerStatusDetails

object (AuthorizedSellerStatusAssignedTargetingOptionDetails)

授权卖方状态详情。当 targetingTypeTARGETING_TYPE_AUTHORIZED_SELLER_STATUS 时,将填充此字段。

每项资源只能定位 1 个授权卖方状态选项。

如果资源没有“授权卖方”状态选项,则默认情况下,系统会在 ads.txt 文件中注明为 DIRECT 或 RESELLER 的所有授权卖方进行定位。

languageDetails

object (LanguageAssignedTargetingOptionDetails)

语言详细信息。当 targetingTypeTARGETING_TYPE_LANGUAGE 时,将填充此字段。

geoRegionDetails

object (GeoRegionAssignedTargetingOptionDetails)

地理区域详情。当 targetingTypeTARGETING_TYPE_GEO_REGION 时,将填充此字段。

inventorySourceGroupDetails

object (InventorySourceGroupAssignedTargetingOptionDetails)

广告资源来源组详细信息。当 targetingTypeTARGETING_TYPE_INVENTORY_SOURCE_GROUP 时,将填充此字段。

digitalContentLabelExclusionDetails

object (DigitalContentLabelAssignedTargetingOptionDetails)

数字内容标签详情。当 targetingTypeTARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION 时,将填充此字段。

数字内容标签属于定位排除对象。广告客户级数字内容标签排除对象(如果已设置)将始终在投放时应用(即使它们在资源设置中不可见)。资源设置除了可以排除广告客户外,还可以排除内容标签,但不能覆盖它们。如果排除了某个订单项的所有数字内容标签,相应订单项将不会投放。

sensitiveCategoryExclusionDetails

object (SensitiveCategoryAssignedTargetingOptionDetails)

敏感类别详细信息。当 targetingTypeTARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION 时,将填充此字段。

敏感类别是指定位排除对象。广告客户级敏感类别排除对象(如果已设置)将始终在投放时应用(即使它们在资源设置中不可见)。资源设置除了可以排除广告客户外,还可以排除敏感类别,但无法覆盖这些类别。

exchangeDetails

object (ExchangeAssignedTargetingOptionDetails)

广告交易平台详细信息。当 targetingTypeTARGETING_TYPE_EXCHANGE 时,将填充此字段。

subExchangeDetails

object (SubExchangeAssignedTargetingOptionDetails)

子广告交易平台详细信息。当 targetingTypeTARGETING_TYPE_SUB_EXCHANGE 时,将填充此字段。

thirdPartyVerifierDetails

object (ThirdPartyVerifierAssignedTargetingOptionDetails)

第三方验证详情。当 targetingTypeTARGETING_TYPE_THIRD_PARTY_VERIFIER 时,将填充此字段。

poiDetails

object (PoiAssignedTargetingOptionDetails)

地图注点详情。当 targetingTypeTARGETING_TYPE_POI 时,将填充此字段。

businessChainDetails

object (BusinessChainAssignedTargetingOptionDetails)

连锁企业详细信息。当 targetingTypeTARGETING_TYPE_BUSINESS_CHAIN 时,将填充此字段。

contentDurationDetails

object (ContentDurationAssignedTargetingOptionDetails)

内容时长详细信息。当 targetingTypeTARGETING_TYPE_CONTENT_DURATION 时,将填充此字段。

contentStreamTypeDetails

object (ContentStreamTypeAssignedTargetingOptionDetails)

内容时长详细信息。当 TargetingType 为 TARGETING_TYPE_CONTENT_STREAM_TYPE 时,将填充此字段。

nativeContentPositionDetails

object (NativeContentPositionAssignedTargetingOptionDetails)

原生内容位置详细信息。当 targetingTypeTARGETING_TYPE_NATIVE_CONTENT_POSITION 时,将填充此字段。

omidDetails

object (OmidAssignedTargetingOptionDetails)

Open Measurement 启用了广告资源详情。当 targetingTypeTARGETING_TYPE_OMID 时,将填充此字段。

audioContentTypeDetails

object (AudioContentTypeAssignedTargetingOptionDetails)

音频内容类型详细信息。当 targetingTypeTARGETING_TYPE_AUDIO_CONTENT_TYPE 时,将填充此字段。

contentGenreDetails

object (ContentGenreAssignedTargetingOptionDetails)

内容类型详细信息。当 targetingTypeTARGETING_TYPE_CONTENT_GENRE 时,将填充此字段。

youtubeVideoDetails

object (YoutubeVideoAssignedTargetingOptionDetails)

YouTube 视频详细信息。当 targetingTypeTARGETING_TYPE_YOUTUBE_VIDEO 时,将填充此字段。

youtubeChannelDetails

object (YoutubeChannelAssignedTargetingOptionDetails)

YouTube 频道详细信息。当 targetingTypeTARGETING_TYPE_YOUTUBE_CHANNEL 时,将填充此字段。

sessionPositionDetails

object (SessionPositionAssignedTargetingOptionDetails)

会话位置详情。当 targetingTypeTARGETING_TYPE_SESSION_POSITION 时,将填充此字段。

方法

create

为广告客户分配定位选项。

delete

从广告客户中删除指定的定位选项。

get

获取分配给广告客户的单个定位选项。

list

列出分配给广告客户的定位选项。