Skip to main content

Introduction

Cursor is a code editor with built-in AI. It can automatically implement SDK integration by referencing the Adrop Help Center URL.
Copy the sample prompts below and just replace App Key and Unit ID to get started.

Getting Started

1. Install Cursor

Download and install from 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

@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

Tips

Referencing docs with @DocsIn 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.
Be specific about placementInstead of “at the bottom of MainActivity”, try “inside the ConstraintLayout in activity_main.xml, aligned to the bottom” for more accurate implementation.
Where to find App Key and Unit ID
Try with test keys firstYou can find test App Keys and Unit IDs in the Test Environment section of the Prerequisites page.