APIs & Integrations

skasinetz
Member

Getting the campaign name from the Campaign guid

I need to get the Campaign name associated with social posts. Using https://api.hubapi.com/broadcast/v1/broadcasts?hapikey=xxx&count=10&status=success

I get values like:
{
“broadcastGuid”: “64761369”,
“portalId”: XXXXXX,
“groupGuid”: “49f674f8-96a6-476c-ad21-0e61c14f073e”,
“campaignGuid”: “dfa8cc5f-02b4-49e3-806c-507071f6f61a”,
“channelKey”: “LinkedInCompanyPage:XXXXXX”,
“channelGuid”: “c6d121be-9a9e-3656-9275-42d3407dd4ca”,
“clientTag”: “SocialUI_composer”,
“createdAt”: 1513781154178,
“userUpdatedAt”: 1513781154178,
“triggerAt”: 1514038200000,
“finishedAt”: 1514038200745,
“status”: “SUCCESS”,
“message”: “”,
“content”: {
“originalLink”: “http://www.primeoncology.org/online-education/solid-tumor/expert-review-hormonal-therapies-prostate-...”,
“charCount”: “172”,
“link”: “https://hubs.ly/H09vR8_0”,
“description”: “Hear optimal treatment strategies for castration-resistant and -sensitive prostate cancer”,
“body”: “Learn how you can implement the latest #hormonaltherapy data into your clinical practice for #prostatecancer patients! View activity! #oncology #CME https://hubs.ly/H09vR8_0”,
“title”: “Expert Review: Expert Insights Into the Current and Emerging Uses of Newer Hormonal Therapies in Prostate Cancer | prIME Oncology”,
“linkPreviewSuppressed”: “false”,
“photoUrl”: null,
“originalBody”: “Learn how you can implement the latest #hormonaltherapy data into your clinical practice for #prostatecancer patients! View activity! #oncology #CME http://www.primeoncology.org/online-education/solid-tumor/expert-review-hormonal-therapies-prostate-...”,
“imageUrl”: “http://www.primeoncology.org/app/uploads/prime_activities/47925/PI7VER104_prm-EMUC-Expert-Review-Pro...”,
“uncompressedLinks”: "["http://www.primeoncology.org/online-education/solid-tumor/expert-review-hormonal-therapies-prostate-...,
“fileId”: null
},
“linkGuid”: “hubsly”,
“messageUrl”: “https://www.linkedin.com/feed/update/urn:li:activity:6350336480631615488”,
“foreignId”: “6350336480656793600”,
“taskQueueId”: “418903-64761369-1514038200000”,
“linkTaskQueueId”: “418903-64761369-1514038200000”,
“remoteContentId”: null,
“remoteContentType”: null,
“clicks”: 0,
“replies”: 0,
“retweets”: 0,
“likes”: 0,
“interactionsCount”: 1,
“createdBy”: 2160128,
“updatedBy”: 0,
“interactions”: [],
“interactionCounts”: {},
“campaignName”: null,
“broadcastMediaType”: “NONE”,
“wasDraft”: false,
“channel”: null,
“serviceId”: null,
“isPublished”: true,
“isRetry”: false,
“isPending”: false,
“isFailed”: false,
“messageText”: “Learn how you can implement the latest #hormonaltherapy data into your clinical practice for #prostatecancer patients! View activity! #oncology #CME https://hubs.ly/H09vR8_0
},

The post has a campaign name associated with it. The CampaignName field being returned is blank. What API can I use to get the campaign name based on the campaignGuid that is being returned?

0 Upvotes
1 Reply 1
skasinetz
Member

Getting the campaign name from the Campaign guid

Here’s an update from HubSpot support on 2017-01-09.

At this time there is no Public API to get data from Campaigns right now. On why the campaign value was returning null, the field itself might be deprecated and might even be worth removing if it is not returning any information. These are our capabilities at this time I’m afraid.

0 Upvotes