Facebook Marketing API: delete() vs. deleteSelf() in PHP SDK -


what difference between delete() , deleteself() methods in facebook marketing api? campaign documentation uses deleteself() example, delete() before.

delete() method of abstractarchivablecrudobject abstract class, while deleteself() method defined each entity (like campaign, adset, ad) separately.

i'm struggling use deleteself() though, getting missing api error, though seems instantiated (all other functionalities work):

$campaign = new \facebookads\object\campaign(     $campaignid,     null,     new \facebookads\api(         new \facebookads\http\client,         new \facebookads\session($appid, $appsecret, $accesstoken)     ) );  $campaign->deleteself(); 

the error is:

an api instance must provided argument or set instance in \facebookads\api

if replace $campaign->deleteself() $campaign->delete(), works without problem.

what's deal deleteself()?


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -