how to get paid search marketing campaigns with reached contacts
Hi there,
Our client asked to pull data via API: paid search marketing campaigns (ID's and names) and properties of contacts that reached by campaigns.
The client showed the screenshot of how he built this report in UI. In chapter "Custom Report Builder" he selected "CRM | Contacts" primary data source and "Ad campaigns" option:
I found how I can get a list of contacts with asked properties:
It returns web visits for each contact in HubSpot. However, you must pass the contact id to get the web analytics for each contact. For best efficiency, you can use the search api to filter contacts with recent website session data. Then you can request the web analytics by contact ID with a date filter to find recent traffic including UTM data. Unfortunately this is the only way I currently know to get this data you're looking for.
how to get paid search marketing campaigns with reached contacts
Hi Eugene,
Check out the Web Analytics API. This may help you identify web traffic by UTM variables associated with contacts. That's the best alternative I know of since there is no api for ad campaigns.