i am creating enum for both post and get method.
@roshan_cygnet you should avoid creating your own hard-coded enum of targeting type values. The reason we provide end-points like GET targeting_criteria/languages is that we do change those values and available targeting criteria from time to time.
While many don’t change often, others do and across the board there’s no guarantee that these values will be permanent. Before creating any new targeting criteria, you should refresh these values from time to time (interval depends on the specific type) and make sure you’re working with the latest set of targeting type values.
For languages, you can probably check for changes as little as monthly or bi-monthly. For other targeting criteria type like TV shows, you should refresh weekly.