REST Resource: advertisers.insertionOrders.targetingTypes.assignedTargetingOptions

资源:AssignedTargetingOption

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

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。有关分配的定位选项的详细信息。您只能填写“details”中的一项,且该项必须与 targeting_type 对应;details 只能是以下各项之一:
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 时,系统会填充此字段。

一个资源最多只能分配 5,000 个直接否定关键字。可分配的正例关键字数量不受限制。

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 时,系统会填充此字段。

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

authorizedSellerStatusDetails

object (AuthorizedSellerStatusAssignedTargetingOptionDetails)

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

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

如果资源没有授权卖方状态选项,则默认定位到 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

列出分配给广告订单的定位选项。