Skip to main content

Meta Ads Connector

Meta Ads Interact with ads and adsets in your Meta Ads account.

Connections

Conversions API Access Token

Use this connection to connect to a sandbox ad account.

InputCommentsDefault
Access TokenA valid access token for Meta Ads API

Meta Ads Client Credentials

Client Credentials connectivity for Meta Ads. This connection is required to get an APP Token, which is required to use some of the Meta APIs.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
Authorize URLProvide a valid authURL for Meta Adshttps://www.facebook.com/v22.0/dialog/oauth
Token URLProvide a valid Meta Ads version to complete the Token URLhttps://graph.facebook.com/v22.0/oauth/access_token
App IdProvide the App Id that was generated from your Meta Ads App.
App SecretProvide the App Secret that was generated from your Meta Ads App.
ScopesProvide a valid list of scopes. A list per use case is provided on the Meta Ads docs: https://developers.facebook.com/docs/marketing-api/overview/authorization/ads_read ads_management pages_show_list groups_access_member_info leads_retrieval page_events pages_read_user_content public_profile

Meta Ads Oauth 2.0

Oauth 2.0 connectivity for Meta Ads.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
Authorize URLProvide a valid authURL for Meta Adshttps://www.facebook.com/v22.0/dialog/oauth
Token URLProvide a valid Meta Ads version to complete the Token URLhttps://graph.facebook.com/v22.0/oauth/access_token
App IdProvide the App Id that was generated from your Meta Ads App.
App SecretProvide the App Secret that was generated from your Meta Ads App.
ScopesProvide a valid list of scopes. A list per use case is provided on the Meta Ads docs: https://developers.facebook.com/docs/marketing-api/overview/authorization/ads_read ads_management pages_show_list groups_access_member_info leads_retrieval page_events pages_read_user_content public_profile

Sandbox Ad Account Token

Use this connection to connect to a sandbox ad account.

InputCommentsDefault
Sandbox TokenA valid sandbox token for Meta Ads API

Triggers

Ad Account Trigger

Receive data from the Ad Account in real time with webhook subscriptions.

InputCommentsDefault
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Verify TokenThe verify token for the webhook.
Ad Account FieldsThe fields to be subscribed to.
Dynamic Ad Account FieldsThe fields to be subscribed to.
ConnectionThis connection must be a Meta Ads Client Credentials connection to be able to use webhooks APIs.

Page Trigger

Receive data from the Page in real time with webhook subscriptions.

InputCommentsDefault
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Verify TokenThe verify token for the webhook.
Page FieldsThe fields to be subscribed to.
Dynamic Page FieldsThe fields to be subscribed to.
ConnectionThis connection must be a Meta Ads Client Credentials connection to be able to use webhooks APIs.

Actions

Add URL Tags To Ad Creative

Update an existing Ad Creative to include a new set of URL Tags.

InputCommentsDefault
Connection
Ad AccountProvide the identifier of an Ad Account. This value should be an Id.
URL TagsProvide an string for the URL tags on the given adCreative.
Object Story IdProvide an Id for the object story of the adCreative.
LimitProvide a limit for the result set.
BeforeProvide the token for the item before the current one.
AfterProvide the token for the item after the current one.
FieldsProvide a comma separated list of fields to be returned.name, object_story_spec, adlabels, body, object_id, url_tags
Optional ValuesProvide optional values to mutate the given object.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Create Ad

Creates a new ad.

InputCommentsDefault
Connection
Ad AccountProvide the identifier of an Ad Account. This value should be an Id.
NameName of the ad.
CreativeThis field is required for create. The ID or creative spec of the ad creative to be used by this ad. You may supply the ID within an object as shown in the example.
Adset IdID of the ad set that contains the ad.
Ad StatusProvide a status for the ad. During testing, it is recommended to set ads to a PAUSED status so as to not incur accidental spend.
Adset SpecThe ad set spec for this ad. When the spec is provided, Adset Id field is not required.
Ad Schedule End TimeIndicates the end time for the ad. If no end time is defined, the ad will run on the campaign's schedule.
Ad Schedule Start TimeIndicates the start time for the ad. If no start time is defined, the ad will run on the campaign's schedule.
Ad LabelsAd labels associated with this ad.
Audience IdThe ID of the audience.
Conversion DomainThe domain where conversions happen. The field is no longer required for creation or update since June 2023. Note that this field should contain only the first and second level domains, and not the full URL.
Date FormatThe format of the date.
Display SequenceThe sequence of the ad within the same campaign.
Engagement AudienceFlag to create a new audience based on users who engage with this ad.false
Include Demolink HashesInclude the demolink hashes.false
PriorityPriority of the ad.
Source Ad IdID of the source Ad, if applicable.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Create Ad Account Webhook

Create a new ad account webhook for the current application.

InputCommentsDefault
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Verify TokenThe verify token for the webhook.
Callback UrlThe URL to send the webhook to.
Ad Account FieldsThe fields to be subscribed to.
Dynamic Ad Account FieldsThe fields to be subscribed to.
ConnectionThis connection must be a Meta Ads Client Credentials connection to be able to use webhooks APIs.

Create Campaign

Creates a new campaign.

InputCommentsDefault
Connection
Ad AccountProvide the identifier of an Ad Account. This value should be an Id.
Campaign NameName for this campaign.
ObjectiveCampaign's objective. If it is specified the API will validate that any ads created under the campaign match that objective.
Ad StatusOnly ACTIVE and PAUSED are valid during creation. Other statuses can be used for update. If it is set to PAUSED, its active child objects will be paused and have an effective status CAMPAIGN_PAUSED.
Special Ad CategoriesSpecial Ad Categories.
Special Ad Category CountrySpecial Ad Category Country.
Ad LabelsAd Labels associated with this campaign.
Bid StrategyChoose bid strategy for this campaign to suit your specific business goals.
Buying TypeThis field will help Meta Ads make optimizations to delivery, pricing, and limits. All ad sets in this campaign must match the buying type.
Campaign Optimization TypeCampaign Optimization Type.
Daily BudgetDaily budget of this campaign. All adsets under this campaign will share this budget. You can either set budget at the campaign level or at the adset level, not both.
Is Skadnetwork AttributionTo create an iOS 14 campaign, enable SKAdNetwork attribution for this campaign.false
Is Using L3 ScheduleIs Using L3 Schedule.false
Iterative Split Test ConfigsArray of Iterative Split Test Configs created under this campaign.
Lifetime BudgetLifetime budget of this campaign. All adsets under this campaign will share this budget. You can either set budget at the campaign level or at the adset level, not both.
Promoted ObjectThe object this campaign is promoting across all its ads. It's required for SKAdNetwork or Aggregated Event Measurement campaign creation. Only product_catalog_id is used at the ad set level.
Source Campaign IdUsed if a campaign has been copied. The ID from the original campaign that was copied.
Spend CapA spend cap for the campaign, such that it will not spend more than this cap. Defined as integer value of subunit in your currency with a minimum value of $100 USD (or approximate local equivalent). Set the value to 922337203685478 to remove the spend cap. Not available for Reach and Frequency or Premium Self Serve campaigns.
Start TimeStart Time.
Stop TimeStop Time.
Topline IdTopline Id.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Create Conversion

Create a single conversion event for a pixel. Requires the Conversions API Access Token connection.

InputCommentsDefault
Connection
Pixel IdProvide the Id of a pixel.
Event NameA standard event or custom event name.
User DataA map that contains customer information data. See https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters.
Action SourceThis field allows you to specify where your conversions occurred.
Event TimeA Unix timestamp in seconds indicating when the actual event occurred. The specified time may be earlier than the time you send the event to Meta Ads. You must send this date in GMT time zone. Default is the current time.
Event Source UrlThe browser URL where the event happened.
Custom DataA map that includes additional business data about the event. See https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/custom-data.
More DataAdditional data to include with the event. See https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Create Multiple Conversions

Create multiple conversion events for a pixel. Requires the Conversions API Access Token connection.

InputCommentsDefault
Connection
Pixel IdProvide the Id of a pixel.
EventsAn array of server event objects. See https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event for more information.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Create Page Webhook

Create a new page webhook for the current application.

InputCommentsDefault
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Verify TokenThe verify token for the webhook.
Callback UrlThe URL to send the webhook to.
Page FieldsThe fields to be subscribed to.
Dynamic Page FieldsThe fields to be subscribed to.
ConnectionThis connection must be a Meta Ads Client Credentials connection to be able to use webhooks APIs.

Delete Ad

Delete the information and metadata of a given ad.

InputCommentsDefault
Connection
Ad IdAd ID to delete.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Delete Webhook

Delete a webhook for the current application.

InputCommentsDefault
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
ObjectThe webhook associated with the object will be deleted.
ConnectionThis connection must be a Meta Ads Client Credentials connection to be able to use webhooks APIs.

Get Ad

Get the information and metadata of a given ad.

InputCommentsDefault
Connection
Ad IdAd ID to get.
FieldsProvide a comma separated list of fields to be returned.name,adset,account_id,ad_review_feedback,adlabels,adset_id,bid_amount,campaign,campaign_id,configured_status,conversion_domain,created_time,creative,effective_status,issues_info,last_updated_by_app_id,preview_shareable_link,recommendations,status,tracking_specs
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Get Ad Account

Get the information and metadata of the given ad account.

InputCommentsDefault
Connection
Ad AccountProvide the identifier of an Ad Account. This value should be an Id.
FieldsProvide a comma separated list of fields to be returned.name,age,balance,is_personal,account_status,line_numbers,adcreatives
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Get Ad Creative

Get the information and metadata of the given ad creative.

InputCommentsDefault
Connection
Ad CreativeProvide a unique identifier of the Ad Creative. This value should be an ID.
FieldsProvide a comma separated list of fields to be returned.name, object_story_spec, adlabels, body, object_id, url_tags
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Get Ad Set

Get the information and metadata of a given Ad Set.

InputCommentsDefault
Connection
Ad Set IdThe ID of the Ad Set to retrieve.
FieldsProvide a comma separated list of fields to be returned.name,account_id,adlabels,adset_schedule,asset_feed_id,attribution_spec,bid_adjustments,bid_amount,bid_constraints,bid_info,billing_event,budget_remaining,campaign,configured_status,created_time,creative_sequence,daily_budget,daily_min_spend_target,daily_spend_cap,destination_type,effective_status,end_time,optimization_goal,optimization_sub_event,pacing_type,promoted_object,recommendations,status,targeting,start_time,targeting_optimization_types,updated_time
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Get Business By Name

Fetch an business with the provided name.

InputCommentsDefault
Connection
Business Name
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Get Current User

Get the information and metadata of the current user.

InputCommentsDefault
Connection
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Get User By Id

Get the information and metadata of a given user.

InputCommentsDefault
Connection
User IdProvide the Id of a user.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

List Ad Accounts

Get the ad accounts for the current user.

InputCommentsDefault
Connection
Fetch AllIf true, it will fetch all records and ignore parameters like limit, after, and before.false
LimitProvide a limit for the result set.
BeforeProvide the token for the item before the current one.
AfterProvide the token for the item after the current one.
FieldsProvide a comma separated list of fields to be returned.name,age,balance,is_personal,account_status,line_numbers,adcreatives
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

List Ad Creatives

List all ad creatives in a given ad account.

InputCommentsDefault
Connection
Ad AccountProvide the identifier of an Ad Account. This value should be an Id.
Fetch AllIf true, it will fetch all records and ignore parameters like limit, after, and before.false
LimitProvide a limit for the result set.
BeforeProvide the token for the item before the current one.
AfterProvide the token for the item after the current one.
FieldsProvide a comma separated list of fields to be returned.name, object_story_spec, adlabels, body, object_id, url_tags
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

List Ad Leads

List all ad leads for the given ad.

InputCommentsDefault
Connection
Ad IdThe ID of the ad to list leads for.
LimitProvide a limit for the result set.
BeforeProvide the token for the item before the current one.
AfterProvide the token for the item after the current one.
FieldsProvide a comma separated list of fields to be returned.name
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

List Ad Previews

Get a list of all previews of the given ad.

InputCommentsDefault
Connection
Ad IdThe ID of the ad to list previews for.
Ad FormatProvide a type of ad format to preview.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

List Ad Sets In Account

List all ad sets in an ad account.

InputCommentsDefault
Connection
Ad AccountProvide the identifier of an Ad Account. This value should be an Id.
Fetch AllIf true, it will fetch all records and ignore parameters like limit, after, and before.false
LimitProvide a limit for the result set.
BeforeProvide the token for the item before the current one.
AfterProvide the token for the item after the current one.
FieldsProvide a comma separated list of fields to be returned.name,account_id,adlabels,adset_schedule,asset_feed_id,attribution_spec,bid_adjustments,bid_amount,bid_constraints,bid_info,billing_event,budget_remaining,campaign,configured_status,created_time,creative_sequence,daily_budget,daily_min_spend_target,daily_spend_cap,destination_type,effective_status,end_time,optimization_goal,optimization_sub_event,pacing_type,promoted_object,recommendations,status,targeting,start_time,targeting_optimization_types,updated_time
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

List Ads In Account

List all ads in an ad account.

InputCommentsDefault
Connection
Ad AccountProvide the identifier of an Ad Account. This value should be an Id.
Fetch AllIf true, it will fetch all records and ignore parameters like limit, after, and before.false
BeforeProvide the token for the item before the current one.
AfterProvide the token for the item after the current one.
LimitProvide a limit for the result set.
FieldsProvide a comma separated list of fields to be returned.name,adset,account_id,ad_review_feedback,adlabels,adset_id,bid_amount,campaign,campaign_id,configured_status,conversion_domain,created_time,creative,effective_status,issues_info,last_updated_by_app_id,preview_shareable_link,recommendations,status,tracking_specs
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

List Ads In Adset

List all ads in a given adset.

InputCommentsDefault
Connection
Ad Set IdThe ID of the adset to list ads for.
FieldsProvide a comma separated list of fields to be returned.name,adset,account_id,ad_review_feedback,adlabels,adset_id,bid_amount,campaign,campaign_id,configured_status,conversion_domain,created_time,creative,effective_status,issues_info,last_updated_by_app_id,preview_shareable_link,recommendations,status,tracking_specs
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

List Campaigns In Account

List all campaigns in an ad account.

InputCommentsDefault
Connection
Ad AccountProvide the identifier of an Ad Account. This value should be an Id.
LimitProvide a limit for the result set.
BeforeProvide the token for the item before the current one.
AfterProvide the token for the item after the current one.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

List Webhooks

List all webhooks for the current application.

InputCommentsDefault
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
ConnectionThis connection must be a Meta Ads Client Credentials connection to be able to use webhooks APIs.

Raw Request

Send raw HTTP request to Meta Ads.

InputCommentsDefault
Connection
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
URLInput the path only (/me/adaccounts), The base URL is already included (https://graph.facebook.com/v<INPUT_VERSION>.0). For example, to connect to https://graph.facebook.com/v<INPUT_VERSION>.0/me/adaccounts, only /me/adaccounts is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Update Ad

Update the information and metadata of a given ad or adset.

InputCommentsDefault
Connection
Ad IdProvide the Id of an Ad or Ad Set.
Ad NameProvide a name for the given ad.
Ad StatusProvide a status for the ad. During testing, it is recommended to set ads to a PAUSED status so as to not incur accidental spend.
Creative IdProvide the Id of the desired creative.
TrackingProvide a JSON array containing valid tracking specs. The shape of this field can change depending on the type of ad: https://developers.facebook.com/docs/marketing-api/tracking-specs#default_by_ad.
Optional ValuesProvide optional values to mutate the given object.
FieldsProvide a comma separated list of fields to be returned.name,adset,account_id,ad_review_feedback,adlabels,adset_id,bid_amount,campaign,campaign_id,configured_status,conversion_domain,created_time,creative,effective_status,issues_info,last_updated_by_app_id,preview_shareable_link,recommendations,status,tracking_specs
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Update Ad Creative

Update the information and metadata of the given ad creative.

InputCommentsDefault
Connection
Ad Creative IdThe ID of the ad creative to update.
URL TagsProvide an string for the URL tags on the given adCreative.
Object Story IdProvide an Id for the object story of the adCreative.
NameProvide a name for the adCreative.
BodyProvide a body for the adCreative.
LimitProvide a limit for the result set.
BeforeProvide the token for the item before the current one.
AfterProvide the token for the item after the current one.
FieldsProvide a comma separated list of fields to be returned.name, object_story_spec, adlabels, body, object_id, url_tags
Optional ValuesProvide optional values to mutate the given object.
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false

Update Ad Set

Update the information and metadata of a given Ad Set.

InputCommentsDefault
Connection
Ad Set IdThe ID of the Ad Set to update.
Ad Set NameProvide a name for the Ad Set.
Ad Set StatusProvide a status for the Ad Set. During testing, it is recommended to set ad sets to a PAUSED status so as to not incur accidental spend.
TargetingThe targeting specs for the ad set.
Optional ValuesProvide optional values to mutate the given object.
FieldsProvide a comma separated list of fields to be returned.name,account_id,adlabels,adset_schedule,asset_feed_id,attribution_spec,bid_adjustments,bid_amount,bid_constraints,bid_info,billing_event,budget_remaining,campaign,configured_status,created_time,creative_sequence,daily_budget,daily_min_spend_target,daily_spend_cap,destination_type,effective_status,end_time,optimization_goal,optimization_sub_event,pacing_type,promoted_object,recommendations,status,targeting,start_time,targeting_optimization_types,updated_time
Graph VersionProvide the version of the Graph API to use. Defaults to 22.22
Debug RequestEnabling this flag will log out the current request.false