Posts under category Facebook Marketing API

I tried to use v19.0 marketing api to create an Advantage+ audience after reading the doc(https://developers.facebook.com/docs/marketing-api/audiences/reference/targeting-expansion/advantage-audience), and the example in the doc failed.
The error message is:
{"error":{"message":"(#100) Unsupported targeting option: targeting_automation","type":"OAuthException","code":100,"fbtrace_id":"AbbSSofzTiR1HLr9LXvXDl7"}}
Does anyone enconter the same problem?

How to upload an image to the Media Library using an HTTP POST request?
I can't upload an image to the Media Library to later be able to use the image hash to create an ad.
I tried using the Graph Explorer: curl \ -F 'filename=@' \ -F 'access_token=' \ https://graph.facebook.com/v/act_/adimages
And also tried to use Make/Integromat with the HTTP Get a File module and then using the Make a Request module to make the following request:
{ "access_token": "", "filename": "{{41.data}}" }

Hi,
We seem to be running into problems creating carousel ads with asset_customization_rules. We're including two carousels in the "carousels" prop, with child attachments.
We can publish the ads though the API, but after a short time of processing fall into "Delivery error" status. Error message:
"Unsupported Ad Format In Dynamic Creative Ad: This specified asset feed contains an unsupported ad format. (#1885858) "
If we change the ad name and publish through Ads Manager they get approved.
I also tried pulling the ad creative for working ads from the Graph API explorer, but can't get the carousel property that way. All other properties look similar, so I'm running out of ideas.
The ads sets are not "dynamic creative". Can't find any documentation relating to this. Anyone else experiencing this?
Thanks!