Skip to main content

GET Wrapper By Id

Overview


The table below provides information about the GET method for managing the process of retrieving a wrapper by its ID.

GET Wrapper By Id
MethodGET
URL or Endpoint/api/projects/projectId/wrappers/publicId
HeadersAuthorization
ParameterspublicId, projectId
BodyNot Applicable

The description of the URL parameter is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project.
publicIdYesstringUnique Id of the wrapper.

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"publicId": "publicId",
"name": "name",
"description": "description",
"bidderTimeOut": 10000,
"serverTimeOut": 12000,
"coopaInvertory": false,
"autoUpdate": false,
"adUnits": [
{
"adServerCurrency": 3,
"bidOptionType": "bidOptionType",
"auctionDelay": 0,
"priceGranularities": [
{
"cap": 10,
"increment": 1
},
{
"cap": 20,
"increment": 2
}
],
"bidders": [
{
"id": 2,
"bidderId": 8,
"status": true,
"cpmAdjustmentEnabled": false,
"adjustmentValue": null,
"adjustmentReason": "",
"adUnitBidderValues": [
{
"adUnitBidderId": 2,
"bidParamId": 10,
"value": "value",
"placeholder": "propertyId"
},
{
"adUnitBidderId": 2,
"bidParamId": 10,
"value": "value",
"placeholder": "placementId"
}
]
}
]
}
]
},
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful, it will return true. Otherwise, it will return false.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns the response message from the back-end.
resultobjectReturns the result object with relevant data.
publicIdstringThe unique public identifier of the wrapper.
namestringName of the wrapper.
descriptionstringDescription of the wrapper.
bidderTimeOutintegerThe bidder timeout value (in milliseconds).
serverTimeOutintegerThe server timeout value (in milliseconds).
coopaInvertoryboolFlag indicating if co-op inventory is enabled.
autoUpdateboolFlag indicating if auto-update is enabled.
adUnitsarray[object]List of ad units with detailed configurations.
adServerCurrencyintegerThe currency used by the ad server.
bidOptionTypestringThe type of bid option used.
auctionDelayintegerThe auction delay time (in milliseconds).
priceGranularitiesarray[object]Price granularity settings for the auction.
capintegerThe price cap for a given granularity.
incrementintegerThe increment value for a given granularity.
biddersarray[object]List of bidders and their configuration details.
idintegerThe bidder's unique identifier.
bidderIdintegerThe unique ID of the bidder.
statusboolThe status of the bidder (true if active).
cpmAdjustmentEnabledboolIndicates if CPM adjustment is enabled for the bidder.
adjustmentValuenullableThe adjustment value (if any).
adjustmentReasonstringThe reason for the adjustment.
adUnitBidderValuesarray[object]List of ad unit-specific bidder values.
adUnitBidderIdintegerThe unique ID of the ad unit bidder.
bidParamIdintegerThe bid parameter ID.
valuestringThe value for the bid parameter.
placeholderstringThe placeholder for the parameter (e.g., propertyId, placementId).
resultInfostringReturns additional information about the result.
statusCodeintegerReturns the HTTP status code (e.g., 200).

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed