How do content providers give their programs, and shows to the cable companies?

What is the process? Do they put their shows, with their ads already on the shows on a hard drive and ship it? What really goes on?

Sources appreciated for further reading

They're usually sent via satellite or directly downloaded with the national ads in, the local ones are inserted by the cable/satellite company.