A webhook is an API that enables you to send lead data to your CRM system in real-time. To set it up, you will need to add a webhook URL and key to your lead form extension. You may need to do some configuration within your CRM system to generate the URL and key.
The URL is the delivery path: after the user submits a lead form extension, an HTTP POST request is sent to the configured URL, allowing the lead data to go directly into the CRM system. The key is used for validating the leads sent.
- Sign into your Google Ads account.
- In the page menu on the left, click Campaigns.
- Click the plus button , and then select New campaign.
- In the goals section, select Leads.
- Under “Campaign type,” select Search.
- Click Continue.
- Enter your campaign settings.
- In the "Ad extensions" list, select Lead form extension.
- Fill in details about your extension and your lead form extension.
- Under “Create form submission message”, click on Lead Delivery Option. This will show the “Manage your leads with a webhook” field.
- Enter the Webhook URL and Key.
- Click Send test data to view testing states and results.
Check your data management system to confirm that you have received the test data.
- After filling in the required steps, click Add to campaign.
Depending on your initial actions after adding webhooks, you may receive error states.
- Error state A is when users save the form without sending test data (successfully).
- Error state B is data that is not sent.
- Error state C is data sent without Google receiving a response.
- Error state D is data sent, but Google receives an incorrect response (HTTP 200).
- Success state is data sent, and Google receives a correct response.
Last reviewed: 02/2020