Class ProductsResource
The "products" collection of methods.
Inherited Members
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class ProductsResource
Constructors
ProductsResource(IClientService)
Constructs a new resource.
Declaration
public ProductsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Approve(ProductsApproveRequest, string, string)
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.
Declaration
public virtual ProductsResource.ApproveRequest Approve(ProductsApproveRequest body, string enterpriseId, string productId)
Parameters
Type | Name | Description |
---|---|---|
ProductsApproveRequest | body | The body of the request. |
string | enterpriseId | The ID of the enterprise. |
string | productId | The ID of the product. |
Returns
Type | Description |
---|---|
ProductsResource.ApproveRequest |
GenerateApprovalUrl(string, string)
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.
Declaration
public virtual ProductsResource.GenerateApprovalUrlRequest GenerateApprovalUrl(string enterpriseId, string productId)
Parameters
Type | Name | Description |
---|---|---|
string | enterpriseId | The ID of the enterprise. |
string | productId | The ID of the product. |
Returns
Type | Description |
---|---|
ProductsResource.GenerateApprovalUrlRequest |
Get(string, string)
Retrieves details of a product for display to an enterprise admin.
Declaration
public virtual ProductsResource.GetRequest Get(string enterpriseId, string productId)
Parameters
Type | Name | Description |
---|---|---|
string | enterpriseId | The ID of the enterprise. |
string | productId | The ID of the product, e.g. "app:com.google.android.gm". |
Returns
Type | Description |
---|---|
ProductsResource.GetRequest |
GetAppRestrictionsSchema(string, string)
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.
Declaration
public virtual ProductsResource.GetAppRestrictionsSchemaRequest GetAppRestrictionsSchema(string enterpriseId, string productId)
Parameters
Type | Name | Description |
---|---|---|
string | enterpriseId | The ID of the enterprise. |
string | productId | The ID of the product. |
Returns
Type | Description |
---|---|
ProductsResource.GetAppRestrictionsSchemaRequest |
GetPermissions(string, string)
Retrieves the Android app permissions required by this app.
Declaration
public virtual ProductsResource.GetPermissionsRequest GetPermissions(string enterpriseId, string productId)
Parameters
Type | Name | Description |
---|---|---|
string | enterpriseId | The ID of the enterprise. |
string | productId | The ID of the product. |
Returns
Type | Description |
---|---|
ProductsResource.GetPermissionsRequest |
List(string)
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.
Declaration
public virtual ProductsResource.ListRequest List(string enterpriseId)
Parameters
Type | Name | Description |
---|---|---|
string | enterpriseId | The ID of the enterprise. |
Returns
Type | Description |
---|---|
ProductsResource.ListRequest |
Unapprove(string, string)
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.
Declaration
public virtual ProductsResource.UnapproveRequest Unapprove(string enterpriseId, string productId)
Parameters
Type | Name | Description |
---|---|---|
string | enterpriseId | The ID of the enterprise. |
string | productId | The ID of the product. |
Returns
Type | Description |
---|---|
ProductsResource.UnapproveRequest |