Class: Google::Apis::AdexchangesellerV2_0::CustomChannel

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

Defined Under Namespace

Classes: TargetingInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomChannel

Returns a new instance of CustomChannel



279
280
281
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 279

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

Instance Attribute Details

#codeString

Code of this custom channel, not necessarily unique across ad clients. Corresponds to the JSON property code

Returns:

  • (String)


256
257
258
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 256

def code
  @code
end

#idString

Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. Corresponds to the JSON property id

Returns:

  • (String)


262
263
264
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 262

def id
  @id
end

#kindString

Kind of resource this is, in this case adexchangeseller#customChannel. Corresponds to the JSON property kind

Returns:

  • (String)


267
268
269
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 267

def kind
  @kind
end

#nameString

Name of this custom channel. Corresponds to the JSON property name

Returns:

  • (String)


272
273
274
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 272

def name
  @name
end

#targeting_infoGoogle::Apis::AdexchangesellerV2_0::CustomChannel::TargetingInfo

The targeting information of this custom channel, if activated. Corresponds to the JSON property targetingInfo



277
278
279
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 277

def targeting_info
  @targeting_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



284
285
286
287
288
289
290
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 284

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @targeting_info = args[:targeting_info] if args.key?(:targeting_info)
end