Passing Payload Values

AdsPostX is now MomentScience! ๐ŸŽ‰

We have rebranded AdsPostX to MomentScience. All the latest documentation and updates can now be found at MomentScience Documentation.

Introduction

In AdsPostX, you can pass various customer and order details to Offers for different purposes. This documentation is all about efficiently passing payload values within the AdsPostX ecosystem. By doing so, you can improve personalization, targeting, reporting, and integration efficiency.

Main Uses for Payloads

  • ๏ปฟOffer Unit Personalization: : Utilize passed payload values as macros to personalize Offer messaging, making the user experience more personal. For instance, employ {{firstname}} to customize the header of the SOU, like 'John, Your Order is Complete!'.
  • Enhanced Targeting: With payload values, you can target Offers more effectively, ensuring that the right content reaches the right audience.
  • Customized Reporting: You can pass payload values to attribute your implementantions to generate reports to segragate performance and giving you deeper insights into your business performance.
  • ๏ปฟSupporting LoyaltyBoost Offers: Payload values facilitate rewarding users for engaging with partners through LoyaltyBoost Offers.๏ปฟ
๏ปฟ

Passing Payload Values

Reserved Attributes

In AdsPostX, certain attributes are reserved, meaning they already have predefined meanings attached to them. While our system allows passing any ad-hoc key-value pairs in the payload, it's important to be aware of these reserved attributes to avoid unintended behavior. These reserved attributes serve specific purposes within the AdsPostX ecosystem.

Attribute

Description

country

Restricts Offers by geographical location, overriding locality sensed by IP address. Should be in the ISO 3166-1 alpha-2 2-character country code format. Example: If the user is from the United States, the country value should be US

adpx_fp

Used for unique user identification, frequency capping, and enables yield optimizations. This identifier can be any unique string or hashed value that represents a unique user.

theme_id

Applies theme styles defined in the AdsPostX Dashboard.

ip

The IP address of the end user to be passed through.

Only used as a reserved attribute for the following implementation methods:

ua

The User-Agent of the end-user.

Only used as a reserved attribute for the following implementation methods:

dev

Controls impression recording and deactivates geo-filtering when itโ€™s set to a value that evaluates to true

tags

Accepts comma-separated lists or Javascript array objects. Only applies as a reserved attribute for passing payload values types for the following implementation methods:

zipcode

Enables targeting based on 5-digit zip codes. If provided, it overrides the automatically identified zipcode from the incoming requestโ€™s IP.

age

Allows age targeting for personalized offers.

Custom Key-Value Attributes

You can also add any number of custom key-value payload attributes to include additional details. These attributes are passed back on conversion reports and can be used for analysis related to impressions and clicks. Custom key-value payload attributes are also used by AdsPostX to help match relevant Offers to your users.

For example, you can pass custom attributes like membershipID ,source , and interests.

Passing Custom Key-Value Attributes
๏ปฟ

Recommended Attributes

Attribute

Description

email

User email

firstname

User first name

zipcode

User zip code

mobile

User mobile number

confirmationref

Can be used to associate a confirmation number with the AdsPostX request. This reference can then be used in macros for personalizing AdsPostX units to better suit your needs.

country

The user country payload. Should be in the ISO 3166-1 alpha-2 2-character country code format. Example: If the user is from the United States, the country value should be US

adpx_fp

Unique user identification that represents a unique user.

๏ปฟ

Example Usages for Payload Attributes

Identifying Unique Users

To uniquely identify a user, AdsPostX uses various signals and inferred uniqueness. However, you can provide your own identifier using the adpx_fpattribute.

This identifier can be any unique string or hashed value. It helps AdsPostX utilize this value to distinguish individual users, applying frequency caps and preventing repeated displays of Offers when a user opts out.

Example Using JS SDK
Example Using Moments and Perkswall API
Direct Offer Links
Perkswall Direct Offer Links
๏ปฟ

Determining the Source of Your AdsPostX Offers

To better analyze the performance of your AdsPostX units and segment traffic, consider including a subid or placement attribute. Replace the value with any text you prefer to track impressions, clicks, and conversions to that attribute.

Example Using JS SDK
Example Using Moments and Perkswall API
Direct Offer Links
Perkswall Direct Offer Links
๏ปฟ

Passing Contextual Information

Along with using custom key-value attributes, you can use the tagsattribute to provide additional context for more relevant and personalized Offers. The tags attribute can have a value passed in as a comma-separated list of values or as a JavaScript array of strings.

The tags attribute only applies to the following types of implementations:

Example Using JS SDK
Example Using Moments and Perkswall API
๏ปฟ
๏ปฟ

Supported Methods for Passing Payload Values

Moments API

To pass a payload value using the Moments API, include key-value payload attributes within the API request body as a JSON object.

You have the flexibility to add any number of custom key-value payload attributes to provide additional details for your payload.

Perkswall API

To pass a payload value using the Perkswall API, include key-value payload attributes within the API request body as a JSON object.

You have the flexibility to add any number of custom key-value payload attributes to provide additional details for your payload.

Moments JS SDK

Payload values are specified within the properties of the window.AdpxUser object.

Setting init Attributes
๏ปฟ

๏ปฟDirect Offer Links๏ปฟ

To pass payload values into Direct Offer Links, simply append any attribute-value pair to the end of the URL.

Example of a Direct Offer Link that includes two payload attributes: user_id and order_id:

https://trk.pubtailer.com/sdk/offer-click?o_id=XXXX&c_id=XXX&p_id=XX&user_id=3a99022vv&order_id=402230000

The same method to add payload values in Direct Offer Links can be used on click_url values returned in the Offer Catalog API๏ปฟ response.๏ปฟ

๏ปฟPerkswall Direct Offer Links๏ปฟ

To pass payload values into Perkswall Direct Offer Links, simply append any attribute-value pair to the end of the URL.

Example of a Perkswall Direct Offer Link that includes two payload attributes: user_id and order_id:

https://get.perkswall.com/offerwall?accountId=99e58babc94df55a&offer_count=9&auto_show=true&show_logo=true&show_header=true&show_shadow=false&show_image=true&o_id=3923&user_id=3a99022vv&order_id=402230000

๏ปฟ