upload_ad_image
Upload an image to your Meta Ads account for use in ad creatives. Provide a file or image URL; returns the image hash needed for creative creation.
Instructions
Upload an image to use in Meta Ads creatives.
Args:
account_id: Meta Ads account ID (format: act_XXXXXXXXX)
access_token: Meta API access token (optional - will use cached token if not provided)
file: Data URL or raw base64 string of the image (e.g., "data:image/png;base64,iVBORw0KG...")
image_url: Direct URL to an image to fetch and upload
name: Optional name for the image (default: filename)
Returns:
JSON response with image details including hash for creative creationInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| access_token | No | ||
| file | No | ||
| image_url | No | ||
| name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |