Facebook Marketing API-创建相似的受众群体-无法创建相似的重复对象

问题描述

我正在通过Facebook API进行相似的自定义受众,但是当我尝试从同一个种子中获得第二个受众时,我不断收到此错误消息:

"(#2654) Can't create a duplicate lookalike: You've already created a Lookalike Audience with the same source,country and size. Please try using a different source or different specifications."

在这种情况下,两个观众的国家和种子相同,但比率不同。当我通过浏览器中的adsmanager创建具有完全相同规格的相似对象时,便会成功创建它们。

以下是我发送的有效载荷的示例:

//Audience successfully created
{
  name: "LLA0%-FB | Engaged | 30 (2020-09-23) (US)",subtype: "LOOKALIKE",origin_audience_id: "123456789",lookalike_spec: {
    type: "reach",ratio: 0.05,allow_international_seeds: "on",location_spec: {
      geo_locations: { countries: ["US"] },},}
//Error
{
  name: "LLA20%-FB | Engaged | 30 (2020-09-23) (US)",ratio: 0.2,};


解决方法

您的api请求的问题是您在api请求中同时指定了类型和比率。因此该比率值被facebook请求忽略。 https://developers.facebook.com/docs/marketing-api/audiences/guides/lookalike-audiences/#lookalike-audiences 请参阅类型使用类型或比率。您应该使用这样的比率

{
 name: "LLA0%-FB | Engaged | 30 (2020-09-23) (US)",subtype: "LOOKALIKE",origin_audience_id: "123456789",lookalike_spec: {
  type: "reach",ratio: 0.05,allow_international_seeds: "on",location_spec: {
  geo_locations: { countries: ["US"] },},}

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...