This guide shows you how to use the Google Mobile Ads SDK to load and display ads from Moloco using mediation, covering bidding integrations. It covers how to add Moloco to an ad unit's mediation configuration, and how to integrate the Moloco SDK and adapter into a Flutter app.
Supported integrations and ad formats
The Ad Manager mediation adapter for Moloco has the following capabilities:
Integration | |
---|---|
Bidding | |
Waterfall | |
Formats | |
App Open | |
Banner | |
Interstitial | |
Rewarded | |
Rewarded Interstitial | |
Native |
Requirements
- Latest Google Mobile Ads SDK
- Flutter 3.7.0 or higher
- To deploy on Android
- Android API level 23 or higher
- To deploy on iOS
- iOS deployment target of 12.0 or higher
- A working Flutter project configured with the Google Mobile Ads SDK. See Get Started for details.
- Complete the mediation Get started guide
Step 1: Set up configurations in Moloco UI
Log in to the Moloco Publisher Portal.
Navigate to Overview > Apps tab, then click the Add App button to create a new app.

Select the OS and Privacy Settings for your app, fill out the rest of the form, and then click Create.
Android

iOS

Once your app is created, select it from the Apps tab to view the details and take note of the App Key.
Android

iOS

Navigate to the Overview > Ad Units tab, select the app from the drop-down menu, and then click New Ad Unit.

Select In-app bidding as the Auction method and fill out the rest of the form. Then, click Create.

Navigate to your newly created ad unit under the Ad Units tab to view its details. Take note of the Ad Unit ID.

Step 2: Set up Moloco demand in Ad Manager UI
Configure mediation settings for your ad unit
Android
For instructions, see step 2 in the guide for Android.
iOS
For instructions, see step 2 in the guide for iOS.
Add Moloco Ads to GDPR and US state regulations ad partners list
Follow the steps in European regulations settings and US state regulations settings to add Moloco Ads to the European and US state regulations ad partners list in the Ad Manager UI.
Step 3: Import the Moloco SDK and adapter
Integration through pub.dev
Add the following dependency with the latest versions of the
Moloco Ads SDK SDK and adapter in your
package's pubspec.yaml
file:
dependencies:
gma_mediation_moloco: ^
Manual Integration
Download the latest version of Google Mobile Ads mediation plugin for
Moloco Ads SDK,
extract the downloaded file, and add the extracted plugin folder
(and its contents) to your Flutter project. Then, reference the plugin in your
pubspec.yaml
file by adding the following dependency:
dependencies:
gma_mediation_moloco:
path: path/to/local/package
Step 4: Add required code
No additional code is required for Moloco integration.
Step 5: Test your implementation
Enable test ads
Make sure you register your test device for Ad Manager.
Verify test ads
To verify that you are receiving test ads from Moloco Ads SDK, enable single ad source testing in ad inspector using the Moloco (Bidding) ad source(s).
Error codes
If the adapter fails to receive an ad from Moloco, publishers can check the
underlying error from the ad response using
ResponseInfo
under the following classes:
Android
com.moloco.sdk
com.google.ads.mediation.moloco.MolocoMediationAdapter
iOS
MolocoSDK.MolocoError
GADMediationAdapterMoloco
Here are the codes and accompanying messages thrown by the Moloco adapter when an ad fails to load:
Android
Error code | Domain | Reason |
---|---|---|
101 | com.google.ads.mediation.moloco | Missing or invalid Moloco App Key. |
102 | com.google.ads.mediation.moloco | Missing or invalid Moloco Ad unit ID. |
103 | com.google.ads.mediation.moloco | Moloco ad object returned was null. |
-1 to 5000 | com.moloco.sdk | Moloco SDK returned an error. See Moloco's documentation for more details. |
iOS
Error code | Domain | Reason |
---|---|---|
101 | com.google.ads.mediation.moloco | Moloco SDK does not support serving ads on iOS 12 and below. |
102 | com.google.ads.mediation.moloco | Missing or invalid Moloco App Key. |
103 | com.google.ads.mediation.moloco | Missing or invalid Moloco Ad unit ID. |
104 | com.google.ads.mediation.moloco | Ad is not ready to be shown. |
105 | com.google.ads.mediation.moloco | Ad failed to show. |
106 | com.google.ads.mediation.moloco | Rendering data not available to render the ad. |
-1 to 5000 | Sent by Moloco SDK | Moloco SDK returned an error. See Moloco's documentation for more details. |
Rewarded Server-side verification
If you
Validate server-side verification (SSV) callbacks,
the ad source identifier for Moloco is 8267622065755668722
.
Moloco Flutter Mediation Adapter Changelog
Version 1.5.0
- Supports Moloco Android adapter version 3.11.0.0.
- Supports Moloco iOS adapter version 3.11.0.0.
- Built and tested with the Google Mobile Ads Flutter Plugin version 6.0.0.
Version 1.4.0
- Supports Moloco Android adapter version 3.10.0.0.
- Supports Moloco iOS adapter version 3.10.0.0.
- Built and tested with the Google Mobile Ads Flutter Plugin version 6.0.0.
Version 1.3.1
- Supports Moloco Android adapter version 3.9.0.0.
- Supports Moloco iOS adapter version 3.9.1.0.
- Built and tested with the Google Mobile Ads Flutter Plugin version 6.0.0.
Version 1.3.0
- Supports Moloco Android adapter version 3.9.0.0.
- Supports Moloco iOS adapter version 3.9.0.0.
- Built and tested with the Google Mobile Ads Flutter Plugin version 6.0.0.
Version 1.2.0
- Supports Moloco Android adapter version 3.8.0.1.
- Supports Moloco iOS adapter version 3.8.0.0.
- Built and tested with the Google Mobile Ads Flutter Plugin version 6.0.0.
Version 1.1.0
- Supports Moloco Android adapter version 3.7.0.0.
- Supports Moloco iOS adapter version 3.6.0.0.
- Built and tested with the Google Mobile Ads Flutter Plugin version 5.3.1.
Version 1.0.0
- Initial release.
- Supports Moloco Android adapter version 3.6.1.0.
- Supports Moloco iOS adapter version 3.6.0.0.
- Built and tested with the Google Mobile Ads Flutter Plugin version 5.3.1.