Run Registry Editor (regedit.exe).
Navigate to the following registry key:
HKEY_CURRENT_USER\Software\Yahoo\pager\Locale
In the right pane, locate a value named Enable Messenger Ad with default value as 1. Set the value to 0.
Restart Yahoo! Messenger 9.0.