API Reference

Meta Ads / API Reference

meta_ads_create_image_ad_from_media

Full image-ad workflow. Use this when the user wants the image uploaded and the creative/ad created in one step. Prefer meta_upload_ad_image when the user only wants the asset in the library. Prefer generated_asset_id from the creative tools when the image was just created in chat. Source accepts local file paths, public URLs, data URI/raw base64, or existing image_hash.

This is a write tool: it creates image ad from media in your Meta Ads account. Claude asks you to confirm before it runs.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Create image ad from media in my Meta Ads account.

It takes 0 required and 15 optional parameters.

Parameters

ParameterTypeRequiredDescription
namestringNoName
page_idstringNoPage Id
messagestringNoMessage
linkstringNoLink
media_source_valuestringNoMedia Source Value
generated_asset_idstringNoGenerated Asset Id
media_source_typestringNoMedia Source Type
filenamestringNoFilename
headlinestringNoHeadline
descriptionstringNoDescription
adset_idstringNoAdset Id
ad_namestringNoAd Name
statusstringNoStatus
call_to_action_typestringNoCall To Action Type
account_idstringNoAccount Id

Related Meta Ads tools

Before you can call it

This tool needs a connected Meta Ads account. The Meta Ads connect guide covers the OAuth flow and the permissions it asks for, and the quickstart gets a client talking to the server in about five minutes.

Workflows that use this

Rather than calling tools one at a time, these skills run a whole procedure against the same account:

Start using MCP Ads