[PrivacyPrompts]  Migrate sample to unified APi