0
我試圖使用將用戶添加到自定義受衆下面的代碼數據源錯誤,而試圖在定製觀衆添加用戶
$audience = new CustomAudience($custom_audience_id);
$audience->addUsers(array(trim($mailAddress)), CustomAudienceTypes::EMAIL);
和
$users = array(
array('fname', 'lname', '[email protected]'),
array('fnamenew', 'lnamenew', '[email protected]'),
);
$schema = array(
CustomAudienceMultikeySchemaFields::FIRST_NAME,
CustomAudienceMultikeySchemaFields::LAST_NAME,
CustomAudienceMultikeySchemaFields::EMAIL,
);
$audience = new CustomAudienceMultiKey(<CUSTOM_AUDIENCE_ID>);
$audience->addUsers($users, $schema);
但我在這兩個代碼
得到錯誤(#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
任何建議如何解決這個問題,或者有什麼方法可以在更新自定義觀衆的同時添加用戶?
[如何將用戶添加到Facebook自定義受衆]可能的重複(http://stackoverflow.com/questions/40483537/how-to-add-user-to-facebook-custom-audience) – Haridarshan