Skip to content

Create Offer

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

Create ads offer you want to promote. Please note that ads offer under each ads campaign, for example, when promoting an app, it may need to create different ads offers in accordance to different geos, price per offer and creatives.

Request address

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

Request method

POST

Request example

json
POST /api/open/v1/offer
HTTP/1.1 Host: ss-api.mintegral.com
Content-Type: application/json
 {
  "campaign_id""25",
  "offer_name""cqf_testtttt",
  "promote_timezone"7,
  "start_time"1578455012,
  "target_geo""ALL",
  "bid_type""CPI",
  "bid_rate"5,
  "daily_cap_type""BUDGET",
  "daily_cap""50",
  "total_budget""50",
  "settlement_event""",
  "os_version_min""8.8",
  "custom_ad_schedule": {"1":"0,1,23","2":"3,4,5","3":"3,6,5"},
  "custom_ad_schedule_timezone"0,
  "network""WIFI",
  "target_ad_type""BANNER",
  "creatives_sets": [
    {"creative_set_name":"demo1","geos":["ALL"],"ad_outputs":[111],"creatives":[{"creative_name":"material1","creative_md5":"c09d944dcf2d6ded1acd6eb2237f8bad"},{"creative_name":"icon_512x512","creative_md5":"5a42fed89d97cfe253c2f7b6be86f8ed"},{"creative_name":"1200x627","creative_md5":"ea5c9ca2f16cace9c133bb327e1c83dd"}]}
  ],
  "target_device""PHONE"
 }

Request Parameter

FieldsTypeExplanationsDefault ValueExamples
campaign_idintRelated Campaign id1234
offer_namestringUnique name for offer. Only alphabets, underscores and numbers are allowed. Length within 3~95."""offer_test"
promote_timezonenumberTimezone setting for promotion period.[ENUM - Timezone]""5.5
start_timeintTimestamp of promotion start time. Must be earlier than end_time (if any).
PS:start time must be after 946656000
1578455012
end_time OptionalintTimestamp of promotion end time. Must be after start_time (if any).01578455169
target_geostringTarget geos for promotion. Set "ALL" for global promotion. Separate with commas for multiple geos."CN"
bid_type DeprecatedstringPricing model, Enum value in :[ENUM - Pricing Mmodel]
Note: available bid type is determine by permission, if returns "permission denied",please contact AM to get access.
"""CPC"
billing_typestringPricing model, Enum value in :[ENUM - Pricing Mmodel]
Note: available bid type is determine by permission, if returns "permission denied",please contact AM to get access.
"""CPC"
bid_goal When bid_type is set to OCPI, it is a must to fill in the required field.stringOptimized Target types: Target-ROAS, Install, impression, with the following relationship to bid_type:
bid_typebid_goal
OCPITarget-ROAS
CPIInstall
CPMImpression
CPEEvent
Target-ROAS
target_mtg_eventarray<string>Objectives to optimize. [Update Target Goal]

When bid_type is set to oCPI, the bid_goal must be set to Target-ROAS and it is a must to fill in the required field.

["Ad Revenue", "Purchase"]
target_goal_window When bid_goal is set as Target-ROAS, it is mandatory to fill in.stringThe time window of the optimization goal, enumeration value: D0, D7, the time window supported by different bid_goal is as follows:

Target-ROAS:D0

D0
target_goal When bid_goal is set as Target-ROAS, it is required to be filled in.doubleThe offer dimension optimizes the goal value, and the different bid_goal ranges are as follows:

Target-ROAS: This value is in the range [1, 1000] with two decimal places in percentage.

80
target_goal_by_geoarray<json>The geo dimension optimizes the objective value
geostringgeo
target_goaldoubleOptimize the target value
bid_ratenumberDefault bidding price value for all target geos. Float with 3 decimal places greater than 0 is allowed. For CPE/CPI/CPM bid type, value must be greater than 0.01. For CPC bid type, value must be greater than 0.001.""0.04
daily_cap_type OptionalstringDaily budget setting type. Enum value:"BUDGET"、 "CONVERSION""BUDGET""CONVERSION"
daily_cap OptionalnumberDaily budget value. Set null for open daily budget. Value must be greater than 50.100
total_budget OptionalnumberTotal budget value with 3 decimal places. Set null for open total budget. If daily_cap_type= "BUDGET", value must be greater than 50.50.12
settlement_event OptionalstringSettlement event for CPE promotion. Only alphabets, underscores and numbers are allowed. Maximum length is 50. Must be filled when bid_type = CPE. Ps: minimum length of this field is 3"""purchase"
os_version_min OptionalstringMinimum OS version allowed in format of /^[0-9](\.[0-9]){0,2}$/ . "x" as in natural number. If set null, OS version requirement will be same as campaign by default. If no minimum version is specified, the value should be set to 0.0.0."9.0"
os_version_max OptionalstringMaximum OS version allowed in format of /^[0-9](\.[0-9]){0,2}$/ . "x" as in natural number. If set null, OS version requirement will be same as campaign by default. If no maximum version is specified, the value should be set to 99.0.0."9.0"
custom_ad_schedule OptionaljsonPromotion schedule. Key means weekday (1-7) and value means hour (0-23). Set null to select all weekdays and all hours.{"1":"0,1,23","2":"3,4,5"}
custom_ad_schedule_timezone DeprecatednumberTimezone setting for promotion schedule. Enum value in [EUNM - Timezone]
This field has been deprecated, use the 'promote_timezone' field instead.
-5.5
network OptionalstringTarget for device network status. Enum value in [EUNM - Network]"2G,3G,4G,5G"
target_ad_typestringTarget ad types. Separate with commas for multiple ad types. Enum value in :[EUNM - Ad Type(Static)] [EUNM - Ad Type(Video)]"REWARDED_VIDEO,INTERSTITIAL_VIDEO"
target_device OptionalstringTarget device type. ENUM value in:"PHONE""TABLET"PHONE,TABLET""PHONE,TABLET"
creativesarray<json>Creative info,Obsolete, please use creative_sets[{"creative_name":"1200x627.jpg","creative_md5":"ad7667f1faf1c14d13c4e03ed8f08e6c","apply_in_area":"ALL"},{"creative_name":"512x512.png","creative_md5":"77c561b05d00559671a5a462c077fb5b", "apply_in_area":"ALL"}]
creatives_setsarray<json>Creative Set info, [Api - Create Creative Set](/en/guide/creative_set/createCreativeSet#Request Params)[{"creative_set_name":"demo1","geos":["ALL"],"ad_outputs":[111],"creatives":[{"creative_md5":"c09d944dcf2d6ded1acd6eb2237f8bad"},{"creative_name":"icon_512x512","creative_md5":"5a42fed89d97cfe253c2f7b6be86f8ed"},{"creative_name":"1200x627","creative_md5":"ea5c9ca2f16cace9c133bb327e1c83dd"}]}]

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 offer data. If fail, return to detailed wrong info.
campaign_idintUnique id for each campaign
offer_idintUnique id for offer
offer_namestringUnique name for offer
promote_timezonenumberTimezone setting for promotion period
start_timeintTimestamp of promotion start time
end_timeintTimestamp of promotion end time
target_geostringTarget geos for promotion
bid_typestringPricing model
bid_ratestringDefault bidding price value for all offer target geos
daily_cap_typestringDaily budget setting type
daily_capstringValue of daily cap
total_budgetstringValue of total budget
settlement_eventstringSettlement event for CPE promotion
os_version_minstringMinimum OS version allowed
os_version_maxstringMaximum OS version allowed
custom_ad_schedulestringPromotion schedule
custom_ad_schedule_timezonenumberTimezone setting for promotion schedule
This field has been deprecated, use the 'promote_timezone' field instead.
networkstringTarget for device network status
target_ad_typestringTarget ad types
creativesarray<json>Creative info, Obsolete, usecreative_sets
creative_setsarray<json>Creative Set Info
target_devicestringTarget device type

Response Example

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "campaign_id": "25",
    "offer_id": 18496,
    "offer_name": "cqf_testtttt",
    "promote_timezone": 7,
    "start_time": "1578455012",
    "end_time": "0",
    "target_geo": "ALL",
    "bid_type": "CPI",
    "bid_rate": "5",
    "daily_cap_type": "BUDGET",
    "daily_cap": "50",
    "total_budget": "50",
    "settlement_event": "",
    "os_version_min": "8.8",
    "custom_ad_schedule": "{\"1\":\"0,1,23\",\"2\":\"3,4,5\",\"3\":\"3,6,5\"}",
    "custom_ad_schedule_timezone": 0,
    "network": "WIFI",
    "target_ad_type": "BANNER",
    "creative_sets": [
      {
        "creative_set_name": "demo1",
        "geos": [
          "ALL"
        ],
        "ad_outputs": [
          111
        ],
        "creatives": [
          {
            "creative_name":"material1",
            "creative_md5": "c09d944dcf2d6ded1acd6eb2237f8bad"
          },
          {
            "creative_name": "icon_512x512",
            "creative_md5": "5a42fed89d97cfe253c2f7b6be86f8ed"
          },
          {
            "creative_name": "1200x627",
            "creative_md5": "ea5c9ca2f16cace9c133bb327e1c83dd"
          }
        ]
      }
    ],
    "target_device": "PHONE"
  }
}