> For the complete documentation index, see [llms.txt](https://docs.exoclick.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exoclick.com/rtb/it/editori/open-rtb/open-rtb-publisher-code-examples.md).

# Esempi Open RTB 2.4

## Richiesta publisher Open RTB

### Banner

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "at": 1,
  "imp": [
    {
      "id": "974090632",
      "banner": {
        "w": 300,
        "h": 250,
        "mimes": [
          "image/jpg",
          "image/png",
          "video/mp4",
          "image/webp"
        ],
        "ext": {
          "image_output": "xml",
          "video_output": "xml"
        }
      }
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
        "ext": {
            "exchangecat": 508,
            "idzone": 445566
        }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "IRL"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "",
      "accept_language": "en-GB;q=0.8,pt-PT;q=0.6,en;q=0.4,en-US;q=0.2,de;q=0.2,es;q=0.2,fr;q=0.2"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

### Link diretti

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "imp": [
    {
      "id": "974090632",
      "instl": 0,
      "el": "dGVzdGVAZW1haWwuY29t"
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
    "ext": {
      "exchangecat": 508,
      "idzone": 445566
    }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "PRT"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "192.0.2.1"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

### Click email

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "imp": [
    {
      "id": "974090632",
      "instl": 0,
      "el": "dGVzdGVAZW1haWwuY29t"
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
    "ext": {
      "exchangecat": 508,
      "idzone": 445566
    }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "PRT"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "192.0.2.1"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

### Video in-stream, video outstream, slider video

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "imp": [
    {
      "id": "974090632",
      "video": {
        "skip": 1,
        "skipafter": 5,
        "skipmin": 25,
        "mimes": ["video/mp4"],
        "protocols": [
          3,
          6
        ]
      },
      "ext": {
        "video_cta": 0
      }
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
    "ext": {
      "exchangecat": 508,
      "idzone": 445566
    }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "PRT"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "192.0.2.1"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

### Native

```json
{
  "id": "7a452540-c8c9-43ca-9d30-ab9d8bfd17a4",
  "at": 1,
  "imp": [
    {
      "id": "2d099176-9feb-44e9-85f9-f385b34123a1",
      "native": {
        "request": "{\"native\":{\"ver\":\"1.2\"\n,\"context\":1\n,\"contextsubtype\":10\n,\"plcmttype\":4\n,\"plcmtcnt\":3\n,\"assets\":[{\"id\":1,\"required\":1,\"title\":{\"len\":124}},{\"id\":2,\"data\":{\"type\":1,\"len\":50}},{\"id\":3,\"required\":1,\"img\":{\"type\":3,\"wmin\":150,\"hmin\":150}}]\n}}",
        "ver": "1.2"
      },
      "tagid": "2812",
      "bidfloor": 0.035,
      "secure": 1
    }
  ],
  "site": {
    "id": "2812",
    "domain": "example.com",
    "name": "dominio del sito",
    "keywords": "stile di vita, umorismo",
    "page": "https://example.com/",
    "mobile": 1,
    "ext": {
        "exchangecat": 508,
        "idzone": 445566
    }
  },
  "device": {
    "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15G77 Version/11.4.1 Safari/604.1 AlohaBrowser/2.10.0b17",
    "ip": "88.208.2.198",
    "js": 1,
    "language": "en"
  },
  "user": {
    "id": "37d1951a-7184-4b7f-b227-5571a1ea7467"
  }
}
```

### Popunder

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "at": 1,
  "imp": [
    {
      "id": "974090632",
      "instl": 1
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
        "ext": {
            "exchangecat": 508,
            "idzone": 445566
        }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "IRL"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "192.0.2.1"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

### Notifiche push - 720 x 480

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "imp": [
    {
      "id": "90180978",
      "native": {
        "request": "{\"native\":{\"ver\":\"1.2\",\"plcmttype\":500,\"plcmtcnt\":1,\"assets\":[{\"id\":1,\"required\":1,\"img\":{\"type\":1,\"w\":720,\"h\":480,\"wmin\":720,\"hmin\":480}},{\"id\":2,\"required\":1,\"title\":{\"len\":60}},{\"id\":3,\"required\":1,\"data\":{\"type\":2,\"len\":110}}]}}",
        "ver": "1.2"
      }
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
    "ext": {
        "exchangecat": 508,
        "idzone": 445566
    }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "IRL"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "",
      "accept_language": "en-GB;q=0.8,pt-PT;q=0.6,en;q=0.4,en-US;q=0.2,de;q=0.2,es;q=0.2,fr;q=0.2"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

### Notifiche push - 192 x 192

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "at": 1,
  "imp": [
    {
      "id": "90180978",
      "native": {
        "request": "{\"native\":{\"ver\":\"1.2\",\"plcmttype\":500,\"plcmtcnt\":1,\"assets\":[{\"id\":1,\"required\":1,\"img\":{\"type\":1,\"w\":192,\"h\":192,\"wmin\":192,\"hmin\":192}},{\"id\":2,\"required\":1,\"title\":{\"len\":60}},{\"id\":3,\"required\":1,\"data\":{\"type\":2,\"len\":110}}]}}",
        "ver": "1.2"
      }
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
    "ext": {
        "exchangecat": 508,
        "idzone": 445566
    }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "IRL"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "",
      "accept_language": "en-GB;q=0.8,pt-PT;q=0.6,en;q=0.4,en-US;q=0.2,de;q=0.2,es;q=0.2,fr;q=0.2"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

### Push in pagina

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "imp": [
    {
      "id": "90180978",
      "native": {
        "request": "{\"native\":{\"ver\":\"1.2\",\"plcmttype\":501,\"plcmtcnt\":1,\"assets\":[{\"id\":1,\"required\":1,\"img\":{\"type\":1}},{\"id\":2,\"required\":1,\"title\":{\"len\":60}},{\"id\":3,\"required\":1,\"data\":{\"type\":2,\"len\":110}}]}}",
        "ver": "1.2"
      }
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
    "ext": {
        "exchangecat": 508,
        "idzone": 445566
    }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "IRL"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "",
      "accept_language": "en-GB;q=0.8,pt-PT;q=0.6,en;q=0.4,en-US;q=0.2,de;q=0.2,es;q=0.2,fr;q=0.2"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

### Interstitial a pagina intera desktop

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "at": 1,
  "imp": [
    {
      "id": "974090632",
      "instl": 1,
      "banner": {
        "w": 1600,
        "h": 900,
        "mimes": [
          "image/jpg",
          "image/png",
          "video/mp4",
          "image/webp"
        ],
        "ext": {
          "image_output": "xml",
          "video_output": "xml"
        }
      }
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
    "ext": {
        "exchangecat": 508,
        "idzone": 445566
    }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "XXX"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "192.0.2.1"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

### Interstitial a pagina intera mobile

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "at": 1,
  "imp": [
    {
      "id": "974090632",
      "instl": 1,
      "banner": {
        "w": 900,
        "h": 1600,
        "mimes": [
          "image/jpg",
          "image/png",
          "video/mp4",
          "image/webp"
        ],
        "ext": {
          "image_output": "xml",
          "video_output": "xml"
        }
      }
    }
  ],
  "site": {
    "id": "12345",
    "domain": "sitedomain.com",
    "name": "dominio del sito",
    "cat": ["IAB25-3"],
    "page": "https://sitedomain.com/page",
    "keywords": "stile di vita, umorismo",
    "ext": {
        "exchangecat": 508,
        "idzone": 445566
    }
  },
  "device": {
    "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
    "ip": "192.0.2.1",
    "geo": {
      "country": "XXX"
    },
    "language": "en",
    "os": "Linux e UNIX",
    "js": 0,
    "ext": {
      "remote_addr": "192.0.2.1",
      "x_forwarded_for": "192.0.2.1"
    }
  },
  "user": {
    "id": "57592f333f8983.043587162282415065"
  },
  "ext": {
    "sub": 1221
  }
}
```

## Risposta publisher Open RTB

### JSON Banner / iFrame / Popunder / In-Stream / Notifiche push

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "seatbid": [{
    "bid": [{
      "id": "12ab3d",
      "impid": "974090632",
      "price": 0.55,
      "adm": "<ExoClick_XML_OR_JSON_AD_MARKUP>",
      "nurl": "http://network-domain.com/win-notification",
      "burl": "http://mysite.com/my_billing_notification_url",
      "cid": "123456",
      "crid": "22334455",
      "iurl": "https://examplesite.net/library/4168260c416e688f5c64939044e178a84c00fca2419c2.mp4",
      "ext": {
        "btype": 1
      }
    }]
  }]
}
```

### JSON Link diretti

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "seatbid": [
    {
      "bid": [
        {
          "id": "9093b7bc2715a39446fe380ecb63a45a96485cd8",
          "impid": "974090632",
          "price": 0.07,
          "adm": "<ExoClick_XML_AD_MARKUP>",
          "ext": {
            "btype": 2
          },
          "nurl": "http://mysite.com/my_notification_url",
          "burl": "http://mysite.com/my_billing_notification_url",
          "cid": "123456",
          "crid": "22334455",
          "iurl": "https://examplesite.net/library/4168260c416e688f5c64939044e178a84c00fca2419c2.mp4"
        }
      ]
    }
  ]
}
```

### JSON Click email

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "seatbid": [
    {
      "bid": [
        {
          "id": "9093b7bc2715a39446fe380ecb63a45a96485cd8",
          "impid": "974090632",
          "price": 0.07,
          "adm": "<ExoClick_XML_AD_MARKUP>",
          "ext": {
            "btype": 2
          },
          "nurl": "http://mysite.com/my_notification_url",
          "burl": "http://mysite.com/my_billing_notification_url",
          "cid": "123456",
          "crid": "22334455",
          "iurl": "https://examplesite.net/library/4168260c416e688f5c64939044e178a84c00fca2419c2.mp4"
        }
      ]
    }
  ]
}
```

### JSON video in-stream, video outstream, slider video

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "seatbid": [
    {
      "bid": [
        {
          "id": "7717e2c2a243da65144d9c0abe8b46bb775c587f",
          "impid": "974090632",
          "price": 0.008488200000000001,
          "adm": "<ExoClick_XML_AD_MARKUP>",
          "nurl": "http://mysite.com/my_notification_url",
          "burl": "http://mysite.com/my_billing_notification_url",
          "cid": "123456",
          "crid": "22334455",
          "iurl": "https://examplesite.net/library/4168260c416e688f5c64939044e178a84c00fca2419c2.mp4"
        }
      ]
    }
  ]
}
```

### JSON nativo

* Risposta a posizionamento singolo ("plcmtcnt":1)

```json
{
  "id": "7a452540-c8c9-43ca-9d30-ab9d8bfd17a4",
  "seatbid": [
    {
      "bid": [
        {
          "id": "4fab7972833e2aaf53a828b1408fc104293734e3",
          "impid": "2d099176-9feb-44e9-85f9-f385b34123a1",
          "price": 0.0025,
          "adm": "<ExoClick_JSON_AD_MARKUP>",
          "ext": {
            "btype": 1
          },
          "nurl": "http://mysite.com/my_notification_url",
          "burl": "http://mysite.com/my_billing_notification_url",
          "cid": "123456",
          "crid": "22334455",
          "iurl": "https://examplesite.net/library/4168260c416e688f5c64939044e178a84c00fca2419c2.mp4"
        }
      ]
    }
  ]
}
```

* Risposta a posizionamento multiplo ("plcmtcnt":3)

```json
{
  "id": "7a452540-c8c9-43ca-9d30-ab9d8bfd17a4",
  "seatbid": [
    {
      "bid": [
        {
          "id": "4fab7972833e2aaf53a828b1408fc104293734e3",
          "impid": "2d099176-9feb-44e9-85f9-f385b34123a1",
          "price": 0.0025,
          "adm": "<ExoClick_JSON_AD_MARKUP>",
          "ext": {
            "btype": 1
          },
          "nurl": "http://mysite.com/my_notification_url",
          "burl": "http://mysite.com/my_billing_notification_url",
          "cid": "123456",
          "crid": "111111111",
          "iurl": "https://examplesite.net/library/4168260c416e688f5c64939044e178a84c00fca2419c2.mp4"
        }
      ]
    },
    {
      "bid": [
        {
          "id": "f7de783130d55a9bb010c67545ebf914f8f10ede",
          "impid": "2d099176-9feb-44e9-85f9-f385b34123a1",
          "price": 0.0112,
          "adm": "<ExoClick_JSON_AD_MARKUP>",
          "ext": {
            "btype": 1
          },
          "nurl": "http://mysite.com/my_notification_url",
          "burl": "http://mysite.com/my_billing_notification_url",
          "cid": "678910",
          "crid": "22222222222",
          "iurl": "https://examplesite.net/library/4168260c416e688f5c64939044e178a84c00fca2419c2.mp4"
        }
      ]
    },
    {
      "bid": [
        {
          "id": "4fab7972833e2aaf53a828b1408fc104293734e3",
          "impid": "2d099176-9feb-44e9-85f9-f385b34123a1",
          "price": 0.009,
          "adm": "<ExoClick_JSON_AD_MARKUP>",
          "ext": {
            "btype": 1
          },
          "nurl": "http://mysite.com/my_notification_url",
          "burl": "http://mysite.com/my_billing_notification_url",
          "cid": "00000000",
          "crid": "3333333333",
          "iurl": "https://examplesite.net/library/4168260c416e688f5c64939044e178a84c00fca2419c2.mp4"
        }
      ]
    }
  ]
}
```

### JSON Push in pagina

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "seatbid": [
    {
      "bid": [
        {
          "id": "6c821461440c755b8a1c4f3efdbd7549c5513895",
          "impid": "90180978",
          "price": 0.0035,
          "adm": "{\"native\":{\"link\":{\"url\":\"http:\\/\\/mysite.com\\/landingpages\\/mypage\"},\"assets\":[{\"id\":1,\"required\":1,\"img\":{\"url\":\"http:\\/\\/mysite.com\\/images\\/myad.jpg\",\"w\":720,\"h\":480}},{\"id\":2,\"title\":{\"text\":\"Titolo annuncio\"}},{\"id\":3,\"data\":{\"type\":2,\"value\":\"Descrizione annuncio\"}}]}}",
          "ext": {
            "btype": 1
          },
          "nurl": "http://network-domain.com/win-notification",
          "burl": "http://mysite.com/my_billing_notification_url",
          "cid": "4607067",
          "crid": "60958939",
          "iurl": "https://examplesite.net/library/4168260c416e688f5c64939044e178a84c00fca2419c2.mp4"
        }
      ]
    }
  ]
}
```

### JSON interstitial a pagina intera

```json
{
  "id": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "seatbid": [
    {
      "bid": [
        {
          "id": "6cf48ee722a1a7b27f954fc87c6bd5dc7fcef269",
          "impid": "974090632",
          "price": 0.05,
          "adm": "<EXOCLICK_XML_OR_JSON_AD_MARKUP>",
          "ext": {
            "btype": 1
          },
          "nurl": "http://mysite.com/my_notification_url",
          "burl": "http://mysite.com/my_billing_notification_url",
          "iurl": "https://mysite.com/my_image.jpg",
          "cid": "7562017",
          "crid": "195600_115116297",
          "adid": "115116297",
          "cat": [],
          "adomain": [
            "www.exoclick.com"
          ],
          "w": 1600,
          "h": 900,
          "attr": []
        }
      ]
    }
  ],
  "bidid": "d4b5c697-41f3-4c1c-a3d5-5fd01b5ef2aa",
  "cur": "EUR"
}
```

## Esempi ADM

### Banner: banner immagine

```xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<ad>
    <imageAd>
        <clickUrl><![CDATA[http://mysite.com/landingpages/mypage]]></clickUrl>
        <imgUrl><![CDATA[http://mysite.com/images/myad.jpg]]></imgUrl>
    </imageAd>
</ad>
```

### Banner: banner video

```xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<ad>
    <videoAd>
        <clickUrl><![CDATA[http://mysite.com/landingpages/mypage]]></clickUrl>
        <videoUrl><![CDATA[http://mysite.com/videos/myad.mp4]]></imgUrl>
    </videoAd>
</ad>
```

### Banner: banner HTML con immagine

```html
<a href=\"https:\/\/mysite.com\/click.php?data=H4sIAAAAA...8Da8a74VIAQAA\" target=\"_blank\" ontouchstart=\"\" onclick=\"var href='https:\/\/mysite.com\/click.php?data=H4sIAAAAA...8Da8a74VIAQAA'; this.href = href + '&clickX=' + event.clientX + '&clickY=' + event.clientY;\"><img width=\"300\" height=\"250\" src=\"https:\/\/static.exoclick.rocks\/library\/432437\/7fed7f2794236bc6544da662be1368a1f5d73e91.jpg\" border=\"0px\" style=\"\"><\/a><img src=\"https:\/\/mysite.com\/cimp.php?data=TVRZM056UTVOak...2Y1Yw--\" width=\"1\" height=\"1\" border=\"0\" \/>
```

### Banner: banner HTML con video

```html
<a href=\"https://mysite.com\/click.php?data=H4sIAAAAAAAAAz1Pu27DMAz8FS...ffdr\" target=\"_blank\" ontouchstart=\"\" onclick=\"var href='https://mysite.com\/click.php?data=H4sIAAAAAAAAAz1Pu27DMAz8FS...ffdr'; this.href = href + '&clickX=' + event.clientX + '&clickY=' + event.clientY;\"><video playsinline autoplay loop=\"true\" muted=\"true\" preload=\"auto\" width=\"300\" height=\"250\" src=\"https:\/\/static.exoclick.rocks\/library\/432437\/c4e06d9622aa2e1799adfeed62ca6d1eebc73e9b.mp4\"><source src=\"https:\/\/mysite.com\/library\/111437\/c4e06d9622aa2e1799adfeed62ca6d1eebc73e9b.mp4\" type=\"video\/mp4\"><\/video><\/a><img src=\"https:\/\/syndication.{examplenetworkdomain}\/cimp.php?data=TVR...mQ1MzQ2OTUzYzg-\" width=\"1\" height=\"1\" border=\"0\" \/>
```

### Link diretti

```xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<ad>
    <emailClick>
        <url><![CDATA[https://mysite.com/landingpages?el={email_encoded}]]></url>
    </emailClick>
</ad>
```

### Click email

```xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<ad>
    <emailClick>
        <url><![CDATA[https://mysite.com/landingpages?el={email_encoded}]]></url>
    </emailClick>
</ad>
```

### Video in-stream, video outstream, slider video

Puoi trovare maggiori informazioni sugli elementi VAST nella nostra pagina dedicata [VAST](broken://spaces/B8l9aZfNpiF5r8YxSXtk/pages/b6f877c0ba5ccf19aa5f03e98fbd9c77d3edf0f8) pagina.&#x20;

VAST remoto:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="3.0">
    <Ad id="1111111">
        <Wrapper>
            <AdSystem>EXOCLICK</AdSystem>
            <VASTAdTagURI><![CDATA[https://external.adserver.com/xml?cid=1111111]]></VASTAdTagURI>
            <Impression id="exotr">
                <![CDATA[https://syndication.mysite.com/vregister.php?a=vimp&tracking_event=impression&idzone=22222&data=abcd]]></Impression>
            <Error>
                <![CDATA[https://syndication.mysite.com/vregister.php?a=vview&errorcode=[ERRORCODE]&idzone=22222]]></Error>
            <Creatives>
                <Creative sequence="1" id="12345">
                    <Linear>
                        <TrackingEvents>
                            <Tracking id="prog_1" event="progress" offset="00:00:10.000">
                                <![CDATA[https://syndication.mysite.com/vregister.php?a=vview&tracking_event=progress&progress=00:00:10.000&idzone=22222&data=abcd]]></Tracking>
                        </TrackingEvents>
                        <VideoClicks>
                            <ClickThrough>
                                <![CDATA[https://syndication.mysite.com/click.php?data=abcd]]></ClickThrough>
                        </VideoClicks>
                    </Linear>
                </Creative>
            </Creatives>
        </Wrapper>
    </Ad>
</VAST>
```

VAST locale:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="3.0">
	<Ad id="123456">
		<InLine>
			<AdSystem>mysite.com</AdSystem>
			<AdTitle/>
			<Impression id="exotr">
				<![CDATA[http://syndication.mysite.com/vregister.php?a=vimp&tracking_event=impression&idzone=123456&2027add921916df3805db53a7c6af183=tsVuZ8uHLjt4ddvLjq4d_XDz65dddlTlK8E.etqayWunDNRRTXA3GxK9Yw85nw11QVuLvzVVysSOZyzSsSObmppNcDbDdrlNcFTlOfDXA3PYzHBU.5Tnw1wN1QVuZ8NcDeM0rmfDXA20xW49NThnw1wNtMSTsQPS58NcDdrFMDFcE0ufDXA3NVnw1wNs0zXVOU58NcDbblsDTmfDXA20xTTA5Tnw1wNwVT58NdVjOfDXaxHY5nw1z2MxwVPuUr0sVuZ8Nc9jMcFT7lK7VlNLkrWGaJ4GtpiSdiB6VdqymlyVrDNE8DW5e0.xK84vXMvPYzHBU.5Tnx1uXtPsSvOL1zLyuV3TUxZ8dbDa9eE7mfDW7NTIxXnrgblcrumpiz462prJa6cF5qYHoJWI81FFNb9dc6967s1NzFLbja7s1OeuBuemZuxqtdpitx6anDPhrnpgagleXkmbcjz4a36656s.GupqlxyVelyqaOyuCaXPXZU5SvA3nw12UxrvsVP564JJ6XKqoJpV6q2K7Ks.GuCSelyqqCaVeCW1iOBtelxiqaXPhrpcdcpcpXqgrcXfmqrlYkcz1sNsxzNRZ8NcDczrrlOfDXA3GxK3BK8vOw85nw1uXuNWVwTSr1wSOZ64G22K2GnJa3Kc.GuBtpimmByleqaylpzPhrlmqapgnrz4a4JWpnpYK5l5Jm3M.GutyqteSZtzPhrpcegmlXecmlYkcXgbz4a56Zr8F6q2K7Ks9vHXA3OxTXK5Tnw1tQV4LvOTSsSOLwN58NcrlbDVkFeC89M1.C9eE7meuVythqyCvBeema_BdtypqmCeuCaXPWw2zHM1Eva5TnrgknpcqqgmlXYjjXgltYjgbXpcYqmlqz4a6rGeWfDXVYzzz4a6mqYJ6168J3M9dTVME9a8rEjmeupqmCete1ynPWzTNdU5Sva5Tnw12058NcEtblMrEefDXZU5Su0xPPBK9nw12VOUrtMTzwSvLu0uUWOStYZ8NdtlkDefHty49fPXn269uXnl08c.vTtwY7.ejnXl5Y5cNdcEjlVbEk.fHty49fPXn2662ppooHGppanJa8.M]]>
			</Impression>
			<Error>
				<![CDATA[http://syndication.mysite.com/vregister.php?a=vview&errorcode=[ERRORCODE]&idzone=4286963&dg=123456-53781245-2-0-0-InLine]]>
			</Error>
			<Creatives>
				<Creative sequence="1" id="53781245">
					<Linear>
						<Duration>00:00:14.40</Duration>
						<TrackingEvents>
							<Tracking id="prog_1" event="progress" offset="00:00:10.000">
								<![CDATA[http://syndication.mysite.com/vregister.php?a=vview&tracking_event=progress&progress=00:00:10.000&idzone=123456&2027add921916df3805db53a7c6af183=tsVuZ8uHLjt4ddvLjq4d_XDz65dddlTlK8E.etqayWunDNRRTXA3GxK9Yw85nw11QVuLvzVVysSOZyzSsSObmppNcDbDdrlNcFTlOfDXA3PYzHBU.5Tnw1wN1QVuZ8NcDeM0rmfDXA20xW49NThnw1wNtMSTsQPS58NcDdrFMDFcE0ufDXA3NVnw1wNs0zXVOU58NcDbblsDTmfDXA20xTTA5Tnw1wNwVT58NdVjOfDXaxHY5nw1z2MxwVPuUr0sVuZ8Nc9jMcFT7lK7VlNLkrWGaJ4GtpiSdiB6VdqymlyVrDNE8DW5e0.xK84vXMvPYzHBU.5Tnx1uXtPsSvOL1zLyuV3TUxZ8dbDa9eE7mfDW7NTIxXnrgblcrumpiz462prJa6cF5qYHoJWI81FFNb9dc6967s1NzFLbja7s1OeuBuemZuxqtdpitx6anDPhrnpgagleXkmbcjz4a36656s.GupqlxyVelyqaOyuCaXPXZU5SvA3nw12UxrvsVP564JJ6XKqoJpV6q2K7Ks.GuCSelyqqCaVeCW1iOBtelxiqaXPhrpcdcpcpXqgrcXfmqrlYkcz1sNsxzNRZ8NcDczrrlOfDXA3GxK3BK8vOw85nw1uXuNWVwTSr1wSOZ64G22K2GnJa3Kc.GuBtpimmByleqaylpzPhrlmqapgnrz4a4JWpnpYK5l5Jm3M.GutyqteSZtzPhrpcegmlXecmlYkcXgbz4a56Zr8F6q2K7Ks9vHXA3OxTXK5Tnw1tQV4LvOTSsSOLwN58NcrlbDVkFeC89M1.C9eE7meuVythqyCvBeema_BevCdzPXK5Ww1ZBXgvPTNfgu25U1TBPXBNLnrYbZjmaiXtcpz1wST0uVVQTSrsRxrwS2sRwNr0uMVTS1Z8NdVjPLPhrqsZ558NdTVME9a9eE7meupqmCeteViRzPXU1TBPWva5TnrZpmuqcpXtcpz4a7ac.GuCWtymViPPhrtssgbz49uXHr568.3Xt568effp579uDHfz0c68vHft111wSOVVsST58e3Lj189efbrrammigcamlqclrz4w]]>
							</Tracking>
						</TrackingEvents>
						<VideoClicks>
							<ClickThrough>
								<![CDATA[https://syndication.mysite.com/click.php?data=H4sIAAAAAAAAA0VPOWrEQBD8ipJNhz7nCJ04ceA3jEcaVljHosNg04_3rByY6oKGKqq6RQRQ0NDux_HYb_xyo9c2X3lz_bAf45KPcV3cuU2urLMZEjW3J9Sk7NV.hm195O3zUhGckAOHphwikqgJRZ88myKatSIyVIMGe5aaBk1UmbnGFNmBsMbQ4imSoIJ_er1qLNLXD04ackqiUXzhUhgRayktB2wfj6Ff5zwu1yVwoZvG2p74nobufs7ruXV2mf9hjQx27fonSeP7m8WUGfoiFWqh7OsQasA4RCYMgDH9Aqi26WQ6AQAA]]>
							</ClickThrough>
						</VideoClicks>
						<MediaFiles>
							<MediaFile delivery="progressive" type="video/mp4">
								<![CDATA[https://staticcdn.mysite.com/library/195600/5b7d9ad16e4b86ba8695f867e9a8464fc4444943.mp4]]>
							</MediaFile>
						</MediaFiles>
						<Icons>
							<Icon>
								<IconClicks>
									<IconClickThrough>var.destination.url.com</IconClickThrough>
								</IconClicks>
							</Icon>
						</Icons>
					</Linear>
				</Creative>
			</Creatives>
      <Extensions>
    <Extension>
        <TitleCTA>
            <MobileText>Vedi di più</MobileText>
            <PCText>Vedi di più</PCText>
            <Link><![CDATA[]]></Link>
            <Tracking><![CDATA[https://click.tracking.com/click.php?data=H4sIAAAAAAAAA0...-]]></Tracking>
        </TitleCTA>
    </Extension>
</Extensions>
		</InLine>
	</Ad>
</VAST>
```

### Popunder

```xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<ad>
    <popunderAd>
        <url><![CDATA[http://mysite.com/landingpages/mypage]]></url>
    </popunderAd>
</ad>
```

### Annunci nativi

```
"{\"native\":{\"link\":{\"url\":\"https://mysite.com/landingpages/mypage\"},\"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"https://myEventTracker1.com\"}],\"assets\":[{\"id\":1,\"title\":{\"text\":\"Titolo annuncio\"}},{\"id\":2,\"data\":{\"value\":\"Descrizione annuncio\"}},{\"id\":4,\"data\":{\"value\":\"Marchio annuncio\"}},{\"id\":3,\"img\":{\"url\":\"https://mysite.com/images/myad.jpg\",\"w\":300,“h”:300,}}]}}"
```

Che si basa sul seguente oggetto:

```json
{
  "native": {
    "link": {
      "url": "https://mysite.com/landingpages/mypage"
    },
    "eventtrackers": [
      {
        "event": 1,
        "method": 1,
        "url": "https://myEventTracker1.com"
      }
    ],
    "assets": [
      {
        "id": 1,
        "title": {
          "text": "Titolo annuncio"
        }
      },
      {
        "id": 2,
        "data": {
          "value": "Descrizione annuncio"
        }
      },
      {
        "id": 4,
        "data": {
          "value": "Marchio annuncio"
        }
      },
      {
        "id": 3,
        "img": {
          "url": "https://mysite.com/images/myad.jpg",
          "w": 300,
          "h": 300
        }
      }
    ]
  }
}
```

### Annunci di notifiche push

```
{\"native\":{\"link\":{\"url\":\"http://mysite.com/landingpages/mypage\"},\"assets\":[{\"id\":1,\"required\":1,\"img\":{\"url\":\"http://mysite.com/images/myad.jpg\",\"w\":720,\"h\":480}},{\"id\":2,\"title\":{\"text\":\"Titolo annuncio\"}},{\"id\":3,\"data\":{\"type\":2,\"value\":\"Descrizione annuncio\"}}]}}
```

Che si basa sul seguente oggetto:

```json
{
  "native": {
    "link": {
      "url": "http://mysite.com/landingpages/mypage"
    },
    "assets": [
      {
        "id": 1,
        "required": 1,
        "img": {
          "url": "http://mysite.com/images/myad.jpg",
          "w": 720,
          "h": 480
        }
      },
      {
        "id": 2,
        "title": {
          "text": "Titolo annuncio"
        }
      },
      {
        "id": 3,
        "data": {
          "type": 2,
          "value": "Descrizione annuncio"
        }
      }
    ]
  }
}
```

### Notifiche push in pagina

```
{\"native\":{\"link\":{\"url\":\"http:\/\/mysite.com\/landingpages\/mypage\"},\"assets\":[{\"id\":1,\"required\":1,\"img\":{\"url\":\"http:\/\/mysite.com\/images\/myad.jpg\",\"w\":720,\"h\":480}},{\"id\":2,\"title\":{\"text\":\"Titolo annuncio\"}},{\"id\":3,\"data\":{\"type\":2,\"value\":\"Descrizione annuncio\"}}]}}
```

Che si basa sul seguente oggetto:

```json
{
  "native": {
    "link": {
      "url": "http://mysite.com/landingpages/mypage"
    },
    "assets": [
      {
        "id": 1,
        "required": 1,
        "img": {
          "url": "http://mysite.com/images/myad.jpg",
          "w": 720,
          "h": 480
        }
      },
      {
        "id": 2,
        "title": {
          "text": "Titolo annuncio"
        }
      },
      {
        "id": 3,
        "data": {
          "type": 2,
          "value": "Descrizione annuncio"
        }
      }
    ]
  }
}
```

### Interstitial a pagina intera

```
<?xml version="1.0"?><ad><iframeAd><url><![CDATA[https://mysite.com/fpi-render.php?data=TVRjME9UY3lPVE15Tm53]]></url></iframeAd></ad>
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.exoclick.com/rtb/it/editori/open-rtb/open-rtb-publisher-code-examples.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
