Google Analytics Admin V1alpha Client - Class GoogleAdsLink (0.28.1)

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

A link between a Google Analytics property and a Google Ads account.

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

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.

↳ customer_idstring

Immutable. Google Ads customer ID.

↳ can_manage_clientsbool

Output only. If true, this link is for a Google Ads manager account.

↳ ads_personalization_enabledGoogle\Protobuf\BoolValue

Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.

↳ create_timeGoogle\Protobuf\Timestamp

Output only. Time when this link was originally created.

↳ update_timeGoogle\Protobuf\Timestamp

Output only. Time when this link was last updated.

↳ creator_email_addressstring

Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved.

Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.

Returns
TypeDescription
string

Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

Immutable. Google Ads customer ID.

Returns
TypeDescription
string

Immutable. Google Ads customer ID.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

Output only. If true, this link is for a Google Ads manager account.

Returns
TypeDescription
bool

Output only. If true, this link is for a Google Ads manager account.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

Enable personalized advertising features with this integration.

Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

Returns the unboxed value from getAdsPersonalizationEnabled()

Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.

Returns
TypeDescription
bool|null

Enable personalized advertising features with this integration.

Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.

Parameter
NameDescription
varGoogle\Protobuf\BoolValue
Returns
TypeDescription
$this

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.

Parameter
NameDescription
varbool|null
Returns
TypeDescription
$this

Output only. Time when this link was originally created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

Output only. Time when this link was originally created.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

Output only. Time when this link was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

Output only. Time when this link was last updated.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

Output only. Email address of the user that created the link.

An empty string will be returned if the email address can't be retrieved.

Returns
TypeDescription
string

Output only. Email address of the user that created the link.

An empty string will be returned if the email address can't be retrieved.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this