接口实现了通过账号ID,获取次账号绑定的BM列表,GET请求。
GET /account_business_list HTTP/1.1
Host: /lb/api/v1/
请求参数:
{
"id": <String>,
"access_token": <String>,
"fields": List<String>,
"req_header": {
"search_id": <String>
}
}
字段 | 类型 | 注释 |
id | String | 广告账户ID |
access_token | String | 联系开发人员获取token,token是和公司主体绑定的 |
fields | List<String> | 查询的字段 eg:[‘id’,’name’,’permitted_tasks’] |
search_id | String | 唯一标识一个请求 |
返回的结果:
{
"resp_header":{
"code": <Int>,
"message" <String>:,
"search_id" <String>:
}
"data":[{
"id": <String>,
"name" <String>:,
"permitted_tasks": List<String>,
...
}]
}
字段 | 类型 | 注释 |
code | Int | 返回的编码,1:成功 |
message | String | 返回的提示信息 |
search_id | String | 唯一标识一个请求 |
data | Object | |
id | String | BM ID |
name | String | BM名称 |
permitted_tasks | List<String> | 被允许的任务列表 |
错误编码:
编码 | 注释 |
1001 | 系统异常 |
1002 | id 不能为空 |
1003 | id 参数无效 |
1008 | business_id 不能为空 |
1011 | Facebook API 请求超时 |
1022 | Meta广告账户解绑BM功能暂停 |