LinkedIn ad values in fields

Hi, looking for the best way to transfer the ad information to fields when a LinkedIn lead gen is submitted. I see the information on the ad interaction on the contact but am looking for a way to transfer them to a field.

Hello @IRozen3, thank you for posting in our Community!

I want to invite some top experts to this conversation @LMeert @Jonno_Price any recommendations to @IRozen3 matter?

Thank you,

Pam

Hi @IRozen3
Have you checked the Original Source, Original source drill down 1 and Original source drill down 2 properties? These are captured automatically by HubSpot via the ad module integration. The drill down 2 values are based on the ad name. These are actual properties so you can filter and sort by them. Is this what you had in mind or is it something else that you want to capture as property values?

Thank you for this answer. The source drill-down 2 shows us only the LinkedIn ad group, but I’m trying to capture to a feild also the ad name and the ad campaign that appear in the ads activity once a contact submittes a lead gen form.

The short answer is:

The direct HubSpot-LinkedIn integration, while excellent for capturing lead form data, doesn’t automatically map the specific ad creative name or ad campaign name into standard contact properties, beyond what you see in the ‘Original Source’ properties and the Contact Timeline ‘Ads activity’.

To reliably transfer the ad creative name and full campaign hierarchy to custom contact properties, the best approach is to leverage a server-side solution that uses the LinkedIn Conversions API to fire a conversion event, where you can pass the ad metadata as a custom parameter, and then use the HubSpot API to update the contact’s custom property based on that event data.

The long answer is:

That is a great question that gets to a common data limitation in many native advertising to CRM integrations.

You’re right to point out that the Original source drill-down 2 property often only captures the Ad Group/Campaign Group name, and not the more granular Ad Creative name.

While all the information – Ad Campaign, Ad Group, and Ad Name – is clearly visible in the Contact Timeline under the specific ad interaction, getting that granular data to stick to a custom contact property for segmentation and reporting requires a more technical solution than simple lead form field mapping.

The standard lead syncing process in HubSpot is designed to map the fields a user fills out on the LinkedIn Lead Gen Form (like name, email, job title) to your HubSpot contact properties.

It does not provide a built-in way to map the associated ad creative’s name, which is a structural piece of data about the ad, not a field on the form itself, to a distinct contact property.

To achieve your goal of capturing the Ad Campaign and Ad Name into their own custom contact properties, you would need to implement a solution that involves the HubSpot API, the LinkedIn Conversions API, and an intermediary server-side platform, which is often called a conversion data server.

This solution is exceptionally robust for two key reasons: it gives you complete control over the data being sent to HubSpot, and it allows for a cleaner, more reliable data flow that isn’t dependent on client-side browser events.

Here is why a setup using the HubSpot API + LinkedIn Conversions API + Google Tag Manager (GTM) + a platform like Stape or Google Cloud Platform (GCP) is an excellent solution.

First, you would use GTM to capture the necessary LinkedIn ad parameters, such as the Ad Creative ID and Campaign ID, when a user lands on your site after clicking the ad (if you were using a landing page) or even potentially embedding them in a hidden field on the LinkedIn Lead Gen Form itself, if the form supports that level of customization which is an increasingly popular practice.

This is because the ad platforms typically provide a way to pass these IDs as URL parameters or as part of the lead data.

Second, you’d send this data from GTM to a server-side environment, which could be a custom setup on GCP or a service like Stape.

This server is the crucial middle-man.

When a lead submission happens, the server can use the raw ad IDs (Ad Creative ID, Campaign ID) that you captured, query the LinkedIn Marketing API to get the human-readable names you want (the Campaign Name and Ad Name), and then send a perfectly structured conversion event back to LinkedIn via the LinkedIn Conversions API.

This ensures LinkedIn has highly accurate conversion data for optimization.

Most importantly for your specific problem, this server-side component then uses the HubSpot API to update the contact record.

The contact would be identified using the email address collected on the form.

Since you would have already created custom contact properties in HubSpot for things like “LinkedIn Ad Name” and “LinkedIn Campaign Name,” your server-side script can simply call the HubSpot Contacts API and update those specific properties with the clean names it just retrieved from LinkedIn’s API.

This is the cleanest and most scalable way to ensure the exact ad details are mapped to their own custom properties in HubSpot, enabling you to use them for custom reporting, lead scoring, and workflow enrollment without relying solely on the more high-level ‘Original Source’ properties.

This architecture ensures you get the highly granular ad data you’re looking for into the fields you want.
This comment was generated with the assistance of an AI tool, incorporating my expertise in conversion tracking :slightly_smiling_face: