formtools / core

The Form Tools Core.
https://formtools.org
207 stars 78 forks source link

Google Ads "Lead Form Ads" - does the webhook capability work with formtools? #643

Open henkisdabro opened 4 years ago

henkisdabro commented 4 years ago

Google Ads team released a new ad unit similar to Facebook's Lead Ads, where users are served ads on Google Search and GDN with a lead form directly integrated into the ad unit. According to Google there is a webhook option meant to integrate with CRM systems and I wonder whether it is possible to make it work with FormTools?

There are two option fields available on the ad unit settings itself: Webhook URL and Key. I performed a test data submission and here is the output from the ad unit. The Key simply sets a value of your choosing in the below google_key parameter key, so the only thing available to edit is the webhook URL.

What would be a correct way to configure this for Formtools?

{ "lead_id": "MjpsZWFkX2lkOjE1NzI1ODA5MjQ4NTY", "api_version": "1.0", "form_id": 2, "campaign_id": 1, "google_key": "", "is_test": true }

benkeen commented 4 years ago

Hey @henkisdabro, sorry for not responding sooner.

Hmm... from your description, I'm afraid I'm not at all clear on what this is or how it should be configured exactly. Are you trying to add something to appear in the forms themselves? Specifically on Form Builder forms?

henkisdabro commented 4 years ago

Sorry for being unclear! Am I able to point a webhook from other web services which submit JSON snippets (with above form field data) to my formtools api path and make formtools accept incoming POST requests, process them and insert into existing form tables in my implementation?