Skip to content

Update Creatives ​

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

Through this interface, you could update creatives for offer. See the appendix for details on creative dimension requirements [Appendix - Creative Dimension] .

Request address ​

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

This interface is about to be obsolete, please use [Api - Create Creative Set](/en/guide/creative_set/createCreativeSet#Request Params)

Request method ​

PUT

Request example ​

json
PUT /api/open/v1/offer/apply_creative
HTTP/1.1 Host: ss-api.mintegral.com
Content-Type: application/json
{
  "offer_id": 123,
  "ad_type": "REWARDED_VIDEO",
  "creative": [
    {
      "creative_md5":"0a6335cd9151ac5dc79ad996f4e12674",
      "creative_name":"creative_test.png" ,
      "apply_in_area": "CN,EN",
      "option": "ENABLE"
    }
  ]
}

Request Parameter ​

FieldsTypeExplanationsDefault ValueExamples
offer_idintOffer ID—123
ad_typestringTarget ad types. Separate with commas for multiple ad types. Enum value in :[EUNM - Ad Type(Static)] [EUNM - Ad Type(Video)]—"REWARDED_VIDEO"
creativearray<json>
creative_md5stringCreative MD5 generated after being uploaded. And is file name by default, please note, creative name must be letters, digits, or the underscore—"0a6335cd9151ac5dc79ad996f4e12674"
creative_namestringCreative name generated after being uploaded.—"creative_test"
apply_in_areastringTargeted geos for specific creatives. Targeted geos must be in offer's target_geo.
PS: 1. Set "ALL" for targeting all geos in offer. 2. Separate with commas for multiple targeted geos.
—"CN,EN"
creative_set_name OptionalstringCreative set name—"default"
optionstringStatus for creative under offers.
Enum value: "ENABLE", "DISABLE".
ENABLE: Allow creative to run in offer. DISABLE: Pause and romove creative from specific offer. Note: Set "ENABLE" for setting up new offers.
—"DISABLE"

Response ​

FieldsTypeExplanations
codeint200 code, is success. Others, are fail.
msgstringIf success, return to "success". If fail, return to detailed wrong info.
datajsonIf success, return ["success"]. If fail, return to detailed wrong info.

Response Example ​

json
{
  "msg": "success",
  "code": 200,
  "data": ["success"]
}