Almost joining in is harder than being left out
A dog who cannot see or hear the fun usually settles. Your dog's problem is the opposite: the fence gives him the full soundtrack of children playing — running feet, laughter, a ball bouncing — plus their scent on the wind, while physically holding him a body's length away from all of it. That near-miss is the most frustrating arrangement there is for a social dog. Whining is the sound of motivation with nowhere to go.
Read his body to confirm the flavor. A loose, wagging, play-bowing dog pressed to the fence is asking to join. A dog who whines with ears back, pacing the fence line and unable to take treats may be aroused past enjoyment into stress, especially if the play involves shouting or sudden screaming that he cannot predict. The fix overlaps, but the stressed version needs more distance and calmer work.
Why scolding the whine backfires
Telling him off at the fence pairs your anger with the children's presence, which can sour his feelings about children generally while teaching him nothing about what to do instead. It also rarely works for long, because the drive to join a game is stronger than the wish to avoid a reprimand he only half understands. What changes behavior here is geometry and alternative payoffs — making calm distance more rewarding than fence-line yearning.
Start play sessions of your own in the far half of the garden while the children are out. A ball game, a scattering of treats to sniff out in the grass, or a short training round gives his social energy a legal outlet at the exact moment the temptation peaks. Reward any moment he glances at the fence and chooses to turn back to you; that glance-and-return is the skill you are building, and it grows fastest when it pays well.
Build the fence-line skill gradually
Once he can play happily at distance, let him watch from a chosen spot — a mat or a favorite resting place set back from the fence — with a long-lasting chew. You are teaching that the fence area is for calm observation, not for pressing and pleading. Sessions should end before he tips into whining, even if that means starting with very short ones, and if he fixates, increase the distance rather than battling for attention at the boundary itself.
If your neighbors are open to it, the real cure for the yearning is occasional genuine access: a calm, supervised meeting on neutral ground or a shared walk, arranged between adults first, with the children briefed to let him approach them rather than crowding him. One or two good experiences take the forbidden-fruit charge out of the fence. If meetings are not possible, that is fine — distance games and a settled watching spot still resolve most of the whining on their own.
Everyone in the house should run the same garden plan
Fence habits unravel when different people handle garden time differently — one plays distance games, another lets him press the fence for twenty minutes, a third scolds. Dogs consolidate whichever version gets rehearsed most.
Keep his notes — what game settles him, how long he can watch calmly, how he did with the children on a walk — somewhere the whole household reads them. With KinsLe Family Sharing, his profile and care details stay open to the family members who help look after him, so a grandparent or sitter supervising garden time works from the same fence plan you do.