mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-14 14:06:38 +03:00
7737be7e9b
Mostly for enum shift (206 and higher IDs) introduced in: https://github.com/InteractiveAdvertisingBureau/openrtb/commit/5a6aac5491fc097e546c36bfb34461182542d24e > 3.0 September 2021 Clarified loss reason: Loss Reason Code 206 was renamed from Bundle to Store ID to keep the intent of this loss reason consistent across OpenRTB 2.x and 3.x.
45 lines
2.9 KiB
Go
45 lines
2.9 KiB
Go
package openrtb3
|
|
|
|
// LossReason represents OpenRTB Loss Reason Code enumeration.
|
|
//
|
|
// It lists the options for an exchange to inform a bidder as to the reason why they did not win an item.
|
|
type LossReason int64
|
|
|
|
// LossReason options.
|
|
//
|
|
// Values 500+ are exchange specific values; should be communicated with buyers beforehand.
|
|
const (
|
|
LossWon LossReason = 0 // Bid Won
|
|
LossInternalError LossReason = 1 // Internal Error
|
|
LossExpired LossReason = 2 // Impression Opportunity Expired
|
|
LossInvalidResponse LossReason = 3 // Invalid Bid Response
|
|
LossInvalidDealID LossReason = 4 // Invalid Deal ID
|
|
LossInvalidAuctionID LossReason = 5 // Invalid Auction ID
|
|
LossInvalidAdvertiserDomain LossReason = 6 // Invalid Advertiser Domain
|
|
LossMissingMarkup LossReason = 7 // Missing Markup
|
|
LossMissingCreativeID LossReason = 8 // Missing Creative ID
|
|
LossMissingBidPrice LossReason = 9 // Missing Bid Price
|
|
LossMissingApproval LossReason = 10 // Missing Minimum Creative Approval Data
|
|
LossBelowAuctionFloor LossReason = 100 // Bid was Below Auction Floor
|
|
LossBelowDealFloor LossReason = 101 // Bid was Below Deal Floor
|
|
LossLostToHigherBid LossReason = 102 // Lost to Higher Bid
|
|
LossLostToDealBid LossReason = 103 // Lost to a Bid for a Deal
|
|
LossSeatBlocked LossReason = 104 // Buyer Seat Blocked
|
|
LossCreativeFiltered LossReason = 200 // Creative Filtered - General; Reason Unknown
|
|
LossPendingProcessing LossReason = 201 // Creative Filtered - Pending Processing by Exchange (e.g., approval, transcoding, etc.)
|
|
LossDisapproved LossReason = 202 // Creative Filtered - Disapproved by Exchange
|
|
LossSizeNotAllowed LossReason = 203 // Creative Filtered - Size Not Allowed
|
|
LossIncorrectFormat LossReason = 204 // Creative Filtered - Incorrect Creative Format
|
|
LossAdvertiserExclusions LossReason = 205 // Creative Filtered - Advertiser Exclusions
|
|
LossAppStoreIDExclusions LossReason = 206 // Creative Filtered - App Store ID Exclusions (ex App Bundle Exclusions in OpenRTB <=2.5)
|
|
LossNotSecure LossReason = 207 // Creative Filtered - Not Secure
|
|
LossLanguageExclusions LossReason = 208 // Creative Filtered - Language Exclusions
|
|
LossCategoryExclusions LossReason = 209 // Creative Filtered - Category Exclusions
|
|
LossAttributeExclusions LossReason = 210 // Creative Filtered - Creative Attribute Exclusions
|
|
LossAdTypeExclusions LossReason = 211 // Creative Filtered - Ad Type Exclusions
|
|
LossAnimationTooLong LossReason = 212 // Creative Filtered - Animation Too Long
|
|
LossNotAllowedInDeal LossReason = 213 // Creative Filtered - Not Allowed in Deal
|
|
LossInvalidSKAdNetwork LossReason = 214 // Creative Filtered - Invalid SKAdNetwork
|
|
LossAppBundleExclusions LossReason = 215 // Creative Filtered - App Bundle Exclusions
|
|
)
|