Cet article décrit comment supprimer un Business Manager enfant.
Remarque : si appsecret_proof est activé dans les paramètres de votre application, vous devez ajouter appsecret_proof comme paramètre à chacun de vos appels. Reportez-vous au document Sécurisation des requêtes de l’API Graph pour savoir comment définir cette option et comment générer appsecret_proof.
curl \ -F 'id=<CHILD_BM_ID>' \ -F 'app_id=<APP_ID>' \ -F 'scope=ads_management,business_management' \ -F 'access_token=<PARENT_BM_ADMIN_SYSTEM_USER_ACCESS_TOKEN>' \ -F 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<CHILD_BM_ID>/access_token
PAUSED
. À défaut, aucun appel pour supprimer un Business Manager enfant avec des campagnes actives associées n’aboutira.curl -G \ -d 'access_token=<CHILD_BM_SYSTEM_USER_ACCESS_TOKEN>' \ -d 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<CHILD_BM_ID>/owned_ad_accounts
curl -G \ -d 'access_token=<CHILD_BM_SYSTEM_USER_ACCESS_TOKEN>' \ -d 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<act_AD_ACCOUNT_ID>/campaigns
curl \ -F 'status=PAUSED' \ -F 'access_token=<CHILD_BM_SYSTEM_USER_ACCESS_TOKEN>' \ -F 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<CAMPAIGN_ID>/
curl -X DELETE \ -d 'client_id=<CHILD_BM_ID>' \ -d 'access_token=<PARENT_BM_ADMIN_SYSTEM_USER_ACCESS_TOKEN>' \ -d 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<PARENT_BM_ID>/owned_businesses