The best ad sizes for XenForo depend on where you plan to display the ads (header, sidebar, thread, footer, etc.), but the most effective and high-performing ad dimensions (especially for Google AdSense or other ad networks) typically include:
Recommended XenForo Ad Sizes (Width x Height in pixels)
Placement Area
Suggested Size (px)
Description
Header / Top
728×90
Leaderboard – good for desktop
970×90 / 970×250
Large leaderboard / Billboard
Sidebar (Right Panel)
300×250
Medium Rectangle – popular for sidebars
300×600
Half Page – taller sidebar ad
In-Thread (Inline)
336×280
Large Rectangle – works well inside content
300×250
Medium Rectangle – commonly used in-thread
Mobile Responsive
320×100
Large Mobile Banner
320×50
Mobile Leaderboard
Footer
728×90 or 970×90
Good for bottom of pages
Tips for XenForo Ads
Use responsive ad units for mobile-friendliness.
Avoid placing too many ads close together to comply with Google AdSense policies.
Test different sizes with A/B testing to see which gives you the best CTR (click-through rate).
XenForo also supports HTML, JS, or AdSense code in its "Advertising" admin section under Appearance > Advertising.