Skip to content

获取广告单元列表

需要携带 Token,详情看 Token

获取广告单元列表,支持  campaign_id、campaign_name、offer_id、offer_name、offer_uuid、status、package_name 、ext_fields 条件查询。

请求地址

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

请求方法

GET

请求示例

json
GET /api/open/v1/offers
HTTP/1.1 Host: ss-api.mintegral.com
Content-Type: application/json
{ "page": 1, "campaign_id": "12,13,15", "limit": 10 }

请求参数

字段类型说明默认值例子
campaign_id 选填string广告 ID,多个用,隔开"12,13,15"
campaign_name 选填string广告名称,支持模糊查询"""campaign_test"
offer_id 选填string广告单元 ID,多个用,隔开"123,124,125"
offer_name 选填string广告单元名称,支持模糊查询"""offer_test"
offer_uuid 选填string系统自动生成的广告单元名称"ss_offer_test"
package_name 选填string包名,支持模糊查询"""test"
ext_fields 选填string扩展查询,多个用,号分隔。
支持如下信息查询:
bid_rate_by_mtgid => mtg 渠道出价
target_app => 该字段用于屏蔽或者定向具体的应用
"""bid_rate_by_mtgid"
page 选填int页数11
limit 选填int每页数量
最大值:50;大于 50 时,接口只返回 50 个
1015
status 选填string可选值:[枚举值 - 广告单元状态],多个用,隔开"""RUNNING"

响应结果

字段类型说明
codeint200 表示成功,其他表示失败
msgstring成功,返回"success",失败返回相应的错误信息
datajson成功,返回广告单元信息,失败返回具体的错误信息
pageint当前在第几页
limitint数量限制
totalint总数量
listarray<json>
campaign_idint广告 ID
campaign_namestring广告名称
offer_idint广告单元 ID
uuidstring系统自动生成的广告单元名称,主要应用与 tracking link 的配置
offer_namestring广告单元名称
promote_timezonenumber投放时区,例如-5
start_timestring广告单元开始投放时间的时间戳
end_timestring广告单元结束投放时间的时间戳
statusstring可选值:[枚举值 - 广告单元状态]
target_geostring如"US,CN"
stagestringOffer维度冷启动阶段
bid_typestring结算方式,可选值:[枚举值 - 结算方式]
bid_ratefloat兜底价格,针对未额外设置出价的地区或者流量,默认按照此价格生效
bid_rate_by_locationarray<json>分地区价格,如[{"country_code":"US","bid_rate":"8.010"},{"country_code":"CN","bid_rate":"3.920"}]
budgetarray<json>分地区预算
offer_stop_reasonstring广告单元被关停的原因,比如账户余额不足、无可用素材、tracking link 测试不通过。
settlement_eventstring结算事件,CPE 类型的广告单元,该值非空,否则显示为空
tracking_methodstring追踪方式。枚举值:[枚举值 - 追踪方式]
click_urlstring点击追踪链接。
impression_urlstring展示追踪链接。注:系统会根据校验规则规范写法,和入参可能不一样。
os_version_minstring投放设备要求的系统最低版本
custom_ad_schedulestring广告投放的日程
custom_ad_schedule_timezonenumber投放日程的时区
此字段已被弃用,使用 'promote_timezone' 字段代替。
networkstring网络类型定向
target_ad_typestring展示类型
currencystring结算币种,枚举值:"CNY""USD"
target_devicestring定向具体的设备
click_url_statusstring点击 url 的测试状态。枚举值:
PENDDING => 链接未测试或者链接未测试通过,继续测试中
PASS => 链接测试通过
NOT_EXIST => 链接为空。
target_apparray<json>需要屏蔽或者定向的应用详情
switchint1=>定向指定应用;2=>屏蔽指定应用;0=>不限,通投所有应用
mtg_idarray<string>mtgid
packagearray<string>package name
bid_rate_for_mtgidarray<json>获取针对流量,即 mtgid 的出价详情
apply_in_areastring出价流量的起量地区
mtgidstring目标流量的 mtgid
bid_ratestring指定 mtgid 在广告单元中特定地区的出价
maintain_bystring表示广告单元的管理权限。当该值为AM时,广告单元由账户经理管理、维护,您只能查看广告详情,无修改权限;当该值为ADV时,除了查看详情,您可根据需要编辑、调整广告下的对应配置
include_ta_idrray<int>定向的人群包id
exclude_ta_idrray<int>排除定向的人群包id
target_mtg_eventarray<string>需要优化的目标,只有Target-ROAS才会返回
target_goal_windowstring优化目标的时间窗,枚举值:D0、D7
target_goaldoubleoffer维度优化目标值
target_goal_by_geoarray<json>geo维度优化目标值
geostringgeo
target_goaldouble优化目标值

应答示例

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "page": 1,
    "limit": 10,
    "total": 1,
    "list": [
      {
        "campaign_id": 25,
        "campaign_name": "quanfutest",
        "offer_id": 18490,
        "uuid": "ss_cqf_testtt",
        "offer_name": "cqf_testtt",
        "promote_timezone": 0,
        "start_time": 1578463214,
        "end_time": 1578463300,
        "status": "PENDING",
        "target_geo": "",
        "bid_type": "CPI",
        "bid_rate": 5,
        "offer_stop_reason": "",
        "settlement_event": "",
        "tracking_method": "REYUN",
        "click_url": "https://uri6.com/tkio/aIBFJ3a?campuuid={uuid}&clickid={click_id}&ip={ip}&ua={ua}&subchannel={affiliate_id}&idfa={device_id}&imei={imei}&androidid={@info.args.androidid@}&muid={@info.args.imei_md5@}",
        "impression_url": "https://uri6.com/tkio/aIBFJ3a?campuuid={uuid}&clickid={click_id}&ip={ip}&ua={ua}&subchannel={affiliate_id}&idfa={device_id}&imei={imei}&androidid={@info.args.androidid@}&muid={@info.args.imei_md5@}&impression=true",
        "os_version_min": "8.8",
        "custom_ad_schedule": "{\"1\":\"0,1,23\",\"2\":\"3,4,5\",\"2\":\"3,6,5\"}",
        "custom_ad_schedule_timezone": 5,
        "network": "WIFI",
        "target_ad_type": "BANNER",
        "target_device": "PHONE",
        "click_url_status": "PENDDING",
        "currency": "CNY",
        "include_ta_id": [
          1,
          2,
          3
        ],
        "exclude_ta_id": [],
        "bid_rate_by_location": [],
        "budget": [
          {
            "target_geo": "ALL",
            "total_budget": "OPEN"
            "daily_cap_type": "BUDGET",
            "daily_cap": "OPEN"
          }
        ],
        "target_app": {
          "switch": 1,
          "mtg_id": [
              "mtg1136177844",
              "mtg1145649416",
              "mtg1147878844",
              "mtg1159190054",
              "mtg1161305803",
              "mtg1162100014",
              "mtg1173896830",
              "mtg1213459814",
              "mtg1219162787",
              "mtg1222631077",
              "mtg1231632728",
              "mtg1231757768",
              "mtg1233979988",
              "mtg1252419046",
              "mtg1344357333",
              "mtg1412606974",
              "mtg1427875116",
              "mtg1552447933",
              "mtg1880160718",
              "mtg1928332330",
              "mtg1985009108"
          ],
          "package": []
        },
        "bid_rate_by_mtgid": [
          {
            "bid_rate": "1.001",
            "apply_in_area": "CN",
            "mtgid": "mtg1127838375"
          },
          {
            "bid_rate": "22.000",
            "apply_in_area": "IN",
            "mtgid": "mtg1808626507"
          }
        ],
        "maintain_by": "ADV"
      }
    ]
  }
}