[关闭]
@apis1990 2016-08-24T03:48:33.000000Z 字数 1018 阅读 531

广告系统


获取混合广告


1.URL:/service/api/get_mix_ads.php

测试地址:http://36.33.24.119:8081/api/get_mix_ads.php

2.请求方式:POST

3.请求参数:

参数 类型 是否必须 描述
scene int yes 广告应用场景 101.学员端app开始加载广告
location_type int yes 地区类型 1.area_id 2.city_id 3.province_id
location_id int yes 地区id
device int yes 设备 1. iOS 2. Android
scene场景详情
sence 描述
101 学员端app启动图片
102 学员端app首页广告图
103 学员端app科目一广告图
104 学员端app科目四广告图
201 教练端app启动图片
202 教练端app首页广告图
301 校长端app启动图片
402 webapp首页广告图

4.接口返回结果

  1. {
  2. "code": 200,
  3. "data": [
  4. {
  5. "resource_type": 1,
  6. "resource_url": "http://60.173.247.68:8081/api/ads/banner11.jpg",
  7. "loop_time": 2,
  8. "ads_url": "http://www.xihaxueche.com/",
  9. "title": ""
  10. },
  11. {
  12. "resource_type": 1,
  13. "resource_url": "http://60.173.247.68:8081/api/ads/banner12.jpg",
  14. "loop_time": 2,
  15. "ads_url": "http://www.xihaxueche.com/",
  16. "title": ""
  17. },
  18. {
  19. "resource_type": 1,
  20. "resource_url": "http://60.173.247.68:8081/api/ads/banner13.jpg",
  21. "loop_time": 2,
  22. "ads_url": "http://www.xihaxueche.com/",
  23. "title": ""
  24. }
  25. ]
  26. }
参数 类型 描述
code int 状态码:200 --- 成功 其它 --- 异常
data Array 返回的结果数据集合
resource_type int 资源类型 1.图片 2.视频
resource_url string 资源地址
loop_time int 广告展示时间,单位: 秒
ads_url string 广告将要跳转的url
title string 广告标题
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注