Apps Network
  • 1. Introduction to Apps Network
  • 2. Getting Started
    • Quick Start Guide
  • 3. For Publishers
  • 4. For Advertisers
    • 4.1 API Reference - Click Verification
    • 4.2 API Reference - Reporting Challenge Completion
  • 5. Points System
  • 6. Banner Types and Placements
  • 7. Analytics and Reporting
  • 8. Solution Architecture
    • 8.1 System Components Overview
    • 8.2 Core Functionality and Workflows
    • 8.3 Technical Implementation Details
    • 8.4 System Diagram
  • 9. Frequently Asked Questions (FAQs)
  • 10. Glossary of Terms
  • 11. Release Notes
    • MVP1 Release Notes
    • MVP2 Release Notes
    • MVP3 Release Notes
Powered by GitBook
On this page
  • Click Verification
  • API Endpoint
  • Parameters
  • Implementation Notes
  1. 4. For Advertisers

4.1 API Reference - Click Verification

Click Verification

The Apps Network system supports task click verification and ensures accurate tracking and rewarding of user engagement.

API Endpoint

For your TMA, use the following API endpoint:

GET https://click.dmtp.tech/banners/verify?tui=

Parameters

  • tui: Telegram User ID (only for TMA environments)

Usage

Retrieve the Telegram User ID from the TMA environment and use it in the API call:

GET https://click.dmtp.tech/banners/verify?tui=123456789

JavaScript Example (TMA)

// Assuming you're using the Telegram WebApp API
const tui = window.Telegram.WebApp.initDataUnsafe.user.id;

if (tui) {
    fetch(`https://click.dmtp.tech/banners/verify?tui=${encodeURIComponent(tui)}`)
        .then(response => response.json())
        .then(data => {
            if (data.valid) {
                console.log('Valid click! Reward the user.');
                // Add your reward logic here
            }
        })
        .catch(error => console.error('Error:', error));
}

Implementation Notes

  1. In TMA mode, prioritize using the Telegram User ID for verification.

  2. The click verification data is cached for 5 minutes. Perform the verification promptly after the user enters your game.

  3. If the verification is successful, award the user with the predetermined in-game bonus.

By correctly implementing this click verification system, you ensure that users are properly rewarded for engaging with tasks, maintaining the integrity of the advertising ecosystem.

Previous4. For AdvertisersNext4.2 API Reference - Reporting Challenge Completion

Last updated 5 months ago