In this guide, you’ll learn how to:
  • Connect your AdSense account to Rocket.
  • Get your Publisher ID from AdSense.
  • Add it securely in Rocket to start displaying ads in your app.
Your credentials stay safe with Rocket.
They are encrypted at rest and never exposed, so you can connect with confidence.

Before you begin

You’ll need:
  • A Rocket account - rocket.new.
  • A Google AdSense account.

Connect AdSense to Rocket

1

Get your AdSense Publisher ID

Open your AdSense dashboard to find your Publisher ID.
You will find it under Account → Settings → Account information.
Your Publisher ID looks like pub-1234567890123456.
This ID uniquely identifies your AdSense account and is required to serve ads.
2

Add your Publisher ID in Rocket

You can connect AdSense in two ways:Method 1: Use Rocket Chat (fastest)
  • In any project, open the chat panel and type something like:
    Connect my AdSense account to:
    • Add a banner ad to the homepage.
    • Insert a responsive ad block below blog posts.
    • Track ad clicks using Google Analytics.
  • A popup will appear where you can paste and save your Publisher ID.
    Google AdSense integration popup in chatGoogle AdSense integration popup in chat

    Google AdSense integration popup in chat

This is ideal if you are already chatting with Rocket while building. No clicks, just action.
Method 2: From a Rocket project
  • Open any project.
  • Go to Integrations.
    Integrations tabIntegrations tab

    Integrations tab

  • Scroll to AdSense and click it.
    AdSense integration cardAdSense integration card

    AdSense integration card

When you connect AdSense from Project Settings, Rocket will not automatically insert ads.After saving your Publisher ID, you must describe in chat where you want ads to appear for Rocket to implement them.
3

Save your AdSense Publisher ID in Rocket

  • In Rocket’s AdSense integration screen, paste your Publisher ID into the input field.
  • Click Save to complete setup.
Success check: You will see a green dot next to AdSense in your integrations list.
Important Security Notice:
Never paste your Publisher ID or ad unit code directly into Rocket chat.
Always use the secure integration flow or the input provided in settings to connect your account safely.
4

Update or remove your AdSense connection

  • Return to the AdSense integration in Project Settings.
  • You can update your Publisher ID or click Remove to disconnect.
    Remove AdSense integrationRemove AdSense integration

    Remove AdSense integration

Google requires your site to comply with its content and placement policies before showing ads.
Make sure your content is approved and your domain is verified in AdSense.
AdSense ads will only display on deployed projects.
Preview mode does not support live ad rendering or impressions.

You did it!

AdSense is now connected to your Rocket project. Ads can now be embedded into your app to generate passive revenue.
Need help? We are here for you.
Email us at support@rocket.new or join our Discord community to get help, share ideas, and connect with other creators.