Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesAdGroupDemandGenAdGroupSettingsDemandGenChannelControlsDemandGenSelectedChannels

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb

Overview

Explicitly selected channels for channel controls in Demand Gen ad groups.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesAdGroupDemandGenAdGroupSettingsDemandGenChannelControlsDemandGenSelectedChannels

Returns a new instance of GoogleAdsSearchads360V23ResourcesAdGroupDemandGenAdGroupSettingsDemandGenChannelControlsDemandGenSelectedChannels.



15078
15079
15080
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15078

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

Instance Attribute Details

#discoverBoolean Also known as: discover?

Whether to enable ads on the Discover channel. Corresponds to the JSON property discover

Returns:

  • (Boolean)


15045
15046
15047
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15045

def discover
  @discover
end

#display_propBoolean Also known as: display_prop?

Whether to enable ads on the Display channel. Corresponds to the JSON property display

Returns:

  • (Boolean)


15051
15052
15053
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15051

def display_prop
  @display_prop
end

#gmailBoolean Also known as: gmail?

Whether to enable ads on the Gmail channel. Corresponds to the JSON property gmail

Returns:

  • (Boolean)


15057
15058
15059
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15057

def gmail
  @gmail
end

#youtube_in_feedBoolean Also known as: youtube_in_feed?

Whether to enable ads on the YouTube In-Feed channel. Corresponds to the JSON property youtubeInFeed

Returns:

  • (Boolean)


15063
15064
15065
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15063

def youtube_in_feed
  @youtube_in_feed
end

#youtube_in_streamBoolean Also known as: youtube_in_stream?

Whether to enable ads on the YouTube In-Stream channel. Corresponds to the JSON property youtubeInStream

Returns:

  • (Boolean)


15069
15070
15071
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15069

def youtube_in_stream
  @youtube_in_stream
end

#youtube_shortsBoolean Also known as: youtube_shorts?

Whether to enable ads on the YouTube Shorts channel. Corresponds to the JSON property youtubeShorts

Returns:

  • (Boolean)


15075
15076
15077
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15075

def youtube_shorts
  @youtube_shorts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15083
15084
15085
15086
15087
15088
15089
15090
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15083

def update!(**args)
  @discover = args[:discover] if args.key?(:discover)
  @display_prop = args[:display_prop] if args.key?(:display_prop)
  @gmail = args[:gmail] if args.key?(:gmail)
  @youtube_in_feed = args[:youtube_in_feed] if args.key?(:youtube_in_feed)
  @youtube_in_stream = args[:youtube_in_stream] if args.key?(:youtube_in_stream)
  @youtube_shorts = args[:youtube_shorts] if args.key?(:youtube_shorts)
end