# Advertisement

Supported from Base Library 3.12.5 and SDK 2.53.9 onwards

Advertisement component. Differentiated by ad slot type, currently supporting banner ads, video ads, grid ads, interstitial ads, rewarded video ads, and other types.

Attribute Description

Attribute Type Default Value Required Description Minimum Version
unit-id string Yes Ad unit ID, which can be obtained by creating a new ad slot in the Management Console

# Usage Example

<ad
  unit-id="xxxxxx"
></ad>

Please Note

  • Before using the advertisement component, you need to create an ad slot in the Management Console to obtain the ad slot ID (i.e., unit-id): Go to the corresponding Mini-Program details page in the Management Console, click "Ad Slot Management - Create Ad Slot", select the ad slot type, enter the ad slot name, and click "Create". After successful creation, copy the ad slot ID as the unique identifier. For details, see Ad Slot Management;
© FinClip with ❤ , Since 2017