When I was a child, my school would have fundraisers that involved us going door-to-door to sell magazine subscriptions (magazines were glossy, soft-cover publications that would be mailed to a subscriber’s house on a weekly or monthly basis). I didn’t realize it at the time, but I was right in the middle of an affiliate marketing scheme. The magazine companies had products they wanted to sell. Schools had the ability to sell these products. And for every subscription sold, the magazine companies gave a slice of the proceeds to the school. (In this example, there’s actually a secondary later of affiliate marketing; the schools effectively outsource the actual selling to the students, in exchange for prizes that come with meeting certain sales figures.)
Education occurs most often in "real life" by becoming involved and learning the details as time progresses. Although there are several books on the topic, some so-called "how-to" or "silver bullet" books instruct readers to manipulate holes in the Google algorithm, which can quickly become out of date, or suggest strategies no longer endorsed or permitted by advertisers.
Understand the basics of how affiliate marketing works. Many online retailers who sell products or services offer affiliate programs. If you decide to sign up for a company’s affiliate program, you get a tracking link to put on your blog. When visitors click on that link, the link stores a cookie in their browser that remains for a set period of time, such as 60 days. If the visitor purchases a product from that merchant site within the time period, you earn a sales commission.