Class: Google::Apis::AdsenseV2::CustomChannel
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::CustomChannel
- 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
-
#active ⇒ Boolean
(also: #active?)
Whether the custom channel is active and collecting data.
-
#display_name ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#reporting_dimension_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomChannel
constructor
A new instance of CustomChannel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomChannel
Returns a new instance of CustomChannel.
372 373 374 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 372 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active ⇒ Boolean Also known as: active?
Whether the custom channel is active and collecting data. See https://support.
google.com/adsense/answer/10077192.
Corresponds to the JSON property active
352 353 354 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 352 def active @active end |
#display_name ⇒ String
Required. Display name of the custom channel.
Corresponds to the JSON property displayName
358 359 360 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 358 def display_name @display_name end |
#name ⇒ String
Output only. Resource name of the custom channel. Format: accounts/account
/
adclients/adclient
/customchannels/customchannel
Corresponds to the JSON property name
364 365 366 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 364 def name @name end |
#reporting_dimension_id ⇒ String
Output only. Unique ID of the custom channel as used in the CUSTOM_CHANNEL_ID
reporting dimension.
Corresponds to the JSON property reportingDimensionId
370 371 372 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 370 def reporting_dimension_id @reporting_dimension_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
377 378 379 380 381 382 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 377 def update!(**args) @active = args[:active] if args.key?(:active) @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 |