There's a huge range of different methods for getting visitors to your website, including signaling to search engines like Google that your website is relevant to your topic, and spreading the word on social media. Because of the variety of strategies available to you, you'll be able to find something that suits your strengths to get the ball rolling for your own affiliate website.
There are several types of affiliate programs. Most will pay you a flat rate or percentage of the sale you make (pay-per-sale). Another common type is when you're paid per action or lead. For example, if you refer someone who signs up for businesses free trial, the business pays you for the sign-up. Although not seen as often anymore, some will pay you per click (this is seen most in contextual ad programs such as Google Adsense) or per impression (each time the ad is loaded on your website).
Whenever advertisers look for direct display ads or sponsored post ads on any blog or website they usually look for the metrics as those are the only signs via which one can get idea about the quality of website before even contacting with the owner. Getting targeted visitors via traffic generation tool will improve the rank and the rank will help you to get more advertisers who will pay you.