Class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/adexchangebuyer2_v2beta1/classes.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb

Overview

Output only. A representation of the status of an ad in a specific context. A context here relates to where something ultimately serves (for example, a user or publisher geo, a platform, an HTTPS versus HTTP request, or the type of auction).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServingRestriction

Returns a new instance of ServingRestriction.



3839
3840
3841
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3839

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contextsArray<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>

The contexts for the restriction. Corresponds to the JSON property contexts



3819
3820
3821
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3819

def contexts
  @contexts
end

#disapprovalGoogle::Apis::Adexchangebuyer2V2beta1::Disapproval

Output only. The reason and details for a disapproval. Corresponds to the JSON property disapproval



3824
3825
3826
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3824

def disapproval
  @disapproval
end

#disapproval_reasonsArray<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. Deprecated; use disapproval field instead. Corresponds to the JSON property disapprovalReasons



3831
3832
3833
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3831

def disapproval_reasons
  @disapproval_reasons
end

#statusString

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

Returns:

  • (String)


3837
3838
3839
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3837

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3844
3845
3846
3847
3848
3849
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3844

def update!(**args)
  @contexts = args[:contexts] if args.key?(:contexts)
  @disapproval = args[:disapproval] if args.key?(:disapproval)
  @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons)
  @status = args[:status] if args.key?(:status)
end