> For the complete documentation index, see [llms.txt](https://help.adgebra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.adgebra.co/getting-started/publish-your-docs-11/account-report-api.md).

# Account Report API

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;

{% stepper %}
{% step %}
**Request Format**

{% code overflow="wrap" %}

```
https://login.adgebra.in/AdgebraUI/GetASSReportWS_v4.do?p1=[AccountID]&p2=[AdvertiserId]&p3=[Start-Date]&p4=[End-Date]&p5=[Uniwque-Pin]&p6=[Currency]
```

{% endcode %}

**`Request Parameters`**

<pre data-overflow="wrap"><code>p1=Account Id of which the reports need to be fetched ex:'432'.
<strong>
</strong><strong>p2=Advertiser ID of which reports need to be fetched. By default, it will be 'All' and will fetch all advertiser reports associated with the account ID. Here you can also fetch by only a particular advertiser just by entering the advertiser id ex:'4122'.
</strong>
p3: This Parameter is the start date of the report that needs to be fetched. The Date format for this field is "DD-MMM-YYYY" Ex: 01-Nov-2023

p4: This Parameter is the end date of the report that needs to be fetched. The Date format for this field is "DD-MMM-YYYY" Ex: 02-Nov-2023

p5: This Parameter is the unique pin associated with the account. Here you need to contact your account manager to get the unique pin. Ex : z8Sgxc82Mnxrb9me

p6: This parameter is the currency format that you wish to fetch in the report. The default is 'inr'. You can change it to 'usd'.
</code></pre>

1.

**Request Example:**

{% code overflow="wrap" %}

```
https://login.adgebra.in/AdgebraUI/GetASSReportWS_v4.do?p1=498&p2=all&p3=01-nov-2023&p4=02-nov-2023&p5=z8Sgxc82Mnxrb9me&p6=inr
```

{% endcode %}

{% endstep %}

{% step %}
**Response Format**

```
[
{
  "Advertiser Name": [
    {
      "CTR": "[Count]",
      "impression": "[Count]",
      "clicks": "[Count]",
      "conv": "[Count]",
      "expense": "[Count]"
    }
  ],
  
Response Example:
{
  "Golfland Vanaha": [
    {
      "CTR": "0.11",
      "impression": "1574228",
      "clicks": "1704",
      "conv": "5",
      "expense": "5599.27"
    }
  ],
  "HOH Thane": [
    {
      "CTR": "0.17",
      "impression": "2355951",
      "clicks": "4089",
      "conv": "6",
      "expense": "12110.50"
    }
  ],
  "Tyrrop_kine": [
    {
      "CTR": "0.54",
      "impression": "1462774",
      "clicks": "7870",
      "conv": "0",
      "expense": "26326.70"
    }
  ]
}
```

{% endstep %}
{% endstepper %}

#### Note:

* At any point in time, if the response is blank or invalid, then it should be handled at the client's end. At times when planned/unplanned adgebra maintenance activity may be scheduled.
* 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.adgebra.co/getting-started/publish-your-docs-11/account-report-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
