Prerequisites
Once the ad feature is enabled in the superapp, the mini programs or mini games can request to use ad units from the superapp.
Request to use ad units
Navigate to Public ad units, select the type of ad unit, and click Choose.
Enter the request message and request permission to use the ad unit from the superapp.
Wait for the superapp's approval. The approval status can be viewed in the Request record tab.
Ad units that have been approved are available in My ad units, and can be integrated into the mini programs or mini games.
Click Details to copy the example code for integrating the ad unit into the mini program or mini game.