Skip to content
PubAdHub
200 error_code: 1 Platform

The given data was invalid.

Platform S2S Postback validation failure (`error_code` 1) when required fields are missing or invalid.

Cause

Required postback parameters are missing or invalid. HTTP status is still 200 — inspect `message`, `errors`, and `error_code`.

Solution

Populate required parameters `txnid`, `cid`, `edate`, and `payout` with real values (no unresolved macros). Prefer a 32-character MD5 PubAdHub click hash for `cid`.

Example

JSON
{
    "message": "The given data was invalid.",
    "errors": {
        "txnid": [
            "The transaction ID is required."
        ],
        "cid": [
            "The click ID is required."
        ],
        "edate": [
            "The event date is required and must be a valid date."
        ],
        "payout": [
            "The payout is required and must be a number."
        ]
    },
    "error_code": 1
}

Related documentation