To Run Advertisement Campaign
Below are the API set anyone can use to broadcast their Advertisment with in Pando Networks.
Step-1 To Post Advertisment.
By using this API licence owner can broadcast their advertiment in Pando Networks.
Create Job For Advertisment
POST
https://testnet.rtservices.pandoproject.org/apis/campaign
This api is used for post Advertisement for RT-Mobile
Request Body
purposeCode*
5
This purpose code -5 set for RT-Mobile services.
campaignName*
Name
Campaign Title
url*
"https//:"
Ads Redirection Url
description*
"xyz"
Description About Campaign
owner*
aaa992929-2292
Wallet Address of Campign owner
securityKey*
public
public,key,domain(Type of security)
domain
String
only paas when security is domain based
fromTimestamp*
2023-05-17T10:19:00.000Z
Time to start Visibility Ads
toTimestamp*
2023-05-18T10:19:00.000Z
Time to stop Visiblilty Ads
fromCountry*
india
from which country we are posting ads
toCountry*
France
Ads Target Company
booster*
True/False
if true then only Target country will see Ads with high priority or In case of False All country have visiblity
Url ,Sessionkey and Campaign id is important for further use (step 2)api
Step-2 To Upload Banner for Advertisment in RTpro.
By using this API licence user can upload banner
in this step we are using Url and session key from step -1 Response.
we are uploading Banner in this api
POST
https://testing1.pandoprojectdata.org/fileupload
Request Body
sessionKey*
String
Recived from step-1
files*
String
File which we want to upload
Step-3 To Create Download Url for Ads by using RTpro.
By using this API licence user can Create download Url
in this step we are using Url and session key and fileid from Step -1 and Step -2 Response.
Download url will generate using this api.
GET
Url/filedownload?fileId=&sessionKey=
Request Body
fileId*
String
sessionKey*
String
Step-4 To add download url in ads Api.
By using this API licence user can upload ads
in this step we are using Url and session key and fileid from Step -1 and Step -3 Response.
Add file url
POST
https://Testnet.rtservices.pandoproject.org/apis/upload
in which we upload download url in video url field.
Request Body
purposeCode*
5
its mandatory code for Ads upload
url*
download url
Url Recived from Step-3
campaignId*
String
Recived from stepn-1 Api
To Get Random Advertisment
By using this API we can get the random advertisment to further show in our application.
To Get Adverstisement detail on basis of country Latitude and longitude wise
GET
https://Testnet.rtservices.pandoproject.org/apis/randomCampaign?latitude=&longitude=
if we not pass any body field then we will see non Booster ads by default.
Request Body
latitude*
51.5072
longitude*
0.1276
Last updated