Add a new whitelist of an advertiser
HTTP method
Endpoint
POST
/v1/advertisers/{advertiser_id}/advertiser_whitelists
You can choose to add an ID address or a IP address segment set.
Path parameters
Parameter
Description
advertiser_id
The unique id for the advertiser.
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 POST https://{networkname}.api.offerslook.com/v1/advertisers/4988/advertiser_whitelists
Request POST http://{networkname}.api.offerslook.com/v1/advertisers/4988/advertiser_whitelists
When adding an IP address, the format is
When adding an IP address segment, the format is
Example response
The return result of adding an IP address is
Add the IP address segment to the return result
Last updated