You CAN NOT add "search code" to hub pages. But you can add your adsense pub code to hub pages. Find your pub id in your adsense account.
It would be like
Goto my account ->affiliate settings in your hubpages dashboard and enter your adsense id.
Good Luck !