<br />

This guide shows you how to use Google Mobile Ads Unity Plugin to load and display
ads from BIGO Ads SDK using

[AdMob Mediation](https://developers.google.com/admob/unity/mediation.md.txt),

covering bidding integrations. It covers how to add BIGO Ads SDK to an ad
unit's mediation configuration and how to integrate the BIGO Ads SDK and
adapter into a Unity app.

## Supported integrations and ad formats

The AdMob mediation adapter for BIGO Ads SDK has the
following capabilities:

| Integration ||
|---|---|
| Bidding | Yes |
| Waterfall |   |
| App Open | Yes |
| Banner | Yes |
| Interstitial | Yes |
| Rewarded | Yes |
| Rewarded Interstitial |   |
| Native | Yes |

## Prerequisites

Before you continue, verify the following:

- Latest Google Mobile Ads Unity Plugin version.
- Unity Editor version 2019.4 or later.
- To deploy on Android
  - Android API level 24 or later.
- To deploy on iOS
  - iOS deployment target of 13.0 or later.
- A working Unity project configured with Google Mobile Ads Unity Plugin. See [Get Started](https://developers.google.com/admob/unity/quick-start.md.txt) for details.
- [Set up AdMob Mediation](https://developers.google.com/admob/unity/mediation.md.txt).

## Step 1: Set up configurations in BIGO Ads SDK UI

[Log in](https://www.bigossp.com/media/app) to your BIGO Ads dashboard.

### Create an app

Navigate to the **Inventory** tab and under the **Apps and Sites** table, select
the **+ Add** button.

![Add App](https://developers.google.com/static/admob/images/mediation/bigo/add_app.png)

Fill out the rest of the form and click **Submit**.

![New App Form](https://developers.google.com/static/admob/images/mediation/bigo/add_app_form.png)

Take note of your **Application ID**.

### Android

![Android Application ID](https://developers.google.com/static/admob/images/mediation/bigo/application_id_Android.png)

### iOS

![iOS Application ID](https://developers.google.com/static/admob/images/mediation/bigo/application_id_iOS.png)

> [!IMPORTANT]
> **Important:** Once you create your new application, it will be placed **Under Review**. The application needs to be reviewed before you can proceed with the next steps.

### Create an ad slot

Once your application has been reviewed, navigate to the **Ad Slots** table and
select the **+ Add** button.

![Add Ad Slot](https://developers.google.com/static/admob/images/mediation/bigo/add_ad_slots.png)

Select **Server Bidding** for the **Auction Type** , fill out the rest of the
form and click **Submit**.

![New Ad Slot Form](https://developers.google.com/static/admob/images/mediation/bigo/add_ad_slot_form.png)

Take note of the **Slot ID**

### Android

![Android Ad Slot ID](https://developers.google.com/static/admob/images/mediation/bigo/ad_slot_id_Android.png)

### iOS

![iOS Ad Slot ID](https://developers.google.com/static/admob/images/mediation/bigo/ad_slot_id_iOS.png)

### Update your app-ads.txt


[Authorized Sellers for Apps app-ads.txt](https://iabtechlab.com/wp-content/uploads/2019/03/app-ads.txt-v1.0-final-.pdf) is an IAB Tech Lab initiative that helps ensure your
app ad inventory is only sold through channels you've identified as authorized. To prevent a
significant loss in ad revenue, you'll need to implement an `app-ads.txt` file.

If you haven't done so already,

[set up an app-ads.txt file for your app](https://support.google.com/admob/answer/9363762).

To implement `app-ads.txt` for BIGO Ads SDK, navigate to the **APP-ads.txt**
tab from the [Dashboard](https://www.bigossp.com/media/appAdsTxt/developer) and follow
the instructions located in the tab.

![App Ads Txt](https://developers.google.com/static/admob/images/mediation/bigo/app_ads_txt.png)

## Step 2: Set up BIGO Ads SDK demand in AdMob UI

### Configure mediation settings for your ad unit

### Android

For instructions, see step 2 in the guide for

[Android](https://developers.google.com/admob/android/mediation/bigo.md.txt#step-2).

### iOS

For instructions, see step 2 in the guide for

[iOS](https://developers.google.com/admob/ios/mediation/bigo.md.txt#step-2).

### Add BIGO TECHNOLOGY PTE LTD to GDPR and US state regulations ad partners list

> [!IMPORTANT]
> **Important:** Verify that you have **Account Management** permission to complete the configuration for EU Consent and GDPR, US State regulations, and User Messaging Platform. See [Manage user access to your
> account](https://support.google.com/admob/answer/2784628) for details.

Follow the steps in

[European regulations settings](https://support.google.com/admob/answer/10113004#adding_ad_partners_to_published_gdpr_messages)

and

[US state regulations settings](https://support.google.com/admob/answer/14125907)


to add **Empathy Technology Pte.Ltd. (BIGO Ads)** to the
European regulations ad partners list and \*\*
BIGOAds\*\* to the US state
regulations ad partners list in the AdMob UI.


## Step 3: Import the BIGO Ads SDK and adapter

> [!NOTE]
> **Note:** Failure to integrate the compatible BIGO Ads SDK and Google Mobile Ads Unity Plugin versions might lead to build issues.

### OpenUPM-CLI

> [!IMPORTANT]
> **Important:** If you are migrating from using a `.unitypackage` to using OpenUPM-CLI, you must manually uninstall the assets from the old location by deleting all files from the `Assets/GoogleMobileAds/Mediation/Bigo` folder.

If you have [OpenUPM-CLI](https://github.com/openupm/openupm-cli#installation)
installed, you can install the Google Mobile Ads
BIGO Ads SDK Mediation Plugin for
Unity to your project by running the following command from your project's
root directory:

```bash
openupm add com.google.ads.mobile.mediation.bigo
```

### OpenUPM

> [!IMPORTANT]
> **Important:** If you are migrating from using a `.unitypackage` to using OpenUPM, you must manually uninstall the assets from the old location by deleting all files from the `Assets/GoogleMobileAds/Mediation/Bigo` folder.

In your Unity project editor, select **Edit** \> **Project Settings** \>
**Package Manager** to open the
[Unity Package Manager Settings](https://docs.unity3d.com/Manual/class-PackageManager.html).

Under the **Scoped Registries** tab, add OpenUPM as a scoped registry with
the following details:

- Name: `OpenUPM`
- URL: `https://package.openupm.com`
- Scope(s): `com.google`

![OpenUPM Details](https://developers.google.com/static/admob/images/unity_openupm_details.png)

Then, navigate to **Window** \> **Package Manager** to open the
[Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui-install.html) and
select **My Registries** from the drop-down menu.

![Unity Registries](https://developers.google.com/static/admob/images/unity_package_manager_registry_select.png)

Select the
**Google Mobile Ads Bigo Mediation**
package and click **Install**.

![Install from OpenUPM](https://developers.google.com/static/admob/images/mediation/bigo/import_openupm.png)

### Unity Package


Download the latest version of Google Mobile Ads mediation plugin for
BIGO Ads SDK from the download link in
the
[Changelog](https://developers.google.com/admob/unity/mediation/bigo.md.txt#bigo-ads-sdk-unity-mediation-plugin-changelog)
and extract the
`GoogleMobileAdsBigoMediation.unitypackage` from the zip
file.

In your Unity project editor, select **Assets** \> **Import Package** \>
**Custom Package** and find the
`GoogleMobileAdsBigoMediation.unitypackage`
file you downloaded. Make sure that all the files are selected and click
**Import**.

![Import from Unity](https://developers.google.com/static/admob/images/mediation/bigo/import_unity.png)

Then, select **Assets** \> **External Dependency Manager** \>
**Android Resolver** \> **Force Resolve** . The External Dependency Manager
library will perform dependency resolution from scratch and copy the
declared dependencies into the `Assets/Plugins/Android` directory of your
Unity app.

![Force Resolve](https://developers.google.com/static/admob/images/unity_force_resolve.png)

## Step 4: Implement privacy settings on BIGO Ads SDK

To implement privacy settings for BIGO Ads SDK and comply with relevant privacy
regulations, read the following sections.

### EU Consent and GDPR


To [comply with
the Google EU User Consent Policy](https://www.google.com/about/company/consentstaging.html), you must make certain disclosures to your
users in the European Economic Area (EEA), the UK, and Switzerland, and obtain
their consent for the use of cookies or other local storage where legally
required, and for the collection, sharing, and use of personal data for ads
personalization. This policy reflects the requirements of the EU ePrivacy
Directive and the General Data Protection Regulation (GDPR). You are
responsible for verifying that consent is propagated to each ad source in your
mediation chain.

BIGO Ads SDK Unity adapter version
1.0.0
and later supports passing GDPR consent signals from consent management
platforms that integrate with IAB's Transparency and Consent Framework (TCF)
to BIGO Ads SDK SDK.
For more information, see BIGO Ads SDK's
[Android](https://bigossp.com/guide/sdk/android/document#gdpr) and
[iOS](https://bigossp.com/guide/sdk/ios/document#gdpr) GDPR documentation.

### US states privacy laws


[US states privacy laws](https://support.google.com/admob/answer/9561022)
require giving users the right
to opt out of the "sale" of their "personal information" (as the law defines
those terms), with the opt-out offered through a prominent "Do Not Sell My Personal
Information" link on the "selling" party's homepage. The
[US states privacy
laws compliance guide](https://developers.google.com/admob/unity/privacy/us-states) offers the ability to enable
[restricted data processing](https://privacy.google.com/businesses/rdp/)
for Google ad serving, but Google is unable to apply this setting to each ad
network in your mediation chain. Therefore, you must identify each ad network
in your mediation chain that may participate in the sale of personal
information and follow guidance from each of those networks to ensure
compliance.

The following sample code shows how to pass the consent flag to BIGO Ads SDK.
Call this method before requesting ads through Google Mobile Ads Unity Plugin.

```c#
using GoogleMobileAds.Mediation.Bigo.Api;
// ...

Bigo.SetCcpaConsent(true);
```

## Step 5: Add required code

### Android

No additional code required for BIGO Ads SDK integration.

### iOS

### SKAdNetwork integration

Follow [BIGO Ads SDK's documentation](https://bigossp.com/guide/sdk/ios/document#import-bigo-ads-sdk)
to add the SKAdNetwork identifiers to your project's `Info.plist` file.

## Step 6: Test your implementation

### Enable test ads

Make sure you
[register your test device](https://developers.google.com/admob/unity/test-ads.md.txt#enable_test_devices)
for

AdMob.


BIGO Ads provides test **Application IDs** and **Ad Slot IDs** for

[Android](https://bigossp.com/guide/sdk/android/document#test-ads)
and [iOS](https://bigossp.com/guide/sdk/ios/document#test-ads)

to help with testing and integration.

> [!IMPORTANT]
> **Important:** Disable test mode for AdMob and BIGO Ads SDK before releasing your app.

### Verify test ads

To verify that you are receiving test ads from
BIGO Ads SDK,
enable
[single ad source testing](https://developers.google.com/admob/unity/ad-inspector.md.txt#single_ad_source_testing)
in ad inspector using the
**BIGO Ads SDK (Bidding)** ad source(s).

## Error codes

If the adapter fails to receive an ad from BIGO Ads SDK, you can check
the underlying error from the ad response using
[`ResponseInfo`](https://developers.google.com/admob/unity/response-info.md.txt) under the
following classes:

### Android

```java
sg.bigo.ads
com.google.ads.mediation.bigo.BigoMediationAdapter
```

### iOS

```objective-c
GADMediationAdapterBigo
```

The codes and accompanying messages are thrown by the BIGO Ads SDK adapter
when an ad fails to load:

### Android

| Error code | Domain | Reason |
|---|---|---|
| 101 | com.google.ads.mediation.bigo | Missing or empty Bigo Slot ID. |
| 102 | com.google.ads.mediation.bigo | App ID to initialize Bigo SDK is empty or missing. |
| 1000-1100 | Sent by BIGO Ads SDK | BIGO Ads SDK returned an error. See [BIGO Ads SDK's documentation](https://bigossp.com/guide/sdk/android/document#ad-request-error-codes) for more details. |

### iOS

| Error code | Domain | Reason |
|---|---|---|
| 101 | com.google.mediation.bigoadapter | Server configuration missing a required application ID. |
| 102 | com.google.mediation.bigoadapter | Invalid ad configuration. |
| 103 | com.google.mediation.bigoadapter | Ad presentation failure. |
| 104 | com.google.mediation.bigoadapter | Unsupported banner size. |
| 105 | com.google.mediation.bigoadapter | Bigo loaded a banner ad successfully but missing an ad view. |
| 1000-1100 | Sent by BIGO Ads SDK | BIGO Ads SDK returned an error. See [BIGO Ads SDK's documentation](https://bigossp.com/guide/sdk/ios/document#ad-request-error-codes) for more details. |

## BIGO Ads SDK Unity Mediation Plugin Changelog

#### [Version 3.1.0](https://dl.google.com/googleadmobadssdk/mediation/unity/bigo/BigoUnityAdapter-3.1.0.zip)

- Supports [BIGO Ads SDK Android adapter version 6.1.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/bigo/CHANGELOG.md#version-6100).
- Supports [BIGO Ads SDK iOS adapter version 6.1.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Bigo/CHANGELOG.md#version-6100).
- Built and tested with the Google Mobile Ads Unity Plugin version 11.6.0.

#### [Version 3.0.0](https://dl.google.com/googleadmobadssdk/mediation/unity/bigo/BigoUnityAdapter-3.0.0.zip)

- Supports [BIGO Ads SDK Android adapter version 6.0.0.1](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/bigo/CHANGELOG.md#version-6001).
- Supports [BIGO Ads SDK iOS adapter version 6.0.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Bigo/CHANGELOG.md#version-6000).
- Built and tested with the Google Mobile Ads Unity Plugin version 11.5.0.

#### [Version 2.0.0](https://dl.google.com/googleadmobadssdk/mediation/unity/bigo/BigoUnityAdapter-2.0.0.zip)

- Supports [BIGO Ads SDK Android adapter version 6.0.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/bigo/CHANGELOG.md#version-6000).
- Supports [BIGO Ads SDK iOS adapter version 5.3.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Bigo/CHANGELOG.md#version-5300).
- Built and tested with the Google Mobile Ads Unity Plugin version 11.4.0.

#### [Version 1.1.0](https://dl.google.com/googleadmobadssdk/mediation/unity/bigo/BigoUnityAdapter-1.1.0.zip)

- Supports [BIGO Ads SDK Android adapter version 5.10.1.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/bigo/CHANGELOG.md#version-51010).
- Supports [BIGO Ads SDK iOS adapter version 5.3.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Bigo/CHANGELOG.md#version-5300).
- Built and tested with the Google Mobile Ads Unity Plugin version 11.3.0.

#### [Version 1.0.0](https://dl.google.com/googleadmobadssdk/mediation/unity/bigo/BigoUnityAdapter-1.0.0.zip)

- Initial release!
- Supports [BIGO Ads SDK Android adapter version 5.8.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/bigo/CHANGELOG.md#version-5800).
- Supports [BIGO Ads SDK iOS adapter version 5.1.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Bigo/CHANGELOG.md#version-5120).
- Built and tested with the Google Mobile Ads Unity Plugin version 11.0.0.