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

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.



11788
11789
11790
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11788

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

Instance Attribute Details

#description1String

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

Returns:

  • (String)


11766
11767
11768
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11766

def description1
  @description1
end

#description2String

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

Returns:

  • (String)


11771
11772
11773
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11771

def description2
  @description2
end

#headlineString

The headline of ad. Corresponds to the JSON property headline

Returns:

  • (String)


11776
11777
11778
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11776

def headline
  @headline
end

#thumbnailString

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

Returns:

  • (String)


11781
11782
11783
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11781

def thumbnail
  @thumbnail
end

#videoGoogle::Apis::DisplayvideoV2::YoutubeVideoDetails

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



11786
11787
11788
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11786

def video
  @video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11793
11794
11795
11796
11797
11798
11799
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11793

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