ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
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
|
customerId |
string
เปลี่ยนแปลงไม่ได้ Google Ads
|
canManageClients |
boolean
เอาต์พุตเท่านั้น หากเป็นเช่นนั้น ลิงก์นี้จะเป็นของบัญชีดูแลจัดการ Google Ads
|
adsPersonalizationEnabled |
boolean
เปิดใช้ฟีเจอร์โฆษณาที่ปรับเปลี่ยนในแบบของคุณในการผสานรวมนี้ เผยแพร่รายการกลุ่มเป้าหมาย Google Analytics และเหตุการณ์/พารามิเตอร์รีมาร์เก็ตติ้งของ Google Analytics โดยอัตโนมัติไปยังบัญชี Google Ads ที่ลิงก์ หากไม่ได้ตั้งค่าช่องนี้ในการสร้าง/อัปเดต ระบบจะตั้งค่าเริ่มต้นเป็น "จริง"
|
createTime |
string (Timestamp format)
เอาต์พุตเท่านั้น เวลาที่สร้างลิงก์นี้ในตอนแรก ใช้ RFC 3339 ซึ่งเอาต์พุตที่สร้างขึ้นจะเป็นรูปแบบ Z-normalized เสมอ และใช้ตัวเลขทศนิยม 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-normalized เสมอ และใช้ตัวเลขทศนิยม 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 ในพร็อพเพอร์ตี้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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 |"]]