Integrating DealSpot with static touchpoints (advanced)

DealSpot allows you to offer your customers virtual currency in exchange for completing advertiser offers. It intelligently matches customers to an exclusive set of targeted offers, such as flowers for Mothers Day, or tickets to newly released movies.

Please note that before you can integrate DealSpot you must:

  • Sign up for a social merchant account at www.trialpay.com and
  • create a new, virtual currency product and campaign.

Code Snippet

The following code snippet allows you to use your own, static, asset such as a banner image. Note that if you use this method, DealSpot cannot hide if there are no offers available — if a customer clicks the asset and there are no offers available, the customer will see an “Offers Sold Out” message instead.

Also, since you’re hosting your own asset, DealSpot won’t be able to display different assets based on offer availability.

<script type="text/javascript" src="http://assets.tp-cdn.com/static3/js/api/payment_overlay.js"></script>

<a href="#" onclick="earnCredits();return false;">Earn Coins/Credits!</a>

<script type="text/javascript">
function earnCredits() {
  TRIALPAY.fb.show_overlay('<vic>', 'tpdirect', { 'dealspot':1, 'sid':"<sid>" });
  }
</script>

Required Parameters (case-sensitive):

Placeholder Sample Value Description
<vic> ca09bfa71df887f038e155346ec1bb4b Your vendor integration code (supplied by your account manager).
<sid> a4zoLFpPRGZx5Mqxp4r8LhrWEBs A unique alphanumeric ID that identifies the customer. Note: SID must not exceed 220 characters in length.

Optional Parameters (case-sensitive):

Placeholder Sample Value Description
<onOpen> customer_click The name of your JavaScript function which DealSpot calls when a customer clicks the touchpoint.
<onClose> customer_close The name of your JavaScript function which DealSpot calls when a customer closes the offer overlay.

HTTPS

If your game/app/page will be loaded over HTTPS, you must load DealSpot over HTTPS as well. To do this, update the code snippet’s src URL (in green) to point to our secure server:

<script type="text/javascript" src="https://s-assets.tp-cdn.com/static3/js/api/payment_overlay.js"></script>

<a href="#" onclick="earnCredits();return false;">Earn Coins/Credits!</a>

<script type="text/javascript">
function earnCredits() {
  TRIALPAY.fb.show_overlay('<vic>', 'tpdirect', { 'dealspot':1, 'sid':"<sid>" });
  }
</script>

If you revert to HTTP for customers who have disabled secure browsing, we strongly recommend that you load DealSpot over HTTP as well. This will provide a better user experience for your customers.

Note: Publisher may not implement TrialPay’s services or technology on applications that are directed at, or collect data from, children under the age of 13.