Google Inc. agreed to acquire Red Hot Labs Inc., a mobile startup that helps companies manage advertising on rival Facebook Inc., bolstering its marketing tools on wireless devices.