Update the settings for a whitelist of an advertiser

HTTP method Endpoint
PUT /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.

Request body parameters

Field Type Description Nullable
ip string ip No
start string start ip No
end string end ip No

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 PUT https://{networkname}.api.offerslook.com/v1/advertisers/4988/advertiser_whitelists/1


Request PUT http://{networkname}.api.offerslook.com/v1/advertisers/4988/advertiser_whitelists/1



    {
      "ip": "192.168.11.100"
    }

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.2.25"
            }
          ],
          "ip_range": [
            {
              "id": "3",
              "end": "192.168.1.222",
              "start": "192.168.1.1"
            },
            {
              "id": "4",
              "end": "192.168.2.12",
              "start": "192.168.2.1"
            },
            {
              "id": "5",
              "end": "192.168.3.56",
              "start": "192.168.3.3"
            }
          ]
        }
      }
    }

results matching ""

    No results matching ""