Close httplib2 connections.
create(packageName, allowUnknownDevices=None, body=None, x__xgafv=None)
Creates a new device tier config for an app.
get(packageName, deviceTierConfigId, x__xgafv=None)
Returns a particular device tier config.
list(packageName, pageSize=None, pageToken=None, x__xgafv=None)
Returns created device tier configs, ordered by descending creation time.
Retrieves the next page of results.
close()
Close httplib2 connections.
create(packageName, allowUnknownDevices=None, body=None, x__xgafv=None)
Creates a new device tier config for an app. Args: packageName: string, Package name of the app. (required) body: object, The request body. The object takes the form of: { # Configuration describing device targeting criteria for the content of an app. "deviceGroups": [ # Definition of device groups for the app. { # 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). "deviceSelectors": [ # Device selectors for this group. A device matching any of the selectors is included in this group. { # 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 "deviceRam": { # Conditions about a device's RAM capabilities. # Conditions on the device's RAM. "maxBytes": "A String", # Maximum RAM in bytes (bound excluded). "minBytes": "A String", # Minimum RAM in bytes (bound included). }, "excludedDeviceIds": [ # Device models excluded by this selector, even if they match all other conditions. { # Identifier of a device. "buildBrand": "A String", # Value of Build.BRAND. "buildDevice": "A String", # Value of Build.DEVICE. }, ], "forbiddenSystemFeatures": [ # A device that has any of these system features is excluded by this selector, even if it matches all other conditions. { # Representation of a system feature. "name": "A String", # The name of the feature. }, ], "includedDeviceIds": [ # Device models included by this selector. { # Identifier of a device. "buildBrand": "A String", # Value of Build.BRAND. "buildDevice": "A String", # Value of Build.DEVICE. }, ], "requiredSystemFeatures": [ # A device needs to have all these system features to be included by the selector. { # Representation of a system feature. "name": "A String", # The name of the feature. }, ], "systemOnChips": [ # Optional. The SoCs included by this selector. Only works for Android S+ devices. { # Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices. "manufacturer": "A String", # 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": "A String", # 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. }, ], }, ], "name": "A String", # The name of the group. }, ], "deviceTierConfigId": "A String", # Output only. The device tier config ID. "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. # Definition of the set of device tiers for the app. "deviceTiers": [ # Device tiers belonging to the set. { # A single device tier. Devices matching any of the device groups in device_group_names are considered to match the tier. "deviceGroupNames": [ # Groups of devices included in this tier. These groups must be defined explicitly under device_groups in this configuration. "A String", ], "level": 42, # 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. }, ], }, "userCountrySets": [ # Definition of user country sets for the app. { # A set of user countries. A country set determines what variation of app content gets served to a specific location. "countryCodes": [ # 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. "A String", ], "name": "A String", # Country set name. }, ], } allowUnknownDevices: boolean, Whether the service should accept device IDs that are unknown to Play's device catalog. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Configuration describing device targeting criteria for the content of an app. "deviceGroups": [ # Definition of device groups for the app. { # 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). "deviceSelectors": [ # Device selectors for this group. A device matching any of the selectors is included in this group. { # 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 "deviceRam": { # Conditions about a device's RAM capabilities. # Conditions on the device's RAM. "maxBytes": "A String", # Maximum RAM in bytes (bound excluded). "minBytes": "A String", # Minimum RAM in bytes (bound included). }, "excludedDeviceIds": [ # Device models excluded by this selector, even if they match all other conditions. { # Identifier of a device. "buildBrand": "A String", # Value of Build.BRAND. "buildDevice": "A String", # Value of Build.DEVICE. }, ], "forbiddenSystemFeatures": [ # A device that has any of these system features is excluded by this selector, even if it matches all other conditions. { # Representation of a system feature. "name": "A String", # The name of the feature. }, ], "includedDeviceIds": [ # Device models included by this selector. { # Identifier of a device. "buildBrand": "A String", # Value of Build.BRAND. "buildDevice": "A String", # Value of Build.DEVICE. }, ], "requiredSystemFeatures": [ # A device needs to have all these system features to be included by the selector. { # Representation of a system feature. "name": "A String", # The name of the feature. }, ], "systemOnChips": [ # Optional. The SoCs included by this selector. Only works for Android S+ devices. { # Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices. "manufacturer": "A String", # 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": "A String", # 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. }, ], }, ], "name": "A String", # The name of the group. }, ], "deviceTierConfigId": "A String", # Output only. The device tier config ID. "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. # Definition of the set of device tiers for the app. "deviceTiers": [ # Device tiers belonging to the set. { # A single device tier. Devices matching any of the device groups in device_group_names are considered to match the tier. "deviceGroupNames": [ # Groups of devices included in this tier. These groups must be defined explicitly under device_groups in this configuration. "A String", ], "level": 42, # 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. }, ], }, "userCountrySets": [ # Definition of user country sets for the app. { # A set of user countries. A country set determines what variation of app content gets served to a specific location. "countryCodes": [ # 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. "A String", ], "name": "A String", # Country set name. }, ], }
get(packageName, deviceTierConfigId, x__xgafv=None)
Returns a particular device tier config. Args: packageName: string, Package name of the app. (required) deviceTierConfigId: string, Required. Id of an existing device tier config. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Configuration describing device targeting criteria for the content of an app. "deviceGroups": [ # Definition of device groups for the app. { # 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). "deviceSelectors": [ # Device selectors for this group. A device matching any of the selectors is included in this group. { # 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 "deviceRam": { # Conditions about a device's RAM capabilities. # Conditions on the device's RAM. "maxBytes": "A String", # Maximum RAM in bytes (bound excluded). "minBytes": "A String", # Minimum RAM in bytes (bound included). }, "excludedDeviceIds": [ # Device models excluded by this selector, even if they match all other conditions. { # Identifier of a device. "buildBrand": "A String", # Value of Build.BRAND. "buildDevice": "A String", # Value of Build.DEVICE. }, ], "forbiddenSystemFeatures": [ # A device that has any of these system features is excluded by this selector, even if it matches all other conditions. { # Representation of a system feature. "name": "A String", # The name of the feature. }, ], "includedDeviceIds": [ # Device models included by this selector. { # Identifier of a device. "buildBrand": "A String", # Value of Build.BRAND. "buildDevice": "A String", # Value of Build.DEVICE. }, ], "requiredSystemFeatures": [ # A device needs to have all these system features to be included by the selector. { # Representation of a system feature. "name": "A String", # The name of the feature. }, ], "systemOnChips": [ # Optional. The SoCs included by this selector. Only works for Android S+ devices. { # Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices. "manufacturer": "A String", # 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": "A String", # 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. }, ], }, ], "name": "A String", # The name of the group. }, ], "deviceTierConfigId": "A String", # Output only. The device tier config ID. "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. # Definition of the set of device tiers for the app. "deviceTiers": [ # Device tiers belonging to the set. { # A single device tier. Devices matching any of the device groups in device_group_names are considered to match the tier. "deviceGroupNames": [ # Groups of devices included in this tier. These groups must be defined explicitly under device_groups in this configuration. "A String", ], "level": 42, # 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. }, ], }, "userCountrySets": [ # Definition of user country sets for the app. { # A set of user countries. A country set determines what variation of app content gets served to a specific location. "countryCodes": [ # 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. "A String", ], "name": "A String", # Country set name. }, ], }
list(packageName, pageSize=None, pageToken=None, x__xgafv=None)
Returns created device tier configs, ordered by descending creation time. Args: packageName: string, Package name of the app. (required) pageSize: integer, The maximum number of device tier configs to return. The service may return fewer than this value. If unspecified, at most 10 device tier configs will be returned. The maximum value for this field is 100; values above 100 will be coerced to 100. Device tier configs will be ordered by descending creation time. pageToken: string, A page token, received from a previous `ListDeviceTierConfigs` call. Provide this to retrieve the subsequent page. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response listing existing device tier configs. "deviceTierConfigs": [ # Device tier configs created by the developer. { # Configuration describing device targeting criteria for the content of an app. "deviceGroups": [ # Definition of device groups for the app. { # 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). "deviceSelectors": [ # Device selectors for this group. A device matching any of the selectors is included in this group. { # 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 "deviceRam": { # Conditions about a device's RAM capabilities. # Conditions on the device's RAM. "maxBytes": "A String", # Maximum RAM in bytes (bound excluded). "minBytes": "A String", # Minimum RAM in bytes (bound included). }, "excludedDeviceIds": [ # Device models excluded by this selector, even if they match all other conditions. { # Identifier of a device. "buildBrand": "A String", # Value of Build.BRAND. "buildDevice": "A String", # Value of Build.DEVICE. }, ], "forbiddenSystemFeatures": [ # A device that has any of these system features is excluded by this selector, even if it matches all other conditions. { # Representation of a system feature. "name": "A String", # The name of the feature. }, ], "includedDeviceIds": [ # Device models included by this selector. { # Identifier of a device. "buildBrand": "A String", # Value of Build.BRAND. "buildDevice": "A String", # Value of Build.DEVICE. }, ], "requiredSystemFeatures": [ # A device needs to have all these system features to be included by the selector. { # Representation of a system feature. "name": "A String", # The name of the feature. }, ], "systemOnChips": [ # Optional. The SoCs included by this selector. Only works for Android S+ devices. { # Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices. "manufacturer": "A String", # 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": "A String", # 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. }, ], }, ], "name": "A String", # The name of the group. }, ], "deviceTierConfigId": "A String", # Output only. The device tier config ID. "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. # Definition of the set of device tiers for the app. "deviceTiers": [ # Device tiers belonging to the set. { # A single device tier. Devices matching any of the device groups in device_group_names are considered to match the tier. "deviceGroupNames": [ # Groups of devices included in this tier. These groups must be defined explicitly under device_groups in this configuration. "A String", ], "level": 42, # 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. }, ], }, "userCountrySets": [ # Definition of user country sets for the app. { # A set of user countries. A country set determines what variation of app content gets served to a specific location. "countryCodes": [ # 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. "A String", ], "name": "A String", # Country set name. }, ], }, ], "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.