Class: Google::Apis::DisplayvideoV2::AdUrl

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/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.



103
104
105
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 103

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

Instance Attribute Details

#typeString

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

Returns:

  • (String)


96
97
98
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 96

def type
  @type
end

#urlString

The URL string value. Corresponds to the JSON property url

Returns:

  • (String)


101
102
103
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 101

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



108
109
110
111
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 108

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