주요 콘텐츠로 건너뛰기

Distribute redeem codes via notifications

You can distribute the redeem codes via the notification types:

  • A mobile push notification.
  • An in-game popup notification.

To engage the players on the game hub via the notifications with the redeem codes, you should:

  1. Make sure everything is ready.
  2. Create the Free Item coupons.
  3. Implement the item.add webhook.
  4. Launch a LiveOps campaign.
  5. Implement the notification webhook.
  6. Optional. Embed a deep link to the popup text.

Make sure everything is ready

Before you begin, integrate the Checkout.

Create Free Item coupons

To have the redeem codes for free items, you need the coupons with the Free Item type.

To create the redeem codes, use the POST Create Coupon API call.

Implement item.add webhook

To automatically grant the items to the player accounts when the codes are redeemed, implement the Item Add (item.add) webhook.

Launch LiveOps campaign

The LiveOps campaign should have:

  • The conditions set for the notification triggering.
  • The redeem codes set into the notification text.

Use the API calls:

Implement notification webhook

Implement the ingame.push or ingame.popup webhook to show the push message or in-game popup to the players.

The Aghanim triggers webhooks according to the LiveOps campaign.

If you have implemented popups, embed a deep link into the popup text. It should:

  • Redirect the players to the redeem code page of the game hub.
  • Provide the players seamless authentication and code redemption.
  • Allow the players to claim the free items linked to the redeem codes.

Example. Campaign for mobile notifications

The campaign scenario:

  1. The campaign checks if the player has visited the game hub for the first time.
  2. If so, the campaign sends the mobile push notification to inform about the redeem code for a free item.
  3. After the player has received the mobile push notification, they tap the notification.
  4. The Aghanim redirects the player to the in-game popup notification that mirrors the mobile push notification. The popup message has a deep link to the redeem code page of the game hub.
  5. The player claims the free item.
Payment flow image
Payment flow image

도움이 필요하세요?
통합팀에 문의하십시오 integration@aghanim.com