---
title: "How to Create a Bot Ad Platform and Block"
description: "Step-by-step guide to registering a Telegram bot platform in AdsGram, creating an ad block with a reward URL, and managing it in the dashboard."
---

# How to create block?

## Creating a Platform

#### 1. Sign up
​Create your account on https://partner.adsgram.ai/registration.

![Registration](../images/registration.webp =300x){zoom-forbidden}

::: warning
If you have already connected to our network as an advertiser and launched campaigns, it is important to authorize in the [publisher's account](https://partner.adsgram.ai) under the same login that you used to register in the [advertiser's account](https://traffic.adsgram.ai).\
This will **prevent your own ads from appearing within your Telegram bot** and ensure proper ad network functionality.
:::

#### 2. Opening the Platform Creation Form
- Go to your AdsGram personal account.
- Select the **"Platforms"** section and click **"Create platform"**.
- Then select the format: **Bot**.

![Create platform](./images/create_platform.webp =400x){zoom-forbidden}

#### 3. Fill in the platform details
- **Name** — any name for internal use
- **Bot link** — format: https://t.me/your_bot
- **Bot ID** — available via [@BotFather](https://t.me/BotFather)
- **Administrator username** — e.g. `@yourusername`
- Click **Create**

![Create bot](./images/create_bot.webp)

#### Banning the display of niche verticals for adult audience and Gambling
By contacting our support [@adsgram_supportbot](https://t.me/adsgram_supportbot) or [support@adsgram.ai](mailto:support@adsgram.ai), you can ask to turn off the impressions of advertisers from the Gambling or Adult categories on your bot.
::: danger
Disabling them will lead to a significant decrease in your income.
:::

## Creating an Ad Block
#### 1. Add a new ad block
- Click `+ Block` in the platform interface
- Enter the **name** of the block
- Select the **platform** you created
- Choose the **block type**: Bot
- Enter the **Reward URL** — a link that handles the logic for issuing a reward to the user
> [!IMPORTANT]
> ⚠️ **Providing a Reward URL is mandatory**.

Click **Create Ad Block**

![New bot](./images/new_bot.webp)

### How the Reward URL Works
The AdsGram API response for bots now includes **two separate links**:
- `click_url` — the link that leads to the advertised content
- `reward_url` — the link used to claim a reward

Both links will be shown **in the ad message** like this:
```
Sponsored message  
Click link: https://...  
Claim your reward: https://...
```
After the user clicks the **first link** (`click_url`), the system **activates the second link** (`reward_url`).\
The user must return to the bot and click the reward link to receive their reward.

> [!IMPORTANT]
> ⚠️ `reward_url` only becomes active **after** `click_url` is clicked.\
> ⏳ The reward link is **valid for 1 hour**.

#### 2. Manage your ad block
- Once created, the block will appear in the management panel
- You can **edit, start, and stop** the block
- The dashboard shows statistics on impressions, clicks, earnings, and more
- Export data as **CSV**

![Finished bot](./images/finished_bot.webp)
