Class: Google::Apis::DisplayvideoV4::VideoDiscoveryAd

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

Details for a video discovery ad.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoDiscoveryAd

Returns a new instance of VideoDiscoveryAd.



15255
15256
15257
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15255

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

Instance Attribute Details

#description1String

First text line for the ad. Corresponds to the JSON property description1

Returns:

  • (String)


15233
15234
15235
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15233

def description1
  @description1
end

#description2String

Second text line for the ad. Corresponds to the JSON property description2

Returns:

  • (String)


15238
15239
15240
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15238

def description2
  @description2
end

#headlineString

The headline of ad. Corresponds to the JSON property headline

Returns:

  • (String)


15243
15244
15245
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15243

def headline
  @headline
end

#thumbnailString

Thumbnail image used in the ad. Corresponds to the JSON property thumbnail

Returns:

  • (String)


15248
15249
15250
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15248

def thumbnail
  @thumbnail
end

#videoGoogle::Apis::DisplayvideoV4::YoutubeVideoDetails

Details of a YouTube video. Corresponds to the JSON property video



15253
15254
15255
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15253

def video
  @video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15260
15261
15262
15263
15264
15265
15266
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15260

def update!(**args)
  @description1 = args[:description1] if args.key?(:description1)
  @description2 = args[:description2] if args.key?(:description2)
  @headline = args[:headline] if args.key?(:headline)
  @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
  @video = args[:video] if args.key?(:video)
end