REST Resource: partners.adsAccountLinks
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:AdsAccountLink
AdsAccountLink 是 Google Ads 帳戶和合作夥伴中心帳戶之間的連結,以及廣告空間項目。
JSON 表示法 |
{
"name": string,
"itemIds": [
string
],
"state": enum (State )
} |
欄位 |
name |
string
ID。AdsAccountLink 的資源名稱。格式:partners/{partner}/adsAccountLinks/{adsAccountLink}
|
itemIds[] |
string
必要欄位。要與 Google Ads 帳戶連結的商品目錄商品 ID 清單。
|
state |
enum (State )
僅供輸出。Google Ads 帳戶連結狀態。
|
州
列舉 |
STATE_UNSPECIFIED |
狀態不明。 |
LINKED |
帳戶已連結至合作夥伴中心和 Google Ads 中心。 |
PENDING |
帳戶正在等待透過合作夥伴中心或廣告入口網站取得核准。 |
DELETED |
帳戶連結已刪除。 |
REJECTED |
帳戶連結要求遭到合作夥伴中心或 Google Ads 入口網站拒絕。 |
方法 |
|
建立 Google Ads 帳戶連結。 |
|
刪除 Google Ads 帳戶連結。 |
|
取得 Google Ads 帳戶連結。 |
|
將 Google Ads 帳戶連結更新為商品目錄項目。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-24 (世界標準時間)。
[null,null,["上次更新時間:2025-07-24 (世界標準時間)。"],[[["\u003cp\u003eAdsAccountLink connects an Ads account with a Partner Center account, including inventory items.\u003c/p\u003e\n"],["\u003cp\u003eIt includes essential fields like name, inventory item IDs, and the link's current state.\u003c/p\u003e\n"],["\u003cp\u003eThe state of the link can be linked, pending, deleted, or rejected, reflecting its status.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage AdsAccountLinks by creating, deleting, retrieving, and updating them via API methods.\u003c/p\u003e\n"],["\u003cp\u003eThe AdsAccountLink resource uses a JSON representation for data exchange.\u003c/p\u003e\n"]]],[],null,["# REST Resource: partners.adsAccountLinks\n\n- [Resource: AdsAccountLink](#AdsAccountLink)\n - [JSON representation](#AdsAccountLink.SCHEMA_REPRESENTATION)\n- [State](#State)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AdsAccountLink\n------------------------\n\nAdsAccountLink is a link between an Ads account and a Partner Center account along with the inventory items.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"itemIds\": [ string ], \"state\": enum (/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks#State) } ``` |\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. Resource name of the AdsAccountLink. Format: `partners/{partner}/adsAccountLinks/{adsAccountLink}` |\n| `item``Ids[]` | `string` Required. List of inventory item Ids to be linked with the Google Ads account. |\n| `state` | `enum (`[State](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks#State)`)` Output only. State of the Ads account link. |\n\nState\n-----\n\nState of the Ads account link.\n\n| Enums ||\n|---------------------|----------------------------------------------------------------------------------|\n| `STATE_UNSPECIFIED` | Unknown state. |\n| `LINKED` | Account is linked between the Partner Center and the Ads Portal. |\n| `PENDING` | Account is waiting for approval on either the Partner Center or the Ads Portal. |\n| `DELETED` | Account link is deleted. |\n| `REJECTED` | Account link request is rejected by either the Partner Center or the Ads Portal. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------|\n| ### [create](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks/create) | Creates Ads account link. |\n| ### [delete](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks/delete) | Deletes Ads account link. |\n| ### [get](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks/get) | Gets Ads account link. |\n| ### [patch](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks/patch) | Updates Ads account link with inventory items. |"]]