Publisher Connection API
The Publisher Channel is a tool to gather one or multiple ad sources inside a Publisher account under one channel inside a Network account. This also means the channel is the bridge between the ad sources and the ad auction.
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. Publisher Channel entity API
3.1 Get Channels List
Retrieves a list of all Channels in the network.
Request URL:
https://manage.aniview.com/api/adserver/connections?format=json&expand%5B%5D=publisherId&expand%5B%5D=nothingToDo&expand%5B%5D=originPublisherId&expand%5B%5D=origin&expand%5B%5D=advertiserId&expand%5B%5D=originPublisherId&expand%5B%5D=zipTargetingListName&expand%5B%5D=coorTargetingListName&expand%5B%5D=tppRecordId&filter=%7B%22$and%22:%5B%7B%22type%22:%7B%22$in%22:%5B3,2%5D%7D%7D,%7B%22status%22:%7B%22$in%22:%5B1,2,3,5,6,0%5D%7D%7D%5D%7D&pager=%7B%22pageIndex%22:1,%22pageSize%22:50%7D&sort=%7B%22updatedAt%22:-1%7D
Request Method:
GET
Status Code:
200 OK
Filtering Parameters (Optional):
Parameter | Description | Value |
expand%5B%5D | Â | publisherId |
expand%5B%5D | Â | nothingToDo |
expand%5B%5D | Â | originPublisherId |
expand%5B%5D | Â | origin |
expand%5B%5D | Â | advertiserId |
expand%5B%5D | Â | originPublisherId |
expand%5B%5D | Â | zipTargetingListName |
expand%5B%5D | Â | coorTargetingListName |
expand%5B%5D | Â | tppRecordId |
filter | Â | %7B%22$and%22:%5B%7B%22type%22:%7B%22$in%22:%5B3,2%5D%7D%7D,%7B%22status%22:%7B%22$in%22:%5B1,2,3,5,6,0%5D%7D%7D%5D%7D |
pager | Â | %7B%22pageIndex%22:1,%22pageSize%22:50%7D |
sort | Â | %7B%22updatedAt%22:-1%7D |
3.2 Create Publisher Connection
Request URL:
Request URL:
https://manage.aniview.com/api/adserver/networkconnection?format=json
O
https://manage.aniview.com/api/adserver/networkconnection?format=json&addNewChannel=true
Request Method:
POST
Parameter | Description | Value |
playerSettings__tagTimeout | Â | Integer |
playerSettings__optimizedTimeout | Â | Boolean |
playerSettings__maxRPM | Â | Integer |
playerSettings__maxParallelBid | Â | Integer |
description | Â | String |
flight__isScheduled | Â | Boolean |
flight__startDate | Â | Integer |
flight__endDate | Â | Integer |
flight__pViewValue__startDate | Â | 2023-05-25T07:30:52.839Z |
flight__pViewValue__endDate | Â | 2023-05-25T07:30:52.839Z |
impressionCap__frequency | Â | Integer |
impressionCap__sum | Â | Integer |
impressionCap__totalCompleted | Â | Integer |
impressionCap__dailyCompleted | Â | Integer |
impressionCap__monthlyCompleted | Â | Integer |
impressionCap__advancedCappingRules__conditionType | Â | and |
supplyImpressionCap__frequency | Â | Integer |
supplyImpressionCap__sum | Â | Integer |
supplyImpressionCap__totalCompleted | Â | Integer |
supplyImpressionCap__dailyCompleted | Â | Integer |
supplyImpressionCap__monthlyCompleted | Â | Integer |
supplyImpressionCap__servingMode | Â | Integer |
supplyRequestsPerDay__limit | Â | Integer |
supplyRequestsPerDay__hasLimit | Â | Boolean |
frequencyCap__sum | Â | Integer |
frequencyCap__frequency | Â | Integer |
frequencyCap__servingMode | Â | Boolean |
supplyFrequencyCap__sum | Â | Integer |
supplyFrequencyCap__frequency | Â | Integer |
supplyFrequencyCap__servingMode | Â | Boolean |
supplyFrequencyCap__propagateToDemand | Â | Boolean |
optimizationSettings__limit | Â | Boolean |
optimizationSettings__minFr | Â | Float |
optimizationSettings__timeFrame | Â | Integer |
optimizationSettings__hasLimit | Â | Boolean |
name | Â | String |
provider | Â | Integer |
requestsPerDay__limit | Â | Integer |
requestsPerDay__hasLimit | Â | Boolean |
requestsPerDay__servingMode | Â | Boolean |
requestsPerDay__advancedCappingRules__conditionType | Â | and |
servingMode | Â | Integer |
source__type | Â | Integer |
source__url | Â | String |
source__clickThroughUrl | Â | String |
source__mime | Â | Object |
source__bidder | Â | String |
source__protocols | Â | Object |
source__at | Â | Â |
source__test | Â | Â |
source__timeout | Â | Â |
source__tmax | Â | Â |
source__mimes | Â | Â |
source__placement | Â | Â |
source__frameworks | Â | Â |
source__floorPriceType | Â | Integer |
source__prioritizeFP | Â | Boolean |
source__prioritizeConnFP | Â | Boolean |
source__cookieSync__provider | Â | Â |
status | Â | Integer |
type | Â | Integer |
accounting__type | 0 is Revshare, 1 is CPM | Integer |
accounting__value | Â | Integer |
publisherId | Â | String |
origin | Channel ID | String |
platformLink__environment | Â | Integer |
platformLink__platformID | Â | Â |
originPublisherId | Network ID | String |
dTargeting__bot | Â | Boolean |
dTargeting__geography__isCountryView | Â | Boolean |
dTargeting__geography__excludeUnknownGeo | Â | Boolean |
dTargeting__geographyCoor__inclusion | Â | Boolean |
dTargeting__geographyZip__inclusion | Â | Boolean |
dTargeting__placement__inclusion | Â | Boolean |
dTargeting__placement__excludeUnknown | Â | Boolean |
dTargeting__dow | Â | Â |
dTargeting__adtxt | Â | Â |
dTargeting__domain__inclusion | Â | Boolean |
dTargeting__device | Â | Â |
dTargeting__os | Â | Â |
dTargeting__tag | Â | Â |
dTargeting__playerSize | Â | Â |
dTargeting__targetPlatform | Â | Â |
dTargeting__slot | Â | Â |
tpp__provider | Â | Integer |
tpp__tppRecordId | Â | Integer |
ignoreNetworkConnectionFloorPrice | Â | Boolean |
ignorePartnerConnectionFloorPrice | Â | Boolean |
useAdvertiserTargeting | Â | Boolean |
originConnectionType | Â | Integer |
ownerType | Â | Integer |
floorPrice | Â | Integer |
Â
Request Example payload :
{
"cpm": 0,
"playerSettings": {
"tagTimeout": 20000,
"optimizedTimeout": false,
"maxRPM": 0,
"maxParallelBid": 0
},
"description": null,
"flight": {
"isScheduled": false,
"startDate": 1685010652,
"endDate": 1685010652,
"pViewValue": {
"startDate": "2023-05-25T07:30:52.839Z",
"endDate": "2023-05-25T07:30:52.839Z"
}
},
"impressionCap": {
"frequency": 4,
"sum": "0",
"totalCompleted": 0,
"dailyCompleted": 0,
"monthlyCompleted": 0,
"advancedCappingRules": {
"conditions": [],
"conditionType": "and"
}
},
"supplyImpressionCap": {
"frequency": 4,
"sum": 0,
"totalCompleted": 0,
"dailyCompleted": 0,
"monthlyCompleted": 0,
"servingMode": 1
},
"supplyRequestsPerDay": {
"limit": 0,
"hasLimit": false
},
"frequencyCap": {
"sum": 0,
"frequency": 4,
"servingMode": 1
},
"supplyFrequencyCap": {
"sum": 0,
"frequency": 4,
"servingMode": 1,
"propagateToDemand": true
},
"optimizationSettings": {
"limit": 0,
"minFr": 0.5,
"timeFrame": 3,
"hasLimit": false
},
"name": "Please delete",
"provider": 999,
"requestsPerDay": {
"limit": "0",
"hasLimit": false,
"servingMode": 1,
"advancedCappingRules": {
"conditions": [],
"conditionType": "and"
}
},
"servingMode": 1,
"source": {
"type": 9,
"url": "",
"clickThroughUrl": null,
"mime": null,
"bidder": null,
"protocols": null,
"at": null,
"test": null,
"timeout": null,
"rtb": {},
"tmax": null,
"mimes": null,
"placement": null,
"frameworks": null,
"floorPriceType": 1,
"prioritizeFP": false,
"prioritizeConnFP": false,
"cookieSync": {
"provider": "#null#"
}
},
"status": 1,
"targeting": {},
"type": 2,
"accounting": {
"type": 0,
"value": 0
},
"ivt": {},
"publisherId": "[Enter publisher ID]",
"origin": "[Enter channel ID]",
"platformLink": {
"environment": 1,
"platformID": null
},
"originPublisherId": "[Enter publisher ID]",
"dTargeting": {
"bot": true,
"customTargeting": [],
"geography": {
"isCountryView": true,
"excludeUnknownGeo": false
},
"geographyCoor": {
"inclusion": true,
"list": []
},
"geographyZip": {
"inclusion": true,
"list": []
},
"placement": {
"inclusion": true,
"excludeUnknown": false
},
"dow": null,
"adtxt": null,
"domain": {
"list": [],
"inclusion": true
},
"device": null,
"os": null,
"tag": null,
"playerSize": null,
"targetPlatform": null,
"idfa": {},
"slot": null
},
"trackers": [],
"dTrackers": [],
"fts": {},
"tpp": {
"provider": 999,
"tppRecordId": null
},
"ignoreNetworkConnectionFloorPrice": false,
"ignorePartnerConnectionFloorPrice": false,
"useAdvertiserTargeting": false,
"originConnectionType": 2,
"thirdPartyCost": {},
"priceException": {},
"ownerType": 1,
"floorPrice": 0
}
3.3 Update Channel Properties
Request URL:
https://manage.aniview.com/api/adserver/networkconnection/${Channel_Id}?format=json
Request Method:
PUT
Request Example payload:
Parameter | Description |
---|---|
_id > $oid$o | Channel ID |
3.4. Delete Channel
Request URL:
Request URL: https://manage.aniview.com/api/adserver/networkconnection/${Channel_Id}?format=json
Request Method:
Delete
Status Code:
200 OK
Request Example payload:
Parameter | Description |
---|---|
_id > $oid | Channel ID |
{"_id":{"$oid":"6211f80558f94129955ab635"},"adSources":[{"id":"60eddbed496b092021128718","priority":"1"},{"id":"60eddbeb496b092021128716","priority":"1"}]}
3.5. Get Channel properties (including associated ad sources)
Request URL:
Request URL: https://manage.aniview.com/api/adserver/networkconnection/${Channel_Id}?format=json
Some ad sources may directly target domains/apps instead of targeting lists. To get those domains/apps, add &expand={"adSources": ["defaultDomain"]}, like:
https://manage.aniview.com/api/adserver/networkconnection/${Channel_Id}?expand=%7B%22adSources%22%3A+%5B%22defaultDomain%22%5D%7D
Request Method:
Get
Status Code:
200 OK