package com.xrtb.pojo;

import com.xrtb.common.Campaign;
import com.xrtb.common.Creative;

public class SmaatoTemplate  {

	public static String  IMAGEAD_TEMPLATE = "" +
	"<ad>" +
	"<imageAd>" +
	"<clickUrl>__CLICKURL__</clickUrl>" +
	"<imgUrl>__IMAGEURL__</imgUrl>" +
	"<width>{campaign_ad_width}</width>" +
	"<height>{campaign_ad_height}</height>" +
	"<toolTip>__TOOLTIP__</toolTip>" +
	"<additionalText>__ADDITIONALTEXT__</additionalText>" +
	"<beacons>" +
	"<beacon>__PIXELURL__</beacon>" +
	"</beacons>" +
	"</imageAd>" +
	"</ad>";
	
	static String  TEXTAD_TEMPLATE = "" +
			"<ad>" +
			"<textAd>" +
			"<clickUrl>__CLICKURL__</clickUrl>" +
			"<clickTextl>__TEXT__</imgUrl>" +
			"<toolTip>__TOOLTIP__</toolTip>" +
			"<additionalText>__ADDITIONALTEXT__</additionalText>" +
			"<beacons>" +
			"<beacon>__PIXEL__</beacon>" +
			"</beacons>" +
			"</textAd>" +
			"</ad>";
	
	static String  RICHMEDIA_TEMPLATE = "" +
			"<ad>" +
			"<richMedia>" +
			"<content>" +
			"<![CDATA[ <script>__JAVASCRIPT__</script> ]]>" +
			"</content>" +
			"<width>{campaign_ad_width}</width>" +
			"<height>{campaign_ad_height}</height>" +
			"<beacons>" +
			"<beacon>__PIXEL__</beacon>" +
			"</beacons>" +
			"</richMedia>" +
			"</ad>";
	
}


@@ -164,24 +164,166 @@
 = %22%22 +%0A%09%22%3Cad
+ xmlns:xsi=%5C%5C%5C%22http://www.w3.org/2001/XMLSchema-instance%5C%5C%5C%22 xsi:noNamespaceSchemaLocation=%5C%5C%5C%22smaato_ad_v0.9.xsd%5C%5C%5C%22 modelVersion=%5C%5C%5C%220.9%5C%5C%5C%22
 %3E%22 +%0A%09%22%3Cimag

Add smaato versioning info