API Reference
Upload an ad video
/v27.0/act_{ad_account_id}/advideoshttps://meta-ads.mimicr.dev · provider: https://graph.facebook.comUploads a video from file_url (or a multipart source) and returns its id. The video is processed asynchronously: poll GET /{video_id}?fields=status until status.video_status is ready before using it in a creative. Chunked and resumable uploads (upload_phase, graph-video host) are not simulated (501). Requires ads_management and a role on the ad account. Disabled or closed accounts (status 2, 101) answer (#200) The ad account is disabled.
In Mimicr, processing takes videoProcessingSeconds (default 6 s) of sandbox time; a file_url containing video-erro ends in error, video-lento takes 90 s, and nao-baixa (or a non-http URL) returns 389.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
ID of the ad account (the path is act_{ad_account_id}).
"100539998049706"Body
application/x-www-form-urlencodedPublic http(s) URL of the video file.
The video file, as multipart.
Name of the video.
Title of the video.
Description.
Responses
200OK.
ID of the new object.
400Error in the Graph envelope: 389 unable to fetch the video file, 352 unsupported format (sandbox toggle strictVideo).
Show child attributes
Description of the error.
"(#100) The parameter special_ad_categories is required"OAuthException for most codes (the Marketing API uses it for validation too), GraphMethodException for unknown objects, FacebookApiException for transient errors. In Mimicr, routes outside the integration core answer MimicrNotSimulated with HTTP 501.
"OAuthException"Error code (100 invalid parameter, 190 invalid token, 200 permission, 2635 deprecated version, 613/17/80004 rate limits, …).
100Error subcode with more detail (1885272 budget too low, 463 token expired, …).
1885272Whether retrying the same request may succeed. Present on every Marketing API error; true for codes 1 and 2.
Title of the error, to show to people.
Message of the error, to show to people.
Extra data. blame_field_specs lists the params that caused a validation error.
Show child attributes
Internal support identifier of the request.
"AbCdEf12345"