create_ad_creative
Generate new Meta ad creatives by specifying image hash, ad copy, headlines, descriptions, and call-to-action. Supports dynamic creative testing and Instagram placements.
Instructions
Create a new ad creative using an uploaded image hash.
Args:
access_token: Meta API access token (optional - will use cached token if not provided)
account_id: Meta Ads account ID (format: act_XXXXXXXXX)
name: Creative name
image_hash: Hash of the uploaded image
page_id: Facebook Page ID to be used for the ad
link_url: Destination URL for the ad
message: Ad copy/text
headline: Single headline for simple ads (cannot be used with headlines)
headlines: List of headlines for dynamic creative testing (cannot be used with headline)
description: Single description for simple ads (cannot be used with descriptions)
descriptions: List of descriptions for dynamic creative testing (cannot be used with description)
dynamic_creative_spec: Dynamic creative optimization settings
call_to_action_type: Call to action button type (e.g., 'LEARN_MORE', 'SIGN_UP', 'SHOP_NOW')
instagram_actor_id: Optional Instagram account ID for Instagram placements
Returns:
JSON response with created creative details
Input Schema
Name | Required | Description | Default |
---|---|---|---|
access_token | No | ||
account_id | No | ||
call_to_action_type | No | ||
description | No | ||
descriptions | No | ||
dynamic_creative_spec | No | ||
headline | No | ||
headlines | No | ||
image_hash | No | ||
instagram_actor_id | No | ||
link_url | No | ||
message | No | ||
name | No | ||
page_id | No |
Input Schema (JSON Schema)
{
"properties": {
"access_token": {
"default": null,
"title": "Access Token",
"type": "string"
},
"account_id": {
"default": null,
"title": "Account Id",
"type": "string"
},
"call_to_action_type": {
"default": null,
"title": "Call To Action Type",
"type": "string"
},
"description": {
"default": null,
"title": "Description",
"type": "string"
},
"descriptions": {
"default": null,
"items": {
"type": "string"
},
"title": "Descriptions",
"type": "array"
},
"dynamic_creative_spec": {
"additionalProperties": true,
"default": null,
"title": "Dynamic Creative Spec",
"type": "object"
},
"headline": {
"default": null,
"title": "Headline",
"type": "string"
},
"headlines": {
"default": null,
"items": {
"type": "string"
},
"title": "Headlines",
"type": "array"
},
"image_hash": {
"default": null,
"title": "Image Hash",
"type": "string"
},
"instagram_actor_id": {
"default": null,
"title": "Instagram Actor Id",
"type": "string"
},
"link_url": {
"default": null,
"title": "Link Url",
"type": "string"
},
"message": {
"default": null,
"title": "Message",
"type": "string"
},
"name": {
"default": null,
"title": "Name",
"type": "string"
},
"page_id": {
"default": null,
"title": "Page Id",
"type": "string"
}
},
"title": "create_ad_creativeArguments",
"type": "object"
}