Meta Ads icon

Meta Ads

Access Meta Ads Marketing API

Actions20

Ad Image → Upload

AI-generated

Summary

Upload an image to a specified Meta Ads ad account to use in advertising creatives.

Inputs

  • Ad Account ID (required) — The numeric ID of the Meta Ads ad account to which the image will be uploaded, without the 'act_' prefix.
  • Image File (required) — The name of the binary property that contains the image data to be uploaded.

Output shape

a single JSON object representing the uploaded ad image as returned by the Meta Ads Marketing API

The output includes details about the uploaded ad image. This operation sends a multipart/form-data POST request to the Meta Ads API endpoint for uploading ad images to the specified ad account. Errors are returned according to Meta Ads API standards.

Examples

Example 1: Upload an image

Set 'Ad Account ID' to the target account's numeric ID and 'Image File' to the binary property containing the image.

Links

Discussion