https://developers.facebook.com/docs/reference/ads-api/custom-audience-targeting/#create提供了向自定义受众群体添加用户的示例,但它们保留为通用名称=> [{'email_hash: 'HASH'} ...]
因此它们实际上并不是例子。
什么(显眼)做' email_hash'和' HASH'代表并且可能有人给出一个实际的例子(只有几个用户很长时间才会完美)?
我目前的猜测是字符串' email_hash'字面意思是字符串'email_hash'
,' HASH'是电子邮件的哈希值,如hashlib.sha256("example@example.com").hexdigest()
,它是一个超长随机字符串,如'afiouh34r78efiu9h3fuio20h8ui45grt43'
。但这对我来说目前不起作用(虽然users
的格式不一定是问题,但我想明确地将其排除在外。)
答案 0 :(得分:1)
curl \
-F 'payload={"schema":"EMAIL_SHA256","data":["6cce3cf897cd3d2e28a293c00d3e6481241f7e3b3c3d48a1c2730810d416e522","cf55271c41b355553db350e1f218e09b585c1f30319041c5c4a8f209f4a8072b","fd9486ac1e02b9848619cd628ee36b9a0f010b237930f4d0c32d213ab1e6cf88","7afb43906db4882f94dd9d7bea495b4da095293a4f53d21ba67322ffa8e8b8c6","e270020a98195d74cf639e2de34d5c845f2f30e402523a02e05dfc9e8a2dd1f1","5a6b2d94b340d55537ab7e7d81ad201461db11db55573194a0ee059dd1ec645d","cfa159538bbf52cecebc72cd34a99000c0e75be133c2264c45e57c8ef99abc8c"]}' \
-F 'session={"session_id":524717974,"batch_seq":1,"estimated_num_total":10200,"last_batch_flag":true}' \
-F 'access_token=CAAXkgWuehJkBALLqJM' \
https://graph.facebook.com/v2.5/603517/users