If it's a public place and you have legitimate business starting there for a while, I don't see any issue with it. Eg. Doctors waiting room and you have an appointment, restaurant and you're dining there, etc.
If it's someone's private home I'd ask first.
On Android (13) you can delete the advertising ID under Security & Privacy > More privacy settings > Ads