ECJiaWiki:Api:adsense adsense list api
跳到导航
跳到搜索
应用场景
获取广告位的广告列表
接口名称
adsense_list
请求参数
字段名 | 变量名 | 必填 | 类型 | 示例值 | 描述 |
---|---|---|---|---|---|
广告位自增id | position_id | 是 | int | 98 | 广告位自增id |
举例如下
$adsense_list = RC_Api::api('adsense', 'adsense_list',array('position_id' => 98));
成功举例如下
CONTENT: Array
(
[title] => 狂欢大促
[adsense] => Array
(
[0] => Array
(
[image] => http://www.test.com/content/uploads/data/afficheimg/1470682423300753249.png
[text] => 移动首页广告组2.1
[url] => ecjiaopen://app?open_type=goods_seller_list&category_id=1033
)
)
)
失败举例如下
注:错误编码