Add a new platform for offer

HTTP method Endpoint
POST /v1/offers/{offer_id}/platforms

Path parameters

Parameter Description
offer_id The unique id for the offer.

Request body parameters

Field Type Description Nullable
platform string Devices to be targeted, eg: PC/Mobile/Tablet
If not selected, by default it allows all platforms.
No
system string Operating System in platforms,by defaut it allows all OS without setting.
version array OS Version.By defaut it allows all versions in the selected OS.
is_above integer A new field, is_above, is added to offer platform to support upper compatibility in platform. When new platform versions are upgraded, the traffic won’t be rejected.
Allowed values:
0 Close;
1 Open

Response body parameters

Field Type Description
id integer
offer_id integer A string that uniquely identifies this offer.
platform string Devices to be targeted, it might be PC/Mobile/Tablet
system string Operating System in Device. By default it allows all OS in targeted platform.
version array Version of the system. By default it allows all versions in targeted system

Example request

Request POST https://{networkname}.api.offerslook.com/v1/offers/3147/platforms


Request POST http://{networkname}.api.offerslook.com/v1/offers/3147/platforms



    {
      "platform": "Mobile",
      "system": "Android",
      "version": [

      ],
      "is_above": 1
    }

Example response


    {
      "code": 0,
      "message": "Success",
      "data": {
        "offer_platform": {
          "target": [
            {
              "id": 2972,
              "offer_id": 3147,
              "platform": "Mobile",
              "system": "Android",
              "version": [

              ],
              "is_above": 0
            },
            {
              "id": 2973,
              "offer_id": 3147,
              "platform": "Mobile",
              "system": "iOS",
              "version": [
                "5.1",
                "6.0",
                "6.1"
              ],
              "is_above": 1
            },
            {
              "id": 2974,
              "offer_id": 3147,
              "platform": "PC",
              "system": "",
              "version": [

              ],
               "is_above": 1
            },
            {
              "id": 2975,
              "offer_id": 3147,
              "platform": "Mobile",
              "system": "Android",
              "version": [

              ],
              "is_above": 1
            }
          ]
        }
      }
    }

results matching ""

    No results matching ""