APIs & Integrations

IntegrationDev
投稿者

Requirements for 'Get all campaign IDs for a portal' API to Return Campaign

解決

Hello,

 

In my HubSpot dev account, I've created a campaign under Marketing > Campaigns. However, when I use the v1 Get all campaign IDs for a portal API (GET /email/public/v1/campaigns/by-id), no campaigns are returned. Are there any special things I need to do/set on my campaign in order for information about it to be returned by this API?

 

Thanks!

0 いいね!
1件の承認済みベストアンサー
LMeert
解決策
ガイド役 | Platinum Partner
ガイド役 | Platinum Partner

Requirements for 'Get all campaign IDs for a portal' API to Return Campaign

解決

Hi @IntegrationDev,

 

It looks like the documentation isn't very clear about it but the endpoint you're calling hits email campaigns, not the campaigns object where you can link assets :

Here's an extract from a related endpoint (Get campaign data for a specific ID😞

"...each campaign represents a specific send of an email,..."

 

I've tested by running the API call on my account and the response I get contains email campaigns only.

Did a little bit of digging to make sure and I found this thread with recent replies but still no update from the dev team : there's not Campaign API at the moment available to the public, so for now the only option left is to wait until they release a beta.

 

You could subscribe to that post so you get notifications whenever there's an update to it.

 

Hope this helps !
If it does, please consider marking this answer as a solution 🙂

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !

元の投稿で解決策を見る

0 いいね!
2件の返信
LMeert
解決策
ガイド役 | Platinum Partner
ガイド役 | Platinum Partner

Requirements for 'Get all campaign IDs for a portal' API to Return Campaign

解決

Hi @IntegrationDev,

 

It looks like the documentation isn't very clear about it but the endpoint you're calling hits email campaigns, not the campaigns object where you can link assets :

Here's an extract from a related endpoint (Get campaign data for a specific ID😞

"...each campaign represents a specific send of an email,..."

 

I've tested by running the API call on my account and the response I get contains email campaigns only.

Did a little bit of digging to make sure and I found this thread with recent replies but still no update from the dev team : there's not Campaign API at the moment available to the public, so for now the only option left is to wait until they release a beta.

 

You could subscribe to that post so you get notifications whenever there's an update to it.

 

Hope this helps !
If it does, please consider marking this answer as a solution 🙂

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !

0 いいね!
IntegrationDev
投稿者

Requirements for 'Get all campaign IDs for a portal' API to Return Campaign

解決

Thank you, @LMeert!