How do I assign donation pages and fundraising events to a campaign?

When you create an event, you will be asked to select a campaign.

The campaign for group donations can be set on the Settings of the group management page.