SuperADS API V2

1.Introduction

• This document will introduce SuperADS API. Advanced partners can get campaign information by calling API.

• SuperADS API is built on HTTP proto using GET / POST way to obtain the response content. Notably, to call our API, please contact with your account manager get your API Key for authentication. Since anyone can conduct request on your account’s behalf with the API Key, please keep your API Key confidential.

• Please contact with your account manager to get unique request API Key. Anyone can use your API key, Please keep key safe

2.Use case

URL
ParametersDescription
tokenToken is API key.
u(小写)Publisher username.
pageCurrent page NO.
page_sizePage size, Max is 500, default is 100.

XML URL Sample

http://offer.superads.cn/v1/offers?token=[token]&u=[username]&page_size=100&page=1

token is API key.

JSON URL Sample

http://offer.superads.cn/v1/jsons?token=[token]&u=[username]&page_size=100&page=1

token is API key.

URL
ParametersTypeRequiredDescription
tokenStringYesMD5(key)
uStringYesPublisher username
pageintYesPage No.
page_sizeintYesThe size per page

Note: If get all records please do not pass the page or page_size parameters. If pass one the the page and page_size, the max and default page size is 100. The default page No. is one. If the page No. over the total page, it only response the last one of the records. The page nation info will response in the HTTP headers.

Response data.

The response data is the json format. It only contains the publisher offers records.

Response header
ParametersDescription
X-Pagination-Current-PageThe current page No.
X-Pagination-Page-CountTotal pages.Total pages.
X-Pagination-Per-PagePage size.
X-Pagination-Total-CountTotal count

Response body

"total_count” : Total Offers Count
"total_page" : Total Pages Count
"page_size" : Total number of Per page
"now_page" : Current Page Number
"offers" : offer list

Offers:
ParametersDescription
idCampaign ID
campaign_name
osPlatform
target_geoNull or Global is no limit
payout
pricing_mode
daily_cap
statusRunning or paused
created _time
end_time
preview_link
link
traffic_source
icon
category
notes
package_name
carrier
conversion_flow
restriction
creativeid
campaign_id
type1:banner,2:video
link
create_time

Example:

{
"offers": [
 {
  "id": 174
  "campaign_name": "test-spiroox",
  "os": "All,",
  "target_geo": "MX",
  "payout": "0.1",
  "pricing_mode": "CPA",
  "daily_cap": 100,
  "status": "Running",
  "created_time": "2015-03-22 11:23:00",
  "end_time": "",
  "preview_link": "/v1/jsons?token=e97d95cf524077995564bfabcb8ad00b4a&u=superads&page_size=1&page=1",
  "link": "http://trk.superads.cn/index.php?camp=174&ch_id=1",
  "conversion_flow": "",
  "carrier": "",
  "traffic_source": "Non-Incent, No adult",
  "icon": "",
  "category": "",
  "notes": "",
  "package_name": "",
  "restriction": "",
  "creative": []
 }
],
"total_count": 41971,
"total_page": 420,
"now_page": "1",
"page_size": "100"
}