我正在使用图形/营销APIv2.8,并使用来自https://developers.facebook.com/docs/marketing-api/custom-audience-api/v2.8的代码来创建自定义受众和在自定义受众中添加用户。
使用此代码,我可以成功地创建自定义受众,但当我尝试将用户添加到自定义受众时,它会给出以下错误。
Uncaught exception 'FacebookAds\Http\Exception\AuthorizationException' with message '(#2650) Failed to update the custom audience: This audience was created from data source EVENT_BASED.WEB_PIXEL_HITS, which does not support data source FILE_IMPORTED.HASHES_OR_USER_IDS
我也可以给样本代码,我正在尝试,但我正在使用上面的链接中提到的相同代码。
谁能告诉我,可能的解决方案是什么?
发布于 2017-02-07 12:41:58
从错误消息中,我猜您应该将sub_type
设置为CUSTOM
,而不是WEB_PIXELS_HITS
。以下示例使用Java SDK:
CustomAudience audience = account.createCustomAudience()
.setName("Created by Java SDK")
.setDescription("Test Custom Audience")
.setSubtype(EnumSubtype.VALUE_CUSTOM)
.execute();
https://stackoverflow.com/questions/40502024
复制相似问题