执行三向帐号关联
更多有关帐号关联的指南
商家接受 OAuth 范围后,系统会为其生成访问和刷新令牌。如果已存储 MCA 刷新令牌,则可以使用 accounts.link 和 AccountsLinkRequest 对象发出 API 请求。操作应为“request”。
相反,使用子帐号的令牌和 AccountsLinkRequest 对象之后,可以立即发出 API 请求。操作类型应为“Approved”。这可为加入您平台的商家简化帐号关联工作流程。
执行三向帐号关联
假设您有以下示例帐号:
| 账号 | 目的 |
|---|---|
| 111111111 | MCA 账号 |
| 2222222 | 其他子账号 |
| 3333333 | 新建新手入门账号 |
LINK REQUEST 的 account.link 资源参数如下所示:
| 参数 | 值 |
|---|---|
| merchantID | 111111111 |
| accountID | 2222222 |
AccountLinkRequest body 将具有以下属性:
| 媒体资源 | 值 |
|---|---|
| linkType | eCommercePlatform |
| linkedAccountId | 3333333 |
| action | 请求 |

相反,LINK APPROVE 的 account.link 资源参数如下所示:
| 参数 | 值 |
|---|---|
| merchantID | 3333333 |
| accountID | 3333333 |
AccountLinkRequest body 将具有以下属性:
| 媒体资源 | 值 |
|---|---|
| linkType | eCommercePlatform |
| linkedAccountId | 2222222 |
| action | 批准 |
| eCommercePlatformLinkInfo.externalAccountId | 客户的外部标识符 |
| 服务 | shoppingAdsProductManagement |
