update google api samples by myself