Twitter’s partnership with Google’s DoubleClick platform and its acquisition of a marketing technology firm are aimed at strengthening the social network’s direct response business amid a weak performance from newer products in the space.