Skip to main content
Describe where you want ads to appear in chat and Rocket generates the placement code, responsive ad units, and layout adjustments automatically.

What you can do

Blog monetization

Place ads between articles, in the sidebar, and after post content to generate revenue from your blog traffic.

Banner ads

Insert standard IAB ad units - leaderboard, medium rectangle, skyscraper - throughout your app.

In-article ads

Insert ads after specific paragraphs in long-form content without disrupting the reading experience.

In-feed ads

Insert native-looking ads between items in content feeds, product listings, or search results.

Before you connect

You need your Publisher ID from Google AdSense. It looks like pub-1234567890123456.

Find your Publisher ID in the AdSense help center
Your Publisher ID (pub-XXXXXXXX) is embedded in your page’s public HTML source and is not a secret. Entering it in the connection popup carries no security risk.
AdSense is a task-level connector. Each Rocket task connects to its own Publisher ID independently.

Connect AdSense

You can connect from two places - both open the same popup.Option 1: From chatType a prompt that mentions AdSense - for example, Connect AdSense and add a banner ad to the homepage. Rocket detects the intent and shows a Connect button inline. Click it and the popup opens.
AdSense connection prompt in the Rocket chat panel.AdSense connection prompt in the Rocket chat panel.

AdSense connection prompt in chat

Option 2: From the Connectors tabClick the ... button in the preview toolbar, then select Connectors.
Toolbar dropdown with Connectors option highlighted.Toolbar dropdown with Connectors option highlighted.

Open Connectors from the toolbar

Click the AdSense card, then click Connect.
Connectors panel showing the AdSense card with a Connect button.Connectors panel showing the AdSense card with a Connect button.

AdSense card in the Connectors panel

After clicking ConnectA popup opens. Enter your Publisher ID, then click Connect. A green dot appears next to AdSense when the connection is active.
Connect AdSense popup with Publisher ID field.Connect AdSense popup with Publisher ID field.

Connect AdSense popup

Update or disconnectGo to Connectors > AdSense. Click Edit to update your Publisher ID or Disconnect to remove the integration.
AdSense card showing Edit and Disconnect buttons.AdSense card showing Edit and Disconnect buttons.

Edit and Disconnect options on a connected AdSense card

Example prompts

Tips

  • Ads only display on deployed tasks. AdSense will not render in the Rocket preview. Deploy your task and test on the live URL.
  • Google must approve your site. Your domain and content must comply with AdSense program policies before ads appear. Approval can take days to weeks. New sites with thin or limited content may be rejected, so ensure your site has substantial, original content before applying.
  • Ad blockers will hide ads. A significant percentage of users run ad-blocking extensions. Keep this in mind when projecting revenue.
  • Too many ads hurt user experience. Google may limit ad serving if your page has an unfavorable content-to-ad ratio. Follow AdSense best practices for ad density.
  • One Publisher ID per task. Each Rocket task connects to one AdSense account. Use different tasks for different Publisher IDs.

What’s next?

Google Analytics

Track how ads affect user engagement and bounce rates with GA4.

Strapi

Pair AdSense with a headless CMS to monetize your content-driven site.

Netlify

Deploy your task so AdSense can start serving ads on your live site.

All connectors

Browse every available integration.