- Resource: DeviceTierConfig
- DeviceGroup
- DeviceSelector
- DeviceRam
- DeviceId
- SystemFeature
- SystemOnChip
- DeviceTierSet
- DeviceTier
- UserCountrySet
- Methods
Resource: DeviceTierConfig
Configuration describing device targeting criteria for the content of an app.
JSON representation |
---|
{ "deviceTierConfigId": string, "deviceGroups": [ { object ( |
Fields | |
---|---|
device |
Output only. The device tier config ID. |
device |
Definition of device groups for the app. |
device |
Definition of the set of device tiers for the app. |
user |
Definition of user country sets for the app. |
DeviceGroup
A group of devices.
A group is defined by a set of device selectors. A device belongs to the group if it matches any selector (logical OR).
JSON representation |
---|
{
"name": string,
"deviceSelectors": [
{
object ( |
Fields | |
---|---|
name |
The name of the group. |
device |
Device selectors for this group. A device matching any of the selectors is included in this group. |
DeviceSelector
Selector for a device group. A selector consists of a set of conditions on the device that should all match (logical AND) to determine a device group eligibility.
For instance, if a selector specifies RAM conditions, device model inclusion and device model exclusion, a device is considered to match if: device matches RAM conditions AND device matches one of the included device models AND device doesn't match excluded device models
JSON representation |
---|
{ "deviceRam": { object ( |
Fields | |
---|---|
device |
Conditions on the device's RAM. |
included |
Device models included by this selector. |
excluded |
Device models excluded by this selector, even if they match all other conditions. |
required |
A device needs to have all these system features to be included by the selector. |
forbidden |
A device that has any of these system features is excluded by this selector, even if it matches all other conditions. |
system |
Optional. The SoCs included by this selector. Only works for Android S+ devices. |
DeviceRam
Conditions about a device's RAM capabilities.
JSON representation |
---|
{ "minBytes": string, "maxBytes": string } |
Fields | |
---|---|
min |
Minimum RAM in bytes (bound included). |
max |
Maximum RAM in bytes (bound excluded). |
DeviceId
Identifier of a device.
JSON representation |
---|
{ "buildBrand": string, "buildDevice": string } |
Fields | |
---|---|
build |
Value of Build.BRAND. |
build |
Value of Build.DEVICE. |
SystemFeature
Representation of a system feature.
JSON representation |
---|
{ "name": string } |
Fields | |
---|---|
name |
The name of the feature. |
SystemOnChip
Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices.
JSON representation |
---|
{ "manufacturer": string, "model": string } |
Fields | |
---|---|
manufacturer |
Required. The designer of the SoC, eg. "Google" Value of build property "ro.soc.manufacturer" https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER Required. |
model |
Required. The model of the SoC, eg. "Tensor" Value of build property "ro.soc.model" https://developer.android.com/reference/android/os/Build#SOC_MODEL Required. |
DeviceTierSet
A set of device tiers.
A tier set determines what variation of app content gets served to a specific device, for device-targeted content.
You should assign a priority level to each tier, which determines the ordering by which they are evaluated by Play. See the documentation of DeviceTier.level for more details.
JSON representation |
---|
{
"deviceTiers": [
{
object ( |
Fields | |
---|---|
device |
Device tiers belonging to the set. |
DeviceTier
A single device tier.
Devices matching any of the device groups in deviceGroupNames are considered to match the tier.
JSON representation |
---|
{ "deviceGroupNames": [ string ], "level": integer } |
Fields | |
---|---|
device |
Groups of devices included in this tier. These groups must be defined explicitly under deviceGroups in this configuration. |
level |
The priority level of the tier. Tiers are evaluated in descending order of level: the highest level tier has the highest priority. The highest tier matching a given device is selected for that device. You should use a contiguous range of levels for your tiers in a tier set; tier levels in a tier set must be unique. For instance, if your tier set has 4 tiers (including the global fallback), you should define tiers 1, 2 and 3 in this configuration. Note: tier 0 is implicitly defined as a global fallback and selected for devices that don't match any of the tiers explicitly defined here. You mustn't define level 0 explicitly in this configuration. |
UserCountrySet
A set of user countries.
A country set determines what variation of app content gets served to a specific location.
JSON representation |
---|
{ "name": string, "countryCodes": [ string ] } |
Fields | |
---|---|
name |
Country set name. |
country |
List of country codes representing countries. A Country code is represented in ISO 3166 alpha-2 format. For Example:- "IT" for Italy, "GE" for Georgia. |
Methods |
|
---|---|
|
Creates a new device tier config for an app. |
|
Returns a particular device tier config. |
|
Returns created device tier configs, ordered by descending creation time. |