The OpenWrap Handler MoPub is a powerful mediation platform that allows developers to maximize their ad revenue by managing multiple ad networks through a single integration. This documentation will guide you in setting up and utilizing the OpenWrap Handler MoPub plugin effectively.
Getting Started
Before diving into the integration process, make sure you have a MoPub account and a registered app. Follow these steps to get started:
- Create a MoPub account if you don’t have one already.
- Once logged in, navigate to the dashboard and create a new app by clicking on the “New App” button.
- Fill in the required information for your app, such as the app name, platform, and store ID.
- Save your changes and your app will be created.
- Make sure to retrieve your unique MoPub app ID, as you’ll need it during the integration process.
Integration Guide
To integrate the OpenWrap Handler MoPub plugin into your app, follow these steps:
- Install the OpenWrap Handler MoPub plugin from the MoPub integration manager.
- In your app’s source code, locate the AppDelegate or main activity file.
- Add the following import statement to the file:
import com.appodeal.ads.Appodeal;
- In the same file, initialize OpenWrap by calling the following method:
Appodeal.isOpenWrapInitialized(true);
- Retrieve your OpenWrap ad unit ID from your MoPub account. This ID will be used to load and display ads.
- In the file where you want to display ads, use the following method to show an OpenWrap ad:
Appodeal.show(getActivity(), Appodeal.BANNER_OPENWRAP);
Advanced Configuration
The OpenWrap Handler MoPub plugin provides additional configuration options to customize and enhance your ad mediation experience. Here’s what you can do:
- Ad Types: Choose the specific ad types you want to display using OpenWrap, such as banners, interstitials, or rewarded ads. Refer to the plugin documentation for the available options.
- Ad Sizes: Select the desired ad sizes to be displayed within OpenWrap. You can choose from a variety of predefined sizes or define custom dimensions.
- Custom Events: Implement custom events to handle specific ad networks or third-party SDKs that are not natively supported by OpenWrap. Refer to the plugin documentation for the required implementation steps.
- Mediation Rules: Configure mediation rules to prioritize ad networks and define the waterfall order. This ensures optimal revenue and fill rates based on your preferences.
Troubleshooting
If you encounter any issues during the integration or usage of the OpenWrap Handler MoPub plugin, here are a few troubleshooting steps to follow:
- Make sure you have correctly integrated the OpenWrap Handler MoPub plugin by following the integration guide.
- Verify that your MoPub account and app settings are correctly configured.
- Check that you have a stable internet connection for fetching ads.
- If ads are not displaying, ensure that your ad unit ID is correctly set and being passed to the ad display method.
- Consult the OpenWrap Handler MoPub plugin documentation for additional troubleshooting steps and support.
With these instructions, you should have a good understanding of how to set up and use the OpenWrap Handler MoPub plugin effectively. If you have any further questions or encounter any issues, don’t hesitate to reach out to our support team for assistance.