Integrating ad feature into your super app can attract more mini programs or mini games, enriching the content ecosystem, boosting user engagement, and generating additional revenue through ad sharing.
Preliminary steps
Before your superapp can start using the ad capabilities, you need to complete the following steps:
1. Log in to the Google AdMob console, create a Google AdMob account, and save the publisher ID (you will need this in the authorization process below). 2. Create an app and ad units in the GoogleAdMob console.
Select Web application as the Application type, and enter the application name.
In the Authorized redirect URLs section, fill in the callback URL, which can be obtained following the steps described in Obtain ad authorization - Authorization process below.
Once the OAuth client ID is created, copy the Client ID and Client secret and save them (you will need these in the authorization process below).
Note:
When officially launching the app, you need to click “PUBLISH APP” to change its status to “In Production”. If the app remains in “Testing” status, the token authorization will expire seven days after granting.
6. Integrate Google AdMob SDK.
Finally, you need to integrate Google AdMob SDK into your superapp. Once this is done, you can enable the ad features and allocate ad units to mini programs or mini games that join your superapp.
Note:
1. Three parameters from the preliminary steps are required for subsequent authorization: Publisher ID, Client ID, and Client secret.
2. Steps 4 and 5 must be completed, otherwise authorization and ad API calls will be affected.
3. Currently, the platform only supports Google AdMob's incentive ads and banner ads.
Obtain ad authorization
After completing the preliminary steps, you need to obtain ad authorization to enable the ad features.
Roles and permissions
|
Authorization and authorization renewal | ✓ | ✓ |
Both super admins and platform admins have access to the Ad Authorization module and can authorize or update authorization.
Authorization process
Log in to the console as the super admin or platform admin. Navigate to Platform management - Ad authorization.
Select Google AdMob as the ad platform, and click Next.
Follow the directions to complete the AdMob ad authorization.
Note:
Copy the callback URL mentioned in step 2. You will need this parameter in step 3 of the preliminary steps when creating the Client ID.
Click Request authorization, and enter the Publisher ID, Client ID, and Client secret.
Click Request authorization to go to the Google authorization page. Here, you need to select an account to log in. Please choose the Google account you used to create the ads.
Select the services you want to authorize the superapp to access (it is recommended to check all options), and click Continue to complete the authorization.
After authorization, you will automatically return to the original page, displaying the status "Authorized by Google AdMob."
Note:
The authorization cannot be revoked once provided. Only authorization status can be updated.