Embed JSON feeds into your campaign
Posted by Asian Fox Developments - Support Department on 26 January 2017 02:25 AM
In order to take advantage of this feature, when you create a campaign, you will have to enable the feature.
Next, in the campaign template, you will have to add a set of tags that DBEM (Designer Bulk Email Marketing application) will recognize and transform into the actual content of the feed.
Here is a brief example of what you will have to add inside your campaign template to make use of this feature:
<!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content="text/html" /> <title>JSON FEEDS</title> </head> <body> [JSON_FEED_BEGIN url='http://www.example.com/json-feed.php' count='5'] <table> <tr> <td> <a href="[JSON_FEED_ITEM_LINK]"> <img src="[JSON_FEED_ITEM_IMAGE]" width="100" height="100"/> </a> </td> <td> <strong>[JSON_FEED_ITEM_TITLE]</strong><br /> <p>[JSON_FEED_ITEM_DESCRIPTION]</p> </td> </tr> </table> [JSON_FEED_END] </body> </html>
The [JSON_FEED_BEGIN] tag accepts two arguments, url and count.
Below is a list with all the tags accepted for JSON feeds:
All the above tags will work if the feed is valid and the content they try to replace exist in the feed.
You should test your feed campaign before sending, to make sure the tags are parsed and the content is fine because the parsing is strict, any minor error will stop parsing the tags and render them without transformation.