我正在使用以下代码创建自定义受众。
$audience = new CustomAudience(null, $accountId);
$audience->setData(array(
CustomAudienceFields::NAME => $associative_arr['name'],
CustomAudienceFields::PIXEL_ID => $associative_arr['pixelId'],
CustomAudienceFields::DESCRIPTION => $associative_arr['description'],
CustomAudienceFields::RETENTION_DAYS => $associative_arr['retensionDays'],
CustomAudienceFields::SUBTYPE => CustomAudienceSubtypes::WEBSITE,
CustomAudienceFields::RULE => array('url' => array('i_contains' => $associative_arr['websiteUrl'])),
CustomAudienceFields::PREFILL => $associative_arr['prefill'],
CustomAudienceFields::DATA_SOURCE => array('EVENT_BASED' => 'WEB_PIXEL_HITS')
));
$audience->create();之后,我使用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-05-18 04:38:08
您可以从网站流量(像素)、应用程序接洽、客户文件或Fb上的接洽创建自定义受众。如果您从网站流量(像素)创建访问者,则无法像从客户文件创建访问者时那样将用户添加到访问者。
https://stackoverflow.com/questions/40500702
复制相似问题