Trying to Get an Email Campaign Stats Report

OscarS1
Rookie
0 Votes

Hello, 


I see that you released the endpoint for get an email campaign stats report, thanks.

 

But when i try to get the stats report using some campaign ids already created i get this error:

 

OscarS1_0-1629750847371.png

 

Those are valid v3 campaign_id

 

I'm following this documentation:

https://v3.developer.constantcontact.com/api_guide/email_campaign_stats_report.html

https://v3.developer.constantcontact.com/api_reference/index.html#!/Email_Reporting/getEmailSummary

 

1 REPLY 1
Caleb_A
Employee

Hello Oscar,

 

My name is Caleb and I am a member of Constant Contact's API Developer Support Team.

 

The error message that you are receiving appears to be a 404 error message which is caused when one of the requested 'campaign_ids' are invalid. In order for a 'campaign_id' to be valid, the campaign must have been sent prior to making the request as campaigns in the draft status will result in a 404 error message.

 

Another possibility is that the request you are using is miss-formatted which can also result in the system returning a 404 error message. Please be sure that your request is formatted with the {campaign_id} portion of the request URL being replaced with the appropriate campaign_ids you are requesting. For example your request should be formatted as:

 

- https://api.cc.email/v3/reports/stats/email_campaigns/1e63bc73-74c1-4046-bcb4-e8b1173b8af4

 

If you are still receiving an error message when making this request please be sure to send us an email at 'webservices@constantcontact.com' with the request, the response, the error message, any timestamps available, as well as any other information you believe may be useful in helping troubleshoot this issue.


Regards,

Caleb A.
API Support Specialist

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up