Products: approveStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
This method is deprecated and will no longer be accessible after September 30, 2025, with new integrations advised to use alternative recommendations.
The method is used to approve a specified product and its relevant app permissions, with a maximum of 1,000 products allowed per enterprise customer.
The request requires authorization with thehttps://www.googleapis.com/auth/androidenterprisescope and uses enterpriseId and productId as path parameters.
The request body includesapprovalUrlInfo, which contains the URL shown to the user for permissions, andapprovedPermissions, which determines how new permission requests are handled, with options for "allPermissions" or "currentPermissionsOnly".
Approves the specified product and the relevant app permissions, if any.
The maximum number of products that you can approve per enterprise customer
is 1,000.
To learn how to use managed Google Play to design and create a store
layout to display approved products to your users,
seeStore Layout Design.
Request
HTTP request
POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products/productId/approve
Parameters
Parameter name
Value
Description
Path parameters
enterpriseId
string
The ID of the enterprise.
productId
string
The ID of the product.
Authorization
This request requires authorization with the following scope:
The approval URL that was shown to the user. Only the permissions shown to the user with that URL will be accepted, which may not be the product's entire set of permissions. For example, the URL may only display new permissions from an update after the product was approved, or not include new permissions if the product was updated since the URL was generated.
approvalUrlInfo.approvalUrl
string
A URL that displays a product's permissions and that can also be used to approve the product with theProducts.approvecall.
approvedPermissions
string
Sets how new permission requests for the product are handled. "allPermissions" automatically approves all current and future permissions for the product. "currentPermissionsOnly" approves the current set of permissions for the product, but any future permissions added through updates will require manual reapproval. If not specified, only the current set of permissions will be approved.
Acceptable values are:
"allPermissions"
"currentPermissionsOnly"
approvalUrlInfo.kind
string
Response
If successful, this method returns an empty response body.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[],[]]