# SDK integration

## Website setup

To integrate our web SDK, it is needed to add the following JavaScript tag inside the `<head>` block of the website, specifying the "**asset key**" provided by our platform:

```javascript
<script type="text/javascript" async src="https://cdn.resources.wortise.com/sdk/web/web-sdk.js">
    wortise.init('your asset key')
</script>
```

## Ad formats

### Banner

Banner ads are rectangular image or text ads that occupy a space inside the website layout. They stay on screen while the users interact with the website and can automatically refresh after a certain period of time.

The banner integration is done with a very simple process, by inserting the following `<div>` element in the place where ads want to be shown:

```html
<div id='wortise:BANNER_ID' style='min-width: WIDTHpx; min-height: HEIGHTpx;'></div>
```

It is **completely needed** to specify the ID of the ad unit banner that will be used, as well as the dimensions the ads should occupy.


---

# 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://docs.wortise.com/en/web-sdk/sdk-integration.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.
