

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Mediation",
    "version": "1.0",
    "description": "This API will be no longer supported on 11/1/2023,\nyou can find our alternative Levelplay Impression level report API [here](https://developers.is.com/ironsource-mobile/air/ad-revenue-measurements/). To use\nthis new API you must migrate your app to our Levelplay Mediation product, here is a [guide on how to do so](https://developers.is.com/ironsource-mobile/unity/unity-migration-sdk/#step-1).\nThis is the API specification for the reporting API that allows publishers that use Mediation to get stats\nabout the performance of their games."
  },
  "servers": [
    {
      "url": "https://services.api.unity.com"
    }
  ],
  "paths": {
    "/monetize/mediation/v1/impression-report/organizations/{organization_id}/apps/{app_id}": {
      "get": {
        "deprecated": true,
        "operationId": "get-impression-report",
        "security": [
          {
            "ServiceAccount": [
              "mediation.reporting.get"
            ]
          }
        ],
        "summary": "Generate impression level report",
        "description": "Use this endpoint to access impression statistics based on the performance of one of your\ngames. Download a csv file to view data for a specific platform that the game is on \n(iOS or Android), per app, per day. Where an app is a particular platform version of a game.\n\n### Rate Limits\n\nThe API has rate limiting in place. Requests are limited to 1 request per second per app and 50 requests per 30 minutes per app.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the organization.",
            "example": "1374446889638"
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The game id (id of the particular platform version of the game)",
            "example": "4794792"
          },
          {
            "in": "query",
            "name": "date",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Date in ISO-8601 format.\n\nThe following data availability range limits apply :\n  - No more than 180 days prior to the current date\n  - Prior or equal to 2 days before the current date. Data reporting for a specified date is available two days later at UTC 00:00:00 (Coordinated Universal Time) \n\nReport data can be updated up to 31 days after the event date to account for retroactive ad network data updates.\n"
            }
          },
          {
            "in": "query",
            "name": "file_format",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "csv"
              ],
              "description": "The format of the report"
            }
          },
          {
            "in": "query",
            "name": "return_fields",
            "required": false,
            "schema": {
              "type": "string",
              "description": "List of dimensions and metrics to be included in the report. If no dimensions or metrics are specified then default ones are used.\n\n| Name                          | Default |\n|-------------------------------|---------|\n| Dimensions                              |\n| app_id                        |    ✅   |\n| app_name                      |         |\n| platform                      |         |\n| os_version                    |         |\n| mediation_network             |         |\n| mediation_group_id            |         |\n| mediation_group_name          |         |\n| mediation_group_ab_variant    |         |\n| line_item_id                  |    ✅   |\n| line_item_name                |         |\n| ad_source_instance_id         |    ✅   |\n| ad_source_name                |         |\n| ad_unit_id                    |    ✅   |\n| ad_unit_name                  |    ✅   |\n| ad_unit_format                |         |\n| impression_id                 |    ✅   |\n| country_code                  |         |\n| revenue_precision             |    ✅   |\n| revenue_currency              |         |\n| timestamp                     |    ✅   |\n| Metrics                                 |\n| impression_clicked            |         |\n| impression_revenue            |    ✅   |\n"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Report generated successfully.  The response of the API will be a url to a csv file in a GCS bucket. \nAccess to this url is unauthenticated and expires after 10 minutes."
          },
          "400": {
            "description": "The request contains invalid parameters."
          },
          "500": {
            "description": "The report was not able to be generated due to some internal error."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ServiceAccount": {
        "type": "http",
        "scheme": "basic",
        "description": "## Authentication\nTo get started with Authentication, please visit the [Service Account Authentication section](https://services.docs.unity.com/docs/service-account-auth).\n\nFor this API, you will need to add the following role(s) to your service account : \n| Role Type | Role Name | Permissions |\n| --- | --- | --- |\n| Organization Level Role | Mediation Reporting API Viewer | <ul><li> mediation.reporting.get</li></ul> |"
      }
    }
  }
}
```