How to get campaign ids that are associated with a subscription


#1

Hello, I am new to HubSpot and I am looking to pull stats for emails but I cannot seem to find where the campaign id links with the subscription id. I can see the subscription with the types of emails I want to track, but all I can pull in are the timeline stats (bounced, success, etc). I need to pull in the clicks information but do not know how to tie the campaign ids to get info. Can anyone point me in the right direction?


#2

Hi @Jason_Plowman,

It's not currently possible to pull all email events associated with a particular subscription type. In general, you'll want to use the Email Events API to pull the campaigns (i.e. email sends) you're interested in, and then pull the events for those campaigns.