Skip to content

Create Campaign

PS: You need to use Token to change the status, for more details, please check Token

Create ads objective you want to promote. It can be either an app or website.

Request address

https://ss-api.mintegral.com/api/open/v1/campaign

Request method

POST

Request example

json
POST /api/open/v1/campaign
HTTP/1.1 Host: ss-api.mintegral.com
Content-Type: application/json
{
  "campaign_name""Test",
  "is_coppa""YES",
  "promotion_type""APP",
  "alive_in_store""YES",
  "preview_url""https://play.google.com/store/apps/details?id=xxxxxxx",
  "product_name""Test",
  "package_name""com.tencent.mm",
  "description""Test",
  "icon""f7c970d0d24c71d84d15a78f29042323",
  "platform""ANDROID",
  "category""BUSINESS",
  "app_size"12.13,
  "min_version""1.0.0"
}

Request Parameter

Note:If the default value is empty, the value in table below is shown as "—"

FieldsTypeExplanationsDefault ValueExamples
campaign_namestringShort description for campaign,campaign name must be unique and the max length is 100."Test_campaign_name"
promotion_typestringType of ads objective you want to promote. It can be either "APP" or "WEBSITE"."APP"
preview_urlstringThe preview link of ads object.
Note:
1.promotion_type="APP" and alive_in_store="YES", We will get application information automatically via using preview link, product_name、package_name、description、icon、platform、category、app_size、min_version included.
2.We prefer to use application information we captured for promotion than the value you added,and,if we get nothing from preview link, we’ll turn to use the value you set.
android: "https://play.google.com/store/apps/details?id=com.tencent.mm&hl=zh"
ios: "https://apps.apple.com/cn/app/%E6%94%AF%E4%BB%98%E5%AE%9D-%E8%AE%A9%E7%94%9F%E6%B4%BB%E6%9B%B4%E7%AE%80%E5%8D%95/id333206289"
is_coppastringIf campaign is directed to children, you should specify whether the campaign satisfy the requirement of COPPA. Optional value:"YES""NO"."YES"
alive_in_storestringSpecify whether the APP you want to promote is already alive in Google Play or iOS App Store. Optional value:"YES""NO"."YES"
iconstringMD5 of the logo or icon. You can get md5 after upload image successfully through creative upload API.
Note:Only jpg、png、 jpeg、 bmp file accepted and the dimension should be 512x512 within 5 M.
"f7c970d0d24c71d84d15a78f29042323"
product_namestringApp name or website name, the max length for this field is 100."product_name_test"
package_namestringBundle id or ios application store id of the App. Note:platform="IOS"&&alive_in_store="YES", package name must be application store id .
platform="ANDROID", package name should be bundle id id.
android: "com.tencent.mm"
ios: "id414478124"
app_sizenumberSize of app,the unit is MB. If you ads objective is a website, leave this field empty.12.34
platformstringPlatform to promote you ads,optional value is "IOS" and "ANDROID", please note you can only choose one of them."IOS"
categorystringCategory of ads objective. The category is different between different platform, Please check [ENUM - Category For IOS][ENUM - Category For ANDROID]."GAMES"
min_versionstringMinimum OS version allowed in format of /^[0-9](\.[0-9]){0,2}$/ . Note: if you ads objective is a website, please leave this field empty."1.0.0"
descriptionstringDescription of ads objective, the maximum length of this field is 4000."Test"

Response

FieldsTypeExplanations
codeint200 code, is success. Others, are fail.
msgstringIf success, return to "success". If fail, return to detailed wrong info.
datajsonIf success, return to campaign data. If fail, return to detailed wrong info.
campaign_idintUnique ID for campaign
campaign_namestringCampaign name you add
is_coppastringThe value of COPPA setting
promotion_typestringPromotion type you set
alive_in_storestringThe value you set of “alive in store”
preview_urlstringPreview link you add in campaign
product_namestringAds objective name
package_namestringIOS app store id or buddle id of the application you want to promote
descriptionstringDescription of ads objective
iconstringMd5 of icon or logo
platformstringPlatform of campaign
categorystringCategory of campaign
app_sizestringSize of application
min_versionstringMinimum OS version

Response Example

json
{
  "msg": "success",
  "code": 200,
  "data": {
    "campaign_id": 1234,
    "is_coppa": "YES",
    "campaign_name": "Test",
    "promotion_type": "APP",
    "alive_in_store": "YES",
    "preview_url": "https://play.google.com/store/apps/details?id=xxxxxxx",
    "product_name": "Test",
    "package_name": "com.tencent.mm",
    "description": "Test",
    "icon": "f7c970d0d24c71d84d15a78f29042323",
    "platform": "ANDROID",
    "category": "BUSINESS",
    "app_size": "12.13",
    "min_version": "1.0.0"
  }
}