unity_ads_plugin 0.0.2 copy "unity_ads_plugin: ^0.0.2" to clipboard
unity_ads_plugin: ^0.0.2 copied to clipboard

outdated

Unity Ads plugin for Flutter Applications (Android). This plugin is able to display Unity Banner Ads and Unity Video Ads.

unity_ads_plugin #

Unity Ads plugin for Flutter Applications (Android). This plugin is able to display Unity Banner Ads and Unity Video Ads.

iOS support is in development.

Getting Started #

1. Initialization: #

UnityAds.init(gameId: "game_id");

Set your Game id. For testing purposes set testMode to true.

2. Show Banner Ad: #

Banner Ad

Place UnityBannerAd widget in your app.

UnityBannerAd(
  placementId: "banner_placement_id",
)

3. Show Rewarded Video Ad: #

Rewarded Video Ad

UnityAds.showVideoAd(
  placementId: 'rewarded_video_placement_id',
  listener: (state, args) {
    if (state == UnityAdState.complete) {
      print('User watched a video. User should get a reward!');
    } else if (state == UnityAdState.skipped) {
      print('User cancel video.');
    }
  },
);

4. Show Interstitial Video Ad: #

Interstitial Video Ad

UnityAds.showVideoAd(
  placementId: 'video_placement_id',
  listener: (state, args) {
    if (state == UnityAdState.started) {
      print('User started watching the video!');
    }
  },
);
169
likes
0
points
3.85k
downloads

Publisher

verified publisherpavelzaichyk.com

Weekly Downloads

Unity Ads plugin for Flutter Applications (Android). This plugin is able to display Unity Banner Ads and Unity Video Ads.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on unity_ads_plugin

Packages that implement unity_ads_plugin