Google Analytics Admin V1alpha Client - Class AdSenseLink (0.22.5)

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class AdSenseLink.

A link between a GA4 Property and an AdSense for Content ad client.

Generated from protobuf message google.analytics.admin.v1alpha.AdSenseLink

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789

↳ ad_client_code string

Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"

Output only. The resource name for this AdSense Link resource.

Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789

Returns
Type Description
string

Output only. The resource name for this AdSense Link resource.

Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789

Parameter
Name Description
var string
Returns
Type Description
$this

Immutable. The AdSense ad client code that the GA4 property is linked to.

Example format: "ca-pub-1234567890"

Returns
Type Description
string

Immutable. The AdSense ad client code that the GA4 property is linked to.

Example format: "ca-pub-1234567890"

Parameter
Name Description
var string
Returns
Type Description
$this