Domains API
1. Login
To log in - the general login API is used. Example - Reporting API | Login API
2. Logout
To log out - the general logout API is used. Example - Reporting API | Logout API
3. Domains entity API
3.1. Domain Lists
Retrieves a list of all domain lists in the logged network.
Request URL:
https://manage.aniview.com/api/adserver/domain?format=json&filter={"status":1}
Request Method:
GET
Status Code:
200 OK
3.2. Get Domain List Info
Request URL:
https://manage.aniview.com/api/adserver/domainhost?format=json&domainId={id}&pager={"pageIndex":,"pageSize":}
Request Method:
GET
Status Code:
200 OK
3.3. Create Domain List
Request URL:
https://manage.aniview.com/api/adserver/domain?format=json
Request Method:
POST
Request payload:
{
"name": "",
"hosts": []
}
Status Code:
200 OK
3.4. Edit Domain List
3.4.1 Add Domains to list
Request URL:
https://manage.aniview.com/api/adserver/domainhost/{$list_id}?format=json
Request Method:
PUT
Request payload:
{
"hosts": []
}
3.4.2 Remove Domain from list:
Request URL:
https://manage.aniview.com/api/adserver/domainhost/{$list_id}?format=json&host=($domain_to_delete)
Request Method:
DELETE
Status Code:
200 OK
3.4.3 Add Targeted Adsources
Request URL:
https://manage.aniview.com/api/adserver/custom/associate-domains-to-adsources?format=json
Request Method:
PUT
Request payload:
{
"adsourcesIds": [],
"domainsListId": ""
}
3.5. Remove all Domains from List
Request URL:
https://manage.aniview.com/api/adserver/domainhost/{$list_id}?format=json&$clearAll=true
Request Method:
DELETE
Status Code:
200 OK
3.6. Remove Domains List
Request URL:
https://manage.aniview.com/api/adserver/domain/<Domain_List_Id>?format=json
Request Method:
DELETE
Status Code:
200 OK
Request payload:
Â