Introduction
Welcome to the documentation for the Bigo Ads Max Adapter Snapshot. This guide will provide you with the necessary information to integrate the Bigo Ads Max adapter into your app.
Prerequisites
Before you begin, please make sure you have the following:
- An active Bigo Ads account.
- Access to your app’s source code.
- An understanding of how to integrate third-party SDKs into your app.
Integration Steps
Follow the steps below to integrate the Bigo Ads Max adapter with your app:
Step 1: SDK Setup
First, ensure that you have the Bigo Ads Max SDK properly integrated into your app. If you haven’t done so already, please refer to the official Bigo Ads Max documentation for instructions.
- Integrate the Bigo Ads Max SDK into your app.
Step 2: Adapter Integration
Once the Bigo Ads Max SDK is successfully integrated, follow these steps to integrate the Bigo Ads Max adapter:
- Download the Bigo Ads Max Adapter Snapshot from the official Bigo Ads GitHub repository.
- Extract the files from the downloaded ZIP file.
- Locate the adapter folder and copy it into your project directory.
- In your Xcode project, navigate to your app’s target settings.
- Under the “General” tab, scroll down to the “Frameworks, Libraries, and Embedded Content” section.
- Click the “+” button and select “Add Other…”.
- Navigate to the adapter folder you copied earlier and select all the files.
- Click “Add” to add the adapter files to your project.
Step 3: Configuring the Adapter
After integrating the adapter, you need to configure it properly for your app:
- Open your app’s info.plist file.
- Add the following key-value pair to specify the network IDs:
BIGO_NETWORK_IDS = ["network-id-1", "network-id-2"]
Usage
Use the following code snippets as a reference for using the Bigo Ads Max adapter:
Banner Ads
To display banner ads, refer to the code snippet below:
// Import the necessary modules import BigoBanner from 'bigo-ads-max-adapter-snapshot/BigoBanner'; // Create a banner ad object const bannerAd = new BigoBanner(); // Set the ad unit ID bannerAd.setAdUnitId('your-banner-ad-unit-id'); // Configure the banner ad bannerAd.setBannerSize('320x50'); // Load the banner ad bannerAd.loadAd(); // Display the banner ad bannerAd.showAd();
Interstitial Ads
To display interstitial ads, refer to the code snippet below:
// Import the necessary modules import BigoInterstitial from 'bigo-ads-max-adapter-snapshot/BigoInterstitial'; // Create an interstitial ad object const interstitialAd = new BigoInterstitial(); // Set the ad unit ID interstitialAd.setAdUnitId('your-interstitial-ad-unit-id'); // Load the interstitial ad interstitialAd.loadAd(); // Show the interstitial ad interstitialAd.showAd();
Rewarded Video Ads
To display rewarded video ads, refer to the code snippet below:
// Import the necessary modules import BigoRewardedVideo from 'bigo-ads-max-adapter-snapshot/BigoRewardedVideo'; // Create a rewarded video ad object const rewardedVideoAd = new BigoRewardedVideo(); // Set the ad unit ID rewardedVideoAd.setAdUnitId('your-rewarded-video-ad-unit-id'); // Load the rewarded video ad rewardedVideoAd.loadAd(); // Show the rewarded video ad rewardedVideoAd.showAd();
Additional Resources
For additional information and advanced usage of the Bigo Ads Max adapter, please refer to the following resources: