Connect Facebook Ads to Antigravity
Connect your Facebook Ads data to Antigravity with the Windsor.ai connector, so the dashboards and scripts Antigravity builds use your real ad, ad set, creative, and audience performance data.
Ask Antigravity for a creative fatigue monitor, an audience breakdown Artifact, or a ranking diagnostics report built on your own Frequency, CTR, Amount Spent, and Purchase ROAS fields.
Forget CSVs. Stop copy/paste. Connect in minutes. No code required.
Build creative and audience reports on your real Meta Ads numbers
Antigravity works inside the IDE, so what it builds from your Facebook Ads data stays with you as files, scripts, and Artifacts you can rerun. Key use cases:
Catch creative fatigue before spend drops
Antigravity can track Frequency and CTR by Ad Name over time and write a monitor that flags ads where frequency keeps rising while CTR falls, so you refresh creative on evidence.
Find which audiences really pay back
Ask for an Artifact of Purchase ROAS by Age Range and Gender with Amount Spent beside it, so you shift budget toward segments that return more than they cost.
Diagnose ads with the ranking fields
Antigravity can combine Quality Ranking, Engagement Rate Ranking, and Conversion Rate Ranking with spend to show which weak ads cost the most.
Rank creative with a reusable report
Have Antigravity write a report that scores every Ad Name on Purchase ROAS, CPM, and video retention, and save it in your repository to rerun each week.
Using Windsor.ai to connect data from Facebook Ads to Antigravity
Without Windsor.ai, Antigravity builds on placeholder numbers or on CSV exports you paste into the IDE. Windsor MCP gives Antigravity live Facebook Ads data with the real field names, so the dashboards and scripts it writes match your account.
Connect in minutes, then ask Antigravity to build something with your Facebook Ads data.
Available actions
Create Ad Set Create a new ad set in an existing Meta Ads campaign (Facebook or Instagram). Created paused by default so it does not spend until enabled. Budget amounts are in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Provide at most one of daily_budget or lifetime_budget; omit both only when the campaign uses campaign budget optimization. lifetime_budget requires end_time. Some optimization goals require promoted_object, a Meta spec naming what is optimized (e.g. {"pixel_id": "<id>", "custom_event_type": "PURCHASE"} for conversions, or {"page_id": "<id>"} for page likes). destination_type sets where the ad sends people; for boosting an existing post (boost_post) use ON_POST with optimization_goal POST_ENGAGEMENT to keep engagement on the post (no call to action needed). A website or undefined destination instead makes Meta require a website URL and call to action in the creative. start_time and end_time are ISO 8601 timestamps (e.g. 2027-01-01T00:00:00-0800); start_time defaults to now and cannot be changed once the ad set has started, even while paused. An ad set with its own budget is created with bid_strategy LOWEST_COST_WITHOUT_CAP (highest volume) unless bid_strategy or bid_amount is given; pass bid_amount with a capped strategy (LOWEST_COST_WITH_BID_CAP or COST_CAP). Under campaign budget optimization the campaign's bid strategy applies and none is sent. Ads delivered to the EU require dsa_beneficiary and dsa_payor, naming who benefits from and who pays for the ad. Ads delivered to Taiwan, Singapore, Thailand, Brazil, Australia, Malaysia or India require regional_regulated_categories (e.g. SINGAPORE_UNIVERSAL) together with regional_regulation_identities holding the matching beneficiary and payer ids (e.g. {"singapore_universal_beneficiary": "<id>", "singapore_universal_payer": "<id>"}; THAILAND_UNIVERSAL, BRAZIL_REGULATION, AUSTRALIA_UNIVERSAL and MALAYSIA_UNIVERSAL use "universal_beneficiary" and "universal_payer"; financial service ads in Australia also declare AUSTRALIA_FINSERV with "australia_finserv_beneficiary" and "australia_finserv_payer"). These are verified identity ids from Meta Business settings > Verified identities (not page or business ids); ad account defaults are not inherited by ad sets created through the API. Meta also asks some accounts for a verified advertiser on any ad set ("Advertiser is missing"); then pass regional_regulation_identities with "universal_beneficiary" and "universal_payer" and add regional_regulated_categories only when the targeted country has a value listed above. extra_params passes further Meta ad set fields straight to the Graph API for anything this action does not model yet, e.g. {"attribution_spec": [{"event_type": "CLICK_THROUGH", "window_days": 7}]}. Prefer the named parameters where they exist: a key that repeats one already set is rejected, since only one of the two values could win.
Create a new ad set in an existing Meta Ads campaign (Facebook or Instagram). Created paused by default so it does not spend until enabled. Budget amounts are in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Provide at most one of daily_budget or lifetime_budget; omit both only when the campaign uses campaign budget optimization. lifetime_budget requires end_time. Some optimization goals require promoted_object, a Meta spec naming what is optimized (e.g. {"pixel_id": "<id>", "custom_event_type": "PURCHASE"} for conversions, or {"page_id": "<id>"} for page likes). destination_type sets where the ad sends people; for boosting an existing post (boost_post) use ON_POST with optimization_goal POST_ENGAGEMENT to keep engagement on the post (no call to action needed). A website or undefined destination instead makes Meta require a website URL and call to action in the creative. start_time and end_time are ISO 8601 timestamps (e.g. 2027-01-01T00:00:00-0800); start_time defaults to now and cannot be changed once the ad set has started, even while paused. An ad set with its own budget is created with bid_strategy LOWEST_COST_WITHOUT_CAP (highest volume) unless bid_strategy or bid_amount is given; pass bid_amount with a capped strategy (LOWEST_COST_WITH_BID_CAP or COST_CAP). Under campaign budget optimization the campaign's bid strategy applies and none is sent. Ads delivered to the EU require dsa_beneficiary and dsa_payor, naming who benefits from and who pays for the ad. Ads delivered to Taiwan, Singapore, Thailand, Brazil, Australia, Malaysia or India require regional_regulated_categories (e.g. SINGAPORE_UNIVERSAL) together with regional_regulation_identities holding the matching beneficiary and payer ids (e.g. {"singapore_universal_beneficiary": "<id>", "singapore_universal_payer": "<id>"}; THAILAND_UNIVERSAL, BRAZIL_REGULATION, AUSTRALIA_UNIVERSAL and MALAYSIA_UNIVERSAL use "universal_beneficiary" and "universal_payer"; financial service ads in Australia also declare AUSTRALIA_FINSERV with "australia_finserv_beneficiary" and "australia_finserv_payer"). These are verified identity ids from Meta Business settings > Verified identities (not page or business ids); ad account defaults are not inherited by ad sets created through the API. Meta also asks some accounts for a verified advertiser on any ad set ("Advertiser is missing"); then pass regional_regulation_identities with "universal_beneficiary" and "universal_payer" and add regional_regulated_categories only when the targeted country has a value listed above. extra_params passes further Meta ad set fields straight to the Graph API for anything this action does not model yet, e.g. {"attribution_spec": [{"event_type": "CLICK_THROUGH", "window_days": 7}]}. Prefer the named parameters where they exist: a key that repeats one already set is rejected, since only one of the two values could win.
Create Campaign Create a new Meta Ads campaign (Facebook or Instagram). Created paused by default so it does not spend until enabled. objective is a Meta campaign objective (e.g. OUTCOME_TRAFFIC, OUTCOME_LEADS, OUTCOME_SALES). special_ad_categories must list any regulated categories the ads fall under (e.g. HOUSING, EMPLOYMENT, CREDIT) or be empty; country declarations such as SINGAPORE_UNIVERSAL or TAIWAN_UNIVERSAL belong to regional_regulated_categories on the ad set instead. Setting a campaign budget enables campaign budget optimization; amounts are in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Provide at most one of daily_budget or lifetime_budget. A campaign with a budget (or with ad set budget sharing enabled) is created with bid_strategy LOWEST_COST_WITHOUT_CAP (highest volume) unless bid_strategy is given; its ad sets inherit it and cannot override it. Without a campaign budget leave bid_strategy unset and choose it per ad set in create_adset. When no campaign budget is set, some accounts require is_adset_budget_sharing_enabled to be specified.
Create a new Meta Ads campaign (Facebook or Instagram). Created paused by default so it does not spend until enabled. objective is a Meta campaign objective (e.g. OUTCOME_TRAFFIC, OUTCOME_LEADS, OUTCOME_SALES). special_ad_categories must list any regulated categories the ads fall under (e.g. HOUSING, EMPLOYMENT, CREDIT) or be empty; country declarations such as SINGAPORE_UNIVERSAL or TAIWAN_UNIVERSAL belong to regional_regulated_categories on the ad set instead. Setting a campaign budget enables campaign budget optimization; amounts are in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Provide at most one of daily_budget or lifetime_budget. A campaign with a budget (or with ad set budget sharing enabled) is created with bid_strategy LOWEST_COST_WITHOUT_CAP (highest volume) unless bid_strategy is given; its ad sets inherit it and cannot override it. Without a campaign budget leave bid_strategy unset and choose it per ad set in create_adset. When no campaign budget is set, some accounts require is_adset_budget_sharing_enabled to be specified.
Create Ad Create a new ad in an existing Meta Ads ad set (Facebook or Instagram). Created paused by default so it does not spend until enabled. The simplest way is to provide page_id and link plus optional text (message, headline, description), image_url or image_hash (from create_ad_image) and call_to_action_type; these build a single-image link ad creative automatically. For a Click-to-Message ad, set messaging_destination (MESSENGER or INSTAGRAM_DIRECT) instead of link; the message opens a conversation with the page. For a video ad, upload the video first with create_ad_video and pass its video_id here with page_id and a required thumbnail image_url or image_hash; message becomes the primary text, headline the title, description the caption, and call_to_action_type (with link) adds a button. For advanced cases, pass a full Meta creative spec via creative instead (e.g. {"creative_id": "<id>"} to reuse an existing creative, or {"object_story_spec": {...}}). Provide either the individual creative fields or creative, not both.
Create a new ad in an existing Meta Ads ad set (Facebook or Instagram). Created paused by default so it does not spend until enabled. The simplest way is to provide page_id and link plus optional text (message, headline, description), image_url or image_hash (from create_ad_image) and call_to_action_type; these build a single-image link ad creative automatically. For a Click-to-Message ad, set messaging_destination (MESSENGER or INSTAGRAM_DIRECT) instead of link; the message opens a conversation with the page. For a video ad, upload the video first with create_ad_video and pass its video_id here with page_id and a required thumbnail image_url or image_hash; message becomes the primary text, headline the title, description the caption, and call_to_action_type (with link) adds a button. For advanced cases, pass a full Meta creative spec via creative instead (e.g. {"creative_id": "<id>"} to reuse an existing creative, or {"object_story_spec": {...}}). Provide either the individual creative fields or creative, not both.
Update Campaign Update editable attributes of a Meta Ads campaign (Facebook or Instagram). Provide only the fields to change; at least one is required. spend_cap is a lifetime spend limit in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. special_ad_categories lists the regulated categories the ads fall under (e.g. HOUSING, EMPLOYMENT, CREDIT) or is empty; country declarations such as SINGAPORE_UNIVERSAL or TAIWAN_UNIVERSAL belong to regional_regulated_categories on the ad set (update_adset) instead. Use pause_campaign/enable_campaign to change status and set_campaign_budget to change the budget. objective is fixed at creation and cannot be updated.
Update editable attributes of a Meta Ads campaign (Facebook or Instagram). Provide only the fields to change; at least one is required. spend_cap is a lifetime spend limit in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. special_ad_categories lists the regulated categories the ads fall under (e.g. HOUSING, EMPLOYMENT, CREDIT) or is empty; country declarations such as SINGAPORE_UNIVERSAL or TAIWAN_UNIVERSAL belong to regional_regulated_categories on the ad set (update_adset) instead. Use pause_campaign/enable_campaign to change status and set_campaign_budget to change the budget. objective is fixed at creation and cannot be updated.
Update Ad Set Update editable attributes of a Meta Ads ad set (Facebook or Instagram). Provide only the fields to change; at least one is required. bid_amount is in the account currency minor unit (e.g. cents: 500 means 5.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Switching bid_strategy to a capped strategy (LOWEST_COST_WITH_BID_CAP or COST_CAP) requires bid_amount in the same call. start_time and end_time are ISO 8601 timestamps (e.g. 2027-01-01T00:00:00-0800); end_time less than one year ahead. Use pause_adset/enable_adset to change status and set_adset_budget to change the budget. Ads delivered to the EU require dsa_beneficiary and dsa_payor, naming who benefits from and who pays for the ad. Ads delivered to Taiwan, Singapore, Thailand, Brazil, Australia, Malaysia or India require regional_regulated_categories (e.g. SINGAPORE_UNIVERSAL) together with regional_regulation_identities holding the matching beneficiary and payer ids (e.g. {"singapore_universal_beneficiary": "<id>", "singapore_universal_payer": "<id>"}; THAILAND_UNIVERSAL, BRAZIL_REGULATION, AUSTRALIA_UNIVERSAL and MALAYSIA_UNIVERSAL use "universal_beneficiary" and "universal_payer"; financial service ads in Australia also declare AUSTRALIA_FINSERV with "australia_finserv_beneficiary" and "australia_finserv_payer"). These are verified identity ids from Meta Business settings > Verified identities (not page or business ids); ad account defaults are not inherited by ad sets created through the API. Meta also asks some accounts for a verified advertiser on any ad set ("Advertiser is missing"); then pass regional_regulation_identities with "universal_beneficiary" and "universal_payer" and add regional_regulated_categories only when the targeted country has a value listed above. extra_params passes further Meta ad set fields straight to the Graph API for anything this action does not model yet, e.g. {"attribution_spec": [{"event_type": "CLICK_THROUGH", "window_days": 7}]}. Prefer the named parameters where they exist: a key that repeats one already set is rejected, since only one of the two values could win.
Update editable attributes of a Meta Ads ad set (Facebook or Instagram). Provide only the fields to change; at least one is required. bid_amount is in the account currency minor unit (e.g. cents: 500 means 5.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Switching bid_strategy to a capped strategy (LOWEST_COST_WITH_BID_CAP or COST_CAP) requires bid_amount in the same call. start_time and end_time are ISO 8601 timestamps (e.g. 2027-01-01T00:00:00-0800); end_time less than one year ahead. Use pause_adset/enable_adset to change status and set_adset_budget to change the budget. Ads delivered to the EU require dsa_beneficiary and dsa_payor, naming who benefits from and who pays for the ad. Ads delivered to Taiwan, Singapore, Thailand, Brazil, Australia, Malaysia or India require regional_regulated_categories (e.g. SINGAPORE_UNIVERSAL) together with regional_regulation_identities holding the matching beneficiary and payer ids (e.g. {"singapore_universal_beneficiary": "<id>", "singapore_universal_payer": "<id>"}; THAILAND_UNIVERSAL, BRAZIL_REGULATION, AUSTRALIA_UNIVERSAL and MALAYSIA_UNIVERSAL use "universal_beneficiary" and "universal_payer"; financial service ads in Australia also declare AUSTRALIA_FINSERV with "australia_finserv_beneficiary" and "australia_finserv_payer"). These are verified identity ids from Meta Business settings > Verified identities (not page or business ids); ad account defaults are not inherited by ad sets created through the API. Meta also asks some accounts for a verified advertiser on any ad set ("Advertiser is missing"); then pass regional_regulation_identities with "universal_beneficiary" and "universal_payer" and add regional_regulated_categories only when the targeted country has a value listed above. extra_params passes further Meta ad set fields straight to the Graph API for anything this action does not model yet, e.g. {"attribution_spec": [{"event_type": "CLICK_THROUGH", "window_days": 7}]}. Prefer the named parameters where they exist: a key that repeats one already set is rejected, since only one of the two values could win.
Pause Campaign Pause an active Meta Ads campaign (Facebook or Instagram). Reversible via enable_campaign.
Pause an active Meta Ads campaign (Facebook or Instagram). Reversible via enable_campaign.
Set Campaign Budget Set the daily or lifetime budget of a Meta Ads campaign (Facebook or Instagram). The amount is in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Only one budget type applies at a time; setting one replaces the other. Meta rejects frequent budget changes on the same campaign; space out repeated changes instead of adjusting in rapid succession.
Set the daily or lifetime budget of a Meta Ads campaign (Facebook or Instagram). The amount is in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Only one budget type applies at a time; setting one replaces the other. Meta rejects frequent budget changes on the same campaign; space out repeated changes instead of adjusting in rapid succession.
Enable Campaign Activate a paused Meta Ads campaign (Facebook or Instagram). Reversible via pause_campaign.
Activate a paused Meta Ads campaign (Facebook or Instagram). Reversible via pause_campaign.
Enable Ad Activate a paused Meta Ads ad (Facebook or Instagram). Reversible via pause_ad.
Activate a paused Meta Ads ad (Facebook or Instagram). Reversible via pause_ad.
Enable Ad Set Activate a paused Meta Ads ad set (Facebook or Instagram). Reversible via pause_adset.
Activate a paused Meta Ads ad set (Facebook or Instagram). Reversible via pause_adset.
Pause Ad Pause an active Meta Ads ad (Facebook or Instagram). Reversible via enable_ad.
Pause an active Meta Ads ad (Facebook or Instagram). Reversible via enable_ad.
Update Ad Creative Edit the creative of an existing Meta Ads ad (Facebook or Instagram): ad copy (message), headline, description, destination link, image, call-to-action button, URL tracking tags and Advantage+ enhancement settings. Meta treats ad creatives as immutable, so this copies the ad's current creative (keeping its name, url_tags and degrees_of_freedom_spec), applies the changes, creates the result as a new creative and re-points the ad at it; the ad keeps its id, but the returned creative id is new. Provide ad_id plus at least one field to change. Editable content fields depend on the creative's media type: link ads support all of them; video ads support message, headline, description, image_url (thumbnail), link and call_to_action_type (the link lives on the button, so adding a link to a video ad without a button also requires call_to_action_type); photo ads only message (the caption) and image_url; text ads only message. For carousel ads (link ads with cards), message edits the text above the cards; headline, description, link, image_url and call_to_action_type live on the cards, so also pass card_index (0-based) to edit one specific card. url_tags (e.g. 'utm_source=x&utm_medium=y') and degrees_of_freedom_spec (a raw Meta spec) can be edited on any creative, including ads that promote an existing organic post (e.g. boosted posts) — but content fields on those ads cannot be edited; edit the post itself instead. Dynamic/catalog creatives cannot be edited at all. Omitted fields keep their current values; to clear url_tags pass an empty string, and to reset degrees_of_freedom_spec to Meta's default enhancement behavior pass an empty object. To swap the ad to a different existing creative, use update_ad instead.
Edit the creative of an existing Meta Ads ad (Facebook or Instagram): ad copy (message), headline, description, destination link, image, call-to-action button, URL tracking tags and Advantage+ enhancement settings. Meta treats ad creatives as immutable, so this copies the ad's current creative (keeping its name, url_tags and degrees_of_freedom_spec), applies the changes, creates the result as a new creative and re-points the ad at it; the ad keeps its id, but the returned creative id is new. Provide ad_id plus at least one field to change. Editable content fields depend on the creative's media type: link ads support all of them; video ads support message, headline, description, image_url (thumbnail), link and call_to_action_type (the link lives on the button, so adding a link to a video ad without a button also requires call_to_action_type); photo ads only message (the caption) and image_url; text ads only message. For carousel ads (link ads with cards), message edits the text above the cards; headline, description, link, image_url and call_to_action_type live on the cards, so also pass card_index (0-based) to edit one specific card. url_tags (e.g. 'utm_source=x&utm_medium=y') and degrees_of_freedom_spec (a raw Meta spec) can be edited on any creative, including ads that promote an existing organic post (e.g. boosted posts) — but content fields on those ads cannot be edited; edit the post itself instead. Dynamic/catalog creatives cannot be edited at all. Omitted fields keep their current values; to clear url_tags pass an empty string, and to reset degrees_of_freedom_spec to Meta's default enhancement behavior pass an empty object. To swap the ad to a different existing creative, use update_ad instead.
Pause Ad Set Pause an active Meta Ads ad set (Facebook or Instagram). Reversible via enable_adset.
Pause an active Meta Ads ad set (Facebook or Instagram). Reversible via enable_adset.
Set Ad Set Budget Set the daily or lifetime budget of a Meta Ads ad set (Facebook or Instagram). The amount is in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Only one budget type applies at a time; setting one replaces the other. Meta allows at most 4 budget changes per ad set per hour; further changes are rejected until the hour passes.
Set the daily or lifetime budget of a Meta Ads ad set (Facebook or Instagram). The amount is in the account currency minor unit (e.g. cents: 5000 means 50.00). Currencies without cents (CLP, COP, CRC, HUF, IDR, ISK, JPY, KRW, PYG, TWD, VND) use whole units: 300000 means 300000 COP. Only one budget type applies at a time; setting one replaces the other. Meta allows at most 4 budget changes per ad set per hour; further changes are rejected until the hour passes.
Update Ad Update editable attributes of a Meta Ads ad (Facebook or Instagram). Provide only the fields to change; at least one is required. creative swaps the ad to a different creative and is a Meta creative reference (e.g. {"creative_id": "<id>"}). conversion_domain is the registrable domain the ad drives conversions to (e.g. example.com), used for conversion attribution. display_sequence orders the ad within a sequenced campaign. Use pause_ad/enable_ad to change status.
Update editable attributes of a Meta Ads ad (Facebook or Instagram). Provide only the fields to change; at least one is required. creative swaps the ad to a different creative and is a Meta creative reference (e.g. {"creative_id": "<id>"}). conversion_domain is the registrable domain the ad drives conversions to (e.g. example.com), used for conversion attribution. display_sequence orders the ad within a sequenced campaign. Use pause_ad/enable_ad to change status.
Boost Post Boost (promote) an existing organic Facebook or Instagram post by creating a paid ad for it in an existing Meta Ads ad set. Provide the full post id (in '{page_id}_{post_id}' form, as it appears in the connector data) and the ad set to place the ad in. The ad reuses the published post as its creative via object_story_id, so no new copy or media is created. The target ad set MUST belong to an engagement campaign (objective OUTCOME_ENGAGEMENT) and name the post's page in its promoted_object; build it with create_campaign and create_adset first if needed. Two ad set shapes work: an ON_POST destination with optimization_goal POST_ENGAGEMENT (engagement on the post itself, no call-to-action needed), or a FACEBOOK_PAGE destination with optimization_goal PROFILE_AND_PAGE_ENGAGEMENT, which additionally requires a call-to-action button on the ad — pass call_to_action_type (e.g. VISIT_PROFILE) for that case, otherwise Meta rejects the ad with a 'call-to-action required' error. The page promoted by the ad set and the post's page must match, and the access token must have ads permission on that page. Created paused by default so it does not spend until enabled; use enable_ad to activate it.
Boost (promote) an existing organic Facebook or Instagram post by creating a paid ad for it in an existing Meta Ads ad set. Provide the full post id (in '{page_id}_{post_id}' form, as it appears in the connector data) and the ad set to place the ad in. The ad reuses the published post as its creative via object_story_id, so no new copy or media is created. The target ad set MUST belong to an engagement campaign (objective OUTCOME_ENGAGEMENT) and name the post's page in its promoted_object; build it with create_campaign and create_adset first if needed. Two ad set shapes work: an ON_POST destination with optimization_goal POST_ENGAGEMENT (engagement on the post itself, no call-to-action needed), or a FACEBOOK_PAGE destination with optimization_goal PROFILE_AND_PAGE_ENGAGEMENT, which additionally requires a call-to-action button on the ad — pass call_to_action_type (e.g. VISIT_PROFILE) for that case, otherwise Meta rejects the ad with a 'call-to-action required' error. The page promoted by the ad set and the post's page must match, and the access token must have ads permission on that page. Created paused by default so it does not spend until enabled; use enable_ad to activate it.
Set Page Welcome Message Set or update the automated welcome message (greeting / ice breaker) shown when a user opens the conversation from a Meta Ads Click-to-Message ad (Messenger or Instagram, OUTCOME_ENGAGEMENT / CONVERSATIONS). The welcome message lives on the ad creative, which Meta treats as immutable, so this builds a new creative that copies the ad's existing creative and only swaps the welcome message, then re-points the ad at it. Provide ad_id plus either welcome_message (plain greeting text, the common case) or welcome_message_spec (a full page_welcome_message structure for ice breakers / quick replies), not both. The change is verified by reading the new creative back; the action fails if Meta did not persist the value.
Set or update the automated welcome message (greeting / ice breaker) shown when a user opens the conversation from a Meta Ads Click-to-Message ad (Messenger or Instagram, OUTCOME_ENGAGEMENT / CONVERSATIONS). The welcome message lives on the ad creative, which Meta treats as immutable, so this builds a new creative that copies the ad's existing creative and only swaps the welcome message, then re-points the ad at it. Provide ad_id plus either welcome_message (plain greeting text, the common case) or welcome_message_spec (a full page_welcome_message structure for ice breakers / quick replies), not both. The change is verified by reading the new creative back; the action fails if Meta did not persist the value.
Create Ad Video Upload a video to a Meta Ads ad account from a public URL so it can be used in a video ad. Meta fetches the file from video_url and transcodes it; the action waits until the video is ready and returns its video_id. Pass that video_id to create_ad together with page_id and a thumbnail image_url to build the video ad. The upload cannot be undone via an action.
Upload a video to a Meta Ads ad account from a public URL so it can be used in a video ad. Meta fetches the file from video_url and transcodes it; the action waits until the video is ready and returns its video_id. Pass that video_id to create_ad together with page_id and a thumbnail image_url to build the video ad. The upload cannot be undone via an action.
Duplicate Ad Set Duplicate an existing Meta Ads ad set (Facebook or Instagram). The copy keeps the source targeting, budget and schedule. Copied paused by default so it does not spend until enabled. Set status_option to active to launch it, or inherited to keep the source status. Set campaign_id to move the copy to another campaign, or omit it to keep the copy in the source campaign. Set deep_copy to also duplicate the ads in the ad set; a synchronous copy is limited to 3 ads. There is no delete action, so pausing the copy does not remove it.
Duplicate an existing Meta Ads ad set (Facebook or Instagram). The copy keeps the source targeting, budget and schedule. Copied paused by default so it does not spend until enabled. Set status_option to active to launch it, or inherited to keep the source status. Set campaign_id to move the copy to another campaign, or omit it to keep the copy in the source campaign. Set deep_copy to also duplicate the ads in the ad set; a synchronous copy is limited to 3 ads. There is no delete action, so pausing the copy does not remove it.
Create Ad Image Upload one or more images (JPEG, PNG or GIF, up to 30 MB each, at most 20 images and 100 MB per request) to a Meta Ads ad account and return one image_hash per image, in the order the files were sent. The images are sent as files uploaded with the request, not as params or URLs; Meta's image endpoint has no URL option. Each image appears in the account's image library under its filename. Use each image_hash in create_ad via the creative field, e.g. object_story_spec.link_data.child_attachments[].image_hash for carousel cards. Meta deduplicates images by content, so re-uploading the same file returns the same image_hash. The upload cannot be undone via an action.
Upload one or more images (JPEG, PNG or GIF, up to 30 MB each, at most 20 images and 100 MB per request) to a Meta Ads ad account and return one image_hash per image, in the order the files were sent. The images are sent as files uploaded with the request, not as params or URLs; Meta's image endpoint has no URL option. Each image appears in the account's image library under its filename. Use each image_hash in create_ad via the creative field, e.g. object_story_spec.link_data.child_attachments[].image_hash for carousel cards. Meta deduplicates images by content, so re-uploading the same file returns the same image_hash. The upload cannot be undone via an action.
How to connect Facebook Ads to Antigravity with Windsor.ai
Watch the video tutorial, or follow the step-by-step guide to connect your Facebook Ads data to Antigravity with Windsor.ai.
Add Windsor MCP in Antigravity
Open the Antigravity desktop app. At the bottom left of the main window, click Settings, then Customizations, then the Add MCP button. Type Windsor in the search bar and click Add.
Finish the Windsor.ai sign-in
The Windsor.ai window opens. Click Finish to complete the sign-in, then click Refresh. Windsor appears in the list of installed MCP servers.
Ask Antigravity about your Facebook Ads data
Close the Customizations window, return to the main window and ask about your Facebook Ads data.
FAQs
What Facebook Ads data can Antigravity use?
Windsor.ai gives Antigravity access to 850+ Facebook Ads fields. These are some of the groups; the Facebook Ads field reference lists all of them:
- Delivery: Amount Spent, Impressions, Reach, Frequency, CPM, Clicks, Link Clicks, CTR.
- Results: Purchase ROAS, Website Purchase ROAS, Action Values Purchase, Website Purchases.
- Structure: Campaign, Ad Set Name, Ad Name, Objective, Creative ID, Ad Placement.
- Audience: Age Range, Gender.
- Ad quality diagnostics: Quality Ranking, Engagement Rate Ranking, Conversion Rate Ranking.
- Video: Video Plays, Video Watched for 2 seconds, Video Average Play Time.
What prompts can I use to build with Facebook Ads data in Antigravity?
Antigravity works best when you give its agent a task with a clear output. Each of these names the fields to use and the file or Artifact you want back:
-
Pull Ad Name, Date, Frequency, CTR, Impressions, and Amount Spent for the last 28 days. Write a script that fits a simple trend per Ad Name and flags ads where Frequency is rising and CTR is falling, with at least 5,000 impressions in the period. Output creative_fatigue.csv sorted by Amount Spent, and show me the top five.
-
Build an Artifact that shows Purchase ROAS, Amount Spent, and Website Purchases by Age Range and Gender for the last 60 days. Mark segments with under 20 Website Purchases as low confidence, and write two sentences per row group on whether to increase, hold, or cut budget.
-
Pull Ad Name, Quality Ranking, Engagement Rate Ranking, Conversion Rate Ranking, Amount Spent, and Purchase ROAS. List ads ranked below average on any of the three rankings that still account for the top quartile of Amount Spent, and suggest which of the three problems each one most likely has.
-
For video ads, pull Video Plays, Video Watched for 2 seconds, and Video Average Play Time with Ad Name and Creative ID. Calculate the share of plays that reach 2 seconds, rank videos by it, and write a hook report that separates strong openings from weak ones with the reasoning.
-
Pull Amount Spent, CPM, Link Clicks, Website Purchases, and Purchase ROAS by Ad Placement for the last 30 days. Build an Artifact that ranks placements, then write placement_notes.md with the two placements where I should shift budget and the evidence from the numbers.
-
Pull Campaign, Objective, Amount Spent, Reach, and Frequency for the last 14 days. Write a script that flags campaigns with Frequency above 3 on a prospecting Objective and prints how much Amount Spent sits in those campaigns.
Can Antigravity turn Facebook Ads data into dashboards?
Yes. Antigravity generates charts, dashboards, and visual reports as Artifacts, rendered live inside the IDE. You can keep refining an Artifact in the same conversation, and ask the agent to save the code behind it as a script you can rerun with fresh Facebook Ads data.
Can Antigravity make changes in my Facebook Ads account?
Yes. Windsor.ai has write actions for Facebook Ads, and Antigravity can run them through Windsor MCP when you ask: it can create, duplicate, update, pause or enable campaigns, ad sets and ads, set budgets, and boost a post. See the full list of write actions.
Can I combine Facebook Ads data with other sources in Antigravity?
Yes. Windsor.ai supports 350+ data sources, so you can connect Facebook Ads alongside tools such as Google Ads, GA4, or Shopify and ask Antigravity to work with them together. For example, ask Antigravity to join Facebook Ads Amount Spent by Campaign with GA4 Key events by Campaign name, then write a script that compares Meta’s reported Website Purchases with what GA4 recorded.
How do I add Windsor MCP to Antigravity?
Open the Antigravity desktop app and click Settings, then Customizations, then Add MCP. Type Windsor in the search bar and click Add. When the Windsor.ai window opens, click Finish, then Refresh. Windsor appears in your list of installed MCP servers.
Do I need to code to connect Facebook Ads to Antigravity?
No. The connection takes no code: connect Facebook Ads in Windsor.ai, add Windsor MCP in Antigravity’s Customizations, and sign in. After that you describe what you want in plain language, and the Antigravity agent writes and runs the code. You can read and edit everything it produces.
How much does it cost to integrate Facebook Ads with Antigravity using Windsor.ai?
The free forever plan covers 1 data source, so connecting Facebook Ads on its own costs nothing and needs no credit card. Combining Facebook Ads with other sources, such as Google Ads or GA4, needs a paid plan: $19/month for 3 sources or $99/month for 7. Antigravity is billed separately by Google. See the pricing page.
Do you have helpful links to get started with integrating Facebook Ads and Antigravity using Windsor.ai?
Yes, we have helpful resources to help you get started. You can explore our official documentation for Facebook Ads to Antigravity integration with Windsor.ai:
Tired of manual Facebook Ads data exports? Try Windsor.ai today to build on live data

