Skip to main content
Uploads a single image or video to a Meta ad account and returns its media reference (image_hash for images, video_id & auto-generated thumbnail_url for videos). Use this for edge cases where you need media reference to embed in a creative payload (for example with meta_ads_create_ad_creative). For creating a full ad with new media, prefer dedicated operations such as meta_ads_create_single_image_ad.

Inputs

Output

Type: Dict Returns the uploaded media reference (image_hash for images; video_id plus an auto-generated thumbnail_url for videos). Fields: account_id, media_type, image_hash, video_id, thumbnail_url