{"id":30719846,"url":"https://github.com/dankinsoid/applovinadshandler","last_synced_at":"2025-09-03T10:42:25.470Z","repository":{"id":307134529,"uuid":"1028450951","full_name":"dankinsoid/AppLovinAdsHandler","owner":"dankinsoid","description":"AppLovin AdsHandler implementation","archived":false,"fork":false,"pushed_at":"2025-07-29T15:16:45.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T18:05:47.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dankinsoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-29T14:47:26.000Z","updated_at":"2025-07-29T15:16:42.000Z","dependencies_parsed_at":"2025-07-29T18:06:07.846Z","dependency_job_id":"88565713-fab8-421f-87ec-f000d0fa837e","html_url":"https://github.com/dankinsoid/AppLovinAdsHandler","commit_stats":null,"previous_names":["dankinsoid/applovinadshandler"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dankinsoid/AppLovinAdsHandler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FAppLovinAdsHandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FAppLovinAdsHandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FAppLovinAdsHandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FAppLovinAdsHandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dankinsoid","download_url":"https://codeload.github.com/dankinsoid/AppLovinAdsHandler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FAppLovinAdsHandler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273431361,"owners_count":25104491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-03T10:42:24.705Z","updated_at":"2025-09-03T10:42:25.460Z","avatar_url":"https://github.com/dankinsoid.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AppLovinAdsHandler\n\nA SwiftAds-compatible handler for AppLovin MAX SDK integration. This package provides a complete implementation of the SwiftAds interface for AppLovin's advertising platform.\n\n## Features\n\n- ✅ Full SwiftAds compatibility\n- 🎯 Banner, interstitial, and rewarded video ads\n- 🔒 Thread-safe with internal `@Locked` property wrapper\n- ⚡ Async/await support\n- 🔄 Automatic retry logic with exponential backoff\n- 📱 iOS 13.0+ support\n\n## Installation\n\n### Swift Package Manager\n\nAdd AppLovinAdsHandler to your `Package.swift`:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/yourusername/AppLovinAdsHandler.git\", from: \"1.0.0\")\n]\n```\n\n## Usage\n\n### Setup\n\nFirst, configure your AppLovin handler and bootstrap SwiftAds:\n\n```swift\nimport SwiftAds\nimport AppLovinAdsHandler\n\n// Initialize with your AppLovin SDK key\nlet appLovinHandler = AppLovinHandler(\n    sdkKey: \"YOUR_SDK_KEY\",\n    doNotSell: nil,\n    hasUserConsent: true,\n    showMediationDebugger: false\n)\n\n// Bootstrap SwiftAds with the AppLovin handler\nAdsSystem.bootstrap(appLovinHandler)\n```\n\n### Display Ads\n\nOnce configured, use the standard SwiftAds interface:\n\n```swift\nimport SwiftAds\n\nlet ads = Ads()\n\n// Show interstitial ad\ntry await ads.showInterstitial(id: \"your-interstitial-id\")\n\n// Show rewarded video\ntry await ads.showRewarderVideo(id: \"your-rewarded-id\")\n\n// Load banner ad\nlet bannerView = try await ads.loadBanner(\n    id: \"your-banner-id\",\n    in: viewController,\n    size: .standart\n)\nview.addSubview(bannerView)\n```\n\n### Configuration Options\n\nThe `AppLovinHandler` initializer supports several configuration options:\n\n```swift\nlet handler = AppLovinHandler(\n    sdkKey: \"YOUR_SDK_KEY\",\n    doNotSell: false,                    // CCPA compliance\n    hasUserConsent: true,                // GDPR compliance\n    showMediationDebugger: true,         // Debug mode (DEBUG builds only)\n    builderBlock: { builder in           // Additional SDK configuration\n        // Configure builder if needed\n    },\n    settings: { settings in              // SDK settings customization\n        // Configure settings if needed\n    }\n)\n```\n\n### Banner Sizes\n\nAppLovinAdsHandler supports all SwiftAds banner sizes:\n\n- `.standart` - Standard banner\n- `.medium` - Medium rectangle\n- `.large` - Large banner\n- `.adaptive` - Adaptive banner (full width)\n- `.custom(width, height)` - Custom size\n\nFor adaptive and custom banners, the handler automatically configures AppLovin's adaptive banner parameters.\n\n## Error Handling\n\nThe handler includes built-in retry logic with exponential backoff (up to 6 attempts). Failed operations throw `AppLovinError` which wraps the underlying `MAError`.\n\n```swift\ndo {\n    try await ads.showInterstitial(id: \"ad-id\")\n} catch let error as AppLovinError {\n    print(\"AppLovin error: \\\\(error.localizedDescription)\")\n} catch {\n    print(\"General error: \\\\(error)\")\n}\n```\n\n## Requirements\n\n- iOS 13.0+\n- Swift 5.9+\n- AppLovin MAX SDK 13.0.0+\n- SwiftAds 1.0.0+\n\n## Dependencies\n\n- [SwiftAds](https://github.com/dankinsoid/swift-ads) - Unified ads interface\n- [AppLovin MAX SDK](https://github.com/AppLovin/AppLovin-MAX-Swift-Package) - AppLovin's advertising SDK\n\n## License\n\nThis project is available under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankinsoid%2Fapplovinadshandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdankinsoid%2Fapplovinadshandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankinsoid%2Fapplovinadshandler/lists"}