News Corp shares gained 4% after it reported better-than-expected fourth-quarter earnings, despite a slump in ad revenues and pressures from a stronger dollar, as its digital real estate and book publishing businesses thrived.