Reference documentation and code samples for the Google Analytics Admin V1beta Client class GoogleAdsLink.
A link between a GA4 property and a Google Ads account.
Generated from protobuf message google.analytics.admin.v1beta.GoogleAdsLink
Namespace
Google \ Analytics \ Admin \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.
↳ customer_id
string
Immutable. Google Ads customer ID.
↳ can_manage_clients
bool
Output only. If true, this link is for a Google Ads manager account.
↳ ads_personalization_enabled
Google\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_time
↳ update_time
↳ creator_email_address
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.
getName
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.
string
setName
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.
var
string
$this
getCustomerId
Immutable. Google Ads customer ID.
string
setCustomerId
Immutable. Google Ads customer ID.
var
string
$this
getCanManageClients
Output only. If true, this link is for a Google Ads manager account.
bool
setCanManageClients
Output only. If true, this link is for a Google Ads manager account.
var
bool
$this
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.
hasAdsPersonalizationEnabled
clearAdsPersonalizationEnabled
getAdsPersonalizationEnabledValue
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.
bool|null
setAdsPersonalizationEnabled
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.
$this
setAdsPersonalizationEnabledValue
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.
var
bool|null
$this
getCreateTime
Output only. Time when this link was originally created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Time when this link was originally created.
$this
getUpdateTime
Output only. Time when this link was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Time when this link was last updated.
$this
getCreatorEmailAddress
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.
string
setCreatorEmailAddress
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.
var
string
$this