Class: Google::Apis::DisplayvideoV2::VideoDiscoveryAd

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

The details for video discovery ad.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoDiscoveryAd

Returns a new instance of VideoDiscoveryAd.



11554
11555
11556
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11554

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

Instance Attribute Details

#description1String

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

Returns:

  • (String)


11532
11533
11534
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11532

def description1
  @description1
end

#description2String

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

Returns:

  • (String)


11537
11538
11539
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11537

def description2
  @description2
end

#headlineString

The headline of the video discovery ad. Corresponds to the JSON property headline

Returns:

  • (String)


11542
11543
11544
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11542

def headline
  @headline
end

#thumbnailString

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

Returns:

  • (String)


11547
11548
11549
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11547

def thumbnail
  @thumbnail
end

#videoGoogle::Apis::DisplayvideoV2::YoutubeVideoDetails

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



11552
11553
11554
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11552

def video
  @video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11559
11560
11561
11562
11563
11564
11565
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11559

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