Class: Google::Apis::AdsenseV2::CustomChannel

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

Overview

Representation of a custom channel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomChannel

Returns a new instance of CustomChannel.



316
317
318
# File 'lib/google/apis/adsense_v2/classes.rb', line 316

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

Instance Attribute Details

#display_nameString

Display name of the custom channel. Corresponds to the JSON property displayName

Returns:

  • (String)


302
303
304
# File 'lib/google/apis/adsense_v2/classes.rb', line 302

def display_name
  @display_name
end

#nameString

Resource name of the custom channel. Format: accounts/account/adclients/ adclient/customchannels/customchannel Corresponds to the JSON property name

Returns:

  • (String)


308
309
310
# File 'lib/google/apis/adsense_v2/classes.rb', line 308

def name
  @name
end

#reporting_dimension_idString

Output only. Unique ID of the custom channel as used in the CUSTOM_CHANNEL_ID reporting dimension. Corresponds to the JSON property reportingDimensionId

Returns:

  • (String)


314
315
316
# File 'lib/google/apis/adsense_v2/classes.rb', line 314

def reporting_dimension_id
  @reporting_dimension_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



321
322
323
324
325
# File 'lib/google/apis/adsense_v2/classes.rb', line 321

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @reporting_dimension_id = args[:reporting_dimension_id] if args.key?(:reporting_dimension_id)
end