Metcash is aiming for a $30m annual earnings contribution from retail media by 2029.