If you are using the 3.3x version there is the ad system
System Settings > System > Ad Code Integration

and in particular under hooks
Ad Code Sidebar v1.0.0
Displays ad code on the board index sidebar