試用 Google Analytics 的 MCP 伺服器。從
GitHub 安裝,詳情請參閱
公告。
REST Resource: properties.adSenseLinks
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:AdSenseLink
Google Analytics 資源與 AdSense 內容廣告客戶之間的連結。
JSON 表示法 |
{
"name": string,
"adClientCode": string
} |
欄位 |
name |
string
僅供輸出。這個 AdSense 連結資源的資源名稱。格式:properties/{propertyId}/adSenseLinks/{linkId} 範例:properties/1234/adSenseLinks/6789
|
adClientCode |
string
不可變動。Google Analytics 資源連結的 AdSense 廣告客戶代碼。範例格式:「ca-pub-1234567890」
|
方法 |
|
建立 AdSenseLink。 |
|
刪除 AdSenseLink。 |
|
查詢單一 AdSenseLink。 |
|
列出資源中的 AdSenseLinks。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eAdSenseLink establishes a connection between a Google Analytics 4 (GA4) property and an AdSense for Content ad client.\u003c/p\u003e\n"],["\u003cp\u003eThis connection is represented in JSON format and includes crucial fields like \u003ccode\u003ename\u003c/code\u003e (a unique identifier) and \u003ccode\u003eadClientCode\u003c/code\u003e (the AdSense ad client code).\u003c/p\u003e\n"],["\u003cp\u003eYou can manage these connections through various methods, including creating, deleting, retrieving, and listing AdSenseLinks associated with a GA4 property.\u003c/p\u003e\n"]]],["AdSenseLink establishes a connection between a Google Analytics property and an AdSense ad client. Its JSON representation includes a resource `name` and an `adClientCode`. Key actions include creating, deleting, retrieving (get), and listing AdSenseLinks. The `name` field is read-only and uses the format `properties/{propertyId}/adSenseLinks/{linkId}`, while `adClientCode` is immutable and in the format \"ca-pub-1234567890\".\n"],null,["# REST Resource: properties.adSenseLinks\n\n- [Resource: AdSenseLink](#AdSenseLink)\n - [JSON representation](#AdSenseLink.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AdSenseLink\n---------------------\n\nA link between a Google Analytics property and an AdSense for Content ad client.\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"name\": string, \"adClientCode\": string } ``` |\n\n| Fields ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789 |\n| `adClientCode` | `string` Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: \"ca-pub-1234567890\" |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------|-----------------------------------|\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.adSenseLinks/create) | Creates an AdSenseLink. |\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.adSenseLinks/delete) | Deletes an AdSenseLink. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.adSenseLinks/get) | Looks up a single AdSenseLink. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.adSenseLinks/list) | Lists AdSenseLinks on a property. |"]]