Except in reality, the cloud business would “buy” ads from the ad business, and now you have an “expense” despite the fact that the money never went anywhere.
They "buy" the ads only on internal accounting. There's no tax deduction for that. For you to actually recognize an expense, you would also have to recognize the gain.