با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
در صورت وجود، محصول مشخص شده و مجوزهای برنامه مربوطه را تأیید می کند. حداکثر تعداد محصولاتی که می توانید به ازای هر مشتری سازمانی تأیید کنید 1000 است.
برای آشنایی با نحوه استفاده از Google Play مدیریت شده برای طراحی و ایجاد طرحبندی فروشگاه برای نمایش محصولات تأیید شده به کاربران، به طراحی چیدمان فروشگاه مراجعه کنید.
درخواست کنید
درخواست HTTP
POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products/productId/approve
نشانی اینترنتی تأییدی که به کاربر نشان داده شد. فقط مجوزهایی که با آن URL به کاربر نشان داده می شود پذیرفته می شود که ممکن است کل مجموعه مجوزهای محصول نباشد. برای مثال، نشانی وب ممکن است فقط مجوزهای جدید را از یک بهروزرسانی پس از تأیید محصول نشان دهد، یا اگر محصول از زمان ایجاد URL بهروزرسانی شده باشد، مجوزهای جدید را شامل نشود.
approvalUrlInfo. approvalUrl
string
نشانی اینترنتی که مجوزهای یک محصول را نشان میدهد و همچنین میتواند برای تأیید محصول با تماس Products.approve استفاده شود.
approvedPermissions
string
نحوه رسیدگی به درخواستهای مجوز جدید برای محصول را تنظیم میکند. "allPermissions" به طور خودکار تمام مجوزهای فعلی و آینده را برای محصول تأیید می کند. «currentPermissionsOnly» مجموعه مجوزهای فعلی را برای محصول تأیید میکند، اما هر مجوزی که در آینده از طریق بهروزرسانیها اضافه شود، به تأیید مجدد دستی نیاز دارد. اگر مشخص نشده باشد، فقط مجموعه مجوزهای فعلی تایید خواهد شد.
مقادیر قابل قبول عبارتند از:
" allPermissions "
« currentPermissionsOnly »
approvalUrlInfo. kind
string
پاسخ
در صورت موفقیت آمیز بودن، این روش یک بدنه پاسخ خالی را برمی گرداند.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eApproves a specified product and its app permissions for an enterprise customer, with a limit of 1,000 approved products per customer.\u003c/p\u003e\n"],["\u003cp\u003eThis method is deprecated and will be inaccessible after September 30, 2025; new integrations should refer to recommended alternatives.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can specify approval URL information and how new permission requests for the product are handled.\u003c/p\u003e\n"]]],[],null,["# Products: approve\n\n| **Note:** Requires [authorization](#auth).\n\n\u003cbr /\u003e\n\n| **Deprecated:** New integrations cannot use this method and can refer to our [new\n| recommendations](/android/work/deprecations#recommended_alternative). \n| **This method will no longer be accessible by\n| anyone after September 30, 2025.**\n\nApproves the specified product and the relevant app permissions, if any.\nThe maximum number of products that you can approve per enterprise customer\nis 1,000.\n\nTo learn how to use managed Google Play to design and create a store\nlayout to display approved products to your users,\nsee [Store Layout Design](/android/work/play/emm-api/store-layout).\n\n\u003cbr /\u003e\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products/productId/approve\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|---------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| `productId` | `string` | The ID of the product. |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nIn the request body, supply data with the following structure:\n\n```text\n{\n \"approvalUrlInfo\": {\n \"kind\": \"androidenterprise#approvalUrlInfo\",\n \"approvalUrl\": string\n },\n \"approvedPermissions\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|-------------------------------|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `approvalUrlInfo` | `nested object` | 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. | |\n| approvalUrlInfo.`approvalUrl` | `string` | A URL that displays a product's permissions and that can also be used to approve the product with the `Products.approve` call. | |\n| `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. \u003cbr /\u003e Acceptable values are: - \"`allPermissions`\" - \"`currentPermissionsOnly`\" | |\n| approvalUrlInfo.`kind` | `string` | | |\n\nResponse\n--------\n\nIf successful, this method returns an empty response body."]]