Class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
 generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
 generated/google/apis/adexchangebuyer2_v2beta1/representations.rb
Overview
specific context. A context here relates to where something ultimately serves (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, or the type of auction).
Instance Attribute Summary collapse
- 
  
    
      #contexts  ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The contexts for the restriction. 
- 
  
    
      #disapproval_reasons  ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::Disapproval> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Any disapprovals bound to this restriction. 
- 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The status of the creative in this context (for example, it has been explicitly disapproved or is pending review). 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ServingRestriction 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ServingRestriction. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServingRestriction
Returns a new instance of ServingRestriction
| 2095 2096 2097 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2095 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#contexts ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>
The contexts for the restriction.
Corresponds to the JSON property contexts
| 2078 2079 2080 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2078 def contexts @contexts end | 
#disapproval_reasons ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::Disapproval>
Any disapprovals bound to this restriction.
Only present if status=DISAPPROVED.
Can be used to filter the response of the
creatives.list
method.
Corresponds to the JSON property disapprovalReasons
| 2087 2088 2089 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2087 def disapproval_reasons @disapproval_reasons end | 
#status ⇒ String
The status of the creative in this context (for example, it has been
explicitly disapproved or is pending review).
Corresponds to the JSON property status
| 2093 2094 2095 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2093 def status @status end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2100 2101 2102 2103 2104 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2100 def update!(**args) @contexts = args[:contexts] if args.key?(:contexts) @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons) @status = args[:status] if args.key?(:status) end |