REST Resource: accounts.accountLinks
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:AccountLink
帳戶連結。代表 Google Ads 客戶與 Hotel Ads (Hotel Center) 帳戶之間的連結。帳戶連結會定義連結至 Google Ads 客戶的 Hotel Center 帳戶中的飯店組合。
欄位 |
name |
string
帳戶連結的資源名稱,格式為 accounts/{account_id}/accountLinks/{account_link_id} 。
|
googleAdsCustomerName |
string
CREATE 要求的必要欄位。代表 Google Ads 客戶 ID 的值,格式為 customers/{google_ads_customer_id} 。例如:customers/0123456789 。 請注意,GET 要求的相關回應不會傳回 googleAdsCustomerName 欄位。
|
status |
enum (AccountLinkStatus )
帳戶連結的目前狀態。
|
accountLinkTarget |
object (AccountLinkTarget )
CREATE 要求的必要欄位。可透過連結的 Google Ads 帳戶管理的 Hotel Center 帳戶中的房源。
|
AccountLinkStatus
列舉 |
ACCOUNT_LINK_STATUS_UNSPECIFIED |
預設值。 |
ACCOUNT_LINK_STATUS_UNKNOWN |
這個 API 版本無法辨識帳戶連結狀態。 |
REQUESTED_FROM_HOTEL_CENTER |
帳戶連結是透過 Hotel Center 啟動,但尚未在 Google Ads 中核准。 |
REQUESTED_FROM_GOOGLE_ADS |
帳戶連結是透過 Google Ads 啟動,但尚未在 Hotel Center 中核准。 |
APPROVED |
帳戶連結已獲准。 |
AccountLinkTarget
定義是否能透過已連結的 Google Ads 帳戶,管理 Hotel Center 帳戶中的所有房源或部分房源。如果是子集,則會指定特定屬性。
JSON 表示法 |
{
// Union field targets_oneof can be only one of the following:
"allHotels": boolean,
"hotelList": {
object (HotelList )
}
// End of list of possible types for union field targets_oneof .
} |
欄位 |
聯集欄位 targets_oneof 。Hotel Center 帳戶中的所有房源,或可供帳戶連結使用的房源清單。targets_oneof 只能是下列其中一項: |
allHotels |
boolean
如果 Hotel Center 帳戶下的所有房源都可供帳戶連結使用,則為 True。預設為 false 。
|
hotelList |
object (HotelList )
提供給帳戶連結的資源清單。
|
HotelList
可透過 Google Ads 帳戶管理的 Hotel Center 帳戶中的房源。
JSON 表示法 |
{
"partnerHotelIds": [
string
]
} |
欄位 |
partnerHotelIds[] |
string
飯店 ID。
|
方法 |
|
在 Hotel Center 帳戶和 Google Ads 帳戶之間建立新的帳戶連結。 |
|
刪除帳戶連結。 |
|
傳回與要求網址中指定的帳戶連結資源名稱相關聯的 AccountLink 執行個體。 |
|
傳回 Hotel Center 帳戶的帳戶連結。 |
|
更新帳戶連結的帳戶連結目標。 |
保留所有權利。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eAccountLink represents the connection between a Google Ads customer and a Hotel Ads (Hotel Center) account, defining the managed hotels.\u003c/p\u003e\n"],["\u003cp\u003eAccountLinkTarget specifies whether all or a subset of Hotel Center properties are managed by the linked Google Ads account.\u003c/p\u003e\n"],["\u003cp\u003eAccountLinkStatus indicates the current state of the link, such as requested, approved, or unknown.\u003c/p\u003e\n"],["\u003cp\u003eHotelList identifies the specific hotels within the Hotel Center account that are accessible through the account link.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can manage account links using methods like create, delete, get, list, and patch to control the Google Ads and Hotel Center connection.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.accountLinks\n\n- [Resource: AccountLink](#AccountLink)\n - [JSON representation](#AccountLink.SCHEMA_REPRESENTATION)\n- [AccountLinkStatus](#AccountLinkStatus)\n- [AccountLinkTarget](#AccountLinkTarget)\n - [JSON representation](#AccountLinkTarget.SCHEMA_REPRESENTATION)\n- [HotelList](#HotelList)\n - [JSON representation](#HotelList.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AccountLink\n---------------------\n\nAn account link. Represents the link between a Google Ads customer and a Hotel Ads (Hotel Center) account. An account link defines the set of hotels under the Hotel Center account that is linked to the Google Ads customer.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"googleAdsCustomerName\": string, \"status\": enum (/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks#AccountLinkStatus), \"accountLinkTarget\": { object (/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks#AccountLinkTarget) } } ``` |\n\n| Fields ||\n|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The resource name for the account link in the format `accounts/{account_id}/accountLinks/{account_link_id}`. |\n| `googleAdsCustomerName` | `string` Required for CREATE requests. The value representing the Google Ads customer ID in the format `customers/{google_ads_customer_id}`. For example: `customers/0123456789`. Note that the `googleAdsCustomerName` field is not returned in responses to GET requests. |\n| `status` | `enum (`[AccountLinkStatus](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks#AccountLinkStatus)`)` The current status of the account link. |\n| `accountLinkTarget` | `object (`[AccountLinkTarget](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks#AccountLinkTarget)`)` Required for CREATE requests. The properties in the Hotel Center account that can be managed using the linked Google Ads account. |\n\nAccountLinkStatus\n-----------------\n\nPossible current statuses of the account link. New values might be added in the future.\n\n| Enums ||\n|-----------------------------------|--------------------------------------------------------------------------------------------------|\n| `ACCOUNT_LINK_STATUS_UNSPECIFIED` | Default value. |\n| `ACCOUNT_LINK_STATUS_UNKNOWN` | The account link status is not recognized by this API version. |\n| `REQUESTED_FROM_HOTEL_CENTER` | The account link was initiated through Hotel Center and has not yet been approved in Google Ads. |\n| `REQUESTED_FROM_GOOGLE_ADS` | The account link was initiated through Google Ads and has not yet been approved in Hotel Center. |\n| `APPROVED` | The account link has been approved. |\n\nAccountLinkTarget\n-----------------\n\nDefines whether all properties or a subset of properties in the Hotel Center account can be managed with the linked Google Ads account. If a subset, the specific properties are specified.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `targets_oneof` can be only one of the following: \"allHotels\": boolean, \"hotelList\": { object (/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks#HotelList) } // End of list of possible types for union field `targets_oneof`. } ``` |\n\n| Fields ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `targets_oneof`. Either all properties or a list of properties under the Hotel Center account that is made available to the account link. `targets_oneof` can be only one of the following: ||\n| `allHotels` | `boolean` True if all properties under the Hotel Center account are made available to the account link. The default is `false`. |\n| `hotelList` | `object (`[HotelList](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks#HotelList)`)` List of properties that is made available to the account link. |\n\nHotelList\n---------\n\nThe properties in the Hotel Center account that can be managed with the Google Ads account.\n\n| JSON representation |\n|-------------------------------------------|\n| ``` { \"partnerHotelIds\": [ string ] } ``` |\n\n| Fields ||\n|---------------------|---------------------|\n| `partnerHotelIds[]` | `string` Hotel IDs. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| ### [create](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks/create) | Creates a new account link between a Hotel Center account and a Google Ads account. |\n| ### [delete](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks/delete) | Deletes an account link. |\n| ### [get](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks/get) | Returns the `AccountLink` instance associated with the account link resource name specified in the request URL. |\n| ### [list](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks/list) | Returns the account links for a Hotel Center account. |\n| ### [patch](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks/patch) | Updates the account link target of an account link. |"]]