> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adrop.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Easily integrate the ad SDK with AI code editor

## Introduction

[Cursor](https://cursor.com) is a code editor with built-in AI.
It can automatically implement SDK integration by referencing the Adrop Help Center URL.

<Note>
  Copy the sample prompts below and just replace **App Key** and **Unit ID** to get started.
</Note>

***

## Getting Started

### 1. Install Cursor

Download and install from [cursor.com](https://cursor.com).

### 2. Open your project

Open your project folder with Cursor.

### 3. Use Chat or Composer

* **Chat** (`Cmd/Ctrl + L`): Ask questions or request code modifications
* **Composer** (`Cmd/Ctrl + I`): Changes across multiple files

### 4. Enter a prompt

Copy and use the sample prompts below.

***

## Sample Prompts

<Tabs>
  <Tab title="Android">
    ### Banner Ad

    ```
    @Docs https://docs.adrop.io/sdk/android/banner

    Add a banner ad at the bottom of MainActivity.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Native Ad

    ```
    @Docs https://docs.adrop.io/sdk/android/native

    Add native ads between RecyclerView feed items.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Interstitial Ad

    ```
    @Docs https://docs.adrop.io/sdk/android/interstitial

    Show an interstitial ad during screen transitions.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Rewarded Ad

    ```
    @Docs https://docs.adrop.io/sdk/android/rewarded

    Show a rewarded ad when the reward button is clicked, and grant 100 coins on completion.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```
  </Tab>

  <Tab title="iOS">
    ### Banner Ad

    ```
    @Docs https://docs.adrop.io/sdk/ios/banner

    Add a banner ad at the bottom of ViewController.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Native Ad

    ```
    @Docs https://docs.adrop.io/sdk/ios/native

    Add native ads between TableView feed items.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Interstitial Ad

    ```
    @Docs https://docs.adrop.io/sdk/ios/interstitial

    Show an interstitial ad during screen transitions.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Rewarded Ad

    ```
    @Docs https://docs.adrop.io/sdk/ios/rewarded

    Show a rewarded ad when the reward button is clicked, and grant 100 coins on completion.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```
  </Tab>

  <Tab title="Flutter">
    ### Banner Ad

    ```
    @Docs https://docs.adrop.io/sdk/flutter/banner

    Add a banner ad widget at the bottom of the screen.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Native Ad

    ```
    @Docs https://docs.adrop.io/sdk/flutter/native

    Add native ads between ListView feed items.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Interstitial Ad

    ```
    @Docs https://docs.adrop.io/sdk/flutter/interstitial

    Show an interstitial ad during screen transitions.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Rewarded Ad

    ```
    @Docs https://docs.adrop.io/sdk/flutter/rewarded

    Show a rewarded ad when the reward button is clicked, and grant 100 coins on completion.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```
  </Tab>

  <Tab title="React Native">
    ### Banner Ad

    ```
    @Docs https://docs.adrop.io/sdk/react-native/banner

    Add a banner ad component at the bottom of the screen.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Native Ad

    ```
    @Docs https://docs.adrop.io/sdk/react-native/native

    Add native ads between FlatList feed items.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Interstitial Ad

    ```
    @Docs https://docs.adrop.io/sdk/react-native/interstitial

    Show an interstitial ad during screen transitions.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Rewarded Ad

    ```
    @Docs https://docs.adrop.io/sdk/react-native/rewarded

    Show a rewarded ad when the reward button is clicked, and grant 100 coins on completion.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```
  </Tab>

  <Tab title="Web">
    ### Banner Ad (React)

    ```
    @Docs https://docs.adrop.io/sdk/web/react

    Add a banner ad component at the bottom of the page.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Banner Ad (CDN)

    ```
    @Docs https://docs.adrop.io/sdk/web/banner

    Add a banner ad at the bottom of the page.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```

    ### Native Ad

    ```
    @Docs https://docs.adrop.io/sdk/web/native

    Add native ads between content feed items.

    App Key: YOUR_APP_KEY
    Unit ID: YOUR_UNIT_ID
    ```
  </Tab>
</Tabs>

***

## Tips

<Note>
  **Referencing docs with @Docs**

  In Cursor, use the `@Docs` command to directly reference external documentation.
  Add `@Docs URL` at the beginning of your prompt to use that document as context.
</Note>

<Note>
  **Be specific about placement**

  Instead of "at the bottom of MainActivity", try "inside the ConstraintLayout in activity\_main.xml, aligned to the bottom" for more accurate implementation.
</Note>

<Note>
  **Where to find App Key and Unit ID**

  * **App Key**: [Console](https://console.adrop.io) → Settings → App
  * **Unit ID**: [Console](https://console.adrop.io) → Ad Units
</Note>

<Note>
  **Try with test keys first**

  You can find test App Keys and Unit IDs in the Test Environment section of the [Prerequisites](/sdk/overview) page.
</Note>
