By Benjamin Mullin and Drew FitzGerald

AT&T Inc. is in talks to acquire advertising technology company AppNexus, according to people familiar with the matter, a deal that would give the telecom giant a foothold in digital ad sales as it seeks to become a challenger to Alphabet Inc.’s Google and Facebook Inc…