Advertising Campaign

Documentation

English

Callback URL

The player votes on our platform, and, at the end of this vote, is redirected to your website using a specific parameter in our URL. You must first install our Vote API.
  • A GET type parameter must be passed to our URL
  • Parameter value must be URL encoded
  • Failing to vote, the parameter will be lost if the player consults our platform
The first step is to encode your redirect URL, for this there is a function in PHP allowing you to do this:
<?php

    urlencode('https://metin2.top/test.php');
    // Result // https%3A%2F%2Fmetin2.top%2Ftest.php
?>
Some examples of URL's on which you can redirect your player with an automatic redirection at the end of the vote:
  • URL of your game server record
  • Voting URL to customize according to API
Example https://metin2.top/game/3-core-top/?callback=https%3A%2F%2Fmetin2.top%2Ftest.php
Example https://metin2.top/in/3/336699/?callback=https%3A%2F%2Fmetin2.top%2Ftest.php

PHP Example

<a href="https://metin2.top/game/3-core-top/?callback=<?= urlencode('https://metin2.top/test.php') ?>" title="Vote on Top Metin2">Vote on Top Metin2</a>
<a href="https://metin2.top/in/3/<?= $playerid ?>/?callback=<?= urlencode('https://metin2.top/test.php') ?>" title="Vote on Top Metin2">Vote on Top Metin2</a>