AdSense: Earn with ads
Connect AdSense to your Rocket project and start earning by displaying ads in your app.
In this guide, you’ll learn how to:
- Connect your AdSense account to Rocket.
- Add your Publisher ID securely.
- Start displaying ads in your app.
Your credentials stay safe with Rocket.
They’re encrypted at rest and never exposed - so you can connect with confidence.
Before you begin
- A Rocket account - https://rocket.new.
- A Google AdSense account.
Connect AdSense to Rocket
Use your Publisher ID to display banner or responsive ads and start earning.
Start integration from chat or project settings
You can connect AdSense in two ways:
Method 1: Use Rocket Chat (fastest)
- Open the chat panel in your project and type:
Connect my AdSense account
- A prompt will appear asking for your Publisher ID (e.g.,
pub-1234567890123456
).
You’ll see a confirmation in chat once the ID is saved successfully.
Method 2: Use the Project Settings panel.
-
Go to My Projects and open your project.
-
Click the Project Settings on the top navbar.
-
Navigate to the Integrations tab.
Access Integrations tab from project settings
-
Scroll to AdSense and click it.
AdSense integration card
Enter and save your Publisher ID
- Paste your AdSense Publisher ID (e.g.,
pub-1234567890123456
) into the input field. - Click Save.
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 into Rocket chat.
Use the secure input provided in settings or chat prompts.
Update or remove your AdSense connection
-
Return to the AdSense integration screen in Rocket.
-
You can update your Publisher ID or click Remove to disconnect.
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're all set!
AdSense is now connected to your Rocket project. Ads can now be embedded into your app to generate passive revenue.
Once connected, you can ask Rocket to help you:
- Add a banner ad to the homepage.
- Insert a responsive ad block below blog posts.
- Track ad clicks using Google Analytics.
Rocket will insert ad tags and visibility logic automatically.
Need help? Reach out at support@rocket.new.