Getting StartedSolveBuildIntelligenceLearnHelpWhat's New
CONNECTORSPayments & Ads

AdSense

Connect Google AdSense to Rocket and add display ads to your app - banner placements, in-article ads, and in-feed units, all wired up from chat.

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 chat

Type 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 tab

Click 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 Connect

A 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 disconnect

Go 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

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. 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.

Revoke access

Your AdSense Publisher ID is a public identifier, not a secret API key. There is nothing to revoke or delete in the AdSense dashboard for this connection.

To stop using AdSense in this Rocket task, open the AdSense connector card and click Disconnect. You can also click Edit to switch to a different Publisher ID.

Disconnecting removes AdSense from this task only. Your AdSense account and Publisher ID stay unchanged.


What's next?

On this page