Google's parent company had better-than-expected first-quarter revenue, but advertising costs soared