Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.prebid.server.functional.model.request.auction

import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonValue
import groovy.transform.ToString

Expand All @@ -8,6 +9,8 @@ class DeviceExt {

Atts atts
String cdep
@JsonProperty("ifa_type")
String ifaType

enum Atts {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class Prebid {
List<String> profileNames
@JsonProperty("kvps")
Map<String, String> keyValuePairs
String outputFormat
String outputModule

static class Channel {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Regs {

Integer coppa
Integer gdpr
Integer gpc
String usPrivacy
String gpp
List<Integer> gppSid
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,299 @@
package org.prebid.server.functional.model.request.get

import com.fasterxml.jackson.annotation.JsonProperty
import org.prebid.server.functional.model.request.amp.ConsentType
import org.prebid.server.functional.model.request.auction.DebugCondition
import org.prebid.server.functional.model.request.auction.DeviceType
import org.prebid.server.functional.model.request.auction.VideoPlacementSubtypes
import org.prebid.server.functional.model.request.auction.VideoPlcmtSubtype
import org.prebid.server.functional.util.PBSUtils

import static org.prebid.server.functional.model.request.auction.DebugCondition.ENABLED

class GeneralGetRequest {

@JsonProperty("srid")
String storedRequestId

@JsonProperty("tag_id")
String storedRequestIdLegacy

@JsonProperty("pubid")
String accountId

@JsonProperty("account")
String accountIdLegacy

@JsonProperty("tmax")
Integer timeoutMax

@JsonProperty("debug")
DebugCondition debug

@JsonProperty("of")
String outputFormat

@JsonProperty("om")
String outputModule

@JsonProperty("rprof")
List<String> requestProfiles

@JsonProperty("iprof")
List<String> impProfiles

@JsonProperty("sarid")
String storedAuctionResponseId

@JsonProperty("mimes")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, really needed here JsonProperty

List<String> mimes

@JsonProperty("w")
Integer width

@JsonProperty("h")
Integer height

@JsonProperty("ow")
Integer originalWidth

@JsonProperty("oh")
Integer originalHeight

@JsonProperty("sizes")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Object sizes

@JsonProperty("ms")
Object sizesLegacy

@JsonProperty("slot")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check for similar occurrences

String slot

@JsonProperty("mindur")
Integer minDuration

@JsonProperty("maxdur")
Integer maxDuration

@JsonProperty("api")
List<Integer> api

@JsonProperty("battr")
List<Integer> battr
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better naming for it blockAttributes


@JsonProperty("delivery")
List<Integer> delivery

@JsonProperty("linearity")
Integer linearity

@JsonProperty("minbr")
Integer minBitrate

@JsonProperty("maxbr")
Integer maxBitrate

@JsonProperty("maxex")
Integer maxExtended

@JsonProperty("maxseq")
Integer maxSequence

@JsonProperty("mincpms")
Integer minCpmPerSec

@JsonProperty("poddur")
Integer podDuration

@JsonProperty("podid")
Integer podId

@JsonProperty("podseq")
Integer podSequence

@JsonProperty("proto")
List<Integer> proto
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename to protocols


@JsonProperty("rqddurs")
List<Integer> requiredDurations

@JsonProperty("seq")
Integer sequence

@JsonProperty("slotinpod")
Integer slotInPod

@JsonProperty("startdelay")
Integer startDelay

@JsonProperty("skip")
Integer skip

@JsonProperty("skipafter")
Integer skipAfter

@JsonProperty("skipmin")
Integer skipMin

@JsonProperty("pos")
Integer position

@JsonProperty("stitched")
Integer stitched

@JsonProperty("feed")
Integer feed

@JsonProperty("nvol")
Integer normalizedVolume

@JsonProperty("placement")
VideoPlacementSubtypes placement

@JsonProperty("plcmt")
VideoPlcmtSubtype placementSubtype

@JsonProperty("playbackend")
Integer playbackEnd

@JsonProperty("playbackmethod")
List<Integer> playbackMethods

@JsonProperty("boxingallowed")
Integer boxingAllowed

@JsonProperty("btype")
List<Integer> bannerTypes

@JsonProperty("expdir")
List<Integer> expandableDirections

@JsonProperty("topframe")
Integer topFrame

@JsonProperty("targeting")
String targeting

@JsonProperty("consent")
String consent

@JsonProperty("gdpr_consent")
String consentLegacy

@JsonProperty("consent_string")
String consentStringLegacy

@JsonProperty("gdpr")
Integer gdpr

@JsonProperty("privacy")
Integer gdprPrivacy

@JsonProperty("gdpr_applies")
String gdprApplies

@JsonProperty("usp")
String usPrivacy

@JsonProperty("addtl_consent")
String additionalConsent

@JsonProperty("consent_type")
ConsentType consentType

@JsonProperty("gpp_sid")
List<Integer> gppSid

@JsonProperty("coppa")
Integer coppa

@JsonProperty("gpc")
Integer globalPrivacyControl

@JsonProperty("dnt")
Integer doNotTrack

@JsonProperty("lmt")
Integer limitAdTracking

@JsonProperty("bcat")
List<String> blockedCategories

@JsonProperty("badv")
List<String> blockedAdvertisers

@JsonProperty("page")
String page

@JsonProperty("bundle")
String appBundle

@JsonProperty("name")
String appName

@JsonProperty("storeurl")
String storeUrl

@JsonProperty("cgenre")
String contentGenre

@JsonProperty("clang")
String contentLanguage

@JsonProperty("crating")
String contentRating

@JsonProperty("ccat")
Integer contentCategory

@JsonProperty("ccattax")
List<Integer> contentCategoryTaxonomy

@JsonProperty("cseries")
String contentSeries

@JsonProperty("rss_feed")
String contentSeriesAlias

@JsonProperty("ctitle")
String contentTitle

@JsonProperty("curl")
String contentUrl

@JsonProperty("clivestream")
String contentLivestream

@JsonProperty("ip")
String deviceIp

@JsonProperty("ua")
String deviceUa

@JsonProperty("dtype")
DeviceType deviceType

@JsonProperty("ifa")
String deviceIfa

@JsonProperty("ifat")
String deviceIfaType

@JsonProperty("unknown")
String unknown

@JsonProperty("unknown_alias")
String unknownAlias

static GeneralGetRequest getDefault(String storedRequestId = PBSUtils.randomNumber) {
new GeneralGetRequest(storedRequestId: storedRequestId, debug: ENABLED)
}

String resolveStoredRequestId() {
storedRequestId ?: storedRequestIdLegacy
}

String resolveAccountId() {
accountId ?: accountIdLegacy
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.prebid.server.functional.model.response.get

import groovy.transform.ToString
import org.prebid.server.functional.model.response.amp.AmpResponseExt

@ToString(includeNames = true, ignoreNulls = true)
class GeneralGetResponse {

Map<String, String> targeting
GeneralGetResponseExt ext
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.prebid.server.functional.model.response.get

import groovy.transform.ToString
import org.prebid.server.functional.model.response.BidderError
import org.prebid.server.functional.model.response.Debug
import org.prebid.server.functional.model.response.auction.ErrorType

@ToString(includeNames = true, ignoreNulls = true)
class GeneralGetResponseExt {

Debug debug
Map<ErrorType, List<BidderError>> errors
Map<ErrorType, List<BidderError>> warnings
}
Loading
Loading