Reference documentation and code samples for the Google Ads Marketing Platform Admin V1alpha Client class AnalyticsAccountLink.
A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization.
Generated from protobuf message google.marketingplatform.admin.v1alpha.AnalyticsAccountLink
Namespace
Google \ Ads \ MarketingPlatform \ Admin \ V1alphaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. Resource name of this AnalyticsAccountLink. Note the resource ID is the same as the ID of the Analtyics account. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} Example: "organizations/xyz/analyticsAccountLinks/1234" |
↳ analytics_account |
string
Required. Immutable. The resource name of the AnalyticsAdmin API account. The account ID will be used as the ID of this AnalyticsAccountLink resource, which will become the final component of the resource name. Format: analyticsadmin.googleapis.com/accounts/{account_id} |
↳ display_name |
string
Output only. The human-readable name for the Analytics account. |
↳ link_verification_state |
int
Output only. The verification state of the link between the Analytics account and the parent organization. |
getName
Identifier. Resource name of this AnalyticsAccountLink. Note the resource ID is the same as the ID of the Analtyics account.
Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} Example: "organizations/xyz/analyticsAccountLinks/1234"
Returns | |
---|---|
Type | Description |
string |
setName
Identifier. Resource name of this AnalyticsAccountLink. Note the resource ID is the same as the ID of the Analtyics account.
Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} Example: "organizations/xyz/analyticsAccountLinks/1234"
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAnalyticsAccount
Required. Immutable. The resource name of the AnalyticsAdmin API account.
The account ID will be used as the ID of this AnalyticsAccountLink resource, which will become the final component of the resource name. Format: analyticsadmin.googleapis.com/accounts/{account_id}
Returns | |
---|---|
Type | Description |
string |
setAnalyticsAccount
Required. Immutable. The resource name of the AnalyticsAdmin API account.
The account ID will be used as the ID of this AnalyticsAccountLink resource, which will become the final component of the resource name. Format: analyticsadmin.googleapis.com/accounts/{account_id}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
Output only. The human-readable name for the Analytics account.
Returns | |
---|---|
Type | Description |
string |
setDisplayName
Output only. The human-readable name for the Analytics account.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLinkVerificationState
Output only. The verification state of the link between the Analytics account and the parent organization.
Returns | |
---|---|
Type | Description |
int |
setLinkVerificationState
Output only. The verification state of the link between the Analytics account and the parent organization.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |