AdPromote Extension (v1.0)
AdPromote is a flexible content promotion system for MIT App Inventor 2, designed to help developers display and manage their own promotional content (such as apps or YouTube channels) with high performance and customizable UI.
Important:
This extension is NOT an advertising network and does NOT provide monetization services.
It does not serve ads from external providers, track users, or handle payments/subscriptions.
What it does
AdPromote allows developers to:
- Promote their own apps
- Promote their own YouTube content
- Display custom promotional content via JSON
- Fully control UI and behavior
All content (images, links, data) must be provided by the developer/user
Supported Formats
Banner Promotion
Native Promotion
Interstitial Promotion
YouTube Promotion
Extension Documentation
Initialization
Before using any promotion format, you must initialize the system.
Method
InitializePromote(adLink As String, type As PromoteTaskType)
Initializes the promotion system using your remote JSON/API.
Parameters:
adLinkβ URL of your promotion data sourcetypeβ Promotion type:0β AppPromote1β YoutubePromote2β AppWithYoutube
Events
InitializePromoteSuccessful()InitializePromoteFailed(error)
Data Control
Method
Clear()
Clears all cached promotion data asynchronously.
Events
DataCleared()DataClearFailed(error)
Banner Promotion
App Banner
LoadBannerPromote(id, in, installTitle, installColor, descriptionColor)
Loads a banner for app promotion.
YouTube Banner
LoadBannerYoutube(id, in, subscribeTitle, description, subscribeTitleColor, subscribeColor, viewsColor, bodyColor)
Loads a banner for YouTube content promotion.
Events
BannerAdLoaded(id)BannerAdClicked(id)BannerAdFailedToLoad(id, error)
Native Promotion
App Native
LoadNativePromote(id, in, buttonTitle, buttonColor, radiusButton)
Displays a native layout for app promotion.
YouTube Native
LoadNativeYoutube(id, in, bannerTitle, bannerColor, radiusButton, colorBody)
Displays a native layout for YouTube content.
YouTube Native Banner
LoadNativeBannerYoutube(id, in, bannerTitle, bannerColor, colorBody)
Displays a compact YouTube promotion banner.
Events
NativeAdLoaded(id)NativeAdClicked(id, type)NativeAdFailedToLoad(id, error)
Interstitial Promotion
Load
LoadInterstitial(id, style, installColor, timer, installTitle, radiusButton)
Loads a full-screen app promotion.
Control
IsInterstitialLoaded(id) β booleanShowInterstitial(id)
Events
InterstitialAdLoaded(id)InterstitialAdClicked(id)InterstitialAdFailedToLoad(id, error)InterstitialAdClosed(id)
YouTube Interstitial Promotion
Load
LoadInterstitialYoutube(id, style, adTitle, adColor, adTitleColor, radiusButton, descriptionShort, descriptionText, descriptionTitleColor, descriptionColor)
Loads a full-screen YouTube promotion.
Control
IsInterstitialYoutubeLoaded(id) β booleanShowInterstitialYoutube(id)
Events
YoutubeInterstitialLoaded(id)YoutubeInterstitialAdClicked(id, type)YoutubeInterstitialAdFailedToLoad(id, error)YoutubeInterstitialAdClosed(id)
Utilities
ColorParser(color As String) β number
Parses a HEX color string into an integer.
Notes
- This extension does not provide any built-in ads
- It does not connect to ad networks
- It does not include third-party services
- Developers must provide:
- Images
- Links
- Content (via JSON)
Aix
- Size: ~500KB
- Price: 12$
Contact (Telegram):
Thank You
AdPromote JSON Formatting Guide
The adLink parameter must point to a JSON file that defines the apps and/or YouTube content to promote.
Structure
{
"AppsPromote": [ ... ],
"YoutubePromote": [ ... ]
}
AppsPromote
| Property | Type | Description |
|---|---|---|
| name | String | App name |
| icon | URL | App icon |
| shortDescription | String | Short description |
| packageName | String | Package name or link |
| preview | URL | Preview image |
| screenShot | Array | Screenshots |
YoutubePromote
| Property | Type | Description |
|---|---|---|
| title | String | Video title |
| icon | URL | Channel/video icon |
| preview | URL | Large thumbnail |
| preview-small | URL | Small thumbnail |
| watch | URL | Video link |
| channel | String | Channel ID |
| Description | String | Description |