Class: Google::Apis::DisplayvideoV4::AdUrl

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



1075
1076
1077
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1075

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

Instance Attribute Details

#typeString

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

Returns:

  • (String)


1068
1069
1070
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1068

def type
  @type
end

#urlString

The URL string value. Corresponds to the JSON property url

Returns:

  • (String)


1073
1074
1075
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1073

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1080
1081
1082
1083
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1080

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