In the states out west that I'm familiar with, it's illegal to have anyone campaigning in any way, shape, or form, within a pretty big distance of a polling place.
In Georgia, no campaigning is allowed within 150 feet of a polling place or 25 feet of the line of voters. Specifically:
"No person shall solicit votes in any manner or by any means or method, nor shall any person distribute or display any campaign literature, newspaper, booklet, pamphlet, card, sign, paraphernalia, or any other written or printed matter of any kind, nor shall any person solicit signatures for any petition or conduct any exit poll or public opinion poll with voters on any day in which ballots are being
cast: (1) within 150 feet of the outer edge of any building within which a polling place is established; (2) within any polling place; or (3) within 25 feet of any voter standing in line to vote at any polling place. (Ga. Code Ann. § 21‐2‐414(a))"