PX AdHub is a self-hosted ad server for Joomla 5.4 and 6: ad zones on your pages, advertisers who buy on your own site from a prepaid wallet, moderation, invoices and fraud-checked statistics.
Overview
PX AdHub is a self-hosted ad server for Joomla. You put ad zones on your pages, advertisers sign up on your website, top up a prepaid wallet and buy campaigns, you approve what runs, and impressions and clicks are billed from the wallet. Try every part in the live demo: it signs you in as the site manager, an advertiser or a new user with one click.
- Zones: banner, sticky, text link, in-page push, interstitial and video slider; placed with a module, a shortcode inside an article, or page rules for floating formats.
- Advertisers: a "Become an advertiser" page, an advertiser area on the website with campaigns, creatives, day bookings, statistics, top-ups, invoices and refunds.
- Money: a prepaid wallet on an append-only ledger; Stripe, PayPal and bank transfer; CPM, CPC and CPD pricing; coupons, a first-deposit bonus and invoices.
- Moderation: a review queue for new campaigns and changed creatives; emails to advertisers and to the site team.
- Anti-fraud: signed view tokens, viewable impressions only, IP and datacenter rules, traffic alerts, a fraud review page and credits.
- Reports: an admin dashboard and an advertiser dashboard, ad-blocking statistics, all aggregated by scheduled tasks.
Requirements
- Joomla 5.4 or newer, Joomla 6 included (the installer stops on older versions)
- PHP 8.1 or newer
- MySQL 8.0.13 or newer, or MariaDB 10.4 or newer
- Joomla Scheduled Tasks running, best from a server cron job (statistics, billing, emails and alerts run through them)
- HTTPS for live payments with Stripe or PayPal
- For about 1 million impressions a day: an InnoDB buffer pool of 1–2 GB
Install
- Download
pkg_pxadhub_v1.0.0.zipfrom your account (Downloads → Extensions → PX AdHub). - In Joomla go to System → Install → Extensions and upload the zip.
- The package installs the component, the module PX AdHub, the system and task plugins and the payment plugins Manual, Stripe and PayPal, and enables the plugins. It also creates the seven scheduled tasks, the user group PX AdHub Advertiser and the default email templates.
First steps
- Components → PX AdHub → Settings: currency, minimum top-up and refund, advertiser approval, fraud rules, GeoIP and your invoice details. The Permissions button sets who may manage, moderate and handle money.
- Payment methods: enter your Stripe and PayPal keys (Live and Test sets with a Mode switch), or use bank transfer only.
- Zones: create the zones and place them (see Zones).
- Advertiser area: create menu items of type PX AdHub → Advertiser area and Become an advertiser. Advertisers need a Joomla account.
- Scheduled tasks: check that they run (see Scheduled tasks).

Zones and placement
A zone is a place on your site with a format and a size. Campaigns are linked to zones; each page asks the server once for all its zones.
| Format | How it is placed |
|---|---|
| Banner, text link | The module PX AdHub in a template position, or the shortcode {pxadhub zone=5} in an article. A banner zone with a size keeps its box while it loads, and an empty one can invite buyers with "Advertise here". |
| Sticky, in-page push, interstitial, video slider | Page rules in the zone form: on all pages, only on some menu items or on all but some. Push, interstitial and slider show at most once per visitor per number of hours. |
| Popunder, popup | Off by default; page rules as above. |

A zone can also be rented by the day: give it a CPD price and advertisers book free days in a calendar.
Advertisers and campaigns
A logged-in user opens Become an advertiser, gives a company name and a contact email, and waits for your approval (or is approved at once when you turn approval off). In the advertiser area they:
- create campaigns: format, zones, pricing (CPM, CPC or day bookings), bid, daily and total budget, frequency caps, targeting by country, device, day and hour;
- add creatives: images, HTML (when you allow it, shown in a sandboxed frame), text links, push cards or a short video;
- submit the campaign for review, then follow impressions, clicks and spend by day, zone and creative;
- top up the wallet, download invoices and ask for refunds.

Wallet and payments
Advertisers pay before their ads run. A top-up adds money to the wallet; impressions and clicks are billed from it at the price they were served at. Every movement is a row in the ledger, and the balance is always the sum of the ledger.
- Stripe (Checkout and a webhook) and PayPal (Orders v2 and a webhook), each with Live and Test keys.
- Bank transfer: the advertiser sees your instructions and a reference; you confirm the payment when the money arrives.
- Coupons, a bonus on the first deposit, an invoice for every top-up, refund requests with a floor per payment.

Moderation and emails
New campaigns and changed creatives of running campaigns wait in Advertising → Moderation. The review page previews every creative; approve, or reject with a reason that the advertiser sees.

Emails go out through Joomla's mailer from a queue, with a log you can read and resend from. Templates are edited per event and language under Emails. The site team is told about a new advertiser, a campaign or creative to review and a bank transfer to confirm: users with the matching permission who have Receive System Emails on in their profile get them.
Anti-fraud
- Every impression and click carries a signed view token; only viewable impressions are counted.
- Server rules: IP blacklist, datacenter ranges, origin check, rates per visitor, duplicates, a click without an impression.
- Invalid events are kept with their reason and never billed.
- Traffic → Fraud review: top IPs, events by reason, a suggested credit for an advertiser, and traffic alerts when a zone or campaign suddenly changes.

Scheduled tasks
Raw events are aggregated and billed by Joomla Scheduled Tasks (System → Scheduled Tasks): aggregate statistics, reconcile billing, purge raw events, send emails, check anomalies, update GeoIP and update the datacenter list. They run through Joomla's lazy scheduler on site visits; on a busy site use a cron job instead:
* * * * * php /path/to/site/cli/joomla.php scheduler:run --all
and turn the lazy scheduler off in the Scheduled Tasks options. Statistics move after each run of Aggregate statistics.
Multilingual sites
Zones, campaigns and creatives can be limited to one content language. The advertiser area and the emails follow the user's language. PX AdHub ships in English; add other languages with Joomla language overrides or a language pack.
Updates
Joomla shows when a new version is out (System → Update → Extensions). Download it from your account and install it over the current version; your data stays.
FAQ
What shows when no campaign fills a zone?
A house campaign of your own, the zone's fallback HTML, or, for an empty banner box, an "Advertise here" link to your sign-up page.
Does it work with my template?
Banner zones are modules or shortcodes, so they work in any template. Floating formats render in their own layer and work with Cassiopeia and T4 templates.
Are statistics live?
Events are recorded at once and appear in the dashboards after the next run of Aggregate statistics (every five minutes by default).