In your Google Ads account, navigate to Tools > Shared Library > Audience Management > Your Data Sources.
For dynamic remarketing, check the event data box and select the relevant event data variable.
Follow the correct GA4 server-side implementation sequence to ensure Google can recognize and forward the right data for dynamic remarketing.