---
title: ''
product: Monetize API
version: 1.0.0
latest_version: 1.0.0
status: This page documents version 1.0.0. The latest version is 1.0.0.
canonical: https://docs.unity.com/en-us/oas-monetize/1.0.0
latest_url: https://docs.unity.com/en-us/oas-monetize/1.0.0.md
last_updated: 2026-08-11
generated_at: 2026-11-23T08:10:32.256Z
locale: en-us
---

```json
{
  "openapi": "3.0.0",
  "x-staticBundleRedocOptions": [
    "--options.maxDisplayedEnumValues=10"
  ],
  "info": {
    "title": "Monetize Manage API",
    "version": "1.0.0",
    "description": "# Overview\nThe Monetize Manage API allows Unity Ads clients to manage their Ad Units and Placements programmatically. \n\nThe API currently offers endpoints that allow you to:\n* Manage [Placements](https://unityads.unity3d.com/help/monetization/placements)\n* Manage [eCPM targets](http://documentation.cloud.unity3d.com/en/articles/4239760-ecpm-targets)\n\n## Rate limits\nThe API returns a `429` HTTP status code if a request exceeds one of the following rate limits:\n\n* The maximum number of requests per IP address: 5 requests per second, and 4000 requests per 30-minute period.\n* The maximum number of operations that create or modify resources (`POST` or `PUT`): 1000 requests per 30-minute period, or 5 times per a second.\n* The maximum number of Changes to an individual Placement: 5 per day, however you can bundle multiple changes into a single call.\n* The maximum number of operations that create or modify projects (`POST` or `PATCH`): 10 times per 30-minute period, or 1 times per a second.\n\n| Type                     | Limit (requests/second) | Limit (requests/30 minutes) |\n|--------------------------|-------------------------|-----------------------------|\n| All requests             | 5                       | 4000                        |\n| `PUT`, `POST`            | 5                       | 1000                        |\n\n# Useful links\n* Welcome to [Unity Ads](https://docs.unity.com/ads/UnityAdsHome.html) documentation.\n* Download and import the latest [Ads SDK](https://unity.com/products/unity-ads-monetize)\n\n# Deprecation Policy\n\nIf a newer version of the API is released or if the service is discontinued, the API or one of its versions may be deprecated and eventually shutdown.\n\nDeprecation of an API version will occur in 2 steps:\n1. Unity will email Organization owners, informing them of the new version's immenent release and the current version's deprecation date. A deprecation notice will appear on the header of any deprecated API, and the documentation will be updated as such.\n2. After 3 months of continued support for a deprecated version, Unity may cease support or shut down the version entirely. A complete shutdown notice will be sent 1 month in advance.\n\n\n# Change Log\n## v1.0.0\n1. Added functionality to manipulate with Ad-Units\n2. Added IDs to target\n3. Added project create/patch endpoints\n\n# Authentication\nTo learn how to authenticate your requests, please visit the [Getting Started section](https://services.docs.unity.com/docs#get-started).\n\n## Authentication\n|                           |                            |\n|---------------------------|----------------------------|\n| **Security Scheme Type**  | HTTP Authorization Scheme  |\n| **HTTP**                  | basic                      |\n"
  },
  "servers": [
    {
      "url": "https://services.api.unity.com",
      "description": "Production server"
    }
  ],
  "tags": [
    {
      "name": "Projects",
      "description": "Lists all Projects in an Organization and retrieves details for a specific Project, including its associated Ad Units, Placements, and eCPM targets."
    },
    {
      "name": "Ad-Units",
      "description": "Create, update, and archive Ad-Units."
    },
    {
      "name": "Placements",
      "description": "Create, update, and archive Placements."
    },
    {
      "name": "Targets",
      "description": "Create, update, and delete Targets."
    }
  ],
  "paths": {
    "/monetize/v1/organizations/{organizationId}/projects": {
      "get": {
        "summary": "Get Projects",
        "operationId": "getProjects",
        "description": "Lists all Unity Projects, enabled for Ads by Organization.",
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/organizationId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/organizationProjectList"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/organizationNotFound"
          }
        }
      },
      "post": {
        "summary": "Create Project",
        "operationId": "postProjects",
        "description": "Creates a new Unity Project enabled for Ads. COPPA and Ads-Provider must be specified",
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/organizationId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createProject"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/projectDetail"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/organizationNotFound"
          },
          "422": {
            "$ref": "#/components/responses/unprocessableEntityError"
          }
        }
      }
    },
    "/monetize/v1/projects/{projectId}": {
      "get": {
        "summary": "Get Project Details",
        "operationId": "getProjectDetails",
        "description": "Returns Project details, including Ad-Units, Placements, and eCPM Targets.",
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/showarchived"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/projectDetail"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      },
      "patch": {
        "summary": "Update Project Details",
        "operationId": "updateProjectDetails",
        "description": "Updates a limited number of Project details: Specifically COPPA and the Ads-Provider.",
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/updateProject"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/projectDetail"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      }
    },
    "/monetize/v1/projects/{projectId}/adunits": {
      "get": {
        "summary": "Get Ad-Units By Project",
        "operationId": "getAdUnitsByProject",
        "description": "Returns all Ad-Units by Project.",
        "tags": [
          "Ad-Units"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/showarchived"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/projectAdUnits"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      }
    },
    "/monetize/v1/projects/{projectId}/stores/{storeName}/adunits": {
      "get": {
        "summary": "Get Ad-Units By Store",
        "operationId": "getAdUnitsByProjectStore",
        "description": "Returns all Ad-Units by Project and Store.",
        "tags": [
          "Ad-Units"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/showarchived"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/projectStoreAdUnits"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      },
      "post": {
        "summary": "Create Ad-Unit",
        "operationId": "createAdUnits",
        "description": "Batch-creates Ad-Units by Store.",
        "tags": [
          "Ad-Units"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/dryrun"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createAdUnits"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/adUnits"
          },
          "400": {
            "$ref": "#/components/responses/adUnitBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      },
      "patch": {
        "summary": "Update Ad-Units",
        "operationId": "updateAdUnits",
        "description": "Batch-updates Ad-Units by Store.",
        "tags": [
          "Ad-Units"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/dryrun"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/patchAdUnits"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/adUnits"
          },
          "400": {
            "$ref": "#/components/responses/adUnitBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      }
    },
    "/monetize/v1/projects/{projectId}/stores/{storeName}/adunits/{adUnitId}": {
      "get": {
        "summary": "Get Ad-Unit Details",
        "operationId": "getAdUnits",
        "description": "Returns Ad-Unit details, including Placements and eCPM Targets.",
        "tags": [
          "Ad-Units"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/showarchived"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/adUnit"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      },
      "patch": {
        "summary": "Update Ad-Unit Details",
        "operationId": "patchAdUnits",
        "description": "Updates Ad-Unit details.",
        "tags": [
          "Ad-Units"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/dryrun"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/patchAdUnit"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/adUnit"
          },
          "400": {
            "$ref": "#/components/responses/adUnitBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      }
    },
    "/monetize/v1/projects/{projectId}/stores/{storeName}/adunits/{adUnitId}/placements": {
      "get": {
        "summary": "Get Placements By Ad-Unit",
        "operationId": "GetPlacements",
        "description": "Lists all Placements by Ad-Unit.",
        "tags": [
          "Placements"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/showarchived"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/placementList"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      },
      "post": {
        "summary": "Create Placements",
        "operationId": "createPlacements",
        "description": "Batch-creates Placements and eCPM Targets by Ad-Unit.",
        "tags": [
          "Placements"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/dryrun"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createPlacements"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/placementList"
          },
          "400": {
            "$ref": "#/components/responses/placementBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/placementNotFound"
          },
          "409": {
            "$ref": "#/components/responses/placementConflict"
          }
        }
      },
      "patch": {
        "summary": "Update Placements",
        "operationId": "updatePlacements",
        "description": "Batch-creates Placements and eCPM Targets by Ad-Unit.",
        "tags": [
          "Placements"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/dryrun"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/patchPlacements"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/placementList"
          },
          "400": {
            "$ref": "#/components/responses/placementBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/placementNotFound"
          },
          "409": {
            "$ref": "#/components/responses/placementConflict"
          }
        }
      }
    },
    "/monetize/v1/projects/{projectId}/stores/{storeName}/adunits/{adUnitId}/placements/{placementId}": {
      "get": {
        "summary": "Get Placement's Details",
        "operationId": "getPlacement",
        "description": "Returns Placement details.",
        "tags": [
          "Placements"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/placementId"
          },
          {
            "$ref": "#/components/parameters/showarchived"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/placementDetail"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/placementNotFound"
          },
          "409": {
            "$ref": "#/components/responses/placementConflict"
          }
        }
      },
      "patch": {
        "summary": "Update Placement",
        "operationId": "updatePlacement",
        "description": "Batch-updates Placements and eCPM Targets by Ad-Unit.",
        "tags": [
          "Placements"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/placementId"
          },
          {
            "$ref": "#/components/parameters/dryrun"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/patchPlacement"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/placementDetail"
          },
          "400": {
            "$ref": "#/components/responses/placementBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/placementNotFound"
          },
          "409": {
            "$ref": "#/components/responses/placementConflict"
          }
        }
      }
    },
    "/monetize/v1/projects/{projectId}/stores/{storeName}/adunits/{adUnitId}/placements/{placementId}/targets": {
      "get": {
        "summary": "Get Targets",
        "operationId": "getTargets",
        "description": "Lists Targets by Placement.",
        "tags": [
          "Targets"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/placementId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/targetList"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      },
      "post": {
        "summary": "Create Targets",
        "operationId": "createTargets",
        "description": "Creates Targets by Placement.",
        "tags": [
          "Targets"
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createTargets"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/placementId"
          },
          {
            "$ref": "#/components/parameters/dryrun"
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/targetDetail"
          },
          "400": {
            "$ref": "#/components/responses/targetBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      }
    },
    "/monetize/v1/projects/{projectId}/stores/{storeName}/adunits/{adUnitId}/placements/{placementId}/targets/{targetId}": {
      "get": {
        "summary": "Get Target Details",
        "operationId": "getTargetDetail",
        "description": "Returns Target details.",
        "tags": [
          "Targets"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/placementId"
          },
          {
            "$ref": "#/components/parameters/targetId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/targetDetail"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      },
      "patch": {
        "summary": "Update Target",
        "operationId": "patchTarget",
        "description": "Updates Targets.",
        "tags": [
          "Targets"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/placementId"
          },
          {
            "$ref": "#/components/parameters/targetId"
          },
          {
            "$ref": "#/components/parameters/dryrun"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/patchTarget"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/targetDetail"
          },
          "400": {
            "$ref": "#/components/responses/targetBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      },
      "delete": {
        "summary": "Delete Target",
        "operationId": "deleteTarget",
        "description": "Deletes Targets.",
        "tags": [
          "Targets"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/storeName"
          },
          {
            "$ref": "#/components/parameters/adUnitId"
          },
          {
            "$ref": "#/components/parameters/placementId"
          },
          {
            "$ref": "#/components/parameters/targetId"
          },
          {
            "$ref": "#/components/parameters/dryrun"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/targetDetail"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/projectNotFound"
          }
        }
      }
    },
    "/monetize/v1/organizations/{organizationId}/api-keys": {
      "get": {
        "summary": "Get Google Acquire Optimization API Keys",
        "description": "Return all API keys for a given organization and store id",
        "operationId": "getGoogleAPIKeysByStoreId",
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/organizationId"
          },
          {
            "$ref": "#/components/parameters/storeId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/apiKeyResponse"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/organizationNotFound"
          }
        }
      },
      "post": {
        "summary": "Set Google Acquire Optimization API Keys",
        "description": "Set Google Licencing key for a given project based on store id and organization id",
        "operationId": "setGoogleAPIKeysByStoreId",
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/organizationId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/setAPIKeysRequest"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/apiKeyResponse"
          },
          "400": {
            "$ref": "#/components/responses/apiKeyBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/organizationNotFound"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "organizationId": {
        "name": "organizationId",
        "in": "path",
        "description": "ID of the organization",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/organizationId"
        }
      },
      "projectId": {
        "name": "projectId",
        "in": "path",
        "description": "ID of the project",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/projectId"
        }
      },
      "adUnitId": {
        "name": "adUnitId",
        "in": "path",
        "description": "The unique ID of the Ad Unit.",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/adUnitId"
        }
      },
      "placementId": {
        "name": "placementId",
        "in": "path",
        "description": "The unique ID of the placement.",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/placementId"
        }
      },
      "targetId": {
        "name": "targetId",
        "in": "path",
        "description": "The unique ID of the target.",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/targetId"
        }
      },
      "storeName": {
        "name": "storeName",
        "in": "path",
        "description": "store name",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/storeName"
        }
      },
      "dryrun": {
        "name": "dryrun",
        "in": "query",
        "description": "Dry run flag.",
        "required": false,
        "schema": {
          "type": "boolean",
          "default": false
        }
      },
      "showarchived": {
        "name": "showarchived",
        "in": "query",
        "description": "When `true`, displays archived Ad Units and Placements.",
        "required": false,
        "schema": {
          "type": "boolean",
          "default": false
        }
      },
      "storeId": {
        "name": "storeId",
        "in": "query",
        "description": "Store Id for which API keys are to be fetched",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "requestBodies": {
      "createProject": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "$ref": "#/components/schemas/projectName"
                },
                "adsProvider": {
                  "$ref": "#/components/schemas/adsProvider"
                },
                "coppa": {
                  "$ref": "#/components/schemas/coppa"
                },
                "stores": {
                  "$ref": "#/components/schemas/createUpdateStoreList"
                }
              },
              "required": [
                "name",
                "adsProvider",
                "coppa"
              ]
            }
          }
        }
      },
      "updateProject": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "adsProvider": {
                  "$ref": "#/components/schemas/adsProvider"
                },
                "coppa": {
                  "$ref": "#/components/schemas/coppa"
                },
                "stores": {
                  "$ref": "#/components/schemas/createUpdateStoreList"
                }
              }
            }
          }
        }
      },
      "createAdUnits": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "$ref": "#/components/schemas/createAdUnitName"
                  },
                  "id": {
                    "$ref": "#/components/schemas/adUnitId"
                  },
                  "adFormat": {
                    "$ref": "#/components/schemas/adFormat"
                  },
                  "allowSkipInSeconds": {
                    "type": "number"
                  },
                  "muteVideo": {
                    "type": "boolean"
                  },
                  "adTypes": {
                    "$ref": "#/components/schemas/adTypes"
                  },
                  "bannerRefreshRate": {
                    "$ref": "#/components/schemas/bannerRefreshRate"
                  },
                  "addPlacements": {
                    "$ref": "#/components/schemas/addPlacements"
                  }
                },
                "required": [
                  "name",
                  "adFormat"
                ]
              }
            }
          }
        }
      },
      "patchAdUnits": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/components/schemas/patchAdUnitObject"
              },
              "example": {
                "ad_unit_id_1": {
                  "name": "ad_unit_name",
                  "adFormat": "rewarded",
                  "allowSkipInSeconds": 0,
                  "muteVideo": true,
                  "adTypes": {
                    "display": false,
                    "playable": true,
                    "video": true
                  },
                  "bannerRefreshRate": 40,
                  "archive": false,
                  "placements": {
                    "placement_01": {
                      "name": "placement_name",
                      "addTargets": [
                        {
                          "value": 12,
                          "countryCodes": [
                            "FI"
                          ],
                          "type": "standard"
                        }
                      ],
                      "targets": {
                        "123e4567-e89b-12d3-a456-426652340000": {
                          "value": 18.5,
                          "countryCodes": [
                            "US",
                            "CA"
                          ],
                          "type": "standard"
                        },
                        "global": {
                          "value": 18.5
                        },
                        "3fa85f64-5717-4562-b3fc-2c963f66afa6": null
                      }
                    },
                    "placement_02": {
                      "archive": false,
                      "addTargets": [
                        {
                          "value": 10.5,
                          "type": "global"
                        },
                        {
                          "value": 12,
                          "countryCodes": [
                            "US",
                            "CA"
                          ],
                          "type": "standard"
                        }
                      ]
                    },
                    "placement_03": {
                      "archive": true
                    }
                  },
                  "addPlacements": [
                    {
                      "name": "placement_name",
                      "id": "placement_04",
                      "addTargets": [
                        {
                          "value": 18.5,
                          "type": "global"
                        },
                        {
                          "value": 18.5,
                          "countryCodes": [
                            "US",
                            "CA"
                          ],
                          "type": "standard"
                        }
                      ]
                    }
                  ]
                },
                "ad_unit_id_2": {
                  "archive": true
                },
                "ad_unit_id_3": {
                  "name": "ad_unit_name",
                  "adFormat": "rewarded",
                  "allowSkipInSeconds": 0,
                  "muteVideo": true
                }
              }
            }
          }
        }
      },
      "patchAdUnit": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/patchAdUnitObject"
            },
            "example": {
              "name": "ad_unit_name",
              "adFormat": "rewarded",
              "allowSkipInSeconds": 0,
              "muteVideo": true,
              "adTypes": {
                "display": false,
                "playable": true,
                "video": true
              },
              "bannerRefreshRate": 40,
              "archive": false,
              "placements": {
                "placement_01": {
                  "name": "placement_name",
                  "addTargets": [
                    {
                      "value": 12,
                      "countryCodes": [
                        "FI"
                      ],
                      "type": "standard"
                    }
                  ],
                  "targets": {
                    "123e4567-e89b-12d3-a456-426652340000": {
                      "value": 18.5,
                      "countryCodes": [
                        "US",
                        "CA"
                      ],
                      "type": "standard"
                    },
                    "global": {
                      "value": 18.5
                    },
                    "3fa85f64-5717-4562-b3fc-2c963f66afa6": null
                  }
                },
                "placement_02": {
                  "archive": false,
                  "addTargets": [
                    {
                      "value": 10.5,
                      "type": "global"
                    },
                    {
                      "value": 12,
                      "countryCodes": [
                        "US",
                        "CA"
                      ],
                      "type": "standard"
                    }
                  ]
                },
                "placement_03": {
                  "archive": true
                }
              },
              "addPlacements": [
                {
                  "name": "placement_name",
                  "id": "placement_04",
                  "addTargets": [
                    {
                      "value": 18.5,
                      "type": "global"
                    },
                    {
                      "value": 18.5,
                      "countryCodes": [
                        "US",
                        "CA"
                      ],
                      "type": "standard"
                    }
                  ]
                }
              ]
            }
          }
        }
      },
      "createPlacements": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/addPlacements"
            }
          }
        }
      },
      "patchPlacements": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/patchPlacementsObject"
            }
          }
        }
      },
      "patchPlacement": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/patchPlacementObject"
            },
            "example": {
              "name": "placement_name",
              "archive": false,
              "addTargets": [
                {
                  "value": 12,
                  "countryCodes": [
                    "FI"
                  ],
                  "type": "standard"
                }
              ],
              "targets": {
                "123e4567-e89b-12d3-a456-426652340000": {
                  "value": 18.5,
                  "countryCodes": [
                    "US",
                    "CA"
                  ],
                  "type": "standard"
                },
                "global": {
                  "value": 18.5
                },
                "3fa85f64-5717-4562-b3fc-2c963f66afa6": null
              }
            }
          }
        }
      },
      "createTargets": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/addTargets"
            }
          }
        }
      },
      "patchTarget": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "value": {
                  "$ref": "#/components/schemas/targetValue"
                },
                "countryCodes": {
                  "$ref": "#/components/schemas/countries"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "standard"
                  ]
                }
              }
            }
          }
        }
      },
      "setAPIKeysRequest": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/acquireOptimizationAPIKeyRequest"
            }
          }
        }
      }
    },
    "responses": {
      "organizationProjectList": {
        "description": "Returns an array of projects in the Organization.",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/project"
              }
            }
          }
        }
      },
      "projectDetail": {
        "description": "Returns project details, including its associated Ad Units, Placements, and eCPM targets.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/projectDetail"
            }
          }
        }
      },
      "projectAdUnits": {
        "description": "Returns an map of Ad-Units.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "apple": {
                  "$ref": "#/components/schemas/adUnits"
                },
                "google": {
                  "$ref": "#/components/schemas/adUnits"
                }
              }
            }
          }
        }
      },
      "projectStoreAdUnits": {
        "description": "Returns an map of Ad-Units.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/adUnits"
            }
          }
        }
      },
      "adUnits": {
        "description": "Returns an map of Ad-Units.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/adUnits"
            }
          }
        }
      },
      "adUnit": {
        "description": "Returns Ad-Unit details, including its associated Placements, and eCPM targets.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/adUnit"
            }
          }
        }
      },
      "adUnitIdList": {
        "description": "Returns an array of Ad-Unit IDs.",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "adunit_id_1",
                "adunit_id_2"
              ]
            }
          }
        }
      },
      "placementList": {
        "description": "Returns Ad-Unit's Placements.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/placements"
            }
          }
        }
      },
      "placementDetail": {
        "description": "Returns an array of Placements.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/placement"
            }
          }
        }
      },
      "placementIdList": {
        "description": "Returns an array of Placement IDs.",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "placement_id_1",
                "placement_id_2"
              ]
            }
          }
        }
      },
      "targetList": {
        "description": "Returns Placement's targets.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/targets"
            }
          }
        }
      },
      "targetDetail": {
        "description": "Returns Placement's targets.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/target"
            }
          }
        }
      },
      "apiKeyResponse": {
        "description": "Successfully return list of projects within the organization with the given storeId",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/getAPIKeysResponse"
            }
          }
        }
      },
      "forbidden": {
        "description": "The user does not have the required roles to read this entity.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBase"
                }
              ],
              "example": {
                "status": 403,
                "title": "Forbidden",
                "detail": "The user does not have the required roles to read this entity."
              }
            }
          }
        }
      },
      "unprocessableEntityError": {
        "description": "Unprocessable Entity Error",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBase"
                }
              ],
              "example": {
                "status": 422,
                "name": "UnprocessableEntityError",
                "message": "Name has already been taken."
              }
            }
          }
        }
      },
      "unauthorized": {
        "description": "Authentication failed.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBase"
                }
              ],
              "example": {
                "status": 401,
                "title": "Unauthorized",
                "detail": "Authentication failed."
              }
            }
          }
        }
      },
      "organizationNotFound": {
        "description": "Organization not found.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBase"
                }
              ],
              "example": {
                "status": 404,
                "title": "Not found",
                "detail": "Organization not found."
              }
            }
          }
        }
      },
      "projectNotFound": {
        "description": "Project not found.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBase"
                }
              ]
            },
            "examples": {
              "Project Not Found": {
                "value": {
                  "status": 404,
                  "title": "Not found",
                  "detail": "Project not found."
                }
              },
              "Project not enabled for ads": {
                "value": {
                  "status": 404,
                  "title": "Project not enabled for Unity Ads.",
                  "detail": "Project not enabled for Unity Ads. Please visit https://dashboard.unity3d.com/organizations/3573426832576/projects/adeb6ff1-4d78-4e93-9621-221194deae83/monetization/overview/revenue"
                }
              }
            }
          }
        }
      },
      "placementNotFound": {
        "description": "Placement not found.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBase"
                }
              ]
            },
            "examples": {
              "Project not found": {
                "value": {
                  "status": 404,
                  "title": "Not found",
                  "detail": "Project not found."
                }
              },
              "Project not enabled for Unity Ads": {
                "value": {
                  "status": 404,
                  "title": "Project not enabled for Unity Ads.",
                  "detail": "Project not enabled for Unity Ads. Please visit https://dashboard.unity3d.com/organizations/3573426832576/projects/adeb6ff1-4d78-4e93-9621-221194deae83/monetization/overview/revenue"
                }
              },
              "Ad Unit not found": {
                "value": {
                  "status": 404,
                  "title": "Not found",
                  "detail": "No Ad Unit with that ID exists."
                }
              }
            }
          }
        }
      },
      "placementUpdateNotFound": {
        "description": "Placement not found.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBase"
                }
              ]
            },
            "examples": {
              "Project not found": {
                "value": {
                  "status": 404,
                  "title": "Not found",
                  "detail": "Project not found."
                }
              },
              "Project not enabled for Unity Ads": {
                "value": {
                  "status": 404,
                  "title": "Project not enabled for Unity Ads.",
                  "detail": "Project not enabled for Unity Ads. Please visit https://dashboard.unity3d.com/organizations/3573426832576/projects/adeb6ff1-4d78-4e93-9621-221194deae83/monetization/overview/revenue"
                }
              },
              "Ad Unit not found": {
                "value": {
                  "status": 404,
                  "title": "Not found",
                  "detail": "No Ad Unit with that ID exists."
                }
              },
              "Placement not found": {
                "value": {
                  "status": 404,
                  "title": "Not found",
                  "detail": "No Placement with that ID exists."
                }
              }
            }
          }
        }
      },
      "adUnitBadRequest": {
        "description": "Request validation error.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBaseWithErrors"
                }
              ]
            }
          }
        }
      },
      "apiKeyBadRequest": {
        "description": "Request validation error.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBaseWithErrors"
                }
              ]
            }
          }
        }
      },
      "placementBadRequest": {
        "description": "Request validation error.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBaseWithErrors"
                }
              ]
            },
            "examples": {
              "Request validation error (Combined)": {
                "value": {
                  "status": 400,
                  "title": "RequestValidationError",
                  "detail": "Request validation error - see errors below.",
                  "errors": [
                    {
                      "path": ".params.storeName",
                      "message": "Must be equal to one of the allowed values (\"google\" or \"apple\")."
                    },
                    {
                      "path": ".body[1].targets[2].countryCodes[1]",
                      "message": "Must be equal to one of the allowed values: AD, AE, AF, AG, AI, AL, AM, AO, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BM, BN, BO, BR, BS, BT, BV, BW, BY, BZ, CA, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW."
                    },
                    {
                      "path": ".body[1].name",
                      "message": "Must match pattern \"^[\\da-zA-Z_-\\s]+$\"."
                    }
                  ]
                }
              },
              "Request validation error (country code not in enum list)": {
                "value": {
                  "status": 400,
                  "title": "RequestValidationError",
                  "detail": "Request validation error - see errors below.",
                  "errors": [
                    {
                      "path": ".body[1].targets[2].countryCodes[0]",
                      "message": "Must be equal to one of the allowed values: AD, AE, AF, AG, AI, AL, AM, AO, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BM, BN, BO, BR, BS, BT, BV, BW, BY, BZ, CA, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW."
                    },
                    {
                      "path": ".body[1].targets[1].countryCodes[3]",
                      "message": "Must be equal to one of the allowed values: AD, AE, AF, AG, AI, AL, AM, AO, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BM, BN, BO, BR, BS, BT, BV, BW, BY, BZ, CA, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW."
                    }
                  ]
                }
              },
              "Request validation error (incorrect target value)": {
                "value": {
                  "status": 400,
                  "title": "RequestValidationError",
                  "detail": "Request validation error - see errors below.",
                  "errors": [
                    {
                      "path": ".body[1].targets[2].value",
                      "message": "should be >= 0.01"
                    }
                  ]
                }
              },
              "Request validation error (incorrect Placement name)": {
                "value": {
                  "status": 400,
                  "title": "RequestValidationError",
                  "detail": "Request validation error - see errors below.",
                  "errors": [
                    {
                      "path": ".body[1].name",
                      "message": "Must match pattern \"^[\\da-zA-Z_-\\s]+$\"."
                    },
                    {
                      "path": ".body[4].name",
                      "message": "Must match pattern \"^[\\da-zA-Z_-\\s]+$\"."
                    }
                  ]
                }
              },
              "Request validation error (incorrect parameters)": {
                "value": {
                  "status": 400,
                  "title": "RequestValidationError",
                  "detail": "Request validation error - see errors below.",
                  "errors": [
                    {
                      "path": ".params.storeName",
                      "message": "Must be equal to one of the allowed values (\"google\" or \"apple\")."
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "targetBadRequest": {
        "description": "Request validation error.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBaseWithErrors"
                }
              ]
            }
          }
        }
      },
      "placementConflict": {
        "description": "Placement conflict",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBaseWithErrors"
                }
              ]
            },
            "example": {
              "status": 409,
              "title": "Placement conflict",
              "detail": "Placement geo-target groups overlap.",
              "errors": [
                {
                  "path": "[.body.placement_id_1.targets[0], .body.placement_id_2.targets[0]]",
                  "message": "[ca, us] overlaps with [ca, mx]."
                }
              ]
            }
          }
        }
      },
      "placementArchiveBadRequest": {
        "description": "Request validation error",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/errorBaseWithErrors"
                }
              ]
            },
            "example": {
              "status": 400,
              "title": "RequestValidationError",
              "detail": "Request validation error - see errors below.",
              "errors": [
                {
                  "path": ".params.storeName",
                  "message": "Must be equal to one of the allowed values (\"google\" or \"apple\")."
                }
              ]
            }
          }
        }
      }
    },
    "schemas": {
      "organizationId": {
        "type": "string",
        "pattern": "^\\d+$",
        "example": 3573617062594
      },
      "projectId": {
        "oneOf": [
          {
            "type": "string",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426652340000"
          },
          {
            "type": "string",
            "pattern": "^\\d+$",
            "example": 123456789
          }
        ]
      },
      "projectName": {
        "type": "string",
        "example": "project_name"
      },
      "adsProvider": {
        "type": "string",
        "enum": [
          "iron_source",
          "mopub",
          "admob",
          "max",
          "unity",
          "self_mediated",
          "other",
          "unity_mediation"
        ],
        "example": "unity"
      },
      "coppa": {
        "type": "string",
        "enum": [
          "non_compliant",
          "compliant"
        ]
      },
      "appleStoreId": {
        "type": "string",
        "pattern": "^$|^\\d+$",
        "example": 1479198816
      },
      "appleStoreUrl": {
        "type": "string",
        "example": "https://apps.apple.com/ca/app/test-game/id20220524"
      },
      "googleStoreId": {
        "type": "string",
        "pattern": "^$|^[a-zA-Z]\\w*(\\.[a-zA-Z]\\w*)+$",
        "example": "com.unity.trashdash"
      },
      "googleStoreUrl": {
        "type": "string",
        "example": "https://play.google.com/store/apps/details?id=com.unity.testgame&gl=ca"
      },
      "storeName": {
        "type": "string",
        "enum": [
          "apple",
          "google"
        ],
        "example": "apple"
      },
      "adUnitId": {
        "type": "string",
        "pattern": "^[\\da-zA-Z_-]+$",
        "example": "ad_unit_id"
      },
      "createAdUnitName": {
        "type": "string",
        "pattern": "^[\\da-zA-Z_-\\s]+$",
        "example": "ad_unit_name"
      },
      "adUnitName": {
        "type": "string",
        "pattern": "^[^\\<]+$",
        "example": "ad_unit_name"
      },
      "adTypes": {
        "type": "object",
        "properties": {
          "display": {
            "type": "boolean",
            "default": false
          },
          "playable": {
            "type": "boolean",
            "default": true
          },
          "video": {
            "type": "boolean",
            "default": true
          }
        }
      },
      "bannerRefreshRate": {
        "type": "number",
        "minimum": 10,
        "maximum": 40
      },
      "archivedAt": {
        "type": "string"
      },
      "placementType": {
        "type": "string"
      },
      "gameId": {
        "type": "number",
        "example": 3835128
      },
      "placementId": {
        "type": "string",
        "example": "placement_id",
        "pattern": "^[\\da-zA-Z_-]+$"
      },
      "createPlacementName": {
        "type": "string",
        "pattern": "^[\\da-zA-Z_-\\s]+$",
        "example": "placement_name"
      },
      "placementName": {
        "type": "string",
        "pattern": "^[^\\<]+$",
        "example": "placement_name"
      },
      "adFormat": {
        "type": "string",
        "enum": [
          "rewarded",
          "interstitial",
          "banner"
        ],
        "example": "rewarded"
      },
      "targetId": {
        "oneOf": [
          {
            "type": "string",
            "format": "uuid"
          },
          {
            "type": "string",
            "enum": [
              "global"
            ]
          }
        ],
        "example": "123e4567-e89b-12d3-a456-426652340000"
      },
      "targetType": {
        "type": "string",
        "enum": [
          "standard",
          "global"
        ]
      },
      "targetValue": {
        "type": "number",
        "minimum": 0.01,
        "example": 18.5
      },
      "appleStore": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "storeId": {
            "$ref": "#/components/schemas/appleStoreId"
          },
          "gameId": {
            "$ref": "#/components/schemas/gameId"
          }
        },
        "required": [
          "gameId"
        ]
      },
      "googleStore": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "storeId": {
            "$ref": "#/components/schemas/googleStoreId"
          },
          "gameId": {
            "$ref": "#/components/schemas/gameId"
          }
        },
        "required": [
          "gameId"
        ]
      },
      "storeList": {
        "type": "object",
        "properties": {
          "apple": {
            "$ref": "#/components/schemas/appleStore"
          },
          "google": {
            "$ref": "#/components/schemas/googleStore"
          }
        }
      },
      "appleStoreDetail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "storeId": {
            "$ref": "#/components/schemas/appleStoreId"
          },
          "gameId": {
            "$ref": "#/components/schemas/gameId"
          },
          "adUnits": {
            "$ref": "#/components/schemas/adUnits"
          }
        },
        "required": [
          "gameId"
        ]
      },
      "googleStoreDetail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "storeId": {
            "$ref": "#/components/schemas/googleStoreId"
          },
          "gameId": {
            "$ref": "#/components/schemas/gameId"
          },
          "adUnits": {
            "$ref": "#/components/schemas/adUnits"
          }
        },
        "required": [
          "gameId"
        ]
      },
      "storeDetailList": {
        "type": "object",
        "properties": {
          "apple": {
            "$ref": "#/components/schemas/appleStoreDetail"
          },
          "google": {
            "$ref": "#/components/schemas/googleStoreDetail"
          }
        }
      },
      "googleCreateUpdateStore": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "storeId": {
            "$ref": "#/components/schemas/googleStoreId"
          },
          "storeUrl": {
            "$ref": "#/components/schemas/googleStoreUrl"
          }
        }
      },
      "appleCreateUpdateStore": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "storeId": {
            "$ref": "#/components/schemas/appleStoreId"
          },
          "storeUrl": {
            "$ref": "#/components/schemas/appleStoreUrl"
          }
        }
      },
      "createUpdateStoreList": {
        "type": "object",
        "properties": {
          "apple": {
            "$ref": "#/components/schemas/appleCreateUpdateStore"
          },
          "google": {
            "$ref": "#/components/schemas/googleCreateUpdateStore"
          }
        }
      },
      "maxCaps": {
        "type": "object",
        "properties": {
          "adUnit": {
            "type": "integer",
            "minimum": 1
          },
          "placement": {
            "type": "integer",
            "minimum": 1
          },
          "target": {
            "type": "integer",
            "minimum": 1
          }
        }
      },
      "adUnit": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/adUnitId"
          },
          "name": {
            "$ref": "#/components/schemas/adUnitName"
          },
          "adFormat": {
            "$ref": "#/components/schemas/adFormat"
          },
          "allowSkipInSeconds": {
            "type": "number"
          },
          "muteVideo": {
            "type": "boolean"
          },
          "adTypes": {
            "$ref": "#/components/schemas/adTypes"
          },
          "bannerRefreshRate": {
            "$ref": "#/components/schemas/bannerRefreshRate"
          },
          "archivedAt": {
            "$ref": "#/components/schemas/archivedAt"
          },
          "placements": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/placement"
            }
          }
        },
        "required": [
          "id",
          "name",
          "adFormat"
        ],
        "example": {
          "id": "ad_unit_id_1",
          "name": "ad_unit_name_1",
          "allowSkipInSeconds": 5,
          "muteVideo": false,
          "adTypes": {
            "display": true,
            "playable": true,
            "video": true
          },
          "bannerRefreshRate": 30,
          "adFormat": "rewarded",
          "placements": {
            "placement_id_1": {
              "id": "placement_id_1",
              "name": "placement_name_1",
              "targets": {
                "123e4567-e89b-12d3-a456-426652340000": {
                  "value": 18.5,
                  "countryCodes": [
                    "US",
                    "CA"
                  ],
                  "type": "standard"
                },
                "global": {
                  "value": 18.5,
                  "type": "global"
                }
              }
            },
            "placement_id_2": {
              "id": "placement_id_2",
              "name": "placement_name_2",
              "targets": {
                "123e4567-e89b-12d3-a456-426652340000": {
                  "value": 18.5,
                  "countryCodes": [
                    "US",
                    "CA"
                  ],
                  "type": "standard"
                },
                "global": {
                  "value": 18.5,
                  "type": "global"
                }
              }
            }
          }
        }
      },
      "adUnits": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/adUnit"
        },
        "example": {
          "ad_unit_id_1": {
            "id": "ad_unit_id_1",
            "name": "ad_unit_name_1",
            "allowSkipInSeconds": 5,
            "muteVideo": false,
            "adTypes": {
              "display": true,
              "playable": true,
              "video": true
            },
            "bannerRefreshRate": 30,
            "adFormat": "rewarded",
            "placements": {
              "placement_id_1": {
                "id": "placement_id_1",
                "name": "placement_name_1",
                "targets": {
                  "123e4567-e89b-12d3-a456-426652340000": {
                    "value": 18.5,
                    "countryCodes": [
                      "US",
                      "CA"
                    ],
                    "type": "standard"
                  },
                  "global": {
                    "value": 18.5,
                    "type": "global"
                  }
                }
              },
              "placement_id_2": {
                "id": "placement_id_2",
                "name": "placement_name_2",
                "targets": {
                  "123e4567-e89b-12d3-a456-426652340000": {
                    "value": 18.5,
                    "countryCodes": [
                      "US",
                      "CA"
                    ],
                    "type": "standard"
                  },
                  "global": {
                    "value": 18.5,
                    "type": "global"
                  }
                }
              }
            }
          },
          "ad_unit_id_2": {
            "id": "ad_unit_id_2",
            "name": "ad_unit_name_2",
            "allowSkipInSeconds": 5,
            "muteVideo": false,
            "adTypes": {
              "display": true,
              "playable": true,
              "video": true
            },
            "bannerRefreshRate": 30,
            "adFormat": "rewarded",
            "placements": {
              "placement_id_1": {
                "id": "placement_id_1",
                "name": "placement_name_1",
                "targets": {
                  "123e4567-e89b-12d3-a456-426652340000": {
                    "value": 18.5,
                    "countryCodes": [
                      "US",
                      "CA"
                    ],
                    "type": "standard"
                  },
                  "global": {
                    "value": 18.5,
                    "type": "global"
                  }
                }
              },
              "placement_id_2": {
                "id": "placement_id_2",
                "name": "placement_name_2",
                "targets": {
                  "123e4567-e89b-12d3-a456-426652340000": {
                    "value": 18.5,
                    "countryCodes": [
                      "US",
                      "CA"
                    ],
                    "type": "standard"
                  },
                  "global": {
                    "value": 18.5,
                    "type": "global"
                  }
                }
              }
            }
          }
        }
      },
      "project": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "$ref": "#/components/schemas/projectId"
          },
          "name": {
            "$ref": "#/components/schemas/projectName"
          },
          "coppa": {
            "$ref": "#/components/schemas/coppa"
          },
          "adsProvider": {
            "$ref": "#/components/schemas/adsProvider"
          },
          "stores": {
            "$ref": "#/components/schemas/storeList"
          }
        },
        "required": [
          "id",
          "name",
          "stores"
        ]
      },
      "projectDetail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "$ref": "#/components/schemas/projectId"
          },
          "name": {
            "$ref": "#/components/schemas/projectName"
          },
          "coppa": {
            "$ref": "#/components/schemas/coppa"
          },
          "adsProvider": {
            "$ref": "#/components/schemas/adsProvider"
          },
          "archivedAt": {
            "$ref": "#/components/schemas/archivedAt"
          },
          "stores": {
            "$ref": "#/components/schemas/storeDetailList"
          },
          "maxCaps": {
            "$ref": "#/components/schemas/maxCaps"
          }
        },
        "required": [
          "id",
          "name",
          "stores"
        ]
      },
      "countries": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/country"
        },
        "minItems": 1,
        "example": [
          "US",
          "CA"
        ]
      },
      "target": {
        "type": "object",
        "nullable": true,
        "properties": {
          "value": {
            "$ref": "#/components/schemas/targetValue"
          },
          "countryCodes": {
            "$ref": "#/components/schemas/countries"
          },
          "type": {
            "$ref": "#/components/schemas/targetType"
          }
        }
      },
      "addTargets": {
        "type": "array",
        "items": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "value": {
                  "$ref": "#/components/schemas/targetValue"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "global"
                  ]
                }
              },
              "required": [
                "value",
                "type"
              ]
            },
            {
              "type": "object",
              "properties": {
                "value": {
                  "$ref": "#/components/schemas/targetValue"
                },
                "countryCodes": {
                  "$ref": "#/components/schemas/countries"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "standard"
                  ]
                }
              },
              "required": [
                "value",
                "type",
                "countryCodes"
              ]
            }
          ]
        },
        "example": [
          {
            "value": 18.5,
            "type": "global"
          },
          {
            "value": 20,
            "countryCodes": [
              "US",
              "CA"
            ],
            "type": "standard"
          }
        ]
      },
      "targets": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/target"
        },
        "example": {
          "123e4567-e89b-12d3-a456-426652340000": {
            "value": 18.5,
            "countryCodes": [
              "US",
              "CA"
            ],
            "type": "standard"
          },
          "global": {
            "value": 18.5,
            "type": "global"
          },
          "123e4567-e89b-12d3-a456-426652340001": null
        }
      },
      "addPlacements": {
        "type": "array",
        "items": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "name": {
              "$ref": "#/components/schemas/createPlacementName"
            },
            "id": {
              "$ref": "#/components/schemas/placementId"
            },
            "addTargets": {
              "$ref": "#/components/schemas/addTargets"
            },
            "placementType": {
              "$ref": "#/components/schemas/placementType"
            }
          },
          "required": [
            "name"
          ]
        }
      },
      "placement": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "$ref": "#/components/schemas/placementId"
          },
          "name": {
            "$ref": "#/components/schemas/placementName"
          },
          "archivedAt": {
            "$ref": "#/components/schemas/archivedAt"
          },
          "placementType": {
            "$ref": "#/components/schemas/placementType"
          },
          "targets": {
            "$ref": "#/components/schemas/targets"
          }
        }
      },
      "placements": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/placement"
        },
        "example": {
          "placement_id_1": {
            "id": "placement_id_1",
            "name": "placement_name_1",
            "targets": {
              "123e4567-e89b-12d3-a456-426652340000": {
                "value": 18.5,
                "countryCodes": [
                  "US",
                  "CA"
                ],
                "type": "standard"
              },
              "global": {
                "value": 18.5,
                "type": "global"
              }
            }
          },
          "placement_id_2": {
            "id": "placement_id_2",
            "name": "placement_name_2",
            "targets": {
              "123e4567-e89b-12d3-a456-426652340000": {
                "value": 18.5,
                "countryCodes": [
                  "US",
                  "CA"
                ],
                "type": "standard"
              },
              "global": {
                "value": 18.5,
                "type": "global"
              }
            }
          }
        }
      },
      "patchAdUnitObject": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "$ref": "#/components/schemas/adUnitName"
          },
          "adFormat": {
            "$ref": "#/components/schemas/adFormat"
          },
          "allowSkipInSeconds": {
            "type": "number"
          },
          "muteVideo": {
            "type": "boolean"
          },
          "adTypes": {
            "$ref": "#/components/schemas/adTypes"
          },
          "bannerRefreshRate": {
            "$ref": "#/components/schemas/bannerRefreshRate"
          },
          "archive": {
            "type": "boolean"
          },
          "placements": {
            "$ref": "#/components/schemas/patchPlacementsObject"
          },
          "addPlacements": {
            "$ref": "#/components/schemas/addPlacements"
          }
        }
      },
      "patchPlacementObject": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "$ref": "#/components/schemas/placementName"
          },
          "targets": {
            "$ref": "#/components/schemas/targets"
          },
          "addTargets": {
            "$ref": "#/components/schemas/addTargets"
          },
          "archive": {
            "type": "boolean"
          }
        }
      },
      "patchPlacementsObject": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/patchPlacementObject"
        },
        "example": {
          "placement_01": {
            "name": "placement_name",
            "addTargets": [
              {
                "value": 12,
                "countryCodes": [
                  "FI"
                ],
                "type": "standard"
              }
            ],
            "targets": {
              "123e4567-e89b-12d3-a456-426652340000": {
                "value": 18.5,
                "countryCodes": [
                  "US",
                  "CA"
                ],
                "type": "standard"
              },
              "global": {
                "value": 18.5
              },
              "3fa85f64-5717-4562-b3fc-2c963f66afa6": null
            }
          },
          "placement_02": {
            "archive": false,
            "addTargets": [
              {
                "value": 10.5,
                "type": "global"
              },
              {
                "value": 12,
                "countryCodes": [
                  "US",
                  "CA"
                ],
                "type": "standard"
              }
            ]
          },
          "placement_03": {
            "archive": true
          }
        }
      },
      "errorBase": {
        "description": "The user does not have the required roles to read this entity.",
        "type": "object",
        "properties": {
          "status": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "title",
          "detail"
        ]
      },
      "errorBaseWithErrors": {
        "allOf": [
          {
            "$ref": "#/components/schemas/errorBase"
          },
          {
            "type": "object",
            "properties": {
              "errors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "path": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "country": {
        "type": "string",
        "description": "Two-letter country code in ISO 3166-1 alpha-2 format.",
        "example": "US",
        "enum": [
          "AD",
          "AE",
          "AF",
          "AG",
          "AI",
          "AL",
          "AM",
          "AO",
          "AQ",
          "AR",
          "AS",
          "AT",
          "AU",
          "AW",
          "AX",
          "AZ",
          "BA",
          "BB",
          "BD",
          "BE",
          "BF",
          "BG",
          "BH",
          "BI",
          "BJ",
          "BL",
          "BM",
          "BN",
          "BO",
          "BQ",
          "BR",
          "BS",
          "BT",
          "BV",
          "BW",
          "BY",
          "BZ",
          "CA",
          "CC",
          "CD",
          "CF",
          "CG",
          "CH",
          "CI",
          "CK",
          "CL",
          "CM",
          "CN",
          "CO",
          "CR",
          "CU",
          "CV",
          "CW",
          "CX",
          "CY",
          "CZ",
          "DE",
          "DJ",
          "DK",
          "DM",
          "DO",
          "DZ",
          "EC",
          "EE",
          "EG",
          "EH",
          "ER",
          "ES",
          "ET",
          "FI",
          "FJ",
          "FK",
          "FM",
          "FO",
          "FR",
          "GA",
          "GB",
          "GD",
          "GE",
          "GF",
          "GG",
          "GH",
          "GI",
          "GL",
          "GM",
          "GN",
          "GP",
          "GQ",
          "GR",
          "GS",
          "GT",
          "GU",
          "GW",
          "GY",
          "HK",
          "HM",
          "HN",
          "HR",
          "HT",
          "HU",
          "ID",
          "IE",
          "IL",
          "IM",
          "IN",
          "IO",
          "IQ",
          "IR",
          "IS",
          "IT",
          "JE",
          "JM",
          "JO",
          "JP",
          "KE",
          "KG",
          "KH",
          "KI",
          "KM",
          "KN",
          "KP",
          "KR",
          "KW",
          "KY",
          "KZ",
          "LA",
          "LB",
          "LC",
          "LI",
          "LK",
          "LR",
          "LS",
          "LT",
          "LU",
          "LV",
          "LY",
          "MA",
          "MC",
          "MD",
          "ME",
          "MF",
          "MG",
          "MH",
          "MK",
          "ML",
          "MM",
          "MN",
          "MO",
          "MP",
          "MQ",
          "MR",
          "MS",
          "MT",
          "MU",
          "MV",
          "MW",
          "MX",
          "MY",
          "MZ",
          "NA",
          "NC",
          "NE",
          "NF",
          "NG",
          "NI",
          "NL",
          "NO",
          "NP",
          "NR",
          "NU",
          "NZ",
          "OM",
          "PA",
          "PE",
          "PF",
          "PG",
          "PH",
          "PK",
          "PL",
          "PM",
          "PN",
          "PR",
          "PS",
          "PT",
          "PW",
          "PY",
          "QA",
          "RE",
          "RO",
          "RS",
          "RU",
          "RW",
          "SA",
          "SB",
          "SC",
          "SD",
          "SE",
          "SG",
          "SH",
          "SI",
          "SJ",
          "SK",
          "SL",
          "SM",
          "SN",
          "SO",
          "SR",
          "SS",
          "ST",
          "SV",
          "SX",
          "SY",
          "SZ",
          "TC",
          "TD",
          "TF",
          "TG",
          "TH",
          "TJ",
          "TK",
          "TL",
          "TM",
          "TN",
          "TO",
          "TR",
          "TT",
          "TV",
          "TW",
          "TZ",
          "UA",
          "UG",
          "UM",
          "US",
          "UY",
          "UZ",
          "VA",
          "VC",
          "VE",
          "VG",
          "VI",
          "VN",
          "VU",
          "WF",
          "WS",
          "XK",
          "YE",
          "YT",
          "ZA",
          "ZM",
          "ZW"
        ]
      },
      "getAPIKeysResponse": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "projectId": {
              "type": "string",
              "example": "123e4567-e89b-12d3-a456-426652340000"
            },
            "apiKey": {
              "type": "string",
              "example": "123e4567-e89b-12d3-a456-426652340000"
            },
            "storeId": {
              "type": "string",
              "example": "com.fakegame.android"
            },
            "gameId": {
              "type": "number",
              "example": 1234567
            },
            "projectName": {
              "type": "string",
              "example": "Fake Game"
            }
          }
        }
      },
      "acquireOptimizationAPIKeyRequest": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "example": "123e4567-e89b-12d3-a456-426652340000"
          },
          "storeId": {
            "type": "string",
            "example": "com.fakegame.android"
          }
        },
        "required": [
          "apiKey",
          "storeId"
        ]
      }
    }
  }
}
```