campaigns/list is missing data

135 views
Skip to first unread message

er...@mutualminds.com

unread,
Sep 13, 2013, 6:23:06 PM9/13/13
to mailchimp-...@googlegroups.com
I have been using the campaigns/list method for several weeks now, but starting on 9/7, no campaigns that were created since 9/7 are being returned by the service. For testing purposes, I have removed all filters and increased the limit to encompass our total campaign count, but no difference.

Please advise. Or fix.

jesse

unread,
Sep 16, 2013, 6:34:16 AM9/16/13
to mailchimp-...@googlegroups.com
That sounds like you have created enough campaigns that they no longer fall in the first page based on the start/limit parameters:
http://apidocs.mailchimp.com/api/2.0/campaigns/list.php

If that's the case, you're also probably creating far too many campaigns and misusing the service. Alternately, you may have someone removing campaigns via the web app.


jesse

er...@mutualminds.com

unread,
Sep 16, 2013, 12:37:01 PM9/16/13
to mailchimp-...@googlegroups.com
1. I am sorting them in descending order by create time, so they should appear at the top.
2. As already stared, I expanded my limit to encompass the total number of campaigns. I copied the entire response into a text file and could not find any dates beyond 9/7 with a find.
3. The campaigns are still in the web app and have not been removed.

jesse

unread,
Sep 16, 2013, 1:03:27 PM9/16/13
to mailchimp-...@googlegroups.com
That method is definitely working as expected, so something your passing in is likely not what you believe it to be. If you'd like to show the full call you're making, I may be able to spot what's off.


jesse

er...@mutualminds.com

unread,
Sep 16, 2013, 1:12:40 PM9/16/13
to mailchimp-...@googlegroups.com
Content-Type: application/json
Accept: application/json
Accept-Encoding: gzip,deflate
Content-Length: 209
Expect: 100-continue
Connection: Keep-Alive

{"apikey":"**key**","filters":{"folder_id":0,"template_id":0,"type":"regular","uses_segment":false,"exact":false},"start":0,"limit":50,"sort_field":"create_time","sort_dir":"DESC"}

Returns:

{"total":348,"data":**etc**,"errors":[]}

jesse

unread,
Sep 16, 2013, 1:27:03 PM9/16/13
to mailchimp-...@googlegroups.com
That works fine for me - I'd start by simplifying your call and not passing in all sorts of things you don't actually need - so maybe everything but the limit - and look at the data in the fields you're filtering on to make sure they actually match.


jesse

er...@mutualminds.com

unread,
Sep 16, 2013, 1:44:52 PM9/16/13
to mailchimp-...@googlegroups.com
Yes, it was the filters, thank you. I was using the CampaignFilter class from the .NET library that was linked to in your documentation, and since it has non-string members, it was sending defaults for those other filters. When I sent an empty object in its place, I saw many more campaigns.

A reminder to any observers: only trust Fiddler to inspect what you're sending over the wire!
Reply all
Reply to author
Forward
0 new messages