> For the complete documentation index, see [llms.txt](https://tads.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tads.gitbook.io/docs/getting-started/publishers/embed-widget.md).

# Embed Widget

After selecting the placement method and creating the widget in your account, embed the widget code into your app. You can integrate multiple widgets into a single app.

Integrate the tads.me ad widget using either the [**React package**](https://docs.tads.me/getting-started/publishers/embed-widget/react) or [**native JavaScript**](https://docs.tads.me/getting-started/publishers/embed-widget/vanilla-js) with following instructions.

***

## Styling

We give default CSS classes for images, titles, and description.

If any styles need to be changed to fit the appearance of the ad into the application's design, these styles are set in the application's code by the publisher. The classes and markup of the ad block are always fixed, so it will be sufficient to simply add styles to the corresponding classes in the page's code. The class names can be viewed in the code itself.

The number of ads shown in a widget is set when creating the widget in the ad network. You don’t have to specify this every time; it’s configured once in the widget’s settings. In the future, you’ll be able to manage this directly in your publisher dashboard.

<br>


---

# 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://tads.gitbook.io/docs/getting-started/publishers/embed-widget.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.
