The RTB-Stack SDK allows you to include app category information in ad requests using the key page_categories
. This information helps in targeting ads more effectively based on the content categories of your app.
Single Category: To add a single category, use the addCustomKeywords
method with the key page_category
. Here is an example of how to add one category:
bannerAdView.addCustomKeywords("page_category", "test2");
Multiple Categories: If you need to pass several categories under the same key, you can call the addCustomKeywords
method multiple times with the same key but different values. Here is how you can add multiple categories:
bannerAdView.addCustomKeywords("page_category", "test2");
bannerAdView.addCustomKeywords("page_category", "test3");