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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ServingRestriction

Returns a new instance of ServingRestriction



1129
1130
1131
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1129

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



1112
1113
1114
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1112

def contexts
  @contexts
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. Corresponds to the JSON property disapprovalReasons



1127
1128
1129
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1127

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)


1118
1119
1120
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1118

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1134
1135
1136
1137
1138
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1134

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