試用 Google Analytics 的 MCP 伺服器。從
GitHub 安裝,詳情請參閱
公告。
REST Resource: properties.googleAdsLinks
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:GoogleAdsLink
Google Analytics 資源和 Google Ads 帳戶之間的連結。
JSON 表示法 |
{
"name": string,
"customerId": string,
"canManageClients": boolean,
"adsPersonalizationEnabled": boolean,
"createTime": string,
"updateTime": string,
"creatorEmailAddress": string
} |
欄位 |
name |
string
僅供輸出。格式:properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} 注意:googleAdsLinkId 不是 Google Ads 客戶 ID。
|
customerId |
string
不可變動。Google Ads 客戶 ID。
|
canManageClients |
boolean
僅供輸出。如果為 true,則此連結適用於 Google Ads 管理員帳戶。
|
adsPersonalizationEnabled |
boolean
在這次整合中啟用個人化廣告功能。自動向已連結的 Google Ads 帳戶發布我的 Google Analytics 目標對象名單和 Google Analytics 再行銷事件/參數。如果在建立/更新時未設定這個欄位,系統會預設為 true。
|
createTime |
string (Timestamp format)
僅供輸出。這個連結的建立時間。 使用 RFC 3339,產生的輸出內容一律會經過 Z 規格化,並使用 0、3、6 或 9 小數位數。系統也接受「Z」以外的偏移值。例如:"2014-10-02T15:01:23Z" 、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30" 。
|
updateTime |
string (Timestamp format)
僅供輸出。上次更新此連結的時間。 使用 RFC 3339,產生的輸出內容一律會經過 Z 規格化,並使用 0、3、6 或 9 小數位數。系統也接受「Z」以外的偏移值。例如:"2014-10-02T15:01:23Z" 、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30" 。
|
creatorEmailAddress |
string
僅供輸出。建立連結的使用者電子郵件地址。如果無法擷取電子郵件地址,系統會傳回空字串。
|
方法 |
|
建立 GoogleAdsLink。 |
|
刪除資源上的 GoogleAdsLink |
|
列出房源的 GoogleAdsLinks。 |
|
更新資源的 GoogleAdsLink |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eGoogleAdsLink connects a Google Analytics 4 property with a Google Ads account, enabling personalized advertising and data sharing.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for creating, deleting, listing, and updating these links.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of a GoogleAdsLink include its name, Google Ads customer ID, manager account status, personalization settings, creation and update timestamps, and creator's email address.\u003c/p\u003e\n"],["\u003cp\u003eGoogleAdsLinks have a JSON representation detailing their properties and values, such as name, customerId, canManageClients, adsPersonalizationEnabled, and timestamps.\u003c/p\u003e\n"]]],["A GoogleAdsLink establishes a connection between a Google Analytics property and a Google Ads account. Key actions include creating, deleting, listing, and updating these links. The JSON representation includes the link's name, customer ID, management permissions, personalization settings, creation and update timestamps, and creator's email. Personalized advertising features can be enabled, automatically publishing Google Analytics audience lists and remarketing data to the linked Google Ads account. The system uses RFC 3339 timestamp formatting.\n"],null,["# REST Resource: properties.googleAdsLinks\n\n- [Resource: GoogleAdsLink](#GoogleAdsLink)\n - [JSON representation](#GoogleAdsLink.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: GoogleAdsLink\n-----------------------\n\nA link between a Google Analytics property and a Google Ads account.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"customerId\": string, \"canManageClients\": boolean, \"adsPersonalizationEnabled\": boolean, \"createTime\": string, \"updateTime\": string, \"creatorEmailAddress\": string } ``` |\n\n| Fields ||\n|-----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID. |\n| `customerId` | `string` Immutable. Google Ads customer ID. |\n| `canManageClients` | `boolean` Output only. If true, this link is for a Google Ads manager account. |\n| `adsPersonalizationEnabled` | `boolean` Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true. |\n| `createTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. Time when this link was originally created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n| `updateTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. Time when this link was last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n| `creatorEmailAddress` | `string` Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------------------------|---------------------------------------|\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.googleAdsLinks/create) | Creates a GoogleAdsLink. |\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.googleAdsLinks/delete) | Deletes a GoogleAdsLink on a property |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.googleAdsLinks/list) | Lists GoogleAdsLinks on a property. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.googleAdsLinks/patch) | Updates a GoogleAdsLink on a property |"]]