Closed aaronmak closed 5 years ago
i found a method in the AdAccount
object that allows me to delete images called delete_ad_images
which is not in the official documentation
Hi, if you want to delete Image, you should call remote_delete
, if you want to dissociate an AdImage
from an AdAccount
, you should call AdAccount, delete_ad_images
That's what I thought but in my facebook business manager account, that's not what I see in both the sandbox account and a live account. And the api requires me to associate the image with an Ad Account.
In the documentation:
You can dissociate an AdImage from an AdAccount by making a DELETE request to /act_{ad_account_id}/adimages.
But in the API it sends a request to /
which throws the above error
It will be great you can use the debug mode https://github.com/facebook/facebook-python-business-sdk#debug to check what's the curl call is.
Since we want to handle bugs more efficiently, we've decided to close issue reporting in Github and move to our dedicated bug reporting channel. If you encounter a bug with Business SDK (Python), please report the issue at our developer bug reporting channel.
As per the documentation at https://developers.facebook.com/docs/marketing-api/reference/ad-image/v3.1 , I've tried to delete an image using
remote_delete
. Currently I'm using facebook-business v3.1.5 .Digging deeper, I realized that the url path is wrong. In the documentation, it mentioned
/act_{ad_account_id}/adimages
but the path returned is/
./
is the default path in theAbstractCrudObject
.