When making an API call to get a list of campaigns i'm getting 0 results back

Anonymous
Not applicable

When making an API call to get a list of campaigns i'm getting 0 results back

using the API and the example source for getCampaigns using both sources I always get back 0 results which I know is wrong.
Tags (1)
5 REPLIES 5
Anonymous
Not applicable

Re: When making an API call to get a list of campaigns i'm getting 0 results back

It will only return campaigns that trigger on Campaign Is Requested from the API. Do you have at least one of those?
Anonymous
Not applicable

Re: When making an API call to get a list of campaigns i'm getting 0 results back

I'm trying to find a method to programatically pull in all email campaigns and metrics, and also get a count of all leads and new leads in the system. There are hundreds of thousands of leads and thousands of campaigns already in the system, and hundreds of new leads and several new campaigns being created every day.
Anonymous
Not applicable

Re: When making an API call to get a list of campaigns i'm getting 0 results back

I see. That isn't what that API call is designed for. Instead, it is used for pulling campaigns that can be used in the requestCampaign API.

If you want email activity, getLeadChanges is really the way to do that.
Anonymous
Not applicable

Re: When making an API call to get a list of campaigns i'm getting 0 results back

What would be the "stringItem" I would need to use in order to get all people which have recieved an email, and how could I see which email that was sent?
Anonymous
Not applicable

Re: When making an API call to get a list of campaigns i'm getting 0 results back

There is a list here (http://developers.marketo.com/activity-types/), I'd use Send Email