SDK Integration Instructions
Step 1. Connect the SDK
In the head
section of your Telegram Mini App page, you need to add the SDK script. This will allow you to track events, send data on target actions, and receive analytics.
Step 2. Initialize the SDK
After connecting the script, you need to initialize the SDK with your API key (adv_apikey
). This key has been provided to you to interact with our platform.
Important: Make sure to use the correct API key. If the initialization is successful, you’ll see a success message in the console.
Step 3. Configure the Target Action
To track a target action (e.g., opening the TMA or performing an in-app action), use the TappAdsAdvSdk.event
method. This will send an event when the user performs the specified target action.
Parameter
isOld
:false
— if this is a new user.true
— if the user has previously been in the app and is performing the action again.
Note: Configuring this parameter is important for identifying unique users and accurately calculating payments for new users.
Example of Full Integration Code
Conclusion
Check for the presence of
TappAdsAdvSdk
before initialization.Use the
TappAdsAdvSdk.event()
function to log the target action.
If you have any questions, please contact our support team.
Last updated