Adrop Ads - Flutter

Adrop ads plugin for Flutter

pub package pub points Platform License

Language: English | 한국어

Getting Started

Examples

Adrop Ads

Ad Format Example
Banner banner_example.dart
Interstitial interstitial_example.dart
Rewarded rewarded_example.dart
Popup popup_example.dart
Native native_example.dart

Targeting

Example
Property & Event property_example.dart

Note: Consent features require AdropAdsBackfill module.

Example
Consent (GDPR/CCPA) consent_example.dart

How to Run Examples

1. Clone the repository

git clone https://github.com/OpenRhapsody/adrop_ads_flutter.git

2. Navigate to the example directory

cd adrop_ads_flutter/example

3. Install dependencies

flutter pub get

4. Add configuration file

Download adrop_service.json from Adrop Console and place it in:

Android

android/app/src/main/assets/adrop_service.json

iOS

Important: For iOS, you must add adrop_service.json through Xcode.

  1. Open ios/Runner.xcworkspace in Xcode
  2. Right-click on the Runner folder and select "Add Files to Runner..."
  3. Select adrop_service.json and ensure "Copy items if needed" is checked
  4. Make sure the file is added to the Runner target

5. Install iOS dependencies

The plugin ships both a Swift package and a podspec, so either dependency manager works.

Swift Package Manager (on by default since Flutter 3.44): nothing to install. The native AdropAds SDK is resolved when you build.

CocoaPods (when SwiftPM is turned off):

cd ios && pod install && cd ..

AdMob backfill is optional and is added by the app, not by the plugin:

  • Swift Package Manager: add https://github.com/OpenRhapsody/adrop-ads-backfill-pod to the Runner target in Xcode
  • CocoaPods: add pod 'adrop-ads-backfill' to ios/Podfile

Pick one dependency manager for backfill — adding it through CocoaPods while the plugin resolves through SwiftPM links the native SDK twice.

6. Build and run

flutter run

Libraries

adrop_ads_flutter