Get started with Prebid Mobile by creating a Prebid Server account. Once your account is set up include the Prebid Mobile SDK in your app by either using Maven or by cloning the repo and using our included script to build the SDK.
If you are not familar with using Maven for build management visit the Maven website.
To include the Prebid Mobile SDK simply add this line to your gradle dependencies:
After cloning the repo, use Terminal or another command line tool, change to the root directory and run:
to output the PrebidMobile framework for Android.
Integrating MoPub with your application
Integrating Google with your application
Go to Google’s developer site and follow the instructions for integrating their Mobile Ads SDK into your app.
Targeting parameters enable you to define the target audience for the bid request. Prebid Mobile supports the following global targeting parameters. These targeting parameters are set only once and apply to all Prebid Mobile ad units. They do not change for a given user session.
View the full list of targeting parameters.
Banner and interstitial ad units can be created:
BannerAdUnit bannerAdUnit = new BannerAdUnit("PREBID_SERVER_CONFIGURATION_ID", 300, 250);
For details on creating the specific ad units and additional parameters and methods associated with each view the documentation pertaining to them:
Once an ad unit has been instantiated, custom keywords can be added to it to improve its targeting.
For more details on custom keywords, review the adUnit class documention