Google Ads 連結集合是一組 Google Ads 連結資源,每項資源都會說明 Google Ads 帳戶和網站資源之間的連結。
如需本資源的方法清單,請見本頁結尾。
資源表示法
Analytics (分析) 實體 Google Ads 連結的 JSON 範本。
{ "id": string, "kind": "analytics#entityAdWordsLink", "selfLink": string, "entity": { "webPropertyRef": { "id": string, "kind": "analytics#webPropertyRef", "href": string, "accountId": string, "internalWebPropertyId": string, "name": string } }, "adWordsAccounts": [ { "kind": "analytics#adWordsAccount", "customerId": string, "autoTaggingEnabled": boolean } ], "name": string, "profileIds": [ string ] }
資源名稱 | 值 | 說明 | 附註 |
---|---|---|---|
adWordsAccounts[] |
list |
Google Ads 客戶帳戶清單。這些帳戶不能是「我的客戶中心」帳戶。建立 Google Ads 連結時,這是必填欄位。不得留空。 | 可寫入 |
adWordsAccounts[].autoTaggingEnabled |
boolean |
如果 Google Ads 帳戶已啟用自動標記,則為 true。插入作業完成後為唯讀狀態。 | |
adWordsAccounts[].customerId |
string |
客戶 ID。建立 Google Ads 連結時,這是必填欄位。 | |
adWordsAccounts[].kind |
string |
Google Ads 帳戶的資源類型。 | |
entity |
object |
要連結的網站資源。 | |
entity.webPropertyRef |
nested object |
||
entity.webPropertyRef.accountId |
string |
此網站資源所屬的帳戶 ID。 | |
entity.webPropertyRef.href |
string |
這個網站資源的連結。 | |
entity.webPropertyRef.id |
string |
格式為 UA-XXXXX-YY 的網站資源 ID。 | |
entity.webPropertyRef.internalWebPropertyId |
string |
此網站資源的內部 ID。 | |
entity.webPropertyRef.kind |
string |
Analytics (分析) 網站資源參考資料。 | |
entity.webPropertyRef.name |
string |
此網站資源的名稱。 | |
id |
string |
實體 Google Ads 連結 ID | |
kind |
string |
實體 Google Ads 連結的資源類型。 | |
name |
string |
連結的名稱。建立 Google Ads 連結時,這是必填欄位。 | 可寫入 |
profileIds[] |
list |
已連結資料檢視 (設定檔) 的 ID,以字串表示。 | |
selfLink |
string |
這個 Google Analytics (分析) - Google Ads 連結的網址連結。 |