Alphabet’s hardware growth adds to strength in core ad business