For the complete documentation index, see llms.txt. This page is also available as Markdown.

Errors

The Ad Placement API can return the following response codes:

Code
Description
Explanation

400

Bad Request

Indicates that the data sent is incorrectly formatted.

200

OK

This indicates that either the request is correct or there are some zones which could not be found. The response will tell you which zones these are.

500

Internal Error

Indicates that an internal error happened but the cause is unknown. Contact your Account Manager or Customer Success for help.

400 Error Messages

Message
Explanation

Malformed JSON Body

Syntax error

Unsupported Request Type

Wrong request verb used

This field is missing

A compulsory field is missing

This field was not expected

A non-recognized parameter was added to the request

This value should be of type X

Wrong format used for a specific parameter

400 Error Example

Request:

{
    "user": {
        "testing": false
    },
    "zones": [
        {
            "id": "12345"
        }
    ]
}

Response:

200 Error Messages

Message
Explanation

Zone id not found

The zone id cannot be found OR the domain of the endpoint doesn't correspond to the requested ad format

Zone or site not valid

The zone or Publisher is blocked.

200 Error Example

In this example, we have requested ads for multiple zones and some of them returned errors.

Request:

Response:

zones.data null

Very rarely, an ad zone request will return a correct response, but the data field will be null. This means that the system found no ads to satisfy the given request given user locale, browser etc.

Last updated

Was this helpful?