Overview
CloudX Mobile SDK provides a comprehensive API for integrating mobile advertising into your applications. The SDK is available for both Android and iOS platforms with consistent functionality and naming conventions.Platform-Specific Documentation
Android API Reference
Complete Android SDK API documentationPackage:
io.cloudx.sdkVersion: 0.6.1Language: Kotlin / JavaiOS API Reference
Complete iOS SDK API documentationFramework:
CloudXCoreVersion: 1.1.57Language: Swift / Objective-CSDK Versions
Current Releases
| Platform | Version | Release Date | Min Version |
|---|---|---|---|
| Android | 0.6.1 | Latest | Android 5.0 (API 21) |
| iOS | 1.1.57 | Latest | iOS 14.0 |
Installation
- Android (Gradle)
- iOS (CocoaPods)
build.gradle.kts
Supported Ad Formats
Both platforms support the same ad formats with consistent behavior:| Ad Format | Description | Size |
|---|---|---|
| Banner | Standard banner ads | 320x50 |
| MREC | Medium Rectangle | 300x250 |
| Interstitial | Full-screen ads | Fullscreen |
| Rewarded | Rewarded video ads | Fullscreen |
| Native Small | Native ad small | 320x90 |
| Native Medium | Native ad medium | 320x250 |
Core Features
Initialization
Both SDKs require initialization with an App Key from the CloudX dashboard before loading ads.Ad Lifecycle
- Load - Request ad from network
- Show - Display ad to user (fullscreen only)
- Callbacks - Receive events (loaded, failed, clicked, etc.)
- Destroy - Clean up resources
Privacy & Compliance
- GDPR - IAB TCF 2.0 support
- CCPA - US Privacy String support
- GPP - Global Privacy Platform support
Targeting
- Custom key-value pairs
- User-level targeting
- App-level targeting
- Hashed user IDs
Network Adapters
- CloudX - Native CloudX network
- Meta - Facebook Audience Network
- Vungle - Vungle/Liftoff (iOS only)
- InMobi - InMobi network (iOS only)
Platform Requirements
Android
- Min SDK: 21 (Android 5.0)
- Target SDK: 35
- Compile SDK: 35
- Kotlin: 1.9.0+
- Java: 8+
- Gradle: 8.0+
iOS
- Min iOS: 14.0
- Xcode: 12.0+
- Swift: 5.0+
- Objective-C: Fully supported
- CocoaPods: 1.10+
API Design Philosophy
Consistency
Both SDKs follow similar patterns:- Singleton initialization
- Delegate/Listener callbacks
- Similar method names
- Consistent error codes
Type Safety
- Strong typing in both Kotlin and Swift
- Enums for error codes and log levels
- Data classes for configuration
Error Handling
- Standardized error codes (100-799 range)
- Detailed error messages
- Callback-based error reporting
Common Error Codes
Both platforms use the same error code ranges:| Code Range | Category | Description |
|---|---|---|
| 100-199 | Initialization | SDK initialization errors |
| 200-299 | Network | Network connectivity issues |
| 300-399 | Ad Loading | Ad request and loading errors |
| 400-499 | Ad Display | Ad display and presentation errors |
| 500-599 | Configuration | SDK configuration errors |
| 600-699 | Adapter | Network adapter errors |
| 700-799 | General | General/unexpected errors |
Quick Links
Android Quickstart
Get started with Android SDK in 5 minutes
iOS Integration Guide
Complete iOS SDK integration guide
Android Configuration
Privacy, targeting, and advanced settings
iOS Integration Guide
Privacy, targeting, and advanced settings
Migration Guides
Version Updates
Android SDK Updates
Android SDK Updates
Check the changelog for version-specific updates and breaking changes.
iOS SDK Updates
iOS SDK Updates
Check the changelog for version-specific updates and breaking changes.