A. Try tapping on the edges of the ad or looking for a small 'X' in the corner to close it. Sometimes ads have hidden close buttons.
B. If ads are persistent, consider using a different app that offers similar functionality with less intrusive advertising.