AI-generated Key Takeaways
-
AdSenseLink establishes a connection between a Google Analytics 4 (GA4) property and an AdSense for Content ad client.
-
This connection is represented in JSON format and includes crucial fields like
name
(a unique identifier) andadClientCode
(the AdSense ad client code). -
You can manage these connections through various methods, including creating, deleting, retrieving, and listing AdSenseLinks associated with a GA4 property.
Resource: AdSenseLink
A link between a Google Analytics property and an AdSense for Content ad client.
JSON representation |
---|
{ "name": string, "adClientCode": string } |
Fields | |
---|---|
name |
Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789 |
adClientCode |
Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: "ca-pub-1234567890" |
Methods |
|
---|---|
|
Creates an AdSenseLink. |
|
Deletes an AdSenseLink. |
|
Looks up a single AdSenseLink. |
|
Lists AdSenseLinks on a property. |