> For the complete documentation index, see [llms.txt](https://help.citrusad.com/retail-media-interface/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.citrusad.com/retail-media-interface/integration/sv/data-api/api-overview/reporting-impressions-clicks.md).

# Rapportering av exponeringar och klick

För att effektivt rapportera exponeringar och klick, använd `/resource/` slutpunkt. Exponeringar ska dirigeras till `first-i` resursen, medan klick ska rapporteras till `second-c` resursen.

## Förutsättning

Hämta din bas-URL från din Technical Account Manager innan du rapporterar exponeringar och klick.

## Integrera slutpunktsanrop

Slutpunktsanrop måste utföras i din app eller på din webbplats. I Epsilon Retail Mediaär integrationsprocessen liknande för både mobilappar och webbplatser på grund av dess 'backend till backend'-integrationsmetod. Denna metod säkerställer att annonsbegäranden är konsekventa över både dator- och mobilplattformar. Men eftersom mobilappar inte stöder JS-bibliotek måste du göra backend-begäranden till våra klick- och exponeringsslutpunkter.

## Rapportera exponeringar

För att rapportera en exponering, skicka en GET-begäran i följande format:

```
https://$BASE_URL.citrusad.com/v1/resource/first-i/AD_ID
```

Ersätt `AD_ID` med `adId` som tillhandahålls för annonsen du rapporterar.

Till exempel rapporterar följande GET-begäran en exponering för `adId`, `display_xw3ybbrymHT_D3VwU3Ic5ThUkbhFNkY4NVNIODU4NEVGRkdT`.

```
https://$BASE_URL.citrusad.com/v1/resource/first-i/display_xw3ybbrymHT_D3VwU3Ic5ThUkbhFNkY4NVNIODU4NEVGRkdT
```

## Rapportera klick

För att rapportera ett klick, skicka en GET-begäran i formatet nedan:

```
https://$BASE_URL.citrusad.com/v1/resource/second-c/AD_ID
```

Ersätt `AD_ID` med `adId` som tillhandahålls för annonsen du rapporterar.

Till exempel rapporterar följande GET-begäran en exponering för `adId`, `display_xw3ybbrymHT_D3VwU3Ic5ThUkbhFNkY4NVNIODU4NEVGRkdT`.

```
https://$BASE_URL.citrusad.com/v1/resource/second-c/display_xw3ybbrymHT_D3VwU3Ic5ThUkbhFNkY4NVNIODU4NEVGRkdT
```

## API-validering för realiserade annons-ID:n

API:et inkluderar validering för annons-ID:n för att säkerställa korrekta data och minska fel. Begäranden med felaktigt kodade eller prefixförsedda annons-ID:n returnerar ett 400-fel och ett detaljerat felmeddelande.

### Viktiga fördelar

* Snabbare problemlösning: Snabb feedback hjälper återförsäljare att lösa problem snabbare.
* Bättre noggrannhet: Färre fel innebär mer exakta rapporter och data.

### Exempel på felmeddelande

"Ogiltigt annons-ID. Måste vara korrekt kodat och ha prefixet 'display\_', 'banner\_', eller 'shotgun\_'."


---

# 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.citrusad.com/retail-media-interface/integration/sv/data-api/api-overview/reporting-impressions-clicks.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.
