If you are running ads for the subjects in the EEA (European Economic Area), you must set up the consent mode, even if you are using first-party data using your own infrastructure.