Link history
GA4 cost import CSV is a template: one row per campaign with utm_id, already with the columns Google asks for. You fill in date, impressions, clicks and cost with what your ad platform shows. How to import, in Google’s help center.
Your history lives in this browser. While the backend is off, clearing site data erases everything and nothing shows up on another computer. Export the CSV when you need to keep a real record.