First of all you need to have an attractive website. Secondly, you need to define your niche. Then create meaningful, well-written, unique and useful content. Lastly, market your site.
Traffic is very important. Once you show advertisers that you have the a lot of unique visitors a month, they may want to advertise on your site.