Class: Google::Apis::DfareportingV3_1::ClickTag

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

Overview

Creative Click Tag.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ClickTag

Returns a new instance of ClickTag



2028
2029
2030
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 2028

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

Instance Attribute Details

#click_through_urlGoogle::Apis::DfareportingV3_1::CreativeClickThroughUrl

Click-through URL Corresponds to the JSON property clickThroughUrl



2012
2013
2014
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 2012

def click_through_url
  @click_through_url
end

#event_nameString

Advertiser event name associated with the click tag. This field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. Corresponds to the JSON property eventName

Returns:

  • (String)


2019
2020
2021
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 2019

def event_name
  @event_name
end

#nameString

Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY creative assets, this field must match the value of the creative asset's creativeAssetId.name field. Corresponds to the JSON property name

Returns:

  • (String)


2026
2027
2028
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 2026

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2033
2034
2035
2036
2037
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 2033

def update!(**args)
  @click_through_url = args[:click_through_url] if args.key?(:click_through_url)
  @event_name = args[:event_name] if args.key?(:event_name)
  @name = args[:name] if args.key?(:name)
end