class Google::Apis::AdsenseV1_4::CustomChannel

Attributes

code[RW]

Code of this custom channel, not necessarily unique across ad clients. Corresponds to the JSON property `code` @return [String]

id[RW]

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` @return [String]

kind[RW]

Kind of resource this is, in this case adsense#customChannel. Corresponds to the JSON property `kind` @return [String]

name[RW]

Name of this custom channel. Corresponds to the JSON property `name` @return [String]

targeting_info[RW]

The targeting information of this custom channel, if activated. Corresponds to the JSON property `targetingInfo` @return [Google::Apis::AdsenseV1_4::CustomChannel::TargetingInfo]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/adsense_v1_4/classes.rb, line 809
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/adsense_v1_4/classes.rb, line 814
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