试用 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。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]