Hi Afsane,
Thank you for reaching out. You can retrieve the custom affinity via CustomAffinityService.get() and retieve the custom intent by querying the Criteria Performance Report and set the predicates with CriteriaType = “USER_INTEREST”. Please let me know if you have any further questions.
Thanks and regards,
Xiaoming, Google Ads API Team