重要: Play EMM API の新しい登録受け付けは終了しました。
詳細
Enterprises: setStoreLayout
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
企業の店舗レイアウトを設定します。デフォルトでは、storeLayoutType
「基本」に設定されている基本のストアレイアウトが
有効になっています基本
レイアウトに、管理者によって承認され、かつ
ユーザーが利用できる商品セットに追加された(
setAvailableProductSet 呼び出し)。ページに表示されるアプリは、
表示されます。カスタム ストア レイアウトを作成した場合(storeLayoutType = "custom" を設定してホームページを設定した場合)、基本的なストア レイアウトは無効になります。
リクエスト
HTTP リクエスト
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/storeLayout
パラメータ
パラメータ名 |
値 |
説明 |
パスパラメータ |
enterpriseId |
string |
企業の ID。
|
承認
このリクエストには、次のスコープによる認証が必要です。
スコープ |
https://www.googleapis.com/auth/androidenterprise |
詳細については、認証と認可のページをご覧ください。
リクエスト本文
リクエストの本文には、以下の構造を使用してデータを指定してください。
{
"kind": "androidenterprise#storeLayout",
"homepageId": string,
"storeLayoutType": string
}
プロパティ名 |
値 |
説明 |
メモ |
homepageId |
string |
ホームページとして使用するストアページの ID。このホームページは、managed Google Play ストアで最初に表示されるページです。
ホームページを指定しないと、ストアのレイアウト タイプを「basic(基本)」に設定した場合と同じ結果になります。 |
|
storeLayoutType |
string |
店舗レイアウト タイプ。デフォルトでは、この値は「basic」に設定されています。homeId フィールドが設定されていない場合は「custom」できません。「basic(基本)」に設定した場合、そのレイアウトはユーザーの許可リストに登録されているすべての承認済みアプリで構成されます。
有効な値は次のとおりです。
|
|
kind |
string |
|
|
レスポンス
成功すると、このメソッドは次の構造を含むレスポンスの本文を返します。
{
"kind": "androidenterprise#storeLayout",
"homepageId": string,
"storeLayoutType": string
}
プロパティ名 |
値 |
説明 |
メモ |
homepageId |
string |
ホームページとして使用するストアページの ID。このホームページは、managed Google Play ストアで最初に表示されるページです。
ホームページを指定しないと、ストアのレイアウト タイプを「basic(基本)」に設定した場合と同じ結果になります。 |
|
storeLayoutType |
string |
店舗レイアウト タイプ。デフォルトでは、この値は「basic」に設定されています。homeId フィールドが設定されていない場合は「custom」できません。「basic(基本)」に設定した場合、そのレイアウトはユーザーの許可リストに登録されているすべての承認済みアプリで構成されます。
有効な値は次のとおりです。
|
|
kind |
string |
|
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-12 UTC。
[null,null,["最終更新日 2024-09-12 UTC。"],[[["\u003cp\u003eDefines the enterprise's store layout, defaulting to "basic" which displays admin-approved and whitelisted apps sorted by product ID.\u003c/p\u003e\n"],["\u003cp\u003eSetting a custom homepage using \u003ccode\u003ehomepageId\u003c/code\u003e changes the \u003ccode\u003estoreLayoutType\u003c/code\u003e to "custom" and overrides the basic layout.\u003c/p\u003e\n"],["\u003cp\u003eThe API request requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003estoreLayoutType\u003c/code\u003e can be either "basic" or "custom", determining the store's layout structure.\u003c/p\u003e\n"]]],[],null,["# Enterprises: setStoreLayout\n\n| **Note:** Requires [authorization](#auth).\n\nSets the store layout for the enterprise. By default, storeLayoutType\nis set to \"basic\" and the basic store layout is enabled. The basic\nlayout only contains apps approved by the admin, and that have\nbeen added to the available product set for a user (using the\n[setAvailableProductSet](/android/work/play/emm-api/v1/users/setAvailableProductSet) call). Apps on the page are sorted in order of\ntheir product ID value. If you create a custom store layout (by setting\nstoreLayoutType = \"custom\" and setting a homepage), the basic store\nlayout is disabled.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/storeLayout\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|---------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\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 \"kind\": \"androidenterprise#storeLayout\",\n \"homepageId\": string,\n \"storeLayoutType\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|-------------------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `homepageId` | `string` | The ID of the store page to be used as the homepage. The homepage is the first page shown in the managed Google Play Store. Not specifying a homepage is equivalent to setting the store layout type to \"basic\". | |\n| `storeLayoutType` | `string` | The store layout type. By default, this value is set to \"basic\" if the homepageId field is not set, and to \"custom\" otherwise. If set to \"basic\", the layout will consist of all approved apps that have been whitelisted for the user. \u003cbr /\u003e Acceptable values are: - \"`basic`\" - \"`custom`\" | |\n| `kind` | `string` | | |\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"kind\": \"androidenterprise#storeLayout\",\n \"homepageId\": string,\n \"storeLayoutType\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|-------------------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `homepageId` | `string` | The ID of the store page to be used as the homepage. The homepage is the first page shown in the managed Google Play Store. Not specifying a homepage is equivalent to setting the store layout type to \"basic\". | |\n| `storeLayoutType` | `string` | The store layout type. By default, this value is set to \"basic\" if the homepageId field is not set, and to \"custom\" otherwise. If set to \"basic\", the layout will consist of all approved apps that have been whitelisted for the user. \u003cbr /\u003e Acceptable values are: - \"`basic`\" - \"`custom`\" | |\n| `kind` | `string` | | |"]]