Topik ini menjelaskan cara menghapus Pengelola Bisnis Turunan yang sudah ada.
Catatan: Bergantung pada apakah appsecret_proof diaktifkan di pengaturan aplikasi Anda, appsecret_proof mungkin diperlukan sebagai parameter untuk setiap panggilan yang Anda buat. Lihat dokumen Mengamankan Permintaan Graph API untuk mengetahui cara mengatur opsi ini dan cara membuat 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
. Jika tidak, panggilan hapus apa pun ke Pengelola Bisnis Turunan dengan kampanye aktif di bawahnya tidak akan berhasil.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