Class: Google::Apis::AdexchangesellerV1::AdUnit
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangesellerV1::AdUnit
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangeseller_v1/classes.rb,
generated/google/apis/adexchangeseller_v1/representations.rb,
generated/google/apis/adexchangeseller_v1/representations.rb
Instance Attribute Summary collapse
-
#code ⇒ String
Identity code of this ad unit, not necessarily unique across ad clients.
-
#id ⇒ String
Unique identifier of this ad unit.
-
#kind ⇒ String
Kind of resource this is, in this case adexchangeseller#adUnit.
-
#name ⇒ String
Name of this ad unit.
-
#status ⇒ String
Status of this ad unit.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdUnit
constructor
A new instance of AdUnit.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdUnit
Returns a new instance of AdUnit
145 146 147 |
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 145 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Identity code of this ad unit, not necessarily unique across ad clients.
Corresponds to the JSON property code
116 117 118 |
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 116 def code @code end |
#id ⇒ String
Unique identifier of this ad unit. 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
122 123 124 |
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 122 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adexchangeseller#adUnit.
Corresponds to the JSON property kind
127 128 129 |
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 127 def kind @kind end |
#name ⇒ String
Name of this ad unit.
Corresponds to the JSON property name
132 133 134 |
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 132 def name @name end |
#status ⇒ String
Status of this ad unit. Possible values are:
NEW: Indicates that the ad unit was created within the last seven days and
does not yet have any activity associated with it.
ACTIVE: Indicates that there has been activity on this ad unit in the last
seven days.
INACTIVE: Indicates that there has been no activity on this ad unit in the
last seven days.
Corresponds to the JSON property status
143 144 145 |
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 143 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
150 151 152 153 154 155 156 |
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 150 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) @status = args[:status] if args.key?(:status) end |