It's immoral if you steal your prospective (non-customer) client data without their consent. Actually it's immoral even when the client actually is a customer, if you steal their data without their consent.
That is wholly distinct from ad customization. Collecting customer data is sometimes used for ad customization, but there are varying degrees of ethicality in collection.