Marissa Mayer, a top executive at Yahoo Inc. nemesis Google Inc., has agreed to become Yahoo’s fifth chief executive in the past five years. The Associated Press reports that Mayer played a key role in developing many of the Google services that drew Web surfers and advertisers away from the struggling portal.