Integrate PubMatic with LevelPlay
Learn how to integrate PubMatic with your LevelPlay-enabled iOS app
読み終わるまでの所要時間 3 分最終更新 17時間前
Learn how to integrate PubMatic with your LevelPlay-enabled iOS app. It walks through account setup, app configuration, ad unit creation, and adapter installation in LevelPlay. Follow the steps below to ensure your ad placements are correctly configured for PubMatic bidding.
Topic | Description |
|---|---|
| Create a PubMatic account | Set up your PubMatic publisher profile |
| Create an app and ad units | Add your app and configure monetization |
| Activate PubMatic in LevelPlay | Connect PubMatic to your project |
| Add the PubMatic adapter (ios) | Add the iOS PubMatic SDK adapter |
| Handle user consent | GDPR and GPP behavior |
Prerequisites
Make sure you have the following ready: • Access to the PubMatic monetization dashboard. • Access to your LevelPlay project in the Unity Dashboard. • An iOS app that’s ready to configure.Create a PubMatic account
Create a PubMatic account to enable PubMatic inventory through LevelPlay.- Go to the PubMatic website and create an account.
- Wait for account approval from your PubMatic account manager.
- Sign in to the PubMatic monetization dashboard.
Create an app and ad units
Add your iOS app and create ad units in the PubMatic dashboard before you can activate PubMatic in LevelPlay.Add your app
To add your iOS app, follow these steps from the PubMatic monetization dashboard:- Log in to the PubMatic monetization dashboard.
- Select Set Up > Apps.
- Click Add App.
- In the General section, follow these steps:
- Select iOS as the platform.
- Enter a valid App Store URL.
- Review or edit the auto-generated app name.
- In the Configuration section, follow these steps:
- Select your Integration Path.
- Set Sub-Integration Path to LevelPlay - SDK Bidding.
- In the Advanced section, ensure the currency is set to USD.
- Click Add App.
Create ad units
After adding your app, create individual ad units that LevelPlay will request during bidding.- Select Set Up > Ad Units.
- Select your app to display the ad units associated with the app.
- Click Create Ad Unit.
- Enter an ad unit ID.
- Select an ad format and complete the required fields.
- Click Save or Save & Create Another.
Manage bidder partners
Review which bidder partners have access to your ad units.- Select Set Up > Bidder Partners.
- Select your app.
- Use the toggles to enable or disable ad units for each bidder partner.
Activate PubMatic in your LevelPlay setup
After configuring your app and ad units, activate PubMatic inside LevelPlay to link your ad unit IDs to your placements.- In LevelPlay, open Monetize > Setup > SDK Networks.
- Select PubMatic from the list of available networks.
- Enter the required parameters, click Activate, then Save.
- Select Pubmatic again from your configured networks and click Setup.
- Enter the following values from your PubMatic dashboard:
- Publisher ID: found in your PubMatic publisher account
- Profile ID: found on the Apps page
- Ad Unit ID: found in the Ad Units section
- Set the status to Active and click Save.
Add the PubMatic adapter
To complete the bidder integration, add the PubMatic SDK and the LevelPlay PubMatic adapter to your iOS project. There are two ways to do so: using CocoaPods or manually integrating the SDK and adapter into your project.Integrate with CocoaPods (recommended)
Add this line to your Podfile to integrate the PubMatic adapter to LevelPlay:Run the following code to install the adapter and SDK:pod 'LevelPlayPubMaticAdapter', '5.0.0.0'
pod install --repo-update
Manual integration
- Download the latest PubMatic SDK for iOS.
- Add all required .xcframework files and bundles to your project.
- Download the latest LevelPlay PubMatic adapter.