The Pledge of Allegiance was created as part of a youth magazine’s marketing campaign to sell flags to public schools and magazines to students.