π‘Tips
- Preset Strategy is used to improve ad loading success rate and speed on the app's first launch.
setLocalStrategyAssetPathmust be called beforeMcSdk.initialize(), otherwise it will have no effect.- Strategy files are exported from the HyperBid dashboard and placed in the Flutter project's
assetsdirectory.- Note: Preset Strategy files should be updated periodically. When ad strategies change significantly on the dashboard, it is recommended to re-export and update the strategy files in your app to maintain optimal first-launch experience.
The Preset Strategy feature allows the SDK to use a local strategy for ad loading on first launch, significantly improving the ad fill rate during the initial startup.
How It Works:
Log in to the HyperBid dashboard and export the strategy configuration file for your app. For detailed instructions, see here
Place the exported strategy file in the project's localStrategy directory:
your_flutter_project/
βββ android/app/src/main/
β βββ assets/
β βββ localStrategy/ β Strategy file directory
β βββ strategy_config.json β Filename is your appid (β οΈ Do NOT rename)
β βββ ...
βββ lib/
βββ pubspec.yaml
βββ ...
Place the exported strategy file at the location shown below:

- β οΈ You need to rename the exported strategy file to:
localStrategy.json
Call setLocalStrategyAssetPath before McSdk.initialize():
// Set local strategy file path (relative to the assets directory)
McSdk.setLocalStrategyAssetPath("localStrategy");
// Then initialize the SDK