Skip to main content
In this guide, you’ll learn how to:
  • Connect your AdSense account to Rocket.
  • Find your Publisher ID from your AdSense dashboard.
  • Add it securely in Rocket to start displaying ads and earning revenue.
Your information stays safe with Rocket.
Everything is encrypted and protected, so you can connect without worry.

Before you begin

You’ll need:
  • A Rocket account - rocket.new.
  • A Google AdSense account (free to create if you don’t have one).

Connect AdSense to Rocket

1

Find your AdSense Publisher ID

Go to your AdSense dashboard to find your Publisher ID.
You’ll find it under Account → Settings → Account information.
Your Publisher ID is a unique identifier for your AdSense account.
It looks like pub-1234567890123456 and is required to display ads on your site.
2

Add your Publisher ID to Rocket

You can connect AdSense in two simple ways:Method 1: Use Rocket Chat (fastest)
  • Open any project and start chatting with Rocket.
  • Type something like:
    Connect my AdSense account to:
    • Add a banner ad to the homepage.
    • Insert a responsive ad block below blog posts.
    • Show ads in the sidebar of my content pages.
  • A popup will appear where you can paste your Publisher ID and save it right away.
    Google AdSense integration popup in chatGoogle AdSense integration popup in chat

    Google AdSense integration popup in chat

This is perfect if you’re already chatting with Rocket while building. No extra clicks needed - just tell Rocket what you want!
Method 2: From your project settings
  • Open any project in Rocket.
  • Click on Integrations (you’ll find it in your project menu).
    Integrations tabIntegrations tab

    Integrations tab

  • Scroll down to find AdSense and click on it.
    AdSense integration cardAdSense integration card

    AdSense integration card

When you connect AdSense this way, Rocket won’t automatically insert ads into your project.After you save your Publisher ID, just tell Rocket in chat where you’d like ads to appear, and it will set them up for you!
3

Save your Publisher ID

  • In Rocket’s AdSense integration screen, paste your Publisher ID into the input field.
  • Click Save and you’re all set!
Success check: You’ll 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 Publisher ID input provided in settings to connect your account safely.
4

Change or remove your AdSense connection

  • Go back to the AdSense section in your project settings.
  • You can update your Publisher ID anytime, or click Remove if you want 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 your AdSense account.
AdSense ads will only display on deployed projects.
If you’re just previewing your project, the ads won’t show yet. Make sure to test them once your project is live!

You did it!

AdSense is now connected to your Rocket project. You can start earning revenue by displaying ads in your app. Just tell Rocket where you’d like ads to appear, and it will add them for you!
Need help?
Email us at [email protected] or join our Discord community to get help, share ideas, and connect with other creators.