SAN FRANCISCO—Cities from here to New York are cracking down on a form of marketing that some police liken to graffiti vandalism—much of it paid for by such marquee companies as Microsoft Corp. and others.

The marketing technique entails sending people out to plaster corporate logos and products on sidewalks and other public places. Proponents say it gives companies a cheap and creative way to advertise compared with conventional methods.

But...