Google has begun to copy Facebook features and marketing tactics as the two companies battle for digital advertising dollars.