It generated $ 1.77 billion in cash from operations in the second quarter from sales of advertising sold alongside search results on Google.com and affiliated Web sites such as AOL , MySpace and Ask.com.