Class: Google::Apis::DisplayvideoV3::AdUrl

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

Overview

Additional URLs related to the ad, including beacons.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdUrl

Returns a new instance of AdUrl.



298
299
300
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 298

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

Instance Attribute Details

#typeString

The type of the Ad URL. Corresponds to the JSON property type

Returns:

  • (String)


291
292
293
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 291

def type
  @type
end

#urlString

The URL string value. Corresponds to the JSON property url

Returns:

  • (String)


296
297
298
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 296

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



303
304
305
306
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 303

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