Skip to main content

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.

ToolEffectDescription
ugs_mediation_add_networkwritesAdd a single network instance to the waterfall (e.g. add AdMob with instance_id=
ugs_mediation_create_ab_experimentwritesCreate an A/B experiment between two waterfall configs. distribution_pct = % of users
ugs_mediation_create_placementwritesCreate or upsert a placement — a logical ad slot bound to an ad unit + (optional)
ugs_mediation_emit_consent_dialogwritesEmit a drop-in GDPR / CCPA / COPPA consent dialog (UXML + handler MonoBehaviour).
ugs_mediation_emit_double_coins_buttonwritesEmit a drop-in 'Watch ad → 2× coins' MonoBehaviour. The script attaches to any
ugs_mediation_enable_auto_optimizewritesEnable auto-optimization on the ad unit's waterfall. The SDK then re-sorts entries by
ugs_mediation_export_setupread-onlyExport a snapshot of the current Mediation setup as a single JSON blob: every ad unit
ugs_mediation_get_ab_resultsread-onlyReturn per-variant revenue metrics for an A/B experiment (ARPDAU + impression_count +
ugs_mediation_get_arpdauread-onlyReturn the Average Revenue Per Daily Active User (ARPDAU) across the requested window.
ugs_mediation_get_consentread-onlyReturn the current GDPR / CCPA / COPPA consent state plus the most recent TCF / US
ugs_mediation_get_fill_rateread-onlyReturn the fill rate (% of load requests that returned an ad) for an ad unit. Below
ugs_mediation_get_revenue_by_networkread-onlyReturn the total revenue (USD) per network across the requested window. Use to spot
ugs_mediation_get_waterfallread-onlyReturn the waterfall config for an ad unit (ordered list of network instances + their
ugs_mediation_hide_bannerwritesHide the currently-shown banner without destroying it. Use during cinematics / full-
ugs_mediation_initwritesInitialize Unity LevelPlay (formerly Unity Mediation + ironSource). Verifies UGS
ugs_mediation_is_rewarded_readyread-onlyCheck whether a rewarded video has been pre-loaded and is ready to show for the given
ugs_mediation_list_placementsread-onlyReturn every configured placement (id, name, ad_unit_id, reward, cooldown). The mock
ugs_mediation_load_app_openwritesPre-load an App Open ad. This is the full-screen ad shown on cold-start or warm-start
ugs_mediation_load_bannerwritesPre-load a banner ad. size ∈ {Banner (320x50), Large (320x90), Mrec (300x250), Smart
ugs_mediation_load_interstitialwritesPre-load a full-screen interstitial ad (typically between levels). The waterfall
ugs_mediation_load_mrecwritesPre-load a Medium Rectangle (300x250) ad — typically embedded in store / inventory
ugs_mediation_load_nativewritesLoad a native ad and return its renderable content (title, body, call_to_action,
ugs_mediation_load_rewardedwritesPre-load a rewarded video ad. Pick the highest-bid network from the configured
ugs_mediation_register_cross_promo_appwritesRegister one of your own apps for cross-promo. Players in app X then see house ads
ugs_mediation_set_consent_ccpawritesSet CCPA (California Consumer Privacy Act) consent + (optional) US Privacy string.
ugs_mediation_set_consent_coppawritesMark the app as child-directed under COPPA (Children's Online Privacy Protection Act).
ugs_mediation_set_consent_gdprwritesSet GDPR consent + (optional) IAB TCF v2.2 string. When granted=false, ALL ad loads
ugs_mediation_show_app_openwritesShow a pre-loaded App Open ad. Typically wired into OnApplicationFocus(hasFocus=true)
ugs_mediation_show_bannerwritesShow the pre-loaded banner ad. Banners are persistent — they remain visible until
ugs_mediation_show_interstitialwritesShow a pre-loaded interstitial. Frequency caps (max_per_day, min_interval_sec) on the
ugs_mediation_show_rewardedwritesShow a previously loaded rewarded video. On completion grants the placement's reward
ugs_mediation_update_waterfall_orderwritesReplace the waterfall entries for an ad unit in a single transaction. The entries are