Back to marketplace
45

AdSense

Adds Google AdSense Functionality.

Setup

  1. Enable the module via ACP --> Modules --> Modules List.
  2. Go to your Google AdSense account for the data-ad-client.
  3. Once you've gotten the Ad tab unlocked, create an ad unit which will give you a code snippet with your data-ad-slot.
  4. Place both your client & slot into the AdSense module configuration fields and save.

Connecting Your AdSense Account via API

  1. Navigate to AdSense API Settings in the Admin panel.
  2. Enter your Client ID, Client Secret, and Redirect URI exactly as instructed.
  3. Save your settings and click Connect Account to go through Google’s OAuth authorization flow.
  4. Once authorized, your account will be linked to HumHub and the dashboard will begin populating data.

Viewing Earnings and Reports

  • Go to AdSense Dashboard under the Admin API section.
  • You can view:
    • Current Month Earnings
    • Yesterday’s Earnings
    • Weekly Trend (last 7 days)
    • Ad Units and Sites
  • The dashboard automatically converts all earnings to numeric values, so no formatting issues will occur.

Token & Access Management

  • The module automatically handles access token expiration using your refresh token.
  • If token refresh fails, you will be prompted to reconnect your account via OAuth.
  • Always ensure your Client ID, Client Secret, and Redirect URI are correctly set.

Tips

  • Earnings displayed on the dashboard are always numeric and safe to use in calculations or threshold checks.
  • Make sure HTTPS is enabled on your site for proper cookie consent handling with Google AdSense.

Module Information

Price:
Free
Latest version release:
2.0.0-beta.1 - September 21, 2025
Publisher:
Author(s):
Compatibility:
HumHub 1.3 - 1.18