Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Создает URL-адрес, который можно отобразить в iframe для отображения разрешений (если таковые имеются) продукта. Администратор предприятия должен просмотреть эти разрешения и принять их от имени своей организации, чтобы утвердить этот продукт.
Администраторам следует принять отображаемые разрешения, взаимодействуя с отдельным элементом пользовательского интерфейса в консоли EMM, что, в свою очередь, должно инициировать использование этого URL-адреса в качестве свойства approvalUrlInfo.approvalUrl в вызове Products.approve для утверждения продукта. Этот URL-адрес можно использовать только для отображения разрешений на срок до 1 дня.
Запрос
HTTP-запрос
POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products/productId/generateApprovalUrl
Параметры
Имя параметра
Ценить
Описание
Параметры пути
enterpriseId
string
Идентификатор предприятия.
productId
string
Идентификатор продукта.
Необязательные параметры запроса
languageCode
string
Код языка BCP 47, используемый для имен и описаний разрешений в возвращаемом iframe, например «en-US».
Авторизация
Этот запрос требует авторизации со следующей областью действия:
Не предоставляйте тело запроса с помощью этого метода.
Ответ
В случае успеха этот метод возвращает тело ответа следующей структуры:
{
"url": string
}
Имя свойства
Ценить
Описание
Примечания
url
string
URL-адрес, который можно отобразить в iframe для отображения разрешений (если таковые имеются) продукта. Этот URL-адрес можно использовать для одобрения продукта только один раз и только в течение 24 часов с момента создания с помощью вызова Products.approve . Если продукт в настоящее время не одобрен и не имеет разрешений, этот URL-адрес будет указывать на пустую страницу. Если продукт в настоящее время одобрен, URL-адрес будет создан только в том случае, если для этого продукта были добавлены разрешения с момента его последнего утверждения, и на URL-адресе будут отображаться только те новые разрешения, которые еще не были приняты.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[[["\u003cp\u003eGenerates a URL for an iframe to display product permissions for enterprise admin approval, accessible until September 30, 2025.\u003c/p\u003e\n"],["\u003cp\u003eAdmins approve permissions through a separate UI element, triggering a \u003ccode\u003eProducts.approve\u003c/code\u003e call with the generated URL.\u003c/p\u003e\n"],["\u003cp\u003eThe URL is valid for 24 hours and displays only new permissions added since the last approval.\u003c/p\u003e\n"],["\u003cp\u003eThis method is deprecated, 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"]]],[],null,["# Products: generateApprovalUrl\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.**\nGenerates 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. \n\nAdmins 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.\n\n\u003cbr /\u003e\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products/productId/generateApprovalUrl\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| **Optional query parameters** |||\n| `languageCode` | `string` | The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance \"en-US\". |\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\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"url\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `url` | `string` | A URL that can be rendered in an iframe to display the permissions (if any) of a product. This URL can be used to approve the product only once and only within 24 hours of being generated, using the `Products.approve` call. If the product is currently unapproved and has no permissions, this URL will point to an empty page. If the product is currently approved, a URL will only be generated if that product has added permissions since it was last approved, and the URL will only display those new permissions that have not yet been accepted. | |"]]