图谱 API 版

POST and DELETE Custom Audience Ad Accounts

读取

你无法在此端点执行该操作。

创建

你可以通过下列路径向 ad_accounts 连线发出 POST 请求:
发布到这个连线会创建 an AdAccount

参数

参数描述
adaccounts
list<numeric string>

Array of new ad account IDs to receive access to the custom audience

permissions
string

targeting or targeting_and_insights. If targeting the recipient ad account can target the audience in ads. targeting_and_insights also allows recipient account to view the audience in Audience Insights tool

relationship_type
array<string>

relationship_type

replace
boolean

true or false. If true the list of adaccounts provided in the call will replace the existing set of ad accounts this audience is shared with.

返回类型

这个端点支持先写后读,并会读取接收你的 POST 请求的节点。
Struct {
success: bool,
sharing_data: List [
Struct {
ad_acct_id: string,
business_id: numeric string,
audience_share_status: string,
errors: List [
string
],
}
],
}

错误代码

错误描述
100Invalid parameter

更新

你无法在此端点执行该操作。

删除

你可以向 /{custom_audience_id}/ad_accounts 发出 DELETE 请求,将 an AdAccount 与 a CustomAudience 取消关联。

参数

参数描述
adaccounts
list<numeric string>

Array of ad account IDs to revoke access to the custom audience

返回类型

Struct {
success: bool,
}

错误代码

错误描述
100Invalid parameter