It compares the cost of the project to its commercial benefits, generally using the turnover generated by the project in question. When applied to marketing:
ROI = cost of an ad campaign / turnover generated by this campaign.
If the outcome if positive, the campaign is profitable; if it is negative, the campaign is not profitable.