Skip to content

Commit

Permalink
Update AdCreativeFeatureDetails Fields
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stcheng authored and facebook-github-bot committed Sep 17, 2024
1 parent 950f296 commit 5fa1e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 0 additions & 14 deletions facebook_business/adobjects/adcreativefeaturecustomizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,10 @@ def __init__(self, api=None):
self._api = api

class Field(AbstractObject.Field):
background_color = 'background_color'
catalog_feed_tag_name = 'catalog_feed_tag_name'
font_name = 'font_name'
product_recommendation_type = 'product_recommendation_type'
product_versioning_fallback_strategy = 'product_versioning_fallback_strategy'
showcase_card_display = 'showcase_card_display'
text_style = 'text_style'
video_crop_style = 'video_crop_style'

_field_types = {
'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',
}
@classmethod
def _get_field_enum_info(cls):
Expand Down
2 changes: 2 additions & 0 deletions facebook_business/adobjects/adcreativefeaturedetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ def __init__(self, api=None):
self._api = api

class Field(AbstractObject.Field):
customizations = 'customizations'
enroll_status = 'enroll_status'

_field_types = {
'customizations': 'AdCreativeFeatureCustomizations',
'enroll_status': 'string',
}
@classmethod
Expand Down

0 comments on commit 5fa1e37

Please sign in to comment.