I'm not familiar with any libraries for adding ads, but we always recommend people use the donation system over ads if possible. I've moved your topic to General Development.