The Google Mobile Ads SDK is the latest generation in Google mobile advertising featuring refined ad formats and streamlined APIs for access to mobile ad networks and advertising solutions. The SDK enables mobile app developers to maximize their monetization in native mobile apps.
This repository is broken into two sections:
This repository contains the source code for a sample project demonstrating how an ad network can plug into AdMob Mediation. There are four main components:
- Sample SDK - This is a mock SDK that stands in for a real ad network SDK. This project is intended to show developers how to use custom events and mediation adapters to adapt other ad networks' SDKs, so here we adapt a fake one.
- Custom Event - A sample custom event class that will request ads from the Sample SDK and pass them on to the Google Mobile Ads SDK.
- Adapter - A sample mediation adapter that will also request ads from the Sample SDK and pass them on to the Google Mobile Ads SDK.
- MediationExample - A simple, one-view application that displays ads loaded through the adapter and custom event. It can be used to test the functionality of both.
If you're just getting started developing a custom event or adapter, you can replace the code inside this project's adapter and/or custom event classes and (as long as you don't change the names of those two classes) test your own implementation. The ad units provided as part of the project are keyed to the names of the adapter and custom event classes.
To build the project, follow these steps:
- Download or clone the source onto your local machine.
- Run 'pod update' in the project's root directory (this will download the SDK).
- Open the workspace file in Xcode.
- Run the project.
Open source adapters for mediating via the Google Mobile Ads SDK. A list of these adapters is available on our Mediation page.
For prebuilt versions of these adapters, see our Bintray repository.
Check out our developer site for documentation on using the SDK, and our mediation developer guide for information on how to create an adapter. You can also join the developer community on our forum.
To file bugs, make feature requests, or to suggest other improvements, please use github's issue tracker.