php - Data source error while trying to add user in custom audience -


i trying add user custom audience using following code

$audience = new customaudience($custom_audience_id); $audience->addusers(array(trim($mailaddress)), customaudiencetypes::email); 

and

$users = array(  array('fname', 'lname', 'someone@example.com'),  array('fnamenew', 'lnamenew', 'someone_new@example.com'), );  $schema = array(   customaudiencemultikeyschemafields::first_name,   customaudiencemultikeyschemafields::last_name,   customaudiencemultikeyschemafields::email, );  $audience = new customaudiencemultikey(<custom_audience_id>);  $audience->addusers($users, $schema); 

but getting error in both codes

(#2650) failed update custom audience: audience created data source event_based.web_pixel_hits, not support data source file_imported.hashes_or_user_ids 

any suggestion how can solve or there way can add user while updating custom audience?

you can create custom audience either website traffic(pixel), app engagement, customer file or engagement on fb. if create audience website traffic (pixel), can't add user's audience can when creating audience customer file.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -