Products
class Products extends Resource (View source)
The "products" collection of methods.
Typical usage is:
$androidenterpriseService = new Google\Service\AndroidEnterprise(...);
$products = $androidenterpriseService->products;
Methods
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, see Store Layout Design.
Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.
Retrieves details of a product for display to an enterprise admin.
Retrieves the schema that defines the configurable properties for this product. All products have a schema, but this schema may be empty if no managed configurations have been defined. This schema can be used to populate a UI that allows an admin to configure the product. To apply a managed configuration based on the schema obtained using this API, see Managed Configurations through Play. (products.getAppRestrictionsSchema)
Retrieves the Android app permissions required by this app.
Finds approved products that match a query, or all approved products if there is no query. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.
Unapproves the specified product (and the relevant app permissions, if any) Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (products.unapprove)
Details
approve(string $enterpriseId, string $productId, ProductsApproveRequest $postBody, array $optParams = [])
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, see Store Layout Design.
Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (products.approve)
ProductsGenerateApprovalUrlResponse
generateApprovalUrl(string $enterpriseId, string $productId, array $optParams = [])
Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.
Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (products.generateApprovalUrl)
Product
get(string $enterpriseId, string $productId, array $optParams = [])
Retrieves details of a product for display to an enterprise admin.
(products.get)
AppRestrictionsSchema
getAppRestrictionsSchema(string $enterpriseId, string $productId, array $optParams = [])
Retrieves the schema that defines the configurable properties for this product. All products have a schema, but this schema may be empty if no managed configurations have been defined. This schema can be used to populate a UI that allows an admin to configure the product. To apply a managed configuration based on the schema obtained using this API, see Managed Configurations through Play. (products.getAppRestrictionsSchema)
ProductPermissions
getPermissions(string $enterpriseId, string $productId, array $optParams = [])
Retrieves the Android app permissions required by this app.
(products.getPermissions)
ProductsListResponse
listProducts(string $enterpriseId, array $optParams = [])
Finds approved products that match a query, or all approved products if there is no query. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.
(products.listProducts)
unapprove(string $enterpriseId, string $productId, array $optParams = [])
Unapproves the specified product (and the relevant app permissions, if any) Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (products.unapprove)