Class: Google::Apis::DisplayvideoV4::SelectedInventories

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

The inventory control of the ad group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SelectedInventories

Returns a new instance of SelectedInventories.



13826
13827
13828
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 13826

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

Instance Attribute Details

#allow_discoverBoolean Also known as: allow_discover?

Whether the ad group is opted-in to Discover inventory. Corresponds to the JSON property allowDiscover

Returns:

  • (Boolean)


13793
13794
13795
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 13793

def allow_discover
  @allow_discover
end

#allow_gmailBoolean Also known as: allow_gmail?

Whether the ad group is opted-in to Gmail inventory. Corresponds to the JSON property allowGmail

Returns:

  • (Boolean)


13799
13800
13801
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 13799

def allow_gmail
  @allow_gmail
end

#allow_google_display_networkBoolean Also known as: allow_google_display_network?

Whether the ad group is opted-in to Google Display Network inventory. Corresponds to the JSON property allowGoogleDisplayNetwork

Returns:

  • (Boolean)


13805
13806
13807
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 13805

def allow_google_display_network
  @allow_google_display_network
end

#allow_youtube_feedBoolean Also known as: allow_youtube_feed?

Whether the ad group is opted-in to YouTube in-feed inventory. Corresponds to the JSON property allowYoutubeFeed

Returns:

  • (Boolean)


13811
13812
13813
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 13811

def allow_youtube_feed
  @allow_youtube_feed
end

#allow_youtube_shortsBoolean Also known as: allow_youtube_shorts?

Whether the ad group is opted-in to YouTube shorts inventory. Corresponds to the JSON property allowYoutubeShorts

Returns:

  • (Boolean)


13817
13818
13819
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 13817

def allow_youtube_shorts
  @allow_youtube_shorts
end

#allow_youtube_streamBoolean Also known as: allow_youtube_stream?

Whether the ad group is opted-in to YouTube in-stream inventory. Corresponds to the JSON property allowYoutubeStream

Returns:

  • (Boolean)


13823
13824
13825
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 13823

def allow_youtube_stream
  @allow_youtube_stream
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13831
13832
13833
13834
13835
13836
13837
13838
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 13831

def update!(**args)
  @allow_discover = args[:allow_discover] if args.key?(:allow_discover)
  @allow_gmail = args[:allow_gmail] if args.key?(:allow_gmail)
  @allow_google_display_network = args[:allow_google_display_network] if args.key?(:allow_google_display_network)
  @allow_youtube_feed = args[:allow_youtube_feed] if args.key?(:allow_youtube_feed)
  @allow_youtube_shorts = args[:allow_youtube_shorts] if args.key?(:allow_youtube_shorts)
  @allow_youtube_stream = args[:allow_youtube_stream] if args.key?(:allow_youtube_stream)
end