1. First you need to have Google's Adsense Account.
2. Click on 'my account'
3. From your account tab, click affiliate setting
4. Set the Google's adsense affiliate setting (enter the affiliate code)
For detailed FAQ, visit the below help links of HubPages
Hope I have answered your question to your understanding.