Use AN in the first sentence, but after the first mention, use THE to refer to the advertisement. The difference between THE and AN lies in whether you want to be SPECIFIC about the advertisement. If you do, use THE.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.