# Set up in the portal Sign up, register your games, and get the app key and placement ids your code uses. All of it happens in the portal, at portal.nga.io. *NGA SDK 0.1.0 preview: you install 0.1.0 from Maven Central and NGA's public repositories. Every 0.x version is a preview under the NGA SDK License, and the API can change until 1.0. Questions: hi@nga.network. This page: https://nga.io/docs/sdk/portal/* ## What you get from the portal Your code needs three things from the portal, and nothing else from NGA: | You need | Where it is | What it looks like | | --- | --- | --- | | The app key of each game | the game's *Overview*, under *App key and integration* | `app_` and letters and digits | | A placement id for each place your game shows an NGA ad | the game's *Placements* | `plc_` and an id you choose, such as `plc_example_native` | | Your test devices, registered | *Test devices* | the id the SDK prints at init | The key and the ids in these docs are examples. Use your own from the portal. The portal calls a game a *title*; these pages say "game", except in the portal's own labels. The portal's front page shows the setup below as a checklist, *Going live*, and *Getting started* walks through it in seven steps. Each game has five pages: *Overview*, *Store and builds*, *Promotion*, *Placements* and *Creatives*. ## Sign up 1. Open [portal.nga.io/sign-up](https://portal.nga.io/sign-up) and enter your work email address. NGA emails you a code to prove the address. (The portal's front page opens on sign-in, which is for studios NGA has already approved.) 2. Fill in the form: *Studio name*, *Company country*, *A store link to one of your games* and *Your role*. Under *Agreements*, accept NGA's [Studio Terms](https://nga.io/legal/studio-terms/), [Data Processing Agreement (DPA)](https://nga.io/legal/dpa/) and [SDK License](https://nga.io/legal/sdk-license/) for your studio (NGA's [Privacy Notice](https://nga.io/legal/privacy/) is linked beside them), then *Send the request*. 3. The portal shows *Request pending* until NGA approves your studio. > **During the preview.** > NGA approves each studio's sign-up by hand. You get a "You're in" email with a sign-in link once it does; until then nothing else in the portal opens. Questions about your request: [hi@nga.network](mailto:hi@nga.network). **Signing in.** Enter your address on the sign-in page. NGA emails a link and a 6-digit code; either one signs you in, for 30 days. **Teammates.** Invite them by email on *Team*. Each joins your studio as a member and sees the whole studio. An email address can belong to one studio only. ## Register a game *Titles > Add a title*, with: - **Name**: what your studio calls the game. The store's own title is read from the listing. - **Each platform the game is on**, one of three: **On Google Play** or **On the App Store** with the link (**Play Store link (Android)**, **App Store link**); **Not on Google Play yet** or **Not on the App Store yet** with a build and its draft listing; or **No build yet: a placeholder** with only the package name or bundle id. One title covers both platforms and has one app key. The last two are for a game [not on a store yet](#a-game-not-on-a-store-yet). - **Bundle id (optional)**: leave it empty unless the portal asks for it. NGA reads it from the App Store listing. Choose *Add the title*. NGA issues the app key at once and reads the store listing (title, category, icon, colors) as a job you can watch on the game's *Overview*, under *Profile*: from queued to done, usually within minutes, sometimes longer; the page refreshes itself while the job runs. The listing sets the colors of this game's banner, and the name and icon your other games show when they promote it. Until the first read finishes, the game's native placements get no fill. A store link belongs to one studio. A link already registered to another studio is refused; write to [hi@nga.network](mailto:hi@nga.network) if it is your game. If NGA finds no store listing at the link, the game's *Profile* says *No store listing found*; add the game again with the same link once it is listed. **A game registered on one platform** gets the other on its *Overview*: *Add Android* or *Add iOS*, with a store link or with a build and its draft listing, under the same app key. ### A game not on a store yet You can register a game before it launches, to test cross-promo with it, in one of two ways. **A build and its draft listing** (*Not on Google Play yet*, *Not on the App Store yet*). Give the **Package name** (Android) or **Bundle id** (iOS) as in the build; a **Build**: `.apk`, `.xapk`, `.apks` or `.apkm` on Android, `.ipa` on iOS, up to 512 MB (an App Bundle, `.aab`, is refused: download the signed universal APK from Play Console, *App bundle explorer*, *Downloads*, and upload that); and the listing the game will have: **Name on the listing**, **Category**, an **Icon**, and three to eight **Screenshots** (PNG, WebP or JPEG). NGA reads the build and the draft listing as it would a store listing; the build does not need your store signature, so a debug-signed or unsigned build is read like any other. The game is then **unlisted** on that platform, marked so in the titles list and on its *Overview*'s *Not on a store yet* card: - It is promoted only on your [registered test devices](https://nga.io/docs/sdk/testing/#register-a-test-device), never to players. There it fills your other games' placements like any of your games, so you can see its banner, and check your own game's integration, before either is in a store. - A tap on its banner or its full-screen ad is recorded and `onClicked` is called, but nothing opens: there is no store page yet. The impression and the click show in the report's test view. **A placeholder** (*No build yet: a placeholder*). Give only the package name or bundle id. The app key works at once, so you can build the game with it and add its placements now; its full-screen placements serve, its native placements get no fill, and it is shown in none of your games, until you upload a build with its listing under *Store and builds* (*Upload the build and its listing*), which makes it unlisted as above, or add its store link. Either keeps the app key. **At launch**, paste the store link in the *Not on a store yet* card and choose **Add the store link**. The game keeps its app key, so existing builds need no change. Players see the game in promotions once a store build runs with the SDK, while its *Promoted* switch is on; see [When a game is promoted](https://nga.io/docs/sdk/attribution/#when-a-game-is-promoted). ## The app key The game's *Overview* shows **App key and integration**: the key, with a copy button, and the `initialize` call for Unity, Android and iOS with the key filled in. [Initialize](https://nga.io/docs/sdk/initialize/) says where it goes. Once the game has a placement, **Hand it to your coding agent** beside it copies the [agent prompt](https://nga.io/docs/sdk/agents/) with this game's key, platforms and placements filled in. The *Overview* also shows: - **Profile**, per platform: what NGA read from the store listing or your builds (icon, store title, category, palette); whether the game *can host* the native banner (its colors are read) and *can be promoted* (its title and icon are read; it says so if its *Promoted* switch is off), each with what to do if not; and the reading job's state while one runs. - The game's *Switches*. Two are for cross-promo, each on from registration: **Shows cross-promo** (this game shows your other games) and **Promoted** (your other games can show this game). A game registered before there were two took its one *Cross-promo* switch's value on both. The titles list and the game's header show a badge for them: *both on*, *shows only*, *promoted only* or *off*. **Serving**: off stops all ad requests for this game; see [Stop serving](https://nga.io/docs/sdk/go-live/#stop-serving). *Store and builds* shows what NGA knows of each platform: the package name or bundle id, the App Store id, the packages your builds reported, and the signing certificates of your store-installed release builds. Under **Builds and their profiles** it lists every build you uploaded or that started with the SDK, newest first, each with its reading job, from queued to done or failed, and what the read found. **Upload a build** there when NGA should read a build the store does not have yet: `.apk`, `.xapk`, `.apks`, `.apkm` or `.ipa`, up to 512 MB, with store images if you like; NGA reads a build at most once every 14 days. A release build with another package name or bundle id gets no configuration; see [The app key](https://nga.io/docs/sdk/initialize/#the-app-key) on Initialize. ## Placements A placement is one place in your game where an NGA ad shows. Add it on the game's *Placements*, under *Add a placement*: - **Placement id**: you choose it, `plc_` and 3 to 64 lower-case letters, digits or `_`. You pass it to `loadAd`. - **Format** (cannot be changed later): - **Native**: the [native banner](https://nga.io/docs/sdk/native-cross-promo/). - **Interstitial** or **Rewarded**: [full-screen backfill](https://nga.io/docs/sdk/backfill/), shown when your mediation has no fill. Each placement then has: - **Prefetch**: native only, and on by default for a new native placement. The SDK loads the next ad ahead, so one is ready when the screen opens; turn it off per placement if you would rather load at the moment. Prefetch, like auto-reload, starts no load while the game is in the background: after a launch by a push, a job or a broadcast receiver, it loads when the game comes to the front. - **Auto-reload**: native only. The SDK loads again after each show. - **Caps** (below). - **Stop serving**, which turns the placement off without an app release. See [Stop serving](https://nga.io/docs/sdk/go-live/#stop-serving). Changes reach each install at its next start. ### Caps Caps count impressions per placement, never loads, so an ad that expires unseen costs nothing. A day is a rolling 24 hours. The defaults: | Format | Default caps per placement | | --- | --- | | Native | 3 a session, 10 a day | | Interstitial, Rewarded | 6 a day, at least 120 seconds apart | Set them per placement with *Per session*, *Per day* and *Seconds between*. A load at a cap fails with `NO_FILL / no_fill.cap` and sends no request; `retryAfterMillis` says when the cap reopens, and is null for a per-session cap, which reopens with the next session. A show still on screen counts against every cap. ## Promotion and creatives How a game appears when your other games promote it, per platform: | Where | What you set | See | | --- | --- | --- | | *Promotion* > *State* | read-only: *Waiting for the SDK*, *Pending* or *Promotable* | [Attribution](https://nga.io/docs/sdk/attribution/#when-a-game-is-promoted) | | *Promotion* > *Audience* | who plays the game on that platform: *General*, *Mixed* or *Children* | [Age and audience](https://nga.io/docs/sdk/privacy/#age-and-audience) | | *Promotion* > *Your MMP (optional)* | the *MMP click URL* and *MMP impression URL* of the game, for AppsFlyer or Adjust | [Attribution](https://nga.io/docs/sdk/attribution/#your-mmp) | | *Creatives* > *Native cross-promo* > *Copy* | the copy the banner shows for this game: NGA's proposals, to approve or reject, and your own (*Add the copy*, at most 50 characters, never naming another of your games); and a *Short name* of at most 20 characters when its store title is longer | [Native cross-promo](https://nga.io/docs/sdk/native-cross-promo/#what-the-banner-shows) | | *Creatives* > *Native cross-promo* > *Motif* | the cut-out that rests on the banner's corner: *Automatic* (NGA's pick, per host game, skipping one that is hard to see there), one of the cut-outs NGA read from the listing and your builds, or *No motif* | [Native cross-promo](https://nga.io/docs/sdk/native-cross-promo/#what-the-banner-is) | | *Creatives* > *Full-screen* | the video your other games' full-screen backfill plays for this game, and its endcard | [Full-screen backfill](https://nga.io/docs/sdk/backfill/#what-the-player-gets) | *Native cross-promo* also previews the banner as it draws, in NGA's default style and in each of your other games' colors (*Shown in*), stepping through the approved copy. A game you have not approved copy for is shown with "*name* — Play now". A game with no video is not shown full screen; it still appears in the banner, while its *Promoted* switch is on. ## Test devices *Test devices* holds your phones by name, each with one or more ids. *Add a device* takes a *Name (optional)* and the *Test-device id* from the SDK's log; or take an id from **Recent test installs not yet registered**, the games started in test mode in the last 7 days from an id you have not registered, with *Add to device…*. Each id is badged with what it covers, all your games on that device or one game ([which id covers what](https://nga.io/docs/sdk/testing/#register-a-test-device)), and *Move to device…* moves it to another device. Each device's page shows your games it ran, its recent ad requests with the reason for each no-fill, and its ad errors, so start there when a test device gets no ad. See [Register a test device](https://nga.io/docs/sdk/testing/#register-a-test-device). ## Report *Report* is [what you see in the report](https://nga.io/docs/sdk/attribution/#what-you-see-in-the-report), per host game, promoted game, placement, format and day; its *Test view* holds everything from test devices and test builds, which is in no report total. ## Next [Hand the integration to a coding agent](https://nga.io/docs/sdk/agents/), or [install the SDK](https://nga.io/docs/sdk/install/) yourself.