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
-
#display_name ⇒ String
Display name of the custom channel.
-
#name ⇒ String
Resource name of the custom channel.
-
#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.
316 317 318 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 316 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Display name of the custom channel.
Corresponds to the JSON property displayName
302 303 304 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 302 def display_name @display_name end |
#name ⇒ String
Resource name of the custom channel. Format: accounts/account/adclients/
adclient/customchannels/customchannel
Corresponds to the JSON property name
308 309 310 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 308 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
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 |