Class: Google::Apis::DisplayvideoV3::VideoDiscoveryAd

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

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.



12424
12425
12426
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12424

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

Instance Attribute Details

#description1String

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

Returns:

  • (String)


12402
12403
12404
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12402

def description1
  @description1
end

#description2String

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

Returns:

  • (String)


12407
12408
12409
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12407

def description2
  @description2
end

#headlineString

The headline of ad. Corresponds to the JSON property headline

Returns:

  • (String)


12412
12413
12414
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12412

def headline
  @headline
end

#thumbnailString

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

Returns:

  • (String)


12417
12418
12419
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12417

def thumbnail
  @thumbnail
end

#videoGoogle::Apis::DisplayvideoV3::YoutubeVideoDetails

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



12422
12423
12424
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12422

def video
  @video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12429
12430
12431
12432
12433
12434
12435
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12429

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