From 430e25ea9868a71fcb941b045fef3c06205dd22c Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Tue, 17 Sep 2024 12:24:29 -0700 Subject: [PATCH] Update AdCreativeFeatureDetails Fields Summary: [BizSDK] Update AdCreativeFeatureDetails Fields Add the customizations field in AdCreativeFeatureDetails node. Also remove some unsupported fields from the AdCreativeFeatureCustomizations node. Reviewed By: liliarizona Differential Revision: D62890910 fbshipit-source-id: 1fdad3ce9d8c17811e67dd1d79d5026ce6b27c89 --- .../AdCreativeFeatureCustomizationsFields.php | 14 -------------- .../Fields/AdCreativeFeatureDetailsFields.php | 2 ++ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php index 1a77c37cd..c1c313549 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php @@ -22,25 +22,11 @@ class AdCreativeFeatureCustomizationsFields extends AbstractEnum { - const BACKGROUND_COLOR = 'background_color'; - const CATALOG_FEED_TAG_NAME = 'catalog_feed_tag_name'; - const FONT_NAME = 'font_name'; - const PRODUCT_RECOMMENDATION_TYPE = 'product_recommendation_type'; - const PRODUCT_VERSIONING_FALLBACK_STRATEGY = 'product_versioning_fallback_strategy'; const SHOWCASE_CARD_DISPLAY = 'showcase_card_display'; - const TEXT_STYLE = 'text_style'; - const VIDEO_CROP_STYLE = 'video_crop_style'; public function getFieldTypes() { return array( - 'background_color' => 'string', - 'catalog_feed_tag_name' => 'string', - 'font_name' => 'string', - 'product_recommendation_type' => 'string', - 'product_versioning_fallback_strategy' => 'string', 'showcase_card_display' => 'string', - 'text_style' => 'string', - 'video_crop_style' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php index 8e3a03fe7..834f17a09 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php @@ -22,10 +22,12 @@ class AdCreativeFeatureDetailsFields extends AbstractEnum { + const CUSTOMIZATIONS = 'customizations'; const ENROLL_STATUS = 'enroll_status'; public function getFieldTypes() { return array( + 'customizations' => 'AdCreativeFeatureCustomizations', 'enroll_status' => 'string', ); }