Skip to content

Latest commit

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Online API

*The API is only accessible by HTTP GET and returns data in JSON format.

API Request

API Request Description

URL: https://dsp-sg.miadx.net/v1/ol/ads
Method: POST
Headers: 'content-type: application/json'

Request (JSON)

Request

ParameterTypeMandatoryExampleDescription
client_infoClientInfoYClient basic information
slots[]SlotYBasic placement information, requesting up to 10 ad placements at a time
ParameterTypeMandatoryExampleDescription
ipStringY184.34.21.5Client IP
uaStringYMozilla/5.0 (Linux;) (KHTML) Chrome/69 Mobile Safari/5Client user agent string
net_typeStringNNET_TYPE_WIFINetwork Type, [NET_TYPE_WIFI, NET_TYPE_2G, NET_TYPE_3G, NET_TYPE_4G]
gaidStringN975d6d12-07ec-4215-aece-b804debb4c75Google Advertising ID
idfaStringN975d6d12-07ec-4215-aece-b804debb4c75Apple Advertising ID
ParameterTypeMandatoryExampleDescription
uidIntegerY1257Account unique id
aidIntegerY21541Media unique id
slot_idIntegerY356214Placement unique id
template_idIntegerY15262Ad template unique id

Response (JSON)

Response

ParameterTypeDescription
codeIntegerError code
msgStringError message
slot_ads[]SlotAdAd information
ParameterTypeMandatoryExampleDescription
slot_idIntegerY84610400Placement unique id
ads[]AdYAd information
ParameterTypeMandatoryExampleDescription
oidIntegerY158462Ad unique id
creativesCreativesYCreative information
tracking_urlsTrackingUrlsYIncludes impression and click links
ParameterTypeMandatoryExampleDescription
titleStringNgoogle playTitle of the promoted product
descriptionStringNandorid apps on goole playDescription of the promoted product
img_urlStringYhttps://dsp-sg.miadx.net/v1/ol/ads/a.pngImage of the promoted product
icon_urlStringNhttps://dsp-sg.miadx.net/v1/ol/ads/a.pngIcon of the promoted product
video_urlStringNhttps://dsp-sg.miadx.net/v1/ol/ads/a.mp4Video of the promoted product
ratingfloatN4.8The App’s average rating on the Appstore / PlayStore
ctatextStringNinstallCTA description
landing_page_urlStringYhttps://dsp-sg.miadx.net/v1/ol/ads/goClick to jump to the landing page
ParameterTypeMandatoryExampleDescription
impression_url[]StringY[https://dsp-sg.miadx.net/v1/ol/ads/log?f=ol&r=ChxDT]Impression callback address, and callback must be made after the ad is displayed.
click_url[]StringY[https://dsp-sg.miadx.net/v1/ol/ads/log?f=ol&r=mc291]Click callback address , and callback must be made after the ad is clicked.

Example:

Request

curl -X POST \
https://dsp-sg.miadx.net/v1/ol/ads \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d \
'{
"client_info":{
"ip":"192.168.1.3",
"ua":"Mozilla/5.0 (Linux; Android 7.0.0;) AppleWebKit/527 (KHTML, like Gecko) Chrome/69.0.0.0 Mobile Safari/5"
},
"slots": [
{
"uid": 140488,
"aid": 1223867,
"slot_id": 10616,
"template_id": 11001
}
]
}'

Response

-H 'content-type: application/json'
{
"slot_ads": [
{
"slot_id": 100000400,
"ads": [
{
"oid": 100,
"creatives": {
"img_url": "http://x.cdn.net/public/ad/creative/298825232acf53dfb3666b8963f011860c4-.jpg",
"landing_page_url": "https://dsp-sg.miadx.net/v1/ol/ads/go"
},
"tracking_urls": {
"impression_url": "https://dsp-sg.miadx.net/v1/ol/ads/log?f=ol&r=ChxDT2RMRUwtY094aUFfZUdTSkNDc0FpajZBV2dEGIHYFiAC",
"click_url": "https://dsp-sg.miadx.net/v1/ol/ads/log?f=ol&r=ChxDT2RMRUwt91cmNlPTk3MDMwMzA0MDAYgdgWIAM"
}
}
]
}
]
}

Releases

Packages

Contributors