With this API integration guidelines, you will be able to request demand from adgebra in real time by sending required parameters in API call. In response, adgebra will send ad details which can be used to serve ads in Web, Push Notifications and In-App environment.
https://adgebra.co.in/AdServing/PushNativeAds?pid=[PARTNER_ID]&mkeys=[KEYWORDS]&dcid=[Delivery_Channel_ID]&nads=[Number_of_Ads]&deviceId=[Device_ID]&uid=[Unique_ID]&ip=[IP_address_at_client_location]&url=[Domain]&pnToken=[Unique_PIN]&gaid=[GAID]&slotId=[Slot_ID]&templateId=[Template_ID]&osType[ios or android]&articleTitle=[Article_Title]&articleDescp=[Article_Description]&refUrl=[Refer_URL]&chToken=[Unique_PIN]
Know your ad elements:
Response Format:
[{ "imageUrl":"[Image_Path_of]",
"notificationMessage":"[Description_of_Ad]",
"trackerUrl":"[Landing_Page_URL]",
"notificationTitle":"[Short_Text_or_Brand_Name]",
"icon":"[Logo_of_Brand]",
"lifeOfAd":"[Validity_of_Ad]",
"notificationImage":"[Ad_Image]",
"advId":"[Advertiser_ID]",
"campId":"[Campaign_ID]",
"pricingModel":"[Pricing_Model]",
"price":"[Bid_Price]",
"brandingLine":"ads by adgebra",
"brandingImageUrl":"https://cdn.adgebra.in/custom/generic/ads_by_adgebra_app_strip_90x20.png"
}]
*If nads=1
[{
"imageUrl": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_400x300.jpg",
"notificationMessage": "Own+the+BMW+2GC+at+a+monthly+payment+of+%E2%82%B939%2C300",
"trackerUrl": "https://adgebra.co.in/Tracker/ClickTracker?p1=160432&p2=4966&token=91921010700717&p3=&p4=${flag}&slotId=0&templateId=0&pnStatus=1&uid=1421_12345678&pnReferUrl=english.dailyhunt.in&p5=${url}&adg_dummy=1",
"notificationTitle": "BMW+India",
"icon": "https://cdn.adgebra.in/images//991_4142/31781_157791/BMW_Logo.jpg",
"lifeOfAd": "1800",
"notificationImage": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_360X240.jpg",
"advId": "4142",
"campId": "32227",
"pricingModel": "1",
"currency": "inr",
"price": "12.0",
"brandingLine": "null",
"brandingImageUrl": "null",
"clientImpressionTracker": "",
"impressionTrackerUrl": "https://adgebra.co.in/AdServing/SPNTracker?bannerId=160432&siteId=4966&dcId=9&deviceId=1&uid=1421_12345678&countryId=1269750&stateId=1264418&cityId=1259229&ipAdrs=203.109.101.177&bidPrice=12.0&apiFlag=1",
"uId": "12345678",
"img990x505": "https://cdn.adgebra.in/images/991_4142_9663/990x505.jpg",
"size_43_200x150": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_200x150.jpg",
"size_43_100x75": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_100x75.jpg",
"size_169_400x225": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_400x225.jpg",
"size_169_200x113": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_200x113.jpg",
"size_169_100x56": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_100x56.jpg",
"size_21_400x200": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_400x200.jpg",
"size_21_200x100": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_200x100.jpg",
"size_21_100x50": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_100x50.jpg",
"size_65_600x500": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_600x500.jpg",
"size_65_300x250": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_300x250.jpg",
"size_65_100x83": "https://cdn.adgebra.in/images/991_4142_9663/BMW_updated_100x83.jpg"
}]
*If nads is greater than 1
[{"imageUrl":"https://cdn.adgebra.in/images//227_932/4458_11914/400X300_1.jpg","notificationMessage":"Coverfox+Term+Insurance+-+Rs.50+Lakh+Cover+%40+Just+Rs.386*pm.+Compare+Quotes","trackerUrl":"https://adgebra.co.in/Tracker/ClickTracker?p1=11914&p2=100&p3=&p4=${flag}&slotId=0&templateId=0&pnStatus=1&pnReferUrl=demo.inuxu.org&p5=${url}","notificationTitle":"Coverfox","icon":"https://cdn.adgebra.in/images//227_932/4458_11914/4455_11911/4454_11910/logo.jpg","lifeOfAd":"1800","notificationImage":"https://cdn.adgebra.in/images//227_932/4458_11914/360X240_400X300_1.jpg","advId":"932","campId":"4458","pricingModel":"2","price":"1.8","brandingLine":"ads by adgebra","brandingImageUrl":"https://cdn.adgebra.in/custom/generic/ads_by_adgebra_app_strip_90x20.png"},
{"imageUrl":"https://cdn.adgebra.in/images//227_932/4458_11914/400X300_1.jpg","notificationMessage":"Coverfox+Term+Insurance+-+Rs.50+Lakh+Cover+%40+Just+Rs.386*pm.+Compare+Quotes","trackerUrl":"https://adgebra.co.in/Tracker/ClickTracker?p1=11914&p2=100&p3=&p4=${flag}&slotId=0&templateId=0&pnStatus=1&pnReferUrl=demo.inuxu.org&p5=${url}","notificationTitle":"Coverfox","icon":"https://cdn.adgebra.in/images//227_932/4458_11914/4455_11911/4454_11910/logo.jpg","lifeOfAd":"1800","notificationImage":"https://cdn.adgebra.in/images//227_932/4458_11914/360X240_400X300_1.jpg","advId":"932","campId":"4458","pricingModel":"2","price":"1.8","brandingLine":"ads by adgebra","brandingImageUrl":"https://cdn.adgebra.in/custom/generic/ads_by_adgebra_app_strip_90x20.png"}]
1. At any point in time, if the response is blank or invalid, then it should be handled at client end. At times when planned/unplanned adgebra maintenance activity may be scheduled.
2. If no. of available ads is less than requested, then it will send response for available campaigns and remaining elements will be indicated with message - {"msgCode":"Campaign Not Found"}