Starting July 1, developers of adware for Windows will have to contend with new Microsoft-imposed rules aimed at making it easier for people to stop bothersome ads.