# Partner API Report

### Adgebra Partner Report Api Integration Guidelines

The Adgebra Report API integration guidelines will be able to fetch numbers from adgebra reports in real-time by sending the required parameters in an API call. In response, adgebra will send data as per the below-mentioned format.

### API Format&#x20;

1. ### Request Format:

{% code overflow="wrap" %}

```html
https://adgebra.co.in/pssreport/GetPSSReportWS?p1=[PartnerID]&p2=[Date]&p3=[SiteName]&p4=[Uniwque-Pin]&p7=[Geo]&p8=[Currency]
```

{% endcode %}

**Request Parameters :**

{% code overflow="wrap" %}

```json
p1: This parameter is the Partner ID of which the reports need to be fetched ex:'432'.Here you will need to enter your unique partner id.
p2: This Parameter is the date of the report that needs to be fetched. The Date format for this field is "DD-MMM-YYYY" Ex: 01-Nov-2023
p3: This parameter represents the site name. The default is 'all'. If you need data on any particular site you can enter the site name in the p3 parameter.
p4: This Parameter is the unique pin associated with the partner. Here you need to contact your partner manager to get the unique pin. Ex : z8Sgxc82Mnxrb9me
p7: This Parameter is the Geo field. The default is 'All'. Hence your report will be shown for all geos. Removing this parameter will run the reports by site instead of geo.
p8: This parameter is the currency format that you wish to fetch in the report. The default is 'USD'. You cannot change it to any other currency at this time.
```

{% endcode %}

**Request Example:**

{% code overflow="wrap" %}

```html
https://adgebra.co.in/pssreport/GetPSSReportWS?p1=490&p2=02-Nov-2023&p3=all&p4=z8Sgxc82Mnxrb9r3&p7=all&p8=usd
```

{% endcode %}

2. ### Response Format:

{% code overflow="wrap" %}

```json
{
  "Site_Device": [
    {
      "Geo": "[Country]",
      "CTR": "[Count]",
      "Rev": "[Count]",
      "Impression": "[Count]",
      "Clicks": "[Count]"
    }
  ],
```

{% endcode %}

**Response Example:**

{% code overflow="wrap" %}

```json
{
  prfd-sarkaryojana.in_Mobile": [
    {
      "Geo": "Bahrain",
      "CTR": "0.00",
      "Rev": "0.00",
      "Impression": "9",
      "Clicks": "0"
    },
    {
      "Geo": "India",
      "CTR": "0.21",
      "Rev": "2.65",
      "Impression": "176608",
      "Clicks": "364"
    },
    {
      "Geo": "Kuwait",
      "CTR": "0.00",
      "Rev": "0.00",
      "Impression": "109",
      "Clicks": "0"
    },
    {
      "Geo": "Oman",
      "CTR": "0.00",
      "Rev": "0.00",
      "Impression": "19",
      "Clicks": "0"
    },
    {
      "Geo": "United Arab Emirates",
      "CTR": "0.00",
      "Rev": "0.00",
      "Impression": "142",
      "Clicks": "0"
    },
    {
      "Geo": "Qatar",
      "CTR": "0.00",
      "Rev": "0.00",
      "Impression": "44",
      "Clicks": "0"
    }
  ],
  "prfd-biharhelp.in_Mobile": [
    {
      "Geo": "Pakistan",
      "CTR": "0.00",
      "Rev": "0.00",
      "Impression": "1",
      "Clicks": "0"
    },
    {
      "Geo": "India",
      "CTR": "0.13",
      "Rev": "4.91",
      "Impression": "496712",
      "Clicks": "643"
    },
}
```

{% endcode %}

#### Note:

1. At any point in time, if the response is blank or invalid, then it should be handled at the client's end.
2. At times when planned/unplanned adgebra maintenance activity may be scheduled.
3. If any reponse is blank, please check the values entered in the parameters. The response will also be blank in case there is no data.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.adgebra.co/getting-started/publish-your-docs-6/partner-api-report.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
