Google Analytics Admin V1alpha Client - Class AdSenseLink (0.17.0)

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
NameDescription
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
TypeDescription
string

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

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

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

Example format: "ca-pub-1234567890"

Returns
TypeDescription
string

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

Example format: "ca-pub-1234567890"

Parameter
NameDescription
var string
Returns
TypeDescription
$this