As part of the requirements set forth by the European Union (EU) Digital Services Act (DSA), we've begun requiring ads targeting any part of the EU to provide string values defining the beneficiary and payor of the ad being created. In order to facilitate developers in providing this mandatory information, we're offering a new API that outputs a list of strings that we've identified to likely be the beneficiary/payer, based on recent activity of the ad account. See the Ad Account DSA Recommendations field reference for more information.
Note: Even though our data suggests that these predicted values often match up with what advertisers end up manually inputting for their DSA Beneficiary/Payor, we don't guarantee that these will be correct, and users should still review them before publishing their campaigns.
AdAccountDsaRecommendations
GET /v23.0/{ad-account-id}/dsa_recommendations HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{ad-account-id}/dsa_recommendations',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
"/{ad-account-id}/dsa_recommendations",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{ad-account-id}/dsa_recommendations",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{ad-account-id}/dsa_recommendations"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
从这条连线读取将返回一个 JSON 格式的结果:
{ "
data
": [], "paging
": {} }
data
paging
错误 | 描述 |
---|---|
200 | Permissions error |
水瓶座和什么座最配对 | 婴儿什么时候长牙齿 | 吃白糖有什么好处和坏处 | 鸡屎藤和什么相克 | w是什么单位 |
domyos是什么牌子 | 肺阴虚吃什么药 | 数字17代表什么意思 | 精液是什么味道的 | 甲壳虫吃什么食物 |
白芷有什么功效 | mg是什么单位 | 虾仁和什么包饺子好吃 | 周瑜是一个什么样的人 | 操姓氏读什么 |
皮脂腺囊肿是什么原因引起的 | 情感什么意思 | 电头是什么 | 娇韵诗属于什么档次 | 十一月二十八是什么星座 |
法身是什么意思hcv9jop0ns9r.cn | 上海为什么叫魔都huizhijixie.com | 脂肪肝要注意什么hcv9jop3ns4r.cn | 鲁迅原名叫什么hcv8jop8ns5r.cn | 双子女和什么座最配对hcv7jop7ns3r.cn |
梦见死人什么意思hcv7jop5ns2r.cn | 堪忧是什么意思cl108k.com | 情趣什么意思hcv8jop4ns6r.cn | 鹦鹉为什么会说话hcv9jop7ns2r.cn | 益气养阴是什么意思hcv8jop2ns8r.cn |
吃红枣有什么好处和坏处hcv9jop4ns3r.cn | 性病都有什么hcv8jop4ns5r.cn | 肝风是什么意思hcv8jop9ns2r.cn | 向日葵的花语是什么weuuu.com | 两岁宝宝不会说话但什么都知道hcv9jop5ns8r.cn |
色织布是什么面料hcv8jop4ns7r.cn | 手串断了是什么预兆hcv7jop5ns1r.cn | 一个月没有来月经是什么原因hcv9jop4ns6r.cn | 八字华盖是什么意思kuyehao.com | 八四年属什么生肖hcv9jop6ns3r.cn |