Class: Google::Apis::AdexchangesellerV1_1::AdUnit
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdexchangesellerV1_1::AdUnit
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangeseller_v1_1/classes.rb,
 generated/google/apis/adexchangeseller_v1_1/representations.rb,
 generated/google/apis/adexchangeseller_v1_1/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
| 176 177 178 | # File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 176 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
| 147 148 149 | # File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 147 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
| 153 154 155 | # File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 153 def id @id end | 
#kind ⇒ String
Kind of resource this is, in this case adexchangeseller#adUnit.
Corresponds to the JSON property kind
| 158 159 160 | # File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 158 def kind @kind end | 
#name ⇒ String
Name of this ad unit.
Corresponds to the JSON property name
| 163 164 165 | # File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 163 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
| 174 175 176 | # File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 174 def status @status end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 181 182 183 184 185 186 187 | # File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 181 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 |