---
agentTools:
  projectIndex: https://developers.appnext.com/llms.txt
---

# Server Side & Client Side

> 📘 Important Notes:
>
> 1. The Appnext platform can receive clicks and impressions sent from the server-side.\
>    In return, the publisher will need to open the market URL as it will be provided by Appnext in the API JSON response.
> 2. The publisher will need to add the user's device IP, GAID and user-agent (client)

## Sending Impressions and Clicks from Server Side

1. Add **s2s=1** to the API call

```http API Call
http://globalcdnapi.appnext.com/offerWallApi.aspx?pimp=1&tid=API&did=aaaa-bbbbb-ccccc&id=yyyyy-xxxxx-zzzzz&ip=103.216.82.30&cnt=20&s2s=1
```

2. In return, you will receive back a JSON response includes -

* urlApp with s2s=1 parameter
* New field in the response - **market\_url** link

**urlApp with s2s=1 paramter**

```http urlApp
http://admin.appnext.com/appLink.aspx?b=642795&e=1030578&d=aaaa-bbbbb-ccccc&id=yyyyy-xxxxx-zzzzztid=2000&q=&osid=100&auid=500&fi=nd&pml=&s2s=1&clickId=B79L1CUPWA334U9F&sid=35ea77ef7b8841d18deee2ef32265dfb&ip=103.216.82.30
```

**API response with Market URL**

![](https://files.readme.io/322c80b-marketurl.PNG "marketurl.PNG")

3. Once the user is clicking on an advertisement, 2 operations should happen -

* The click will be sent to Appenxt servers (**urlAppp**)
* The publisher will open the market URL (**market\_url**)

4. The outcome will be a much simpler user experience for the user and no browser OR redirection should be involved in the process.

## Sending Impressions and Clicks from Client Side

> 📘 Important Notes
>
> 1. Client-side integration provides the publisher with 2 options:\
>    a) Open the market without any redirection and without browser opening (**recommended**)\
>    b) Redirect the user to the store through the browser

## Open the market without re-directions (recommended):

1. Add **s2s=1** to the API call and

```http API Call
http://globalcdnapi.appnext.com/offerWallApi.aspx?pimp=1&tid=API&did=aaaa-bbbbb-ccccc&id=yyyyy-xxxxx-zzzzz&ip=103.216.82.30&cnt=20&s2s=1
```

2. In return, you will receive back a JSON response includes -

* urlApp with s2s=1 parameter
* New field in the response - **market\_url** link

**urlApp with s2s=1 paramter**

```http urlApp
http://admin.appnext.com/appLink.aspx?b=642795&e=1030578&d=aaaa-bbbbb-ccccc&id=yyyyy-xxxxx-zzzzztid=2000&q=&osid=100&auid=500&fi=nd&pml=&s2s=1&clickId=B79L1CUPWA334U9F&sid=35ea77ef7b8841d18deee2ef32265dfb&ip=103.216.82.30
```

**API response with Market URL**

![](https://files.readme.io/cc95e39-marketurl.PNG "marketurl.PNG")

## Open the market with re-directions:

Send the urlApp without s2s=1 through the browser and we will redirect the user to the application details page in the store.