Class: Google::Apis::MarketingplatformadminV1alpha::AnalyticsAccountLink

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/marketingplatformadmin_v1alpha/classes.rb,
lib/google/apis/marketingplatformadmin_v1alpha/representations.rb,
lib/google/apis/marketingplatformadmin_v1alpha/representations.rb

Overview

A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnalyticsAccountLink

Returns a new instance of AnalyticsAccountLink.



57
58
59
# File 'lib/google/apis/marketingplatformadmin_v1alpha/classes.rb', line 57

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#analytics_accountString

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 Corresponds to the JSON property analyticsAccount

Returns:

  • (String)


36
37
38
# File 'lib/google/apis/marketingplatformadmin_v1alpha/classes.rb', line 36

def 
  @analytics_account
end

#display_nameString

Output only. The human-readable name for the Analytics account. Corresponds to the JSON property displayName

Returns:

  • (String)


41
42
43
# File 'lib/google/apis/marketingplatformadmin_v1alpha/classes.rb', line 41

def display_name
  @display_name
end

Output only. The verification state of the link between the Analytics account and the parent organization. Corresponds to the JSON property linkVerificationState

Returns:

  • (String)


47
48
49
# File 'lib/google/apis/marketingplatformadmin_v1alpha/classes.rb', line 47

def link_verification_state
  @link_verification_state
end

#nameString

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" Corresponds to the JSON property name

Returns:

  • (String)


55
56
57
# File 'lib/google/apis/marketingplatformadmin_v1alpha/classes.rb', line 55

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



62
63
64
65
66
67
# File 'lib/google/apis/marketingplatformadmin_v1alpha/classes.rb', line 62

def update!(**args)
  @analytics_account = args[:analytics_account] if args.key?(:analytics_account)
  @display_name = args[:display_name] if args.key?(:display_name)
  @link_verification_state = args[:link_verification_state] if args.key?(:link_verification_state)
  @name = args[:name] if args.key?(:name)
end