Thread:Project:Support desk/Where do I put Google AdSense code in Vector.php for a banner ad at the top?/reply (8)

I used this: public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {   }

$wgHooks['BeforePageDisplay'][] = 'OutputPage::addInlineScript';

Could you please show me how I should set it up?