UgsMediation
32 tools in this family (folder Editor/Tools/UgsMediation/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.
| Tool | Effect | Description |
|---|---|---|
ugs_mediation_add_network | writes | Add a single network instance to the waterfall (e.g. add AdMob with instance_id= |
ugs_mediation_create_ab_experiment | writes | Create an A/B experiment between two waterfall configs. distribution_pct = % of users |
ugs_mediation_create_placement | writes | Create or upsert a placement — a logical ad slot bound to an ad unit + (optional) |
ugs_mediation_emit_consent_dialog | writes | Emit a drop-in GDPR / CCPA / COPPA consent dialog (UXML + handler MonoBehaviour). |
ugs_mediation_emit_double_coins_button | writes | Emit a drop-in 'Watch ad → 2× coins' MonoBehaviour. The script attaches to any |
ugs_mediation_enable_auto_optimize | writes | Enable auto-optimization on the ad unit's waterfall. The SDK then re-sorts entries by |
ugs_mediation_export_setup | read-only | Export a snapshot of the current Mediation setup as a single JSON blob: every ad unit |
ugs_mediation_get_ab_results | read-only | Return per-variant revenue metrics for an A/B experiment (ARPDAU + impression_count + |
ugs_mediation_get_arpdau | read-only | Return the Average Revenue Per Daily Active User (ARPDAU) across the requested window. |
ugs_mediation_get_consent | read-only | Return the current GDPR / CCPA / COPPA consent state plus the most recent TCF / US |
ugs_mediation_get_fill_rate | read-only | Return the fill rate (% of load requests that returned an ad) for an ad unit. Below |
ugs_mediation_get_revenue_by_network | read-only | Return the total revenue (USD) per network across the requested window. Use to spot |
ugs_mediation_get_waterfall | read-only | Return the waterfall config for an ad unit (ordered list of network instances + their |
ugs_mediation_hide_banner | writes | Hide the currently-shown banner without destroying it. Use during cinematics / full- |
ugs_mediation_init | writes | Initialize Unity LevelPlay (formerly Unity Mediation + ironSource). Verifies UGS |
ugs_mediation_is_rewarded_ready | read-only | Check whether a rewarded video has been pre-loaded and is ready to show for the given |
ugs_mediation_list_placements | read-only | Return every configured placement (id, name, ad_unit_id, reward, cooldown). The mock |
ugs_mediation_load_app_open | writes | Pre-load an App Open ad. This is the full-screen ad shown on cold-start or warm-start |
ugs_mediation_load_banner | writes | Pre-load a banner ad. size ∈ {Banner (320x50), Large (320x90), Mrec (300x250), Smart |
ugs_mediation_load_interstitial | writes | Pre-load a full-screen interstitial ad (typically between levels). The waterfall |
ugs_mediation_load_mrec | writes | Pre-load a Medium Rectangle (300x250) ad — typically embedded in store / inventory |
ugs_mediation_load_native | writes | Load a native ad and return its renderable content (title, body, call_to_action, |
ugs_mediation_load_rewarded | writes | Pre-load a rewarded video ad. Pick the highest-bid network from the configured |
ugs_mediation_register_cross_promo_app | writes | Register one of your own apps for cross-promo. Players in app X then see house ads |
ugs_mediation_set_consent_ccpa | writes | Set CCPA (California Consumer Privacy Act) consent + (optional) US Privacy string. |
ugs_mediation_set_consent_coppa | writes | Mark the app as child-directed under COPPA (Children's Online Privacy Protection Act). |
ugs_mediation_set_consent_gdpr | writes | Set GDPR consent + (optional) IAB TCF v2.2 string. When granted=false, ALL ad loads |
ugs_mediation_show_app_open | writes | Show a pre-loaded App Open ad. Typically wired into OnApplicationFocus(hasFocus=true) |
ugs_mediation_show_banner | writes | Show the pre-loaded banner ad. Banners are persistent — they remain visible until |
ugs_mediation_show_interstitial | writes | Show a pre-loaded interstitial. Frequency caps (max_per_day, min_interval_sec) on the |
ugs_mediation_show_rewarded | writes | Show a previously loaded rewarded video. On completion grants the placement's reward |
ugs_mediation_update_waterfall_order | writes | Replace the waterfall entries for an ad unit in a single transaction. The entries are |