Using macros
adspostx is now momentscience! momentscience! 🎉 we have rebranded adspostx to momentscience all the latest documentation and updates can now be found at momentscience documentation https //docs momentscience com/ macros allow you to pass information about the order into key elements of the offer unit to both inform your customer about their completed transaction and optimize the adspostx unit for success adspostx recommends the following macros which can be used during theme customization 202,542,248 false true unhandled content type unhandled content type unhandled content type unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type in order for macros to function, the corresponding parameter must be passed in the payload for example, if you intend to use the {{confirmationref}} macro, you must ensure that a value for confirmationref is passed into the payload examples of macro usage below is an example of macros being used to both personalise the adspostx unit and inform the customer that their purchase was complete paving the way for an optimal experience macros can be used when setting the adspostx unit's header and lead in text when customising your themes the macros {{firstname}} , {{confirmationref}} , and {{amount}} are being used to personalise the message to the user for the given payload as provided in window\ adpxuser window\ adpxuser = { email "demo\@adspost xcom", firstname "paul", lastname "everett", mobile "5551237654", confirmationref "546 231 999", amount "$100", currency "usd", paymenttype "credit", zipcode "88904", country "us" }; the macros would result in the following personalised experience