diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeFeatureCustomizations.java b/src/main/java/com/facebook/ads/sdk/AdCreativeFeatureCustomizations.java index a9c9768f..93de90f0 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeFeatureCustomizations.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeFeatureCustomizations.java @@ -41,22 +41,8 @@ * */ public class AdCreativeFeatureCustomizations extends APINode { - @SerializedName("background_color") - private String mBackgroundColor = null; - @SerializedName("catalog_feed_tag_name") - private String mCatalogFeedTagName = null; - @SerializedName("font_name") - private String mFontName = null; - @SerializedName("product_recommendation_type") - private String mProductRecommendationType = null; - @SerializedName("product_versioning_fallback_strategy") - private String mProductVersioningFallbackStrategy = null; @SerializedName("showcase_card_display") private String mShowcaseCardDisplay = null; - @SerializedName("text_style") - private String mTextStyle = null; - @SerializedName("video_crop_style") - private String mVideoCropStyle = null; protected static Gson gson = null; public AdCreativeFeatureCustomizations() { @@ -208,51 +194,6 @@ public String toString() { } - public String getFieldBackgroundColor() { - return mBackgroundColor; - } - - public AdCreativeFeatureCustomizations setFieldBackgroundColor(String value) { - this.mBackgroundColor = value; - return this; - } - - public String getFieldCatalogFeedTagName() { - return mCatalogFeedTagName; - } - - public AdCreativeFeatureCustomizations setFieldCatalogFeedTagName(String value) { - this.mCatalogFeedTagName = value; - return this; - } - - public String getFieldFontName() { - return mFontName; - } - - public AdCreativeFeatureCustomizations setFieldFontName(String value) { - this.mFontName = value; - return this; - } - - public String getFieldProductRecommendationType() { - return mProductRecommendationType; - } - - public AdCreativeFeatureCustomizations setFieldProductRecommendationType(String value) { - this.mProductRecommendationType = value; - return this; - } - - public String getFieldProductVersioningFallbackStrategy() { - return mProductVersioningFallbackStrategy; - } - - public AdCreativeFeatureCustomizations setFieldProductVersioningFallbackStrategy(String value) { - this.mProductVersioningFallbackStrategy = value; - return this; - } - public String getFieldShowcaseCardDisplay() { return mShowcaseCardDisplay; } @@ -262,24 +203,6 @@ public AdCreativeFeatureCustomizations setFieldShowcaseCardDisplay(String value) return this; } - public String getFieldTextStyle() { - return mTextStyle; - } - - public AdCreativeFeatureCustomizations setFieldTextStyle(String value) { - this.mTextStyle = value; - return this; - } - - public String getFieldVideoCropStyle() { - return mVideoCropStyle; - } - - public AdCreativeFeatureCustomizations setFieldVideoCropStyle(String value) { - this.mVideoCropStyle = value; - return this; - } - @@ -297,14 +220,7 @@ public AdCreativeFeatureCustomizations setFieldVideoCropStyle(String value) { } public AdCreativeFeatureCustomizations copyFrom(AdCreativeFeatureCustomizations instance) { - this.mBackgroundColor = instance.mBackgroundColor; - this.mCatalogFeedTagName = instance.mCatalogFeedTagName; - this.mFontName = instance.mFontName; - this.mProductRecommendationType = instance.mProductRecommendationType; - this.mProductVersioningFallbackStrategy = instance.mProductVersioningFallbackStrategy; this.mShowcaseCardDisplay = instance.mShowcaseCardDisplay; - this.mTextStyle = instance.mTextStyle; - this.mVideoCropStyle = instance.mVideoCropStyle; this.context = instance.context; this.rawValue = instance.rawValue; return this; diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeFeatureDetails.java b/src/main/java/com/facebook/ads/sdk/AdCreativeFeatureDetails.java index 2ff35a94..4f983f81 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeFeatureDetails.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeFeatureDetails.java @@ -41,6 +41,8 @@ * */ public class AdCreativeFeatureDetails extends APINode { + @SerializedName("customizations") + private AdCreativeFeatureCustomizations mCustomizations = null; @SerializedName("enroll_status") private String mEnrollStatus = null; protected static Gson gson = null; @@ -194,6 +196,20 @@ public String toString() { } + public AdCreativeFeatureCustomizations getFieldCustomizations() { + return mCustomizations; + } + + public AdCreativeFeatureDetails setFieldCustomizations(AdCreativeFeatureCustomizations value) { + this.mCustomizations = value; + return this; + } + + public AdCreativeFeatureDetails setFieldCustomizations(String value) { + Type type = new TypeToken(){}.getType(); + this.mCustomizations = AdCreativeFeatureCustomizations.getGson().fromJson(value, type); + return this; + } public String getFieldEnrollStatus() { return mEnrollStatus; } @@ -220,6 +236,7 @@ public AdCreativeFeatureDetails setFieldEnrollStatus(String value) { } public AdCreativeFeatureDetails copyFrom(AdCreativeFeatureDetails instance) { + this.mCustomizations = instance.mCustomizations; this.mEnrollStatus = instance.mEnrollStatus; this.context = instance.context; this.rawValue = instance.rawValue;