Facebook 广告 API 更新 "Customer List: Value-based"
Facebook Ads API to update "Customer List: Value-based"
我创建了类型为 "Customer List: Value-based" 的自定义受众。
然后我用它创建了一个 "value-based Lookalike Audience"。
documentation for "value-based Lookalike Audience" is here.
但是我想知道的是:
如何使用 PHP SDK 通过 API 更新我的 "Customer List: Value-based" 类型的自定义受众?
(然后,更改会影响相似受众,这就是我在广告定位中使用的受众。)
我找不到文档。
P.S。 Facebook 的 Ding Zhang 鼓励我在这里提问,因为 none 我在 FB 接触到的人愿意直接回答我的问题。那里有很棒的 FB 开发人员吗?能够回答这个问题,您将获得重要分数!
我终于找到了一些 documentation here。
use FacebookAds\Object\CustomAudienceMultiKey;
use FacebookAds\Object\CustomAudienceNormalizers\HashNormalizer;
use FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields;
$users = array(
array('test1@example.com', 44.5),
array('test2@example.com', 140),
array('test3@example.com', 0),
array('test4@example.com', 0.9),
);
foreach ($users as &$user) {
$user[0] = hash(HashNormalizer::HASH_TYPE_SHA256, $user[0]);
}
$schema = array(
CustomAudienceMultikeySchemaFields::EMAIL,
'LOOKALIKE_VALUE',
);
$audience = new CustomAudienceMultiKey('<CUSTOM_AUDIENCE_ID>');
$audience->addUsers($users, $schema, true);
我很高兴尝试一下。
P.S。我仍然找不到在 SDK 中 anywhere 引用或定义的 'LOOKALIKE_VALUE'
的“magic string”。
This blog post 是我在 Google 搜索 小时 后首次找到此文档的方式。
P.S. I still can't find the "magic string" of 'LOOKALIKE_VALUE' referenced or defined anywhere in the SDK.
FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields::LOOKALIKE_VALUE
在“facebook/php-business-sdk”中:“^6.0.0”
我创建了类型为 "Customer List: Value-based" 的自定义受众。
然后我用它创建了一个 "value-based Lookalike Audience"。
documentation for "value-based Lookalike Audience" is here.
但是我想知道的是:
如何使用 PHP SDK 通过 API 更新我的 "Customer List: Value-based" 类型的自定义受众?
(然后,更改会影响相似受众,这就是我在广告定位中使用的受众。)
我找不到文档。
P.S。 Facebook 的 Ding Zhang 鼓励我在这里提问,因为 none 我在 FB 接触到的人愿意直接回答我的问题。那里有很棒的 FB 开发人员吗?能够回答这个问题,您将获得重要分数!
我终于找到了一些 documentation here。
use FacebookAds\Object\CustomAudienceMultiKey;
use FacebookAds\Object\CustomAudienceNormalizers\HashNormalizer;
use FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields;
$users = array(
array('test1@example.com', 44.5),
array('test2@example.com', 140),
array('test3@example.com', 0),
array('test4@example.com', 0.9),
);
foreach ($users as &$user) {
$user[0] = hash(HashNormalizer::HASH_TYPE_SHA256, $user[0]);
}
$schema = array(
CustomAudienceMultikeySchemaFields::EMAIL,
'LOOKALIKE_VALUE',
);
$audience = new CustomAudienceMultiKey('<CUSTOM_AUDIENCE_ID>');
$audience->addUsers($users, $schema, true);
我很高兴尝试一下。
P.S。我仍然找不到在 SDK 中 anywhere 引用或定义的 'LOOKALIKE_VALUE'
的“magic string”。
This blog post 是我在 Google 搜索 小时 后首次找到此文档的方式。
P.S. I still can't find the "magic string" of 'LOOKALIKE_VALUE' referenced or defined anywhere in the SDK.
FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields::LOOKALIKE_VALUE
在“facebook/php-business-sdk”中:“^6.0.0”