# iFrame Setup

## Insert the following iFrame code into your app’s **WebView** or website:

```html
<iframe 
    src="https://web.playtimeads.com/index.php?app_id=YOUR_APP_ID&user_id=USER_UNIQUE_ID" 
    frameborder="0" 
    scrolling="yes">
</iframe>
```

* `app_id` → Your Unique iFrame App Key .
* `user_id` → Unique identifier of the user from your system.
* `sub1-sub10`  → Custom parameter for additions tracking information.
* `gaid` → Users Google Advertiser Id (optional).

## How to get your Unique iFrame App Key ?

<figure><img src="/files/0Wkb9G6RkBoFO02MMpwk" alt=""><figcaption></figcaption></figure>

1. From the left-hand menu, navigate to the **`Manage iFrame`** tab.
2. Click on the **`Create Web App`** button to add a new web app.
3. Once created, your **`App Key`** will be displayed in the App Key column (see image above).


---

# 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.playtimeads.com/iframe-integration/iframe-setup.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.
