# Get started

This guide is intended for developers who want to use the GameSnacks Partner API
to get games for their game centers. This guide assumes that you're familiar
with web programming concepts and web data formats.

## Prerequisites

Before you can start, there are a few things you need to do:

- **You need an AdSense account**   

  [Sign up for AdSense](https://adsense.google.com/adsense/signup)
  or
  [sign in to your AdSense
  account](https://adsense.google.com/adsense/login).

- **Familiarize yourself with AdSense**   

  If you're not familiar with AdSense concepts, read the
  [introductory information on AdSense](https://support.google.com/adsense/topic/1319753)
  and experiment with
  [the AdSense interface](https://support.google.com/adsense/answer/7107733)
  before starting to code.

- **Familiarize yourself with the GameSnacks Partner console**   

  Learn more about
  [GameSnacks](https://support.google.com/adsense/answer/13403573)
  and
  [the GameSnacks Partner console](https://support.google.com/adsense/answer/13469071).

## Quick start tutorial

Follow these steps to register your application:

1. Sign in to the [Google Cloud console](https://cloud.google.com/cloud-console).
2. Select or create a project.
3. Allowlist your Google Cloud project and your email as described [below](https://developers.google.com/gamesnacks/partner/api/get-started#allowlist).
4. In the API Library, find and select "GameSnacks Partner API".
5. Click **APIs \& Services \> Credentials**.
6. Click **CREATE CREDENTIALS \> API key**.
7. Use the API key to make an HTTP call. Note, if you skip this step, you will
   get a `403 PERMISSION_DENIED` error when you try to make the API call.

   <br />

   HTTP call example:   

   `https://gamesnackspartner.googleapis.com/v1/accounts/${ACCOUNT_ID}/gamecenters/${GAME_CENTER_ID}/games?key=${API_KEY}`

   <br />

   Where:
   - `ACCOUNT_ID` is your GameSnacks account ID.
   - `GAME_CENTER_ID` is your game center ID.
   - `API_KEY` is the API key you generated at step 5.

   To retrieve the `ACCOUNT_ID` and `GAME_CENTER_ID` see [create a game center](https://support.google.com/adsense/answer/13471195).

## Allowlist your Google Cloud project

To use the GameSnacks Partner API you must allowlist your Google Cloud project
and your email. To do this, complete the [GameSnacks interest form](https://docs.google.com/forms/d/e/1FAIpQLSfzXjtlrTwtOLwHNBkDrwvGVWWTRgMv2IQoA8dlQe3aAHy_OQ/viewform?resourcekey=0--nMH83CpU0LKiF4HIA8obg).

> [!NOTE]
> **Note:** skipping the action will result in a `403 PERMISSION_DENIED` error.