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
Never paste your Publisher ID directly into chat. Always use the secure connection popup.
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.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.
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.
After clicking ConnectA popup opens. Enter your Publisher ID, then click Connect.
Connect AdSense popup with Publisher ID field.Connect AdSense popup with Publisher ID field.
A green dot appears next to AdSense when the connection is active.Update or disconnectOpen Connectors and click the AdSense card. Click Edit to update your Publisher ID or Disconnect to remove the integration from this task.
AdSense card showing Edit and Disconnect buttons.AdSense card showing Edit and Disconnect buttons.

Example prompts

What you wantPrompt to use
Header bannerAdd a responsive AdSense leaderboard ad below the navigation bar on every page.
Sidebar adPlace a 300x250 medium rectangle AdSense ad in the sidebar, sticky on scroll.
In-article adInsert an AdSense ad after the third paragraph of every blog post.
In-feed adAdd an AdSense in-feed ad after every 5th post in my blog listing.
Footer adPlace a responsive AdSense banner above the footer on all pages.
Mobile-only adShow a full-width AdSense ad between content sections, only on mobile devices.
Desktop-only adAdd a skyscraper ad in the right sidebar, visible only on desktop screens wider than 1024px.
Between sectionsInsert an AdSense ad between the features section and the testimonials section on the landing page.

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. New sites may take a few days to be approved.
  • 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.