{"id":14961114,"url":"https://github.com/anmolsethi/unity_ads_mediation","last_synced_at":"2026-01-21T02:02:45.154Z","repository":{"id":56841583,"uuid":"441277543","full_name":"AnmolSethi/unity_ads_mediation","owner":"AnmolSethi","description":"Unity Mediation is a plugin for Flutter Applications. This plugin is able to display and Unity Rewarded Ads and Interstitial Ads.","archived":false,"fork":false,"pushed_at":"2023-03-28T06:18:40.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T21:26:20.961Z","etag":null,"topics":["unity-ads","unity3d-plugin","unityads"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/unity_ads_mediation","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnmolSethi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-23T19:30:41.000Z","updated_at":"2021-12-23T20:02:25.000Z","dependencies_parsed_at":"2024-09-22T12:01:28.026Z","dependency_job_id":"b3502ef5-84f5-4c90-a4f7-ffc31231a185","html_url":"https://github.com/AnmolSethi/unity_ads_mediation","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"950a349f5c69f5c3c156e58ae07588e0cbd8f297"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AnmolSethi/unity_ads_mediation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolSethi%2Funity_ads_mediation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolSethi%2Funity_ads_mediation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolSethi%2Funity_ads_mediation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolSethi%2Funity_ads_mediation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnmolSethi","download_url":"https://codeload.github.com/AnmolSethi/unity_ads_mediation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolSethi%2Funity_ads_mediation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28622472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"online","status_checked_at":"2026-01-21T02:00:08.227Z","response_time":86,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["unity-ads","unity3d-plugin","unityads"],"created_at":"2024-09-24T13:23:53.915Z","updated_at":"2026-01-21T02:02:45.139Z","avatar_url":"https://github.com/AnmolSethi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity Mediation Ads\n\n[![Pub](https://img.shields.io/pub/v/unity_ads_mediation.svg)](https://pub.dev/packages/unity_ads_mediation)\n[![License](https://img.shields.io/github/license/AnmolSethi/unity_ads_mediation)](https://github.com/pavzay/unity_ads_mediation/blob/master/LICENSE)\n\n[Unity Mediation Ads](https://docs.unity.com/mediation/IntroToMediation) is a plugin for Flutter Applications. This plugin is able to display and Unity Rewarded Ads and Interstitial Ads.\n\n_Note: We are working on the other ad formats as well_\n\n- [Getting Started](#getting-started)\n  - [1. Initialization](#1-initialization)\n  - [2. Add Adapters](#1-add-adapters)\n  - [3. Show Rewarded Ad](#3-show-rewarded-ad)\n  - [4. Show Interstitial Ad](#4-show-interstitial-ad)\n\n## Getting Started\n\n### 1. Initialization:\n\n```dart\n    UnityAdsMediation.initialize(\n      gameId: 'GAME_ID',\n      listener: (UnityInitializationState initializationState, Map\u003cString, dynamic\u003e result) {\n          if (initializationState == UnityInitializationState.initialized) {\n            \u003c!-- This plugin is awesome --\u003e\n          } else if(initializationState == UnityInitializationState.error) {\n            \u003c!-- Something went wrong --\u003e\n          }\n      },\n    );\n```\n\n- Get your GAME_ID from Unity Dashboard.\n\n---\n\n### 2. Add Adapters:\n\n1. Open the build.gradle file in your project.\n2. Add the following implementations in the dependencies section of the file, ensuring the dependencies of the adapters you intend to use in your project are declared:\n\n```c\n    implementation \"com.unity3d.mediation:admob-adapter:0.3.0\"\n    implementation \"com.unity3d.mediation:adcolony-adapter:0.3.0\"\n    implementation \"com.unity3d.mediation:applovin-adapter:0.3.0\"\n    implementation \"com.unity3d.mediation:facebook-adapter:0.3.0\"\n    implementation \"com.unity3d.mediation:ironsource-adapter:0.3.0\"\n    implementation \"com.unity3d.mediation:vungle-adapter:0.3.0\"\n```\n\n---\n\n### 3. Show Rewarded Ad:\n\n![Rewarded Ad](https://github.com/pavzay/flutter_unity_ads/raw/master/example/images/rewarded.gif \"Rewarded Ad\")\n\n```dart\nUnityAdsMediation.showRewardedAd(\n  placementId: 'REWARDED_AD_ID',\n  listener: (UnityAdsState adState, Map\u003cString, dynamic\u003e result) {\n    if (state == UnityAdState.rewarded) {\n      \u003c!-- User has watched a video. User should get a reward! --\u003e\n    } else if (state == UnityAdState.error) {\n      \u003c!-- Error --\u003e\n    }\n  },\n);\n```\n\n### 4. Show Interstitial Ad:\n\n![Interstitial Ad](https://github.com/pavzay/flutter_unity_ads/raw/master/example/images/interstitial.gif \"Interstitial Ad\")\n\n```dart\nUnityAdsMediation.showInterstitialAd(\n  placementId: 'INTERSTITIAL_AD_ID',\n  listener: (UnityAdsState adState, Map\u003cString, dynamic\u003e result) {\n    if (state == UnityAdState.rewarded) {\n      \u003c!-- User has watched a video. User should get a reward! --\u003e\n    } else if (state == UnityAdState.error) {\n      \u003c!-- Error --\u003e\n    }\n  },\n);\n```\n\nUnityAdsState:\n\n| State    | Description                                           |\n| -------- | ----------------------------------------------------- |\n| rewarded | Video played till the end. Use it to reward the user. |\n| error    | Some error occurred.                                  |\n| showed   | Ad showed to the user                                 |\n| closed   | Ad closed by the user                                 |\n| clicked  | User clicked the ad.                                  |\n\n---\n\n[![Pub likes](https://badgen.net/pub/likes/unity_ads_mediation)](https://pub.dev/packages/unity_ads_mediation/score)\n[![Pub popularity](https://badgen.net/pub/popularity/unity_ads_mediation)](https://pub.dev/packages/unity_ads_mediation/score)\n[![Pub points](https://badgen.net/pub/points/unity_ads_mediation)](https://pub.dev/packages/unity_ads_mediation/score)\n[![Flutter platform](https://badgen.net/pub/flutter-platform/unity_ads_mediation)](https://pub.dev/packages/unity_ads_mediation)\n[![GitHub popularity](https://img.shields.io/github/stars/AnmolSethi/unity_ads_mediation?logo=github\u0026logoColor=white)](https://github.com/AnmolSethi/unity_ads_mediation)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmolsethi%2Funity_ads_mediation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmolsethi%2Funity_ads_mediation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmolsethi%2Funity_ads_mediation/lists"}