diff --git a/skills/using-unity/SKILL.md b/skills/using-unity/SKILL.md index 76f035c..80d5761 100644 --- a/skills/using-unity/SKILL.md +++ b/skills/using-unity/SKILL.md @@ -38,7 +38,7 @@ A skill may tell you to use, load or check for another skill by name, for exampl - **import-and-optimize-cad-models**: Imports and optimizes CAD models and point clouds with Asset Transformer Toolkit (Pixyz). Make sure to use this skill when the user wants to import CAD or point cloud files, or build RuleSets, Actions, or LODs for them. File: `references/import-and-optimize-cad-models/import-and-optimize-cad-models.md` - **initialize-ai-navigation**: Sets up and configures Unity AI Navigation, including NavMesh surfaces, agents, obstacles, and links. Use when the user asks about navigation meshes, pathfinding, patrol routes, or obstacle avoidance. File: `references/initialize-ai-navigation/initialize-ai-navigation.md` - **instrument-game-telemetry**: Adds telemetry events to a Unity game with the Insights Events package, covering retention, level difficulty and economy balance. Use to instrument, add, extend, retrofit or fix game analytics, telemetry or tracking, or to migrate from Firebase, GA4 or AppsFlyer. Not for querying or exporting data already collected. File: `references/instrument-game-telemetry/instrument-game-telemetry.md` -- **levelplay-unity-integration**: Integrates the LevelPlay ad mediation SDK (Ads Mediation package). Use for where ads belong in a game, rewarded, interstitial or banner ads, mediation or privacy setup, Android or iOS ad build failures, or migrating from Unity Ads or IronSource. File: `references/levelplay-unity-integration/levelplay-unity-integration.md` +- **levelplay-unity-integration**: Integrates LevelPlay mediation into a Unity game and proposes where ads belong. Make sure to use this skill when the user asks about adding rewarded, interstitial, or banner ads (even from one network or without naming LevelPlay), ad privacy settings, creating ad units, Android or iOS ad build failures, or migrating from Unity Ads or ironSource. File: `references/levelplay-unity-integration/levelplay-unity-integration.md` - **localize-unity-project**: Sets up Unity Localization, including locales, String and Asset Tables, and CJK fonts. Use when the user wants to add languages or translate UI text. File: `references/localize-unity-project/localize-unity-project.md` - **manage-sprite-atlas**: Manages SpriteAtlas assets through a prebuild pipeline, covering master and variant atlases, packing settings, and platform overrides. Use when asked to create or optimize sprite atlases. File: `references/manage-sprite-atlas/manage-sprite-atlas.md` - **migrate-birp-to-urp**: Plans, executes, and troubleshoots migration from the Built-in Render Pipeline to URP. Use when asked to convert a project, scene, material, or shader to URP, or to fix visuals broken by the change. File: `references/migrate-birp-to-urp/migrate-birp-to-urp.md` diff --git a/skills/using-unity/references/levelplay-unity-integration/SECURITY.md b/skills/using-unity/references/levelplay-unity-integration/SECURITY.md index 953cd32..c48b43a 100644 --- a/skills/using-unity/references/levelplay-unity-integration/SECURITY.md +++ b/skills/using-unity/references/levelplay-unity-integration/SECURITY.md @@ -1,6 +1,6 @@ # Security notes: levelplay-unity-integration -When the user chooses it, this skill has the agent call the LevelPlay Management API to find or create the user's LevelPlay app and ad units (`references/management-api.md`). That means authenticated network calls with the user's account credentials, and resources created on the user's account. It is intentional, and it is limited by the safeguards below. +This skill does two things that automated skill scanners flag as powerful. When the user chooses it, the agent calls the LevelPlay Management API to find or create the user's LevelPlay app and ad units (`references/management-api.md`). In its final step, when the agent suspects a fault, it can also run read-only C# in the user's open Unity Editor through `unity command script eval`. Both are intentional, and the safeguards below limit them. The only package the skill has the user install is Ads Mediation (`com.unity.services.levelplay`), through **Package Manager**. ## Accepted risks @@ -8,6 +8,7 @@ When the user chooses it, this skill has the agent call the LevelPlay Management |---|---|---| | Authenticated network calls | Sends HTTPS requests to `platform.ironsrc.com` with a secret key and refresh token read from the environment variables `LEVELPLAY_SECRET_KEY` and `LEVELPLAY_REFRESH_TOKEN` | The user sets the variables themselves and chooses this path over the dashboard. The calls go only to the LevelPlay platform host that issued the credentials, and only to the documented auth, applications and ad units endpoints. | | Resources that cannot be deleted through the API | Creates apps and ad units on the user's LevelPlay account | The API has no delete call, so the agent lists what exists first, reuses it, and creates only what is missing, after the user confirms a table of exactly what will be created. | +| `SEC_POWER_CAP` | Runs C# in the user's open Unity Editor through `unity command script eval`, only in the final step, to read Play mode state when you suspect a fault | It reaches only the Editor the user already has open, on their own machine, so it grants nothing the user can't do themselves. The skill uses it to read state, not to change the project; project changes go through **Package Manager** and file edits the user approves step by step. | ## Mitigations @@ -17,4 +18,5 @@ When the user chooses it, this skill has the agent call the LevelPlay Management - **Reuse before create.** Existing apps are matched by name and platform, and existing ad units by format, so a repeated run creates nothing new. - **Project names never enter a shell command.** The app and ad unit names come from the project's files. The agent writes each create call's JSON body to a temporary file outside the project with its file-writing tool, checks it with `python3 -m json.tool`, sends it with `curl --data-binary @file`, and deletes the file, so a quote or other shell character in a name cannot end the command early or run anything. - **Documented endpoints only.** The agent calls only the auth, applications and ad units endpoints described in the LevelPlay API documentation. It does not enable networks, change billing or take an app live. +- **Read-only Editor checks.** `script eval` snippets only read and return values. They don't edit assets, settings, or scenes, and they run only during the one Play mode session the final step allows. - **No third-party hosts.** No request goes anywhere but `platform.ironsrc.com`, and no response is executed. diff --git a/skills/using-unity/references/levelplay-unity-integration/levelplay-unity-integration.md b/skills/using-unity/references/levelplay-unity-integration/levelplay-unity-integration.md index bf26220..a0e8cb3 100644 --- a/skills/using-unity/references/levelplay-unity-integration/levelplay-unity-integration.md +++ b/skills/using-unity/references/levelplay-unity-integration/levelplay-unity-integration.md @@ -1,6 +1,6 @@ --- name: levelplay-unity-integration -description: Integrates the LevelPlay ad mediation SDK (Ads Mediation package). Use for where ads belong in a game, rewarded, interstitial or banner ads, mediation or privacy setup, Android or iOS ad build failures, or migrating from Unity Ads or IronSource. +description: Integrates LevelPlay mediation into a Unity game and proposes where ads belong. Make sure to use this skill when the user asks about adding rewarded, interstitial, or banner ads (even from one network or without naming LevelPlay), ad privacy settings, creating ad units, Android or iOS ad build failures, or migrating from Unity Ads or ironSource. --- # LevelPlay Unity package/SDK Integration @@ -11,12 +11,27 @@ This skill covers the LevelPlay integration path only; it does not cover other m Follow the steps and provide only the files and configurations described in this skill. Do not proactively add steps, create files, or make recommendations based on general knowledge. If the user asks a question outside the scope of this skill, check the skill and reference files first to confirm it is not covered. If it is not, use general knowledge to respond, but do not incorporate additional steps or files into the integration workflow as a result. -Follow the integration workflow sequentially, one step at a time. Ask only the questions for the current step — do not gather information for future steps in advance. Wait for the user's response at each checkpoint before proceeding. The Step 2 project profile is read from files, not asked. +Do only what's asked. Don't change unrelated assets or files. Avoid long explanations. Never leave verification code in the user's script. Never build logging or detection they didn't ask for. The log lines in this skill's code templates are part of the integration, not verification code, so keep them. + +Create a restore point you can roll back to if your changes fail. Before you edit a file that already exists in the project, ask the user to commit it; without version control, copy it outside `Assets/` and tell the user where. -LevelPlay is Unity's ad mediation platform: it connects your game to multiple ad networks simultaneously and runs a unified auction across multiple ad networks and bidders to maximize competition for each impression. This guide walks you through the full integration: installing the SDK, configuring dependencies for Android and iOS, initializing LevelPlay in your project, and implementing rewarded, interstitial, and banner ads. If you already have part of this set up, you can skip ahead to the relevant step. +Follow the integration workflow sequentially, one step at a time. Ask only the questions for the current step — do not gather information for future steps in advance. Wait for the user's response at each checkpoint before proceeding. The Step 2 project profile is read from files, not asked. **This SKILL.md is the workflow spine. It keeps the decisions, checkpoints, and exact questions; longer code, full API detail, and edge cases live in `references/` and are linked from the relevant step. Read the linked reference when you reach that step — do not answer from general knowledge instead.** +## Read the documentation first + +Before you go forward with a workflow or diagnosis: + +1. Open and read the page in the [documentation topic map](#documentation-topic-map) that covers what you intend to do or fix, and check whether you missed anything. +2. Name the pages you read in your response. + +This is because your training knowledge about Unity and LevelPlay might be out of date, incorrect, or for the wrong version. Follow this skill's steps and questions for the workflow, and use the page for API names and version details. For privacy questions, link the Regulation Advanced Settings page instead of summarizing it, and follow Step 6.5. + +## Documentation topic map + +Prefer fetching a page directly (for example `WebFetch`) over searching (for example `WebSearch`), because it's faster and lands on the exact page. Only fetch what you need, and only search if you don't have the exact URL. LevelPlay pages on docs.unity.com aren't versioned, so there's no `` to replace. To pick a page, read `references/docs-topic-map.md`, which lists each page and what it covers. + ## Integration Workflow ### 0. New Integration or Migration? @@ -55,16 +70,12 @@ If the readout finds LevelPlay or Unity Ads already in the project, say so and o ### 3. Install LevelPlay SDK via UPM -**If the SDK looks already installed:** do not take that on trust, and do not ask the user to read -the Package Manager window for you. Read `Packages/packages-lock.json` and look for -`com.unity.services.levelplay`. If it is there, say which version resolved and proceed to Step 4. -If it is not, it is not installed, whatever the conversation so far has assumed: continue with the -install below. +**If the SDK looks already installed:** do not take that on trust, and do not ask the user to read the Package Manager window for you. Read `Packages/packages-lock.json` and look for `com.unity.services.levelplay`. If it is there, say which version resolved and proceed to Step 4. If it is not, it is not installed, whatever the conversation so far has assumed: continue with the install below. Guide through installing the LevelPlay Unity package using Unity Package Manager: 1. Open Unity → Window > Package Manager -2. Select Unity Registry dropdown or Services tab +2. Select **Unity Registry** (a dropdown at the top left before Unity 6, an entry in the left pane in Unity 6). 3. In the Package Manager search bar, type **Ads Mediation** 4. Confirm the package name matches exactly: the correct package is titled **Ads Mediation**. Do not install either of these packages: - **Ads IAP Mediation Adaptor** (a separate in-app purchases package, not the LevelPlay SDK) @@ -74,35 +85,18 @@ Guide through installing the LevelPlay Unity package using Unity Package Manager When you install the package, you may see a prompt to install Mobile Dependency Resolver — click **Import** if it appears. This is covered in more detail in the next step. -**Then verify it resolved, by reading the project rather than by asking.** The package id is -`com.unity.services.levelplay` (its Package Manager display name is **Ads Mediation**; the id is -what the project files record). Check both files: - -- **`Packages/manifest.json`** lists what the project *asks for*. `com.unity.services.levelplay` - must appear under `dependencies`. -- **`Packages/packages-lock.json`** records what Unity actually *resolved*. The same id must appear - here too, with a concrete version. This is the file that answers "did it install", and it is the - one to trust. - -Both are plain JSON in the project, so this check needs no Editor, no CLI, and nothing from the -user. Read them. - -> **This is a hard gate, not a formality.** Do not write, generate, or paste a single line of -> LevelPlay code until `com.unity.services.levelplay` is present in `packages-lock.json`. Skipping -> ahead produces code that looks correct, compiles nowhere, and fails with `CS0246` on every -> LevelPlay symbol. If the id is missing from `manifest.json`, the install never happened. If it is -> in `manifest.json` but not `packages-lock.json`, Unity has not resolved it yet: the Editor may -> still be importing, or resolution failed. Say which of the two you found, and stop. +**Then verify it resolved, by reading the project rather than by asking.** The package id is `com.unity.services.levelplay` (its Package Manager display name is **Ads Mediation**; the id is what the project files record). Check both files: + +- **`Packages/manifest.json`** lists what the project *asks for*. `com.unity.services.levelplay` must appear under `dependencies`. +- **`Packages/packages-lock.json`** records what Unity actually *resolved*. The same id must appear here too, with a concrete version. This is the file that answers "did it install", and it is the one to trust. + +Both are plain JSON in the project, so this check needs no Editor, no CLI, and nothing from the user. Read them. + +> **This is a hard gate, not a formality.** Do not write, generate, or paste a single line of LevelPlay code until `com.unity.services.levelplay` is present in `packages-lock.json`. Skipping ahead produces code that looks correct, compiles nowhere, and fails with `CS0246` on every LevelPlay symbol. If the id is missing from `manifest.json`, the install never happened. If it is in `manifest.json` but not `packages-lock.json`, Unity has not resolved it yet: the Editor may still be importing, or resolution failed. Say which of the two you found, and stop. > -> **If you added the id to `manifest.json` yourself and no Editor has run since, the lock file will -> not show it yet. That is expected, not a failure.** Never write the entry into -> `packages-lock.json` yourself: that file is Unity's resolution output, hand-editing it is what the -> migration guide forbids, and an entry you wrote is a false "resolved" signal rather than a passed -> gate. Ask the user to open the Unity Editor so resolution runs, then re-read the file. If no -> Editor is available at all, say so and stop there rather than manufacturing the evidence. +> **If you added the id to `manifest.json` yourself and no Editor has run since, the lock file will not show it yet. That is expected, not a failure.** Never write the entry into `packages-lock.json` yourself: that file is Unity's resolution output, hand-editing it is what the migration guide forbids, and an entry you wrote is a false "resolved" signal rather than a passed gate. Ask the user to open the Unity Editor so resolution runs, then re-read the file. If no Editor is available at all, say so and stop there rather than manufacturing the evidence. -Report the resolved version you found. Do not report "installed" on the strength of the Package -Manager window, a previous turn, or a user's recollection. +Report the resolved version you found. Do not report "installed" on the strength of the Package Manager window, a previous turn, or a user's recollection. **Network Manager:** Access **Ads Mediation > Network Manager** at any time to install additional ad network adapters and check for SDK and adapter updates. @@ -150,10 +144,6 @@ Before initializing LevelPlay, get the App Key and ad unit ids, through the Leve **Ad Unit IDs:** Go to **Ad units** in the left sidenav → select your app → copy the ID for each format you plan to implement (Rewarded, Interstitial, Banner). -**Note:** You need your App Key now for initialization (Step 7). Ad Unit IDs are only needed at Step 9 — if you haven't decided which ad formats to implement yet, just copy your App Key for now and return here after Step 8 (on the API path, the agent does this for you). - -Keep both accessible — you'll need them in the next steps. - ### 6. Configure AdMob Keys (If Using AdMob Network) **When to use**: Only if using AdMob as a mediation network adapter in LevelPlay. @@ -227,16 +217,9 @@ If CCPA or COPPA fails to compile, upgrade your Unity package/SDK via **Ads Medi **Installation checkpoint:** -**First, re-read `Packages/packages-lock.json` and confirm `com.unity.services.levelplay` is there.** -Do this every time you reach this point, even if Step 3 already passed earlier in the conversation. -It costs one file read, and it is the only item here you can settle without the user. An earlier -turn saying the package was installed is not evidence that it is: this check exists because the -install step is the one most often skipped, and the resulting code fails with `CS0246` on every -LevelPlay symbol. If the id is absent, go back to Step 3 and do not write initialization code. +**First, re-read `Packages/packages-lock.json` and confirm `com.unity.services.levelplay` is there.** Do this every time you reach this point, even if Step 3 already passed earlier in the conversation. It costs one file read, and it is the only item here you can settle without the user. An earlier turn saying the package was installed is not evidence that it is: this check exists because the install step is the one most often skipped, and the resulting code fails with `CS0246` on every LevelPlay symbol. If the id is absent, go back to Step 3 and do not write initialization code. -Then confirm the remaining prerequisites with the user, which are the ones no file can answer. -**If the user confirmed they are not using AdMob, omit the Step 6 item.** If Step 4 was already -confirmed in this conversation, skip that item and ask only about Step 5 and Step 6 (if AdMob). +Then confirm the remaining prerequisites with the user, which are the ones no file can answer. **If the user confirmed they are not using AdMob, omit the Step 6 item.** If Step 4 was already confirmed in this conversation, skip that item and ask only about Step 5 and Step 6 (if AdMob). "Please confirm these are working correctly: - Step 4: Have you run dependency resolution for your target platform(s) without errors? @@ -288,6 +271,8 @@ Read `references/placement-strategy.md`. Based on the optimization goal and the - If still unclear, ask: "Would you prioritize revenue, user experience, or a balance of both?" - If the Step 2 Audience row is **Child-directed** or **Mixed**, apply "Child-directed and mixed-audience games" in the reference first: banner off, rewarded off by default, no interstitial at session start, and "no ads" is a valid proposal. The goal sets numbers only inside those limits. +If you defer every placement in the proposal (see "When the project tells you nothing" in `references/project-inference.md`), don't ask for approval. Say what the game needs first, and stop. + **Then build the placement proposal** from the Step 2 profile and this strategy, per the reference: one table with the columns Placement | Format | Moment | Rule | Where in code, each code location a `file:line` you read, and each Moment the action that fires the ad (a press, a screen closing, a scene load), never a screen the player is still reading. An existing placement that breaks a guard is proposed as a conversion at its moment, not kept beside a new one. A rewarded placement hooks only to an existing button's press handler; a button the project lacks is named as one the user adds, never invented. No revenue, eCPM or fill figures, because the project cannot predict them. Ask: **"Here's where I'd put each ad in your game. Approve it as is, or tell me what to change: add, drop or move a placement, or change a cap?"** @@ -348,7 +333,7 @@ Reply with values per format, or just say 'skip' — you can add them any time." - If using deprecated APIs: "You're using the old IronSource.Agent API. Here's how to migrate to the new LevelPlay Ad Unit API:" (full migration detail in `references/migration-sdk-9.md` — Scenario B for init, Scenario C per ad format including the C5 completeness checklist) - If using current APIs with issues: "Your implementation looks good but I noticed [specific issues]. Here's how to fix them:" - If implementation is correct: "Your implementation looks solid. Which additional ad formats would you like to add?" -- Offer fixes as code snippets or suggest refactoring. When adding new formats after review, present the bid floor prompt scoped to those new formats only, confirm whether to match their existing organization pattern or use a new one, then follow the same guidelines as Options 1–3. +- Ask whether the user wants the fixes as code snippets to apply themselves or as edits you make to their files. When adding new formats after review, present the bid floor prompt scoped to those new formats only, confirm whether to match their existing organization pattern or use a new one, then follow the same guidelines as Options 1–3. For each ad format, follow the implementation guidelines in the detailed references: @@ -399,6 +384,25 @@ Before releasing to production: - [ ] Ad frequency capping implemented (if using interstitials) - [ ] Error handling works correctly (test with airplane mode - ads should fail gracefully without crashing or blocking gameplay) +## Final step + +1. Check that the project has zero console errors. Use `unity command console status` for the counts only when `unity status` shows a connected Editor (the project needs the `com.unity.pipeline` package, Unity 6.0 or later). Otherwise, ask the user to check the **Console** window. +2. Stop there unless the user asked you to prove the ads work or you suspect a specific fault. +3. If you suspect a fault, note whether the Editor is already in Play mode, then enter Play mode once with `unity command editor.playmode start`, after setting the build target to Android or iOS so mock ads load (Step 4). Read the game's state through `unity command script eval --code ''` instead of adding logging, and take no screenshots. Before you report, run `unity command editor.playmode stop` to exit any Play mode session you started, even if the check failed. Mock ads don't cover failures, clicks, or impression data; those need the device test in Step 10. + +If a check fails, or a fix doesn't work, go back and reread the relevant page in the [documentation topic map](#documentation-topic-map) and the step's reference to find what you missed. `references/troubleshooting.md` covers the common failures. + +## Final report + +When you finish, give the user a short checklist of what you did and why: + +- Files you created or edited, and the resolved `com.unity.services.levelplay` version. +- Target platforms and the dependency resolution result. +- Privacy settings the user chose to apply. +- Placements you wired, each with its `file:line`. +- Side effects: a build target switch, Test Suite lines left in the initializer, backup copies under `LevelPlayBackups/`, and any apps or ad units created through the API. +- What the user still needs to do: add any buttons the proposal named, create ad units in the dashboard if they used it, remove the Test Suite lines before release, and test on a device. + ## Adding More Ad Formats Later If you've already integrated some ad formats and want to add more: @@ -412,7 +416,6 @@ If you've already integrated some ad formats and want to add more: 4. **Follow the same implementation guidelines** from Step 9 for the new ad format 5. **Test the new format** following Step 10 testing guidelines -**Example**: If you initially implemented only Rewarded ads using separate manager scripts, and now want to add Interstitial ads: create `InterstitialAdManager.cs` following the same structure as your `RewardedAdManager.cs`, follow the interstitial guidelines from `references/interstitial-api.md`, and test in Editor and on device. Your existing ad formats keep working while you add new ones. ## Best Practices diff --git a/skills/using-unity/references/levelplay-unity-integration/references/CHANGELOG.md b/skills/using-unity/references/levelplay-unity-integration/references/CHANGELOG.md index 37cffb9..ef47d78 100644 --- a/skills/using-unity/references/levelplay-unity-integration/references/CHANGELOG.md +++ b/skills/using-unity/references/levelplay-unity-integration/references/CHANGELOG.md @@ -2,14 +2,38 @@ ## Contents -- [v0.12.0 — 2026-10-08 — App and ad units through the Management API](#v0120--2026-10-08--app-and-ad-units-through-the-management-api) -- [v0.11.0 — 2026-10-08 — Project-aware placement proposals](#v0110--2026-10-08--project-aware-placement-proposals) +- [v0.13.0 — 2026-11-23 — Skill quality checklist updates](#v0130--2026-11-23--skill-quality-checklist-updates) +- [v0.12.0 — 2026-11-19 — App and ad units through the Management API](#v0120--2026-11-19--app-and-ad-units-through-the-management-api) +- [v0.11.0 — 2026-11-19 — Project-aware placement proposals](#v0110--2026-11-19--project-aware-placement-proposals) - [v0.10.0 — 2026-08-21 — Workflow spine, and a hard install gate](#v0100--2026-08-21--workflow-spine-and-a-hard-install-gate) - [v0.9.0 — 2026-08-17 — SDK 9.x migration support](#v090--2026-08-17--sdk-9x-migration-support) - [v0.8.0 — 2026-08-05 — Version-aware ILRD (SDK 9.5.0), rewarded load lifecycle, and improved activation](#v080--2026-08-05--version-aware-ilrd-sdk-950-rewarded-load-lifecycle-and-improved-activation) - [v0.7.0 — 2026-06-12 — Initial public beta release](#v070--2026-06-12--initial-public-beta-release) -## v0.12.0 — 2026-10-08 — App and ad units through the Management API +## v0.13.0 — 2026-11-23 — Skill quality checklist updates + +The skill follows the Unity skills checklist more closely: it reads the LevelPlay docs before acting, checks and reports its work at the end, and drops repeated text. + +**Added:** +- "Read the documentation first" and "Documentation topic map" sections, with the page list in `references/docs-topic-map.md`, so the agent checks the current LevelPlay docs before it acts. For privacy questions, the agent links the Regulation Advanced Settings page instead of summarizing it. +- Guardrail and restore point lines at the top of the skill. +- Added a final step: the agent checks for zero console errors and, only when it suspects a fault, reads Play mode state through `script eval`. +- A "Final report" section: what the agent changed, any side effects, and what the user still needs to do. +- `SECURITY.md`: read-only C# in the Editor through `script eval` as an accepted risk, with its mitigation. + +**Changed:** +- The description follows the "Make sure to use this skill when..." pattern, and covers creating the LevelPlay app and ad units, and adding ads from a single network. +- Step 8 skips the approval question when every placement is deferred. +- The project profile treats Unity 6 template identifiers as defaults, not as Android or iOS setup, and rechecks each cited method before the readout. +- Links the agent fetches in `references/management-api.md` and `references/ios-setup.md` use the Markdown version of each page. +- Step 3, Step 9, and `references/dependency-resolution.md` give one instruction per step. +- `references/testing-and-validation.md` now explains what to do when mock ads don't run as expected in the **Device Simulator**. +- Evals: close-call trigger queries replace unrelated ones, two trigger queries become multi-step tasks, an AdMob-only request is a should-trigger query, editor eval 3 covers existing ad code, and a new eval checks that the legal notice appears word for word. + +**Removed:** +- The introduction paragraph, a repeated note in Step 5, and a repeated example under "Adding More Ad Formats Later". + +## v0.12.0 — 2026-11-19 — App and ad units through the Management API The agent can find or create the user's LevelPlay app and ad units through the LevelPlay Management API, as an alternative to the dashboard. @@ -24,7 +48,7 @@ The agent can find or create the user's LevelPlay app and ad units through the L - Evals: a trigger query for creating the app and ad units through the API replaces the near-duplicate ad unit IDs query, and a functional eval covers credential handling and the confirmation before creating. -## v0.11.0 — 2026-10-08 — Project-aware placement proposals +## v0.11.0 — 2026-11-19 — Project-aware placement proposals The skill reads the game before it proposes ads, and proposes placements in the game's own code rather than a generic format list. diff --git a/skills/using-unity/references/levelplay-unity-integration/references/dependency-resolution.md b/skills/using-unity/references/levelplay-unity-integration/references/dependency-resolution.md index 76f2d21..2e98711 100644 --- a/skills/using-unity/references/levelplay-unity-integration/references/dependency-resolution.md +++ b/skills/using-unity/references/levelplay-unity-integration/references/dependency-resolution.md @@ -58,7 +58,7 @@ When prompted: - **Android**: Dependencies will auto-resolve on build (newer MDR versions) - **iOS**: Go to Assets > Mobile Dependency Resolver > iOS Resolver > Install Cocoapods -**Alternative**: Install another dependency manager like EDM4U if preferred (search for installation instructions in their documentation). +**Alternative**: If the user prefers EDM4U, they can install it instead; point them to the EDM4U documentation for installation instructions. **Note**: Unity is transitioning to Unity External Dependency Manager (UEDM). If available in your Unity version, prefer UEDM over MDR. diff --git a/skills/using-unity/references/levelplay-unity-integration/references/docs-topic-map.md b/skills/using-unity/references/levelplay-unity-integration/references/docs-topic-map.md new file mode 100644 index 0000000..3ed7ba7 --- /dev/null +++ b/skills/using-unity/references/levelplay-unity-integration/references/docs-topic-map.md @@ -0,0 +1,12 @@ +# LevelPlay documentation topic map + +Each link below opens the Markdown version of a LevelPlay documentation page. Fetch only the page that covers your current step. + +- [Unity Package integration](https://docs.unity.com/en-us/grow/levelplay/sdk/unity/package-integration.md): installation, **Network Manager**, SKAdNetwork, and `AD_ID`. Skip its App Transport Security section, which turns off transport security for the whole app; use `ios-setup.md` in this folder instead. +- [Add an app](https://docs.unity.com/en-us/grow/levelplay/platform/get-started/add-app.md) and [Manage ad units](https://docs.unity.com/en-us/grow/levelplay/platform/get-started/ad-units.md): create the app and ad units in the LevelPlay dashboard. +- [Google AdMob integration](https://docs.unity.com/en-us/grow/levelplay/sdk/unity/networks/guides/google-admob.md): AdMob app ID and adapter setup. +- [Regulation advanced settings](https://docs.unity.com/en-us/grow/levelplay/sdk/unity/regulation-advanced-settings.md): the GDPR consent, CCPA, and COPPA settings for each SDK version. +- [Rewarded ads](https://docs.unity.com/en-us/grow/levelplay/sdk/unity/rewarded-ad-integration-package.md), [Interstitial ads](https://docs.unity.com/en-us/grow/levelplay/sdk/unity/interstitial-integration.md), and [Banner ads](https://docs.unity.com/en-us/grow/levelplay/sdk/unity/banner-integration.md): the ad unit API for each format. +- [Impression-level revenue integration](https://docs.unity.com/en-us/grow/levelplay/sdk/unity/impression-level-revenue-integration.md): the `OnAdImpressionDataReady` event. +- [Integration test suite](https://docs.unity.com/en-us/grow/levelplay/sdk/unity/integration-test-suite.md): turn on and launch the Test Suite. +- [Maven Central migration guide](https://docs.unity.com/en-us/grow/levelplay/sdk/unity/maven-central-migration-guide.md): upgrade to 9.0.0 or later, and fix `is.com` dependency failures. diff --git a/skills/using-unity/references/levelplay-unity-integration/references/ios-setup.md b/skills/using-unity/references/levelplay-unity-integration/references/ios-setup.md index ef652f3..5f8e10f 100644 --- a/skills/using-unity/references/levelplay-unity-integration/references/ios-setup.md +++ b/skills/using-unity/references/levelplay-unity-integration/references/ios-setup.md @@ -19,7 +19,7 @@ LevelPlay SDK on iOS requires additional configuration beyond the basic Unity in ## Prerequisites -For the current supported Unity, iOS deployment target, and Xcode versions, see the [LevelPlay iOS SDK integration guide](https://docs.unity.com/en-us/grow/levelplay/sdk/ios/sdk-integration). +For the current supported Unity, iOS deployment target, and Xcode versions, see the [LevelPlay iOS SDK integration guide](https://docs.unity.com/en-us/grow/levelplay/sdk/ios/sdk-integration.md). ## SKAdNetwork Configuration @@ -303,7 +303,7 @@ LevelPlay SDK requires certain capabilities to function properly: In Xcode, verify these settings: -- **Deployment Target**: see the [LevelPlay iOS SDK integration guide](https://docs.unity.com/en-us/grow/levelplay/sdk/ios/sdk-integration) for the currently supported minimum +- **Deployment Target**: see the [LevelPlay iOS SDK integration guide](https://docs.unity.com/en-us/grow/levelplay/sdk/ios/sdk-integration.md) for the currently supported minimum - **Enable Bitcode**: No - **Other Linker Flags**: Should include `-ObjC` (automatically added by Unity) diff --git a/skills/using-unity/references/levelplay-unity-integration/references/management-api.md b/skills/using-unity/references/levelplay-unity-integration/references/management-api.md index ceb5e18..33ed85c 100644 --- a/skills/using-unity/references/levelplay-unity-integration/references/management-api.md +++ b/skills/using-unity/references/levelplay-unity-integration/references/management-api.md @@ -16,10 +16,10 @@ the workflow stays available and gives the same result. Read the API docs before the first call, and again if a call answers in a way this file does not describe, because the docs are the source of truth for fields and limits: -[API overview](https://docs.unity.com/en-us/grow/levelplay/platform/api), -[authentication](https://docs.unity.com/en-us/grow/levelplay/platform/api/authentication), -[applications](https://docs.unity.com/en-us/grow/levelplay/platform/api/application), -[ad units](https://docs.unity.com/en-us/grow/levelplay/platform/api/ad-units). +[API overview](https://docs.unity.com/en-us/grow/levelplay/platform/api.md), +[authentication](https://docs.unity.com/en-us/grow/levelplay/platform/api/authentication.md), +[applications](https://docs.unity.com/en-us/grow/levelplay/platform/api/application.md), +[ad units](https://docs.unity.com/en-us/grow/levelplay/platform/api/ad-units.md). ## When this runs @@ -282,7 +282,7 @@ commands of its own and run them. The body file keeps the names out of the shell (set the manager's `currentPlacement` before the call and read it in `OnAdRewarded`), because a `ShowAd(placementName)` whose name is not configured on the dashboard has no placement behind it. If the user wants named dashboard placements (capping and pacing per placement), they create - them first — see the [Placements API](https://docs.unity.com/en-us/grow/levelplay/platform/api/placements) + them first — see the [Placements API](https://docs.unity.com/en-us/grow/levelplay/platform/api/placements.md) — and only then does Step 9 pass the names. 7. **Tell the user what to check on the dashboard.** New apps are pre-launch and new ad units are created Off; turning them on and setting up ad networks and instances are dashboard steps. Do not diff --git a/skills/using-unity/references/levelplay-unity-integration/references/project-inference.md b/skills/using-unity/references/levelplay-unity-integration/references/project-inference.md index 2c35237..22c9ecf 100644 --- a/skills/using-unity/references/levelplay-unity-integration/references/project-inference.md +++ b/skills/using-unity/references/levelplay-unity-integration/references/project-inference.md @@ -228,11 +228,7 @@ Report what exists by name, and route on what you find: ## Target platforms -LevelPlay runs on Android and iOS only, so these are the only platforms the profile reports. Read -the `applicationIdentifier` entries in `ProjectSettings/ProjectSettings.asset` (iOS appears there as -`iPhone`): an entry that is not the default `com.DefaultCompany.*` identifier suggests the platform -was prepared. An `Assets/Plugins/Android/` or `Assets/Plugins/iOS/` folder corroborates. Any other -target (Standalone, WebGL) is named as not covered by LevelPlay. +LevelPlay runs on Android and iOS only, so these are the only platforms the profile reports. Read the `applicationIdentifier` entries in `ProjectSettings/ProjectSettings.asset` (iOS appears there as `iPhone`). Treat an identifier as a default, not as evidence, if it starts with `com.DefaultCompany.` or contains `com.unity.template`, because Unity 6 templates fill these in. A customized identifier suggests the platform was prepared, and an `Assets/Plugins/Android/` or `Assets/Plugins/iOS/` folder corroborates it. If every Android and iOS identifier is a default and neither folder exists, write exactly "No Android or iOS setup found yet. LevelPlay runs on Android and iOS only." in the row, and don't describe Android or iOS as inferred. Name any other target (Standalone, WebGL) as not covered by LevelPlay. Treat this row as inferred. Step 4 still asks the platform question, because the active build target is not recorded in a readable project file. @@ -260,6 +256,8 @@ Record the answer as `General`, `Child-directed` or `Mixed`, marked as from the does not know, record `Unanswered`, propose for a general audience in Step 8 and say so, and say that the answer is needed before Step 6.5 and before any app is created in Step 5. +Before you show the readout, open each cited file again at the cited line and confirm the method is there. Fix or drop any citation you can't confirm. When a search finds nothing, say what you searched and that you didn't find it; never say it doesn't exist. + ## The readout Open with one line saying the profile was built from the project's files without changing diff --git a/skills/using-unity/references/levelplay-unity-integration/references/testing-and-validation.md b/skills/using-unity/references/levelplay-unity-integration/references/testing-and-validation.md index 2c858b4..5ba51e8 100644 --- a/skills/using-unity/references/levelplay-unity-integration/references/testing-and-validation.md +++ b/skills/using-unity/references/levelplay-unity-integration/references/testing-and-validation.md @@ -73,6 +73,8 @@ rewardedAd.LoadAd(); - Ad positioning and layout (for banners) - Basic ad logic and state management +If mock ads don't run as expected in the **Device Simulator**, switch to **Game** view and retry. + ## Mock Ad Callback Behavior Mock ads in Unity Editor fire most callbacks, but not all: