Facebook Marketing API - Add Users to Custom Audience

Digital Marketing Facebook Marketing API 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating
_x000D_ _x000D_ I'm trying to add users to a custom audience via API. My schema looks like this: "schema": [ EMAIL, PHONE, LN, FN, ZIP ] My data looks like this: "data": [ [ hashWithKey("john.smith@xxx.com", "EMAIL"), "12345678910", // -> No hashing, since there's no HASH key specified in docs. hashWithKey("John", "LN"), hashWithKey("Smith", "FN") hashWithKey("1919", "ZIP") ], ... ] Although I'm getting an OK response from the API, I'm not sure how to check if the audience was created as I wanted. Is it OK not to hash the phone number? If not, what key should I be using? I tried with PHONE and I still got an OK from the API. So I'm confused. When using CSV files to create the audience, I can specify the field age. According to Facebook docs, seems not to be possible to specify age via API. Is it enough by sending DOBY? Does anyone figured this out? These are the best links I could find: "Hashing and Normalization for Multi-Key" at: https://developers.facebook.com/docs/marketing-api/audiences-api Payload Parameters at https://developers.facebook.com/docs/marketing-api/reference/custom-audience/users

Posted on 16 Aug 2022, this text provides information on Facebook Marketing API related to Digital Marketing. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago
_x000D_ So this is what I did to make it work: I didn't hash the data I set is_raw: true I cleaned up my data: Some of the emails were comming with quotes, like "john.smith@xxx.com" Being that done, everything worked as expected.

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.