YouTube ad revenue topped $10 billion for the first time in a single quarter, helping push parent Alphabet past Wall Street expectations.