Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonCustomParameter

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

Overview

A mapping that can be used by custom parameter tags in a tracking_url_template, final_urls, or mobile_final_urls.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonCustomParameter

Returns a new instance of GoogleAdsSearchads360V0CommonCustomParameter.



256
257
258
# File 'lib/google/apis/searchads360_v0/classes.rb', line 256

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

Instance Attribute Details

#keyString

The key matching the parameter tag name. Corresponds to the JSON property key

Returns:

  • (String)


249
250
251
# File 'lib/google/apis/searchads360_v0/classes.rb', line 249

def key
  @key
end

#valueString

The value to be substituted. Corresponds to the JSON property value

Returns:

  • (String)


254
255
256
# File 'lib/google/apis/searchads360_v0/classes.rb', line 254

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



261
262
263
264
# File 'lib/google/apis/searchads360_v0/classes.rb', line 261

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