REST Resource: applications.deviceTierConfigs

资源:DeviceTierConfig

描述应用内容的设备定位条件的配置。

JSON 表示法
{
  "deviceTierConfigId": string,
  "deviceGroups": [
    {
      object (DeviceGroup)
    }
  ],
  "deviceTierSet": {
    object (DeviceTierSet)
  },
  "userCountrySets": [
    {
      object (UserCountrySet)
    }
  ]
}
字段
deviceTierConfigId

string (int64 format)

仅供输出。设备层级配置 ID。

deviceGroups[]

object (DeviceGroup)

应用的设备组定义。

deviceTierSet

object (DeviceTierSet)

应用的设备层级定义。

userCountrySets[]

object (UserCountrySet)

应用的用户国家/地区组合定义。

DeviceGroup

一组设备。

一个组由一组设备选择器定义。如果设备与任何选择器(逻辑“或”)匹配,则属于该设备。

JSON 表示法
{
  "name": string,
  "deviceSelectors": [
    {
      object (DeviceSelector)
    }
  ]
}
字段
name

string

群组的名称。

deviceSelectors[]

object (DeviceSelector)

此群组的设备选择器。与任一选择器匹配的设备都会包含在此组中。

DeviceSelector

设备组的选择器。选择器由设备上的一组条件组成,这些条件应全部匹配(逻辑 AND),以确定设备组的资格。

例如,如果选择器指定了 RAM 条件、包含设备型号和设备型号排除,则设备在以下条件下被视为匹配:设备符合 RAM 条件且设备与包含的某个设备型号并且设备不匹配排除的设备型号

JSON 表示法
{
  "deviceRam": {
    object (DeviceRam)
  },
  "includedDeviceIds": [
    {
      object (DeviceId)
    }
  ],
  "excludedDeviceIds": [
    {
      object (DeviceId)
    }
  ],
  "requiredSystemFeatures": [
    {
      object (SystemFeature)
    }
  ],
  "forbiddenSystemFeatures": [
    {
      object (SystemFeature)
    }
  ]
}
字段
deviceRam

object (DeviceRam)

设备 RAM 条件。

includedDeviceIds[]

object (DeviceId)

此选择器包含的设备型号。

excludedDeviceIds[]

object (DeviceId)

此选择器排除的设备型号,即使它们符合所有其他条件。

requiredSystemFeatures[]

object (SystemFeature)

设备需要具备所有这些系统功能,才能包含在选择器中。

forbiddenSystemFeatures[]

object (SystemFeature)

具有上述任意系统功能的设备会被此选择器排除,即使它符合所有其他条件也是如此。

DeviceRam

有关设备的 RAM 功能的条件。

JSON 表示法
{
  "minBytes": string,
  "maxBytes": string
}
字段
minBytes

string (int64 format)

RAM 下限,以字节为单位(包括上限)。

maxBytes

string (int64 format)

最大 RAM,以字节为单位(已排除边界)。

DeviceId

设备的标识符。

JSON 表示法
{
  "buildBrand": string,
  "buildDevice": string
}
字段
buildBrand

string

Build.BRAND 的值。

buildDevice

string

Build.DEVICE 的值。

SystemFeature

系统功能的表示。

JSON 表示法
{
  "name": string
}
字段
name

string

地图项的名称。

DeviceTierSet

一组设备层级。

层级组合决定了对于设备定位内容,系统会向特定设备提供哪些应用内容变体。

您应为每个层级分配一个优先级,该优先级决定了 Play 评估这些层级的顺序。如需了解详情,请参阅 DeviceTier.level 的文档。

JSON 表示法
{
  "deviceTiers": [
    {
      object (DeviceTier)
    }
  ]
}
字段
deviceTiers[]

object (DeviceTier)

属于该集的设备层级。

DeviceTier

单个设备层级。

与 deviceGroupNames 中的任何设备组匹配的设备均被视为与层级匹配。

JSON 表示法
{
  "deviceGroupNames": [
    string
  ],
  "level": integer
}
字段
deviceGroupNames[]

string

此层级包含的设备组。在此配置中的 deviceGroup 下,必须明确定义这些群组。

level

integer

层级的优先级。

层级按层级降序排列:最高层级层级具有最高优先级。系统会为给定设备选择与给定设备匹配的最高层级。

您应为层级集中的层级使用连续的层级范围;层级集中的层级层级必须是独一无二的。例如,如果您的层级组合包含 4 个层级(包括全局后备层级),则应在此配置中定义层级 1、2 和 3。

注意:层级 0 隐式定义为全局后备,与此处明确定义的任何层级均不匹配。您不得在此配置中明确定义级别 0。

UserCountrySet

一组用户所在的国家/地区。

国家/地区组合决定了向特定地理位置投放哪些应用内容变体。

JSON 表示法
{
  "name": string,
  "countryCodes": [
    string
  ]
}
字段
name

string

国家/地区组合名称。

countryCodes[]

string

表示国家/地区的国家/地区代码的列表。国家/地区代码以 ISO 3166 alpha-2 格式表示。例如:"IT" 代表意大利,"GE" 代表格鲁吉亚。

方法

create

为应用创建新的设备层级配置。

get

返回特定的设备层级配置。

list

返回已创建的设备层级配置,并按创建时间降序排列。