Delete a whitelist of an advertiser

HTTP method

Endpoint

DELETE

/v1/advertisers/{advertiser_id}/advertiser_whitelists/{whitelist_id}

Path parameters

Parameter

Description

advertiser_id

The unique id for the advertiser.

whitelist_id

The unique id for the whitelist.

Response body parameters

Field

Type

Description

is_open

integer

open whitelist. 0 close ; 1 open

ip_address

array

ip address

ip

string

ip

ip_range

array

ip range

start

string

start ip

end

string

end ip

Example request

Request DELETE https://{networkname}.api.offerslook.com/v1/advertisers/4988/advertiser_whitelists/3

Request DELETE http://{networkname}.api.offerslook.com/v1/advertisers/4988/advertiser_whitelists/3

Example response

    {
      "code": 0,
      "message": "Success",
      "data": {
        "advertiser_whitelist": {
          "advertiser_id": 4988,
          "is_open": 1,
          "ip_address": [
            {
              "id": "1",
              "ip": "192.168.11.100"
            },
            {
              "id": "2",
              "ip": "192.168.21.23"
            }
          ],
          "ip_range": [
            {
              "id": "4",
              "end": "192.168.5.222",
              "start": "192.168.5.110"
            }
          ]
        }
      }
    }

Last updated