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.



963
964
965
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 963

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

Instance Attribute Details

#typeString

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

Returns:

  • (String)


956
957
958
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 956

def type
  @type
end

#urlString

The URL string value. Corresponds to the JSON property url

Returns:

  • (String)


961
962
963
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 961

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



968
969
970
971
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 968

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