Skip to main content

GET All Select Options

Overview


The following table contains important information about the GET method in regards to receiving all select options.

GET All Select Options
MethodGET
URL or Endpoint/api/projects/projectId/ad-schedules/select-options
HeadersAuthorization
ParametersprojectId
BodyNot Applicable

The description of the URL parameter is as follows:

projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

Request Body

The request does not contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"": [
{
"id": 0,
"Value": "string"
}
],
"vpaidModeOptions": [
{
"id": 0,
"name": "string"
}
],
"adSeenOnSubsequentVisitOptions": [
{
"id": 0,
"name": "string"
}
],
"adBreakTypeOptions": [
{
"id": 0,
"name": "string"
}
],
"breakTimingTypeOptions": [
{
"id": 0,
"name": "string"
}
],
"biddingTemplateOptions": [
{
"name": "string",
"publicId": "string",
"mediationOptionId": 0,
"biddingTemplateBidders": [
{
"id": 0,
"biddingTemplatePublicId": "string",
"bidderAlias": "string",
"bidderId": 0,
"name": "string",
"bidderLogoPath": "string",
"bidParamValues": [
{
"id": 0,
"biddingTemplateBidderId": 0,
"bidParamId": 0,
"value": "string",
"placeholder": "string"
}
]
}
]
}
],
"adScheduleTypeOptions": [
{
"id": 0,
"name": "string",
"value": "string",
"description": "string"
}
],
"distributionMethodTypeOptions": [
{
"id": 0,
"name": "string",
"value": "string",
"description": "string"
}
],
"midrollTypeOptions": [
{
"id": 0,
"name": "string",
"value": "string",
"description": "string",
"icon": "string"
}
]
},
"resultInfo": "string",
"statusCode": 0
}

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 will return false.
errorsarray[]Indicates if there was an error.
messagesarray[]Returns the response message from back-end.
resultarray[Object]Returns the response object.
adManagerOptionsObjectReturns the ad manager option.
idintegerThe ID of the ad manager type.
namestringName of the ad manager type.
vpaidModeOptionsarray[Object]Returns the VPAID mode options as an array of objects.
idintegerThe ID of the ad VPAID mode option.
namestringName of the VPAID mode option.
adSeenOnSubsequentOptionsarray[Object]Returns the subsequent visit options.
idintegerThe ID of the subsequent visit option.
namestringName of the subsequent visit option.
adBreakTypeOptionsarray[Object]Returns the ad break type options.
idintegerThe ID of the ad break type.
namestringName of the ad break type.
breakTimingOptionsarray[Object]Returns the break timing options as an array of objects.
idintegerThe ID of the break timing option.
namestringName of the break timing option.
biddingTemplateOptionsarray[Object]Returns the bidding template options as an array of objects.
namestringThe name of the bidding type.
publicIdstringThe ID of the bidding type.
mediationOptionIdintegerThe ID of the mediation option.
biddingTemplateBiddersarray[Object]Returns the template bidders as an array of objects.
adScheduleTypeOptionsarray[Object]Returns the ad schedule type options.
idintegerThe ID of the ad schedule type.
namestringName of the ad schedule type.
valuestringValue of the ad schedule type.
descriptionstringDescription of the ad schedule type.
distributionMethodTypeOptionsarray[Object]Returns the distribution method type options.
idintegerThe ID of the distribution method type.
namestringName of the distribution method type.
valuestringValue of the distribution method type.
descriptionstringDescription of the distribution method type.
midrollTypeOptionsarray[Object]Returns the midroll type options.
idintegerThe ID of the midroll type.
namestringName of the midroll type.
valuestringValue of the midroll type.
descriptionstringDescription of the midroll type.
resultInfostringReturns extra information about the result.
statusCodeintegerReturns the HTTP Status Code.

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