From 9a1b1417bebef16d777222c1fa0ec37630630799 Mon Sep 17 00:00:00 2001 From: Norbert Bartels Date: Thu, 27 Aug 2020 23:47:49 +0200 Subject: [PATCH] Issue #1089 - Special Category Ads added --- src/main/lombok/com/restfb/types/ads/Campaign.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/lombok/com/restfb/types/ads/Campaign.java b/src/main/lombok/com/restfb/types/ads/Campaign.java index f7254d90a..b0d7fc873 100644 --- a/src/main/lombok/com/restfb/types/ads/Campaign.java +++ b/src/main/lombok/com/restfb/types/ads/Campaign.java @@ -260,11 +260,19 @@ public class Campaign extends NamedAdsObject implements HasCreatedTime { /** * The campaign's Special Ad Category. One of {@code HOUSING}, {@code EMPLOYMENT}, {@code CREDIT}, or {@code NONE}. */ + @Deprecated @Getter @Setter + @GraphAPI(until = "7.0") @Facebook("special_ad_category") private String specialAdCategory; + @Getter + @Setter + @GraphAPI(since = "7.0") + @Facebook("special_ad_categories") + private List specialAdCategories = new ArrayList<>(); + /** * A spend cap for the campaign, such that it will not spend more than this cap. Expressed as integer value of the * subunit in your currency.