class Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction

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 vs HTTP request, or the type of auction) .

Attributes

contexts[RW]

The contexts for the restriction. Corresponds to the JSON property `contexts` @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]

disapproval[RW]

Output only. The reason and details for a disapproval. Corresponds to the JSON property `disapproval` @return [Google::Apis::Adexchangebuyer2V2beta1::Disapproval]

disapproval_reasons[RW]

Any disapprovals bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method. Deprecated; please use disapproval field instead. Corresponds to the JSON property `disapprovalReasons` @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Disapproval>]

status[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 3836
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 3841
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