Class: Google::Apis::DisplayvideoV2::YoutubeAdGroupAd

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

A single ad associated with a YouTube ad group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YoutubeAdGroupAd

Returns a new instance of YoutubeAdGroupAd.



11957
11958
11959
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11957

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

Instance Attribute Details

#ad_group_ad_idFixnum

The unique ID of the ad. Assigned by the system. Corresponds to the JSON property adGroupAdId

Returns:

  • (Fixnum)


11884
11885
11886
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11884

def ad_group_ad_id
  @ad_group_ad_id
end

#ad_group_idFixnum

The unique ID of the ad group that the ad belongs to. Corresponds to the JSON property adGroupId

Returns:

  • (Fixnum)


11889
11890
11891
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11889

def ad_group_id
  @ad_group_id
end

#ad_urlsArray<Google::Apis::DisplayvideoV2::AdUrl>

List of URLs used by the ad. Corresponds to the JSON property adUrls



11894
11895
11896
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11894

def ad_urls
  @ad_urls
end

#advertiser_idFixnum

The unique ID of the advertiser the ad belongs to. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


11899
11900
11901
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11899

def advertiser_id
  @advertiser_id
end

#audio_adGoogle::Apis::DisplayvideoV2::AudioAd

Details for an audio ad. Corresponds to the JSON property audioAd



11904
11905
11906
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11904

def audio_ad
  @audio_ad
end

#bumper_adGoogle::Apis::DisplayvideoV2::BumperAd

Details for a bumper ad. Corresponds to the JSON property bumperAd



11909
11910
11911
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11909

def bumper_ad
  @bumper_ad
end

#display_nameString

The display name of the ad. Must be UTF-8 encoded with a maximum size of 255 bytes. Corresponds to the JSON property displayName

Returns:

  • (String)


11915
11916
11917
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11915

def display_name
  @display_name
end

#display_video_source_adGoogle::Apis::DisplayvideoV2::DisplayVideoSourceAd

The ad sourced from a DV360 creative. Corresponds to the JSON property displayVideoSourceAd



11920
11921
11922
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11920

def display_video_source_ad
  @display_video_source_ad
end

#entity_statusString

The entity status of the ad. Corresponds to the JSON property entityStatus

Returns:

  • (String)


11925
11926
11927
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11925

def entity_status
  @entity_status
end

#in_stream_adGoogle::Apis::DisplayvideoV2::InStreamAd

Details for an in-stream ad. Corresponds to the JSON property inStreamAd



11930
11931
11932
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11930

def in_stream_ad
  @in_stream_ad
end

#masthead_adGoogle::Apis::DisplayvideoV2::MastheadAd

Details for a Masthead Ad. Corresponds to the JSON property mastheadAd



11935
11936
11937
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11935

def masthead_ad
  @masthead_ad
end

#nameString

The resource name of the ad. Corresponds to the JSON property name

Returns:

  • (String)


11940
11941
11942
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11940

def name
  @name
end

#non_skippable_adGoogle::Apis::DisplayvideoV2::NonSkippableAd

Details for a non-skippable ad. Corresponds to the JSON property nonSkippableAd



11945
11946
11947
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11945

def non_skippable_ad
  @non_skippable_ad
end

#video_discover_adGoogle::Apis::DisplayvideoV2::VideoDiscoveryAd

Details for a video discovery ad. Corresponds to the JSON property videoDiscoverAd



11950
11951
11952
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11950

def video_discover_ad
  @video_discover_ad
end

#video_performance_adGoogle::Apis::DisplayvideoV2::VideoPerformanceAd

Details for a video performance ad. Corresponds to the JSON property videoPerformanceAd



11955
11956
11957
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11955

def video_performance_ad
  @video_performance_ad
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11962

def update!(**args)
  @ad_group_ad_id = args[:ad_group_ad_id] if args.key?(:ad_group_ad_id)
  @ad_group_id = args[:ad_group_id] if args.key?(:ad_group_id)
  @ad_urls = args[:ad_urls] if args.key?(:ad_urls)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @audio_ad = args[:audio_ad] if args.key?(:audio_ad)
  @bumper_ad = args[:bumper_ad] if args.key?(:bumper_ad)
  @display_name = args[:display_name] if args.key?(:display_name)
  @display_video_source_ad = args[:display_video_source_ad] if args.key?(:display_video_source_ad)
  @entity_status = args[:entity_status] if args.key?(:entity_status)
  @in_stream_ad = args[:in_stream_ad] if args.key?(:in_stream_ad)
  @masthead_ad = args[:masthead_ad] if args.key?(:masthead_ad)
  @name = args[:name] if args.key?(:name)
  @non_skippable_ad = args[:non_skippable_ad] if args.key?(:non_skippable_ad)
  @video_discover_ad = args[:video_discover_ad] if args.key?(:video_discover_ad)
  @video_performance_ad = args[:video_performance_ad] if args.key?(:video_performance_ad)
end