Placing ads
Ads in apps: Android and iOS SDK
Formats: banner, interstitial, rewarded, rewarded interstitial, native and app open.
The SDKs are not on a public package store (Maven Central, CocoaPods) yet. To get them, write to support@halaladz.com with your account id.
Android
Package com.halaladz.sdk, Android 5.0 (minSdk 21) and up. Mediation adapters for AdMob, AppLovin MAX and Unity LevelPlay are included.
// app/build.gradle.kts
dependencies {
implementation("com.halaladz:halaladz-sdk:0.1.0")
}
// Application.onCreate()
HalalAdz.initialize(this)
// a banner
val banner = HalalAdzBannerView(context).apply { placementKey = "pk_live_..." }
container.addView(banner); banner.loadAd()iOS
The iOS SDK is a first version — full testing on a Mac is still to come. Talk to us before you ship it in a real app.
iOS 13 and up, Swift 5.9. The module is HalalAdzSDK (Swift Package or CocoaPods).
import HalalAdzSDK
// AppDelegate: application(_:didFinishLaunchingWithOptions:)
HalalAdz.initialize(config: RequestConfiguration(
childDirected: false,
maxAdContentRating: .pg,
testDeviceIds: []))Flutter, React Native, Unity
| Framework | Package |
|---|---|
| Flutter | halaladz |
| React Native | @halaladz/react-native |
| Unity | HalalAdz |
Ready code for each placement, with your key filled in, is in Dashboard → Placements & ad code → App.
Rules
- For a children's app turn on childDirected; set the highest ad content rating you allow.
- While testing, add your own phone as a test device — your own clicks never earn.
- app-ads.txt: put the same line at the root of your developer website. ads.txt