Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConnectedSiteTag

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

Overview

Configuration for a specific Connected Site Tag.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaConnectedSiteTag

Returns a new instance of GoogleAnalyticsAdminV1alphaConnectedSiteTag.



2206
2207
2208
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2206

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

Instance Attribute Details

#display_nameString

Required. User-provided display name for the connected site tag. Must be less than 256 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


2198
2199
2200
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2198

def display_name
  @display_name
end

#tag_idString

Required. "Tag ID to forward events to. Also known as the Measurement ID, or the "G-ID" (For example: G-12345). Corresponds to the JSON property tagId

Returns:

  • (String)


2204
2205
2206
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2204

def tag_id
  @tag_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2211
2212
2213
2214
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2211

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