En este tema, se describe cómo eliminar un administrador comercial secundario existente.
Nota: En función de que appsecret_proof esté activado en la configuración de tu app, appsecret_proaf podría ser necesario como parámetro para cada llamada que hagas. Consulta el documento Garantizar solicitudes de API Graph para saber cómo configurar esta opción y cómo generar 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
todas las campañas incluidas. De lo contrario, no tendrá éxito ninguna llamada de eliminación a un administrador comercial secundario con campañas activas incluidas.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