Macros
4 min
the following macros are supported by tresensa creatives these macros can be included in click through urls as well as third party tracking urls macros are always case sensitive and should be surrounded by single curly brackets on both sides to be properly recognized for example, the macro foo should be represented as {foo} , and not {foo} built in macros the following macros are available for any session on any distribution partner macro expansion advertiser id advertiser (client) id creative id creative id creative name creative name (escaped) creative version creative version line id line item id for the session placement id placement id for the session user agent full user agent of the device (escaped) score the user's final score in a playable creative (if applicable) timestamp current time in seconds since 1 january 1970 utc cachebuster same as timestamp platform dependent macros the following macros are only available for sessions running on the tresensa dsp macro expansion ssp exchange inventory source (i e adx, mopub, unity, etc ) publisher bundle id app bundle id the session was served on user id user advertising id (adid), if available with consent custom macro pass through in addition to the macros above, you can pass through your own custom macro values from the ad tag or url querystring for example, if you add a foo parameter to your ad tag, you can then include a macro with the same name {foo} in a click through or tracking url the value for foo expanded by your ad server will be used to expand the {foo} macro in the click/tracking url note that all values you pass in as parameters to the querystring or ad tag must be url encoded the ad tag might look like this (assuming your ad server supports a foo value macro) if you're using a web url, you can assign your own value in the querystring https //play tresensa com/launch?placement=kqs1\&line=677\&foo=12345 and finally you can then use a {foo} macro in your click through or tracking urls https //www mysite com/?custommacro={foo}