Coba server MCP untuk Google Analytics. Instal dari
GitHub, dan lihat
pengumuman untuk mengetahui detail selengkapnya.
REST Resource: properties.adSenseLinks
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Referensi: AdSenseLink
Penautan antara properti Google Analytics dan klien iklan AdSense untuk Konten.
Representasi JSON |
{
"name": string,
"adClientCode": string
} |
Kolom |
name |
string
Hanya output. Nama resource untuk resource Link AdSense ini. Format: properties/{propertyId}/adSenseLinks/{linkId} Contoh: properties/1234/adSenseLinks/6789
|
adClientCode |
string
Tidak dapat diubah. Kode klien iklan AdSense yang ditautkan ke properti Google Analytics. Contoh format: "ca-pub-1234567890"
|
Metode |
|
Membuat AdSenseLink. |
|
Menghapus AdSenseLink. |
|
Mencari satu AdSenseLink. |
|
Mencantumkan AdSenseLinks di properti. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]