Required. Output only. The resource name for the icon in the formataccounts/{account_id}/icons/{icon_id}. Google generates theicon_idduring thecreateoperation. Use theicon_idto associate the icon with a brand using theaccounts.brandsAPI.
Output only. The approved icon's Google-hosted URI. Only applies to icons withAPPROVEDstate.
reference
string
Optional. Value for tracking the icon. It could be the primary key to your icon in your system, or the icon's filename. Google does not use this value.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["\u003cp\u003eThe Icon resource provides a way to manage partner icons for display.\u003c/p\u003e\n"],["\u003cp\u003eIcons must be in PNG format and go through a review process with states: NEW, APPROVED, or REJECTED.\u003c/p\u003e\n"],["\u003cp\u003eYou can upload icons, retrieve icon details, and list icons associated with your account.\u003c/p\u003e\n"],["\u003cp\u003eApproved icons can be linked to brands to customize your hotel listings.\u003c/p\u003e\n"],["\u003cp\u003eRejected icons will include disapproval reasons for correction.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.icons\n\n- [Resource: Icon](#Icon)\n - [JSON representation](#Icon.SCHEMA_REPRESENTATION)\n- [State](#State)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Icon\n--------------\n\nInformation about a partner's icon.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"imageData\": string, \"state\": enum (/hotels/hotel-prices/api-reference/rest/v3/accounts.icons#State), \"iconUri\": string, \"reference\": string, \"disapprovalReasons\": [ enum (/hotels/hotel-prices/api-reference/rest/v3/ImageDisapprovalReason) ] } ``` |\n\n| Fields ||\n|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Output only. The resource name for the icon in the format `accounts/{account_id}/icons/{icon_id}`. Google generates the `icon_id` during the `create` operation. Use the `icon_id` to associate the icon with a brand using the [accounts.brands](/hotels/hotel-prices/api-reference/rest/v3/accounts.brands#resource:-brand) API. |\n| `imageData` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` Required. Input only. The icon contents, which must be in PNG format, or convertible to PNG. A base64-encoded string. |\n| `state` | `enum (`[State](/hotels/hotel-prices/api-reference/rest/v3/accounts.icons#State)`)` Output only. The icon's current state. |\n| `iconUri` | `string` Output only. The approved icon's Google-hosted URI. Only applies to icons with `APPROVED` state. |\n| `reference` | `string` Optional. Value for tracking the icon. It could be the primary key to your icon in your system, or the icon's filename. Google does not use this value. |\n| `disapprovalReasons[]` | `enum (`[ImageDisapprovalReason](/hotels/hotel-prices/api-reference/rest/v3/ImageDisapprovalReason)`)` Output only. The icon's disapproval reason(s). Only applies to icons with `REJECTED` state. |\n\nState\n-----\n\nPossible icon states.\n\n| Enums ||\n|---------------------|----------------------------------------------------------------------------------------------|\n| `STATE_UNSPECIFIED` | Default value. |\n| `NEW` | Google has received the icon and is reviewing its contents. |\n| `APPROVED` | The icon is approved and is ready for public display. You can link APPROVED icons to brands. |\n| `REJECTED` | The icon is rejected. Google won't display this icon. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|\n| ### [create](/hotels/hotel-prices/api-reference/rest/v3/accounts.icons/create) | Uploads a new icon and starts its review process. |\n| ### [get](/hotels/hotel-prices/api-reference/rest/v3/accounts.icons/get) | Returns the `Icon` instance associated with an icon resource name specified in the request URI. |\n| ### [list](/hotels/hotel-prices/api-reference/rest/v3/accounts.icons/list) | Returns the `Icon`s for a partner account. |"]]