...
Connect your Facebook pages to the Omni Channel.
Create instant forms and link them to your Facebook pages.
Utilize the Facebook List Form settings to automate processes.
Customize flows to trigger actions based on user interactions.
Connect with various channels such as WhatsApp, SMS, and Email.
Use advanced integrations like Open AI to enhance automation capabilities.
How to get the traffic source for the instant form ads
In this article, you will learn how to get the traffic source(campaign name & ad set name) for the instant form leads.
This is the common problem for advertisers. Because in most cases, you might connect the same instant form to multiple campaigns or adsets.
When you received the leads, you will need to find out which campaign or which adset the leads is coming from.
Sample instant form payload
For example, this is the sample instant form lead payload, you can find the details below
Code Block |
---|
{
"id": "1091455272135931",
"form_id": "6929973650395684",
"ad_id": "6526687589538", "
field_data": [
]
} |
And the lead_gen ID is 1091455272135931
, and the ad_id is 6526687589538
We will use the ad_id to get more information for the campaign in the next step.
Get the campaign name & ad set name for the leads
You can go to “Action” → “Advanced Action” → Facebook API → “Get Lead Gen” Action.
And then you place the ad_id in the lead Gen ID, and then write “id,name,campaign{id,name}” in the fields(optional), you can pull the details adset name & campaign name in the response as per screenshot below.
If you want to pull more parameters, you can reference the link below to pull more traffic source information
https://developers.facebook.com/docs/marketing-api/reference/adgroup#parameters
...