Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink

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

Overview

A link between an GA4 property and a Google Ads account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaGoogleAdsLink

Returns a new instance of GoogleAnalyticsAdminV1alphaGoogleAdsLink.



780
781
782
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 780

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

Instance Attribute Details

#ads_personalization_enabledBoolean Also known as: ads_personalization_enabled?

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

Returns:

  • (Boolean)


739
740
741
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 739

def ads_personalization_enabled
  @ads_personalization_enabled
end

#can_manage_clientsBoolean Also known as: can_manage_clients?

Output only. If true, this link is for a Google Ads manager account. Corresponds to the JSON property canManageClients

Returns:

  • (Boolean)


745
746
747
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 745

def can_manage_clients
  @can_manage_clients
end

#create_timeString

Output only. Time when this link was originally created. Corresponds to the JSON property createTime

Returns:

  • (String)


751
752
753
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 751

def create_time
  @create_time
end

#customer_idString

Immutable. Google Ads customer ID. Corresponds to the JSON property customerId

Returns:

  • (String)


756
757
758
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 756

def customer_id
  @customer_id
end

#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. Corresponds to the JSON property emailAddress

Returns:

  • (String)


762
763
764
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 762

def email_address
  @email_address
end

#nameString

Output only. Format: properties/propertyId/googleAdsLinks/googleAdsLinkId Note: googleAdsLinkId is not the Google Ads customer ID. Corresponds to the JSON property name

Returns:

  • (String)


768
769
770
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 768

def name
  @name
end

#parentString

Immutable. Format: properties/propertyId Corresponds to the JSON property parent

Returns:

  • (String)


773
774
775
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 773

def parent
  @parent
end

#update_timeString

Output only. Time when this link was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


778
779
780
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 778

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



785
786
787
788
789
790
791
792
793
794
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 785

def update!(**args)
  @ads_personalization_enabled = args[:ads_personalization_enabled] if args.key?(:ads_personalization_enabled)
  @can_manage_clients = args[:can_manage_clients] if args.key?(:can_manage_clients)
  @create_time = args[:create_time] if args.key?(:create_time)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @email_address = args[:email_address] if args.key?(:email_address)
  @name = args[:name] if args.key?(:name)
  @parent = args[:parent] if args.key?(:parent)
  @update_time = args[:update_time] if args.key?(:update_time)
end