Class: Google::Apis::AdsenseV1_4::CustomChannel
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV1_4::CustomChannel
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adsense_v1_4/classes.rb,
generated/google/apis/adsense_v1_4/representations.rb,
generated/google/apis/adsense_v1_4/representations.rb
Defined Under Namespace
Classes: TargetingInfo
Instance Attribute Summary collapse
-
#code ⇒ String
Code of this custom channel, not necessarily unique across ad clients.
-
#id ⇒ String
Unique identifier of this custom channel.
-
#kind ⇒ String
Kind of resource this is, in this case adsense#customChannel.
-
#name ⇒ String
Name of this custom channel.
-
#targeting_info ⇒ Google::Apis::AdsenseV1_4::CustomChannel::TargetingInfo
The targeting information of this custom channel, if activated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomChannel
constructor
A new instance of CustomChannel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomChannel
Returns a new instance of CustomChannel
809 810 811 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 809 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Code of this custom channel, not necessarily unique across ad clients.
Corresponds to the JSON property code
786 787 788 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 786 def code @code end |
#id ⇒ String
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
792 793 794 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 792 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adsense#customChannel.
Corresponds to the JSON property kind
797 798 799 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 797 def kind @kind end |
#name ⇒ String
Name of this custom channel.
Corresponds to the JSON property name
802 803 804 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 802 def name @name end |
#targeting_info ⇒ Google::Apis::AdsenseV1_4::CustomChannel::TargetingInfo
The targeting information of this custom channel, if activated.
Corresponds to the JSON property targetingInfo
807 808 809 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 807 def targeting_info @targeting_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
814 815 816 817 818 819 820 |
# 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 |