Google's second-quarter revenue increased by 19% to about $14 billion, aided by consumers' shift to mobile devices, the company said Thursday.