# AdsGram Documentation > AdsGram is an advertising network for the Telegram ecosystem. Publishers monetize Telegram Mini Apps with the AdsGram SDK (Reward and Interstitial formats paid per 1,000 impressions, Task paid per click), Telegram bots via a server API (paid per click) and Telegram channels where the AdsGram bot publishes ad posts (paid per 1,000 views). Advertisers launch campaigns in Mini Apps, channels, bots and via Telegram Ads, with CPM, CPC, Target CPC and Target CPA bidding, and track conversions. This site is the official technical documentation. Every English page of the documentation is listed below, grouped by audience. The full text of all of them is in a single file: https://docs.adsgram.ai/llms-full.txt. Translations into 11 more languages are listed in the sitemap. ## Advertisers - [How the AdsGram Ad Network Works](https://docs.adsgram.ai/advertiser/): AdsGram is a Telegram ad network with 500+ integrations and CPM, CPC, tCPC, and tCPA bidding. See how campaigns run through the advertiser dashboard. - [How to Launch a Mini App Ad Campaign](https://docs.adsgram.ai/advertiser/launch-campaign): Step-by-step guide to launching an AdsGram campaign for Telegram mini apps: registration, targeting, audience, strategy, banners, and moderation. - [How to Launch an Ad Campaign in Telegram Channels](https://docs.adsgram.ai/advertiser/launch-channels-campaign): Step-by-step guide to launching a channel post ad campaign in AdsGram: budget, targeting by category and channel, creatives, and monitoring. - [How to Launch an Ad Campaign in Telegram Bots](https://docs.adsgram.ai/advertiser/launch-bots-campaign): Step-by-step guide to creating a Telegram bot advertising campaign in AdsGram: targeting, pricing models, ad creatives, and moderation. - [How to Launch a Telegram Ads Campaign](https://docs.adsgram.ai/advertiser/launch-tg-ads-campaign): Guide to launching a Telegram Ads campaign via AdsGram: deposit, Target Users, Selected Channels, Search and Bots formats, targeting, strategy, and moderation rules. - [Campaign Analytics Guide](https://docs.adsgram.ai/advertiser/analytics): Learn how to read AdsGram campaign analytics: metric columns, breakdowns by country and platform, and conversion tracking by goal. - [Telegram Built-in Analytics for Ad Placements](https://docs.adsgram.ai/advertiser/telegram-analytics): How to measure ad placements with unique Telegram links: invite links for channels, start and startapp parameters for bots and Mini Apps, and attribution implementation examples. - [Archiving and Restoring Campaigns](https://docs.adsgram.ai/advertiser/archive): How AdsGram archives inactive campaigns after 30 days, and how to restore an archived campaign to its previous status before permanent archiving. - [Telegram Ads Tracking: Macros and Conversion Postbacks](https://docs.adsgram.ai/advertiser/tg-ads-tracking-links): How to track Telegram Ads campaigns in AdsGram: macros for web links, conversion postbacks via the Conversion Confirmation API, and automatic Goal 1 events for Mini Apps, bots and channels. - [AdsGram Conversion Tracking Guides](https://docs.adsgram.ai/advertiser/tracking): Guides for setting up AdsGram conversion tracking: Telegram ecosystem links, Telegram channel subscribers, web links, and partner integrations. - [Telegram Ecosystem Tracking Links](https://docs.adsgram.ai/advertiser/telegram-tracking-links): How to set up AdsGram tracking links and macros for Telegram ecosystem campaigns, including goaltype parameters and conversion testing. - [Telegram Channel Subscriber Tracking](https://docs.adsgram.ai/advertiser/telegram-channel-subscribers-tracking): How to track Telegram channel subscriptions from AdsGram ads using @adsgramstatisticsbot, assigned automatically to Goal 1. - [Web Landing Page Tracking Links](https://docs.adsgram.ai/advertiser/web-tracking-links): How to set up AdsGram tracking links for web landing pages, including tokens, macros, goaltype parameters, and conversion testing. - [Partner Tracking Integrations](https://docs.adsgram.ai/advertiser/partner-tracking-integrations): Connect AdsGram with AppsFlyer, Adjust, AppMetrica, Kochava, or Keitaro to track installs and conversions for tCPA optimization. - [Creating Audience Segments](https://docs.adsgram.ai/advertiser/audience): Learn how to create AdsGram audience segments from past campaigns or CSV uploads, including file requirements and segment limits. - [AdsGram Banner Types and Requirements](https://docs.adsgram.ai/advertiser/banner-types): Overview of AdsGram ad formats: Media ads and Inline ads for mini apps, bots, channels, and Telegram clients, with size and text limits. - [How to Top Up Your AdsGram Balance](https://docs.adsgram.ai/advertiser/payment): How to fund your AdsGram advertiser account by transferring to your personal wallet address, including the required payment comment for top-ups. - [Campaign Moderation Rules](https://docs.adsgram.ai/advertiser/moderation): AdsGram moderation timelines and prohibited ad content: what campaigns and creatives are rejected and why, before you launch. - [Telegram Ads Moderation Rules](https://docs.adsgram.ai/advertiser/tg-ads-moderation): Moderation requirements for AdsGram Telegram Ads campaigns: prohibited content, ad copy rules, channel and bot requirements. - [Campaign Status Guide](https://docs.adsgram.ai/advertiser/statuses): What each AdsGram campaign status means: Draft, In moderation, Ready to start, Active, Stopped, Declined, and Archived, shown as dashboard badges. - [Advertiser Glossary](https://docs.adsgram.ai/advertiser/glossary): Definitions of AdsGram advertiser terms: CPM, tCPC, tCPA, impressions, clicks, CTR, conversions, and other campaign metrics. ## Publishers: Telegram Mini Apps - [Monetize Your Telegram Mini App with Ads](https://docs.adsgram.ai/publisher/): Earn CPM and CPC revenue with AdsGram by showing Reward, Interstitial, and Task ads in your Telegram mini app. See integration examples and get started. - [Reward Ad Format and Examples](https://docs.adsgram.ai/publisher/reward-examples): How AdsGram rewarded ads work: full-screen, non-skippable video and post formats, plus real integration examples like boosters and earn pages. - [Interstitial Ad Format and Examples](https://docs.adsgram.ai/publisher/interstitial-examples): How AdsGram interstitial ads work: full-screen video and post formats, blockId requirements, and where to place ads for the best UX. - [Task Ad Format and Requirements](https://docs.adsgram.ai/publisher/task-examples): How the AdsGram Task ad format works: native task-list ads that reward users for subscribing to a channel or opening a Telegram mini app. - [How to Get Your AdsGram BlockId](https://docs.adsgram.ai/publisher/get-block-id): Step-by-step guide to creating an ad platform and ad unit in AdsGram to get the blockId needed to integrate ads into your mini app. - [Reward and Interstitial Integration Guide](https://docs.adsgram.ai/publisher/reward-interstitial-integration): How to integrate AdsGram Reward and Interstitial ads: SDK installation, initialization, showing banners, and handling the response promise. - [Reward and Interstitial Code Examples](https://docs.adsgram.ai/publisher/reward-interstitial-code-examples): AdsGram code examples for Reward and Interstitial ad formats in React, Unity, and vanilla JavaScript, including hooks and button components. - [Task Ad Integration Guide](https://docs.adsgram.ai/publisher/task-integration-example): How to integrate the AdsGram Task ad format using the adsgram-task web component: setup, customization with slots and CSS, and events. - [Task Ad Code Examples](https://docs.adsgram.ai/publisher/task-code-examples): AdsGram code examples for the Task ad format using the adsgram-task web component in vanilla JavaScript and React, with styling and events. - [Publisher Troubleshooting Guide](https://docs.adsgram.ai/publisher/troubleshooting): Fix common AdsGram integration issues: wrong Web app url errors, debug mode tips, and what to check when ads don't display in your mini app. - [AdsGram SDK Guide for LLMs](https://docs.adsgram.ai/publisher/llms): Machine-readable AdsGram SDK reference for Reward, Interstitial, and Task ad formats, covering installation, events, and code examples. - [AdsGram SDK API Reference](https://docs.adsgram.ai/publisher/api-reference): Full reference for the AdsGram JavaScript SDK: init, AdController methods (show, destroy, addEventListener), parameters, and event types. - [AdsGram TypeScript Types](https://docs.adsgram.ai/publisher/typescript): TypeScript type declarations for the AdsGram SDK: AdController, ShowPromiseResult, event types, and typings for the adsgram-task component. - [Archiving and Restoring Ad Platforms](https://docs.adsgram.ai/publisher/archive): How AdsGram archives an inactive publisher platform after 30 days and how to restore it to its previous status before permanent archiving. - [Ad Platform Moderation Rules](https://docs.adsgram.ai/publisher/moderation): AdsGram moderation timelines and rules for mini app platforms: allowed rewarded ad behavior, prohibited practices, and payout requirements. - [Publisher Glossary](https://docs.adsgram.ai/publisher/glossary): Definitions of AdsGram publisher terms: Ad Block, Ad Platform, Block type, Reward URL, CPC, CPM, CTR, Fill Rate, and Impressions. ## Publishers: Telegram Channels - [Monetize Your Telegram Channel with Ads](https://docs.adsgram.ai/channels/): Earn CPM revenue by publishing AdsGram ads in your Telegram channel. Learn how channel monetization works and how to access your dashboard. - [How to Integrate AdsGram Into Your Channel](https://docs.adsgram.ai/channels/channels-integration): Step-by-step guide to registering a Telegram channel in AdsGram, creating an ad block, setting a posting schedule, and adding the ad bot. - [Channel Moderation Rules](https://docs.adsgram.ai/channels/moderation): AdsGram moderation requirements for Telegram channels: minimum age, subscriber count, activity, and content restrictions before approval. - [Archiving and Restoring Channel Platforms](https://docs.adsgram.ai/channels/archive): How AdsGram archives an inactive channel platform after 30 days and how to restore it to its previous status before permanent archiving. - [Channel Publisher Glossary](https://docs.adsgram.ai/channels/glossary): Definitions of AdsGram channel publisher terms: Ad Block, Platform, CPC, CPM, CTR, Fill Rate, Impressions, and other monetization metrics. ## Publishers: Telegram Bots - [Monetize Your Telegram Bot with Ads](https://docs.adsgram.ai/bots/): Earn money by showing AdsGram ads in your Telegram bot. Learn how CPC-based bot monetization works and how to access your publisher dashboard. - [How to Create a Bot Ad Platform and Block](https://docs.adsgram.ai/bots/create-block): 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. - [Integrate Ads into Your Telegram Bot](https://docs.adsgram.ai/bots/block-integration): How to request and display AdsGram ads in a Telegram bot: API request format, response fields, and correct message sending with protected content. - [Bot Moderation Rules](https://docs.adsgram.ai/bots/moderation): AdsGram moderation timelines and rules for Telegram bots: prohibited content, functionality requirements, and reward verification standards. - [Archiving and Restoring Bot Platforms](https://docs.adsgram.ai/bots/archive): How AdsGram archives an inactive bot platform after 30 days and how to restore it to its previous status before permanent archiving. - [Bot Publisher Glossary](https://docs.adsgram.ai/bots/glossary): Definitions of AdsGram bot publisher terms: Ad Block, Platform, CPC, CPM, CTR, Fill Rate, Impressions, and other monetization metrics. ## Markdown access Every page on this site has a raw Markdown counterpart: append `.md` to the page URL, e.g. `https://docs.adsgram.ai/publisher/api-reference.md`. For URLs ending with `/` (the home page and section index pages), append `index.md` instead, e.g. `https://docs.adsgram.ai/advertiser/index.md`. Requests with an `Accept: text/markdown` header are also served the Markdown version directly at the original URL. ## Optional - [AdsGram website](https://adsgram.ai): Official product site of AdsGram - [Full documentation](https://docs.adsgram.ai/llms-full.txt): Full text of every English page above, concatenated into one Markdown file - [Sitemap](https://docs.adsgram.ai/sitemap.xml): Full list of pages across all 12 supported languages, with hreflang alternates