Skip to content

Commit bec3af2

Browse files
authored
docs(ads): expand call_to_action_type enum list in create_ad_creative (#99)
Free-form CTA values (e.g. MAKE_RESERVATION, BOOK_TABLE) are rejected by Meta with code 100. The previous docstring listed only four examples, which left the LLM guessing at the right enum value for restaurants and similar verticals. Expands the docstring with the documented set of common Meta CTA values and explicitly notes that BOOK_NOW is the correct choice for restaurant reservations / appointments. Doc-only change. No behavior change.
1 parent 7237f19 commit bec3af2

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎meta_ads_mcp/core/ads.py‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,8 +1625,16 @@ async def create_ad_creative(
16251625
to serve different aspect ratios per placement (e.g., 1:1 Feed + 9:16 Reels).
16261626
Other values are passed through to Meta as-is.
16271627
dynamic_creative_spec: Dynamic creative optimization settings
1628-
call_to_action_type: Call to action button type (e.g., 'LEARN_MORE', 'SIGN_UP', 'SHOP_NOW',
1629-
'CALL_NOW'). When using CALL_NOW, also provide phone_number.
1628+
call_to_action_type: Call to action button type. Meta enum — free-form values
1629+
(e.g. 'MAKE_RESERVATION', 'RESERVE', 'BOOK_TABLE') are rejected with
1630+
code 100. Pick from the documented list. Common values:
1631+
BOOK_NOW — restaurants, salons, clinics, appointments (use this for
1632+
reservations — there is no MAKE_RESERVATION enum)
1633+
LEARN_MORE, SHOP_NOW, SIGN_UP, SUBSCRIBE, GET_QUOTE, CONTACT_US,
1634+
DOWNLOAD, WATCH_MORE, GET_OFFER, APPLY_NOW, CALL_NOW, MESSAGE_PAGE,
1635+
SEE_MENU, ORDER_NOW, BUY_NOW, WHATSAPP_MESSAGE, GET_DIRECTIONS,
1636+
BUY_TICKETS, EVENT_RSVP, BOOK_TRAVEL.
1637+
When using CALL_NOW, also provide phone_number.
16301638
lead_gen_form_id: Lead generation form ID for lead generation campaigns. Required when using
16311639
lead generation CTAs like 'SIGN_UP', 'GET_OFFER', 'SUBSCRIBE', etc.
16321640
instagram_actor_id: Instagram account ID for Instagram placements (must be a string

0 commit comments

Comments
 (0)