@include('livewire.admin.ads._nav')
Ad unit IDs are public (they ship inside the app). Never paste a secret here — the LevelPlay server-to-server private key belongs only in the server's environment (LEVELPLAY_S2S_PRIVATE_KEY). Use test units (environment "development") with test mode on until production approval.
@if ($lastInit)
{{ $lastInit->event === 'init_success' ? 'Succeeded' : 'Failed'.($lastInit->error_code ? ' (code '.$lastInit->error_code.')' : '') }}{{ $lastInit->occurred_at->format('d M Y, H:i') }}{{ $lastInit->is_test ? ' · test' : '' }}
@else
No app has reported an initialization yet.
@endif
Set at Android build time (LEVELPLAY_ADMOB_APP_ID), not here.{{ config('minimax.ads_test_mode') ? 'On — events count as test' : 'Off' }}
Name
Format
Environment
LevelPlay ID
Live in the app
Last load
Loads / no-fill / errors (7 d)
Last error
Status
Updated
Actions
@forelse ($units as $unit)
@php($s = $stats[$unit->levelplay_ad_unit_id] ?? collect())
{{ $unit->name }}
{{ ucfirst($unit->format) }}
{{ ucfirst($unit->environment) }}
{{ $unit->levelplay_ad_unit_id }}
@if ($livePlacements[$unit->id])
{{ implode(', ', $livePlacements[$unit->id]) }}
@else
{{ $unit->placements->isEmpty() ? 'Not used by a placement' : 'Not live' }}
@endif
{{ $unit->last_loaded_at?->format('d M H:i') ?? '—' }}