Getting the ID of a New Campaign

LewisS
Regular Participant

Getting the ID of a New Campaign

Is there any way to get the ID of a new Campaign without searching for it?  It doesn't appear to be returned by the POST action.

1 REPLY 1
DaveBerard
Moderator

I just confirmed in my account that creating a Campaign through an API POST request returns a "201 Created" response and the body XML did contaign the Campaign ID.  Are you receiving the full response body XML and parsing it to get the Campaign ID or are you looking for it in the response message, which is always 201 Created?

Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

View API documentation, code samples, get your API key.

Visit Page