ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
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
เปลี่ยนแปลงไม่ได้ รหัสลูกค้าโฆษณา AdSense ที่ลิงก์กับพร็อพเพอร์ตี้ Google Analytics รูปแบบตัวอย่าง: "ca-pub-1234567890"
|
เมธอด |
|
สร้าง AdSenseLink |
|
ลบ AdSenseLink |
|
ค้นหา AdSenseLink รายการเดียว |
|
แสดง AdSenseLinks ในพร็อพเพอร์ตี้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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. |"]]