API Method – setOfferBanners

    setOfferBanners
    Set offer banner information.

API Category

    Offer

HTTP Method

    POST

Request Call Example

    HTTP:
    POST /api/v3/setOfferBanners?key=yourapikey&offer_id=536 HTTP/1.1
    Host: yourapplicationdomain
    Content-Type: multipart/form-data;
    Content-Disposition: form-data; name="file[0]"; filename="1.zip"
    Content-Type: application/x-zip-compressed
 
    Java:
    Unirest.post("http://yourapplicationdomain/api/v3/setOfferBanners?key=yourapikey&offer_id=536").header("content-type", "multipart/form-data").body(Content-Disposition: form-data; name=\"file[0]\"; filename=\"C:\\Users\\Administrator\\Desktop\\banners\\1.zip\"\r\nContent-Type: application/zip\r\n").asString()

Parameters


Name Type Description
offer_id* Integer Offer Id
file[] File Array The banner files to be uploaded.
type Integer 1 banners 2 Feedings 3 Open Screens

Response

Sample in JSON:

{
    "httpStatus": 202,
    "data": [
        {
            "type": 1,
            "name": "270e2c0",
            "offer_id": 12,
            "width": 1000,
            "height": 1000,
            "type_dict": "Banners",
            "banner_id": 311,
            "path": "http://resource.javatoo.info/resource/lijy2/creative/1640749424_phpD7Y0H6",
            "upload_time": "2021-12-29 03:43:45",
            "size": "0.11M",
            "picture_format": "jpeg",
            "signature": "2b34ebb29d2d399fad7f6c8195096a14"
        }
    ],
    "errorCode": 0,
    "message": "",
    "api-trace-id": "",
    "trace-id": "yccgCua"
}