Class: Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb
Defined Under Namespace
Classes: Context, DisapprovalReason
Instance Attribute Summary collapse
-
#contexts ⇒ Array<Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::Context>
All known contexts/restrictions.
-
#disapproval_reasons ⇒ Array<Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::DisapprovalReason>
The reasons for disapproval within this restriction, if any.
-
#reason ⇒ String
Why the creative is ineligible to serve in this context (e.g., 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
1040 1041 1042 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1040 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contexts ⇒ Array<Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::Context>
All known contexts/restrictions.
Corresponds to the JSON property contexts
1023 1024 1025 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1023 def contexts @contexts end |
#disapproval_reasons ⇒ Array<Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::DisapprovalReason>
The reasons for disapproval within this restriction, if any. Note that not all
disapproval reasons may be categorized, so it is possible for the creative to
have a status of DISAPPROVED or CONDITIONALLY_APPROVED with an empty list for
disapproval_reasons. In this case, please reach out to your TAM to help debug
the issue.
Corresponds to the JSON property disapprovalReasons
1032 1033 1034 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1032 def disapproval_reasons @disapproval_reasons end |
#reason ⇒ String
Why the creative is ineligible to serve in this context (e.g., it has been
explicitly disapproved or is pending review).
Corresponds to the JSON property reason
1038 1039 1040 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1038 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1045 1046 1047 1048 1049 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1045 def update!(**args) @contexts = args[:contexts] if args.key?(:contexts) @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons) @reason = args[:reason] if args.key?(:reason) end |