补贴账号绑定或解绑广告账户
所属权限 | account_management |
请求地址 | subsidy_account_bind/add |
请求方法 | POST |
Content-Type | application/json |
全局参数
全局参数是指每一个接口都需要使用到的参数。详情参考,代码案例参考。
参数名称 | 参数类型 |
---|---|
access_token | 授权令牌,完成 OAuth 2.0 授权后获得,参考授权认证章节 |
timestamp |
当前的时间戳,单位为秒,允许客户端请求最大时间误差为 300 秒。 MarketingAPI 所使用的时间戳,若无特殊说明,均为秒级时间戳 MarketingAPI 所使用的时区为 GMT+8,例如当时间戳为 1494840119 时,表示 2017-05-15 17:21:59 |
nonce | 随机字串标识,不超过 32 个字符,由调用方自行生成,需保证全局唯一性 |
请求参数
标有*的参数为必填项
名称 | 类型 | 描述 |
---|---|---|
account_id*
|
integer | 补贴账号 id |
binding_account_list*
|
array | 绑定账户 id 数组最大长度 20 |
bind_status*
|
string | 绑定状态 1-解绑 2-绑定 |
使用说明
- 补贴功能暂时只供内测使用。
- 一个补贴账号单次绑定或解绑广告账户个数上限是 20 个。
请求示例
curl 'https://api.e.qq.com/v3.0/subsidy_account_bind/add?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>' \
-H 'Content-Type: application/json' \
-d '{
"account_id": "<ACCOUNT_ID>",
"binding_account_list": [
23878200,
23878201,
23878202
],
"bind_status": 2
}'
应答字段
名称 | 类型 | 描述 |
---|---|---|
list
|
struct[] | 返回信息列表 |
account_id
|
integer | 补贴账号 id |
bound_account_id
|
integer | 推广帐号 id,有操作权限的帐号 id,包括代理商和广告主帐号 id |
bind_status
|
string | 绑定状态 1-解绑 2-绑定 |
应答示例
{
"code": 0,
"message": "",
"message_cn": "",
"data": {
"list": [
{
"account_id": 12345,
"bound_account_id": 23878200,
"bind_statu": 2
},
{
"account_id": 12345,
"bound_account_id": 23878201,
"bind_statu": 2
},
{
"account_id": 12345,
"bound_account_id": 23878202,
"bind_statu": 2
}
]
}
}
可视化调试工具
问题仍未解决?
请前往腾讯广告反馈中心在线提交问题,我们的人工客服将为你服务