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.



15144
15145
15146
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15144

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)


15111
15112
15113
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15111

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)


15117
15118
15119
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15117

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)


15123
15124
15125
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15123

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)


15129
15130
15131
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15129

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)


15135
15136
15137
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15135

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)


15141
15142
15143
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15141

def youtube_shorts
  @youtube_shorts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15149
15150
15151
15152
15153
15154
15155
15156
# File 'lib/google/apis/searchads360_v23/classes.rb', line 15149

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