1. Create and Update Network Publisher and App Parameters
1.1 Request URL
https://api.toponad.net/v1/set_networks
1.2 Request method
POST
8.1.3 Request params
params | type | required | notes |
---|---|---|---|
network_name | String | N | The account name of network, which must be passed when opening multiple accounts |
nw_firm_id | Int | Y | Network Firm ID |
network_id | Int | N | Network Account ID |
is_open_report | Int | N | Whether to activate Report API |
auth_content | Object | N | Network Publisher Params |
network_app_info | Array | N | - |
network_app_info.app_id | String | N | Taku App ID |
network_app_info.app_auth_content | Object | N | Network App Params. See the appendix (Detailed parameters of network) |
1.4 Return data
fields | type | required | notes |
---|---|---|---|
network_name | String | Y | The account name of network |
nw_firm_id | Int | Y | Network Firm ID |
network_id | Int | N | Network Account ID |
is_open_report | Int | N | Whether to activate Report API |
auth_content | Object | N | Network Publisher Params |
network_app_info | Array | N | - |
network_app_info.app_id | String | N | Taku App ID |
network_app_info.app_auth_content | Object | N | Network App Params |
1.5 Sample
Request sample:
{
"network_name": "Default",
"nw_firm_id": 2,
"network_id": 226,
"is_open_report": 2,
"auth_content": {
"account_id": "pub-1310074477383748",
"oauth_key": "1/CW8VoZRbc5UCscXs3ddTXzwT9LQ71uFUMSE6iEwcRlk"
},
"network_app_info": [
{
"app_id": "a5bc9921f7fdb4",
"app_auth_content": {
"app_id": "ca-app-pub-1310074477383748~6985182465"
}
}
]
}
Return sample:
{
"network_name": "Default",
"nw_firm_id": 2,
"network_id": 226,
"is_open_report": 2,
"auth_content": {
"account_id": "pub-1310074477383748",
"oauth_key": "1/CW8VoZRbc5UCscXs3ddTXzwT9LQ71uFUMSE6iEwcRlk"
},
"network_app_info": [
{
"app_id": "a5bc9921f7fdb4",
"app_auth_content": {
"app_id": "ca-app-pub-1310074477383748~6985182465"
}
}
]
}
2. Get Network Publisher and App Parameters
2.1 Request URL
https://api.toponad.net/v1/networks
2.2 Request method
GET
2.3 Request params
None
2.4 Return data
fields | type | required | notes |
---|---|---|---|
network_name | String | Y | The account name of network |
nw_firm_id | Int | Y | Network Firm ID |
network_id | Int | N | Network Account ID |
is_open_report | Int | N | Whether to activate Report API |
auth_content | Object | N | Network Publisher Params |
network_app_info | Array | N | - |
network_app_info.app_id | String | N | Taku App ID |
network_app_info.app_auth_content | Object | N | Network App Params |
2.5 Sample
Return sample:
[
{
"network_name": "Default",
"nw_firm_id": 1,
"network_id": 307,
"is_open_report": 2,
"network_app_info": [
{
"app_id": "appid1",
"app_auth_content": {
"app_id": "24234234",
"app_token": "1"
}
}
]
},
{
"network_name": "24523423",
"nw_firm_id": 1,
"network_id": 1418,
"is_open_report": 2,
"network_app_info": [
{
"app_id": "appid2",
"app_auth_content": {
"app_id": "232323",
"app_token": "1"
}
}
]
}
]
3. Create and Update Custom Network Publisher and App Parameters
3.1 Request URL
https://api.toponad.net/v1/set_custom_network
3.2 Request method
POST
3.3 Request params
params | type | required | notes |
---|---|---|---|
nw_firm_id | Int | N | Network firm ID, the modification operation must be passed, if not passed, it means to create a custom network platform |
nw_firm_name | String | N | Network firm name, Default when not transmitting |
network_id | Int | N | Network account ID, the modification operation must be passed |
network_name | String | N | Network account name, Default when not transmitting |
firm_adapters | Array | N | - |
firm_adapters.platform | int | N | SDK platform: 1: Android, 2: IOS |
firm_adapters.format | int | N | Adformat: 0: native, 1: rewarded_video, 2: banner, 3: interstitial, 4: splash |
firm_adapters.adapter | string | N | Adapter name. Default is empty |
3.4 Return data
fields | type | required | notes |
---|---|---|---|
nw_firm_id | Int | Y | Network firm ID |
nw_firm_name | String | Y | Network firm name |
network_id | Int | Y | Network account ID |
network_name | String | Y | Network account name |
firm_adapters | Array | Y | - |
firm_adapters.platform | int | Y | SDK platform: 1: Android, 2: IOS |
firm_adapters.format | int | Y | Adformat: 0: native, 1: rewarded_video, 2: banner, 3: interstitial, 4: splash |
firm_adapters.adapter | string | N | Adapter name. Default is empty |
3.5 Sample
Request sample:
{
"nw_firm_id": 1000068,
"nw_firm_name": "b555",
"network_id": 33,
"network_name": "Default112",
"firm_adapters": [
{
"platform": 1,
"format": 0,
"adapter" : "com.topon"
},
{
"platform": 2,
"format": 1,
"adapter" : "com.topon"
}
]
}
Return sample:
{
"nw_firm_id": 1000068,
"nw_firm_name": "b555",
"network_id": 33,
"network_name": "Default112",
"firm_adapters": [
{
"platform": 1,
"format": 0,
"adapter" : "com.topon"
},
{
"platform": 2,
"format": 1,
"adapter" : "com.topon"
}
]
}
4. Get Custom Network Publisher and App Parameters
4.1 Request URL
https://api.toponad.net/v1/custom_networks
4.2 Request method
GET
4.3 Request params
None
4.4 Return data
fields | type | required | notes |
---|---|---|---|
networks | Array[Object] | Y | - |
networks.nw_firm_id | Int | Y | Network firm ID |
networks.nw_firm_name | String | Y | Network firm name |
networks.network_id | Int | Y | Network account ID |
networks.network_name | String | Y | Network account name |
networks.firm_adapters | Array[Object] | Y | - |
networks.firm_adapters.platform | Int | Y | SDK platform: 1: Android, 2: IOS |
networks.firm_adapters.format | Int | Y | Adformat: 0: native, 1: rewarded_video, 2: banner, 3: interstitial, 4: splash |
networks.firm_adapters.adapter | String | N | Adapter name. Default is empty |
4.5 Sample
Return sample:
[
{
"nw_firm_id": 1000068,
"nw_firm_name": "b555",
"network_id": 33,
"network_name": "Default112",
"firm_adapters": [
{
"platform": 1,
"format": 0,
"adapter" : "com.topon"
},
{
"platform": 2,
"format": 1,
"adapter" : "com.topon"
}
]
},
{
"nw_firm_id": 1000069,
"nw_firm_name": "b555",
"network_id": 33,
"network_name": "Default112",
"firm_adapters": [
{
"platform": 1,
"format": 0,
"adapter" : "com.topon"
},
{
"platform": 2,
"format": 1,
"adapter" : "com.topon"
}
]
}
]