v2 campaignCreate 314 invalid segment error

I'm trying to set up a campaign with the v2 api (don't have the time authorization to convert to 3).

I'm getting a 314 Invalid segments error when I try and create a campaign:

    $campaign = $cm->campaignCreate(
        $client_id,
        "Title",
        "Subject",
        "Client From Name",
        'email@domain.com',
        'email@domain.com',
        "http://site.com/html.html",
        "http://site.com/text.txt",
        array($list_id),
        array($segment_id)
    );

Can anyone point out why I'm getting the error? I know the ids are correct, and if I leave out the segments it creates fine. Thanks.

abatz, 4 years ago

I got the same error, but not because I don't want to use v3. I am using v3:

Gemfile:
gem 'createsend'
Heroku:
       Using createsend (2.1.0)

In development mode it works, but in production mode it fails. Any ideas?

Ken Ken, 4 years ago

Hey, can you contact support at campaignmonitor.com with your account url or the API key you're using so we can check the API logs to see exactly what json we're receiving and why you're receiving that errors? Thanks.


http://www.campaignmonitor.com

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098