tencent cloud

All product documents
Tencent Cloud Super App as a Service
Ad Integration Practical Tutorial
Last updated: 2025-04-10 16:59:15
Ad Integration Practical Tutorial
Last updated: 2025-04-10 16:59:15

Introduction

Advertising capabilities are one of the key sources of revenue for mini games and mini programs. The app integrates third-party advertising platforms (currently Google AdMob) to provide advertising capabilities for mini games and mini programs. Developers of mini games and mini programs on the app can get ad unit IDs for integration into their code after their request for using ads is approved.
When app users engage with mini games and mini programs that have integrated ads, the ads will be displayed in designated places. Developers can earn revenue based on the number of ad views and clicks.
Based on the above, you can follow these steps to integrate ads:

Ad integration process

1. Prerequisites

You have a Google account and have signed up for Google AdMob.
Your Google account is configured with authorized clients and has enabled the Google AdMob API.
You've added the app to your Google AdMob account and created enough ad units (currently only banner ads and rewarded ads are supported). Since Google AdMob differentiates between Android and iOS platforms, you need to add the same type and number of ad units for both Android and iOS applications.

2. Complete ad authorization

Super App as a Service (SAS) needs to obtain authorization from your account to interact with the third-party advertising platform and retrieve ad unit information. For detailed guidance on the ad authorization process, please refer to Ad Authorization.

3. Ad units retrieval and approval

You need to bind your app with the app you added in Google AdMob. This allows Super App as a Service (SAS) to determine the corresponding relationship between these two apps. Once the binding is complete, you can view the available ad units for the current app and approve ad unit usage requests from mini program developers. For detailed steps, please refer to Ad Units List And Approval.

4. Ad unit usage request for mini programs and mini games

After your app is bound to the app you added in Google AdMob, mini program developers can request to use ad units. Once the request is approved, mini program developers can integrate ads into their mini games or mini programs using the assigned ad unit IDs. For more information about the steps, see Ad Unit Usage.

5. Ad integration practice for mini game and mini program developers

After their request for using ad units is approved, mini game and mini program developers can integrate ads into their code using the obtained ad unit IDs to display ads in their mini games or mini programs.
(1) For details on ad integration into a mini program, see Advertising.
(2) For details on ad integration into a mini game, see Advertising.


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon