API campaign 'country' code - accepted, but resulting campaign shows 'null'

ddg5
Occasional Participant

API campaign 'country' code - accepted, but resulting campaign shows 'null'

As per title.

 

Campaign is created via API.

 

Country code seems valid (I assume it is valid, as trying to submit invalid country causes error).

 

However, the resulting campaign shows 'null' where the country name should be in the message footer...

5 REPLIES 5
Jimmy_D
Moderator

Hello @ddg5,

 

Thank you for reaching out to Constant Contact's API Support.

 

What are you submitting for the country code?


Regards,
Jimmy D.
Tier II API Support Engineer
ddg5
Occasional Participant

I've tried various codes. ES, LU etc.

The only one that 'sort of' works is US - in that case, 'null' is not shown (nothing is shown)

Hello @ddg5,

 

This is an issue that we have recently found that only occurs when creating an email through the API. There is a work around, but it requires you to log in to the website UI.

 

- Log in to the Constant Contact account via the website.

- Open the email to edit and go to Message Footer.
- Click Preview & Test.
The correct country should now display.

 

I will make sure our engineers know you are being affected by this as well.


Regards,
Jimmy D.
Tier II API Support Engineer
ddg5
Occasional Participant

Thanks Jimmy,

 

That does kind of defeat the object of using the API to create campaigns if 'we' have to log in to the CC website to amend the campaign before it sends! (As my client's use case is sending many custom campaigns per day)

 

Is there any timeframe for a fix or anywhere the issue/progress can be followed?

Hello @ddg5,

 

I can set it up so that you are emailed once the issue is corrected. However; for transparency purposes since this is not a breaking issue it will be given low priority as we are currently developing our v3 API.


Regards,
Jimmy D.
Tier II API Support Engineer
Developer Portal

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

Visit Page