Skip to content

Commit

Permalink
Auto-generated python SDK code update
Browse files Browse the repository at this point in the history
Summary: ignore-conflict-markers

Reviewed By: stcheng

Differential Revision: D51766614

fbshipit-source-id: 0670148c97a5cfc12bbebe81e2bc32d44c79969e
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Dec 4, 2023
1 parent be38bc6 commit c7b025a
Show file tree
Hide file tree
Showing 23 changed files with 565 additions and 49 deletions.
2 changes: 1 addition & 1 deletion facebook_business/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from facebook_business.session import FacebookSession
from facebook_business.api import FacebookAdsApi

__version__ = '18.0.4'
__version__ = '18.0.5'
__all__ = [
'session',
'objects',
Expand Down
45 changes: 45 additions & 0 deletions facebook_business/adobjects/adassetfeedadditionaldata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from facebook_business.adobjects.abstractobject import AbstractObject

"""
This class is auto-generated.
For any issues or feature requests related to this class, please let us know on
github and we'll fix in our codegen framework. We'll not be able to accept
pull request for this class.
"""

class AdAssetFeedAdditionalData(
AbstractObject,
):

def __init__(self, api=None):
super(AdAssetFeedAdditionalData, self).__init__()
self._isAdAssetFeedAdditionalData = True
self._api = api

class Field(AbstractObject.Field):
automated_product_tags = 'automated_product_tags'
brand_page_id = 'brand_page_id'
is_click_to_message = 'is_click_to_message'
multi_share_end_card = 'multi_share_end_card'
page_welcome_message = 'page_welcome_message'

_field_types = {
'automated_product_tags': 'bool',
'brand_page_id': 'string',
'is_click_to_message': 'bool',
'multi_share_end_card': 'bool',
'page_welcome_message': 'string',
}
@classmethod
def _get_field_enum_info(cls):
field_enum_info = {}
return field_enum_info


10 changes: 5 additions & 5 deletions facebook_business/adobjects/adassetfeedspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,22 @@ class CallToActionTypes:

_field_types = {
'ad_formats': 'list<string>',
'additional_data': 'Object',
'additional_data': 'AdAssetFeedAdditionalData',
'app_product_page_id': 'string',
'asset_customization_rules': 'list<AdAssetFeedSpecAssetCustomizationRule>',
'autotranslate': 'list<string>',
'bodies': 'list<AdAssetFeedSpecBody>',
'call_to_action_types': 'list<CallToActionTypes>',
'call_to_actions': 'list<Object>',
'call_to_actions': 'list<AdAssetFeedSpecCallToAction>',
'captions': 'list<AdAssetFeedSpecCaption>',
'carousels': 'list<Object>',
'carousels': 'list<AdAssetFeedSpecCarousel>',
'descriptions': 'list<AdAssetFeedSpecDescription>',
'events': 'list<Object>',
'events': 'list<AdAssetFeedSpecEvents>',
'groups': 'list<AdAssetFeedSpecGroupRule>',
'images': 'list<AdAssetFeedSpecImage>',
'link_urls': 'list<AdAssetFeedSpecLinkURL>',
'message_extensions': 'list<AdAssetMessageExtensions>',
'onsite_destinations': 'list<Object>',
'onsite_destinations': 'list<AdAssetOnsiteDestinations>',
'optimization_type': 'string',
'reasons_to_shop': 'bool',
'shops_bundle': 'bool',
Expand Down
41 changes: 41 additions & 0 deletions facebook_business/adobjects/adassetfeedspeccalltoaction.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from facebook_business.adobjects.abstractobject import AbstractObject

"""
This class is auto-generated.
For any issues or feature requests related to this class, please let us know on
github and we'll fix in our codegen framework. We'll not be able to accept
pull request for this class.
"""

class AdAssetFeedSpecCallToAction(
AbstractObject,
):

def __init__(self, api=None):
super(AdAssetFeedSpecCallToAction, self).__init__()
self._isAdAssetFeedSpecCallToAction = True
self._api = api

class Field(AbstractObject.Field):
adlabels = 'adlabels'
type = 'type'
value = 'value'

_field_types = {
'adlabels': 'list<AdAssetFeedSpecAssetLabel>',
'type': 'string',
'value': 'AdCreativeLinkDataCallToActionValue',
}
@classmethod
def _get_field_enum_info(cls):
field_enum_info = {}
return field_enum_info


43 changes: 43 additions & 0 deletions facebook_business/adobjects/adassetfeedspeccarousel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from facebook_business.adobjects.abstractobject import AbstractObject

"""
This class is auto-generated.
For any issues or feature requests related to this class, please let us know on
github and we'll fix in our codegen framework. We'll not be able to accept
pull request for this class.
"""

class AdAssetFeedSpecCarousel(
AbstractObject,
):

def __init__(self, api=None):
super(AdAssetFeedSpecCarousel, self).__init__()
self._isAdAssetFeedSpecCarousel = True
self._api = api

class Field(AbstractObject.Field):
adlabels = 'adlabels'
child_attachments = 'child_attachments'
multi_share_end_card = 'multi_share_end_card'
multi_share_optimized = 'multi_share_optimized'

_field_types = {
'adlabels': 'list<AdAssetFeedSpecAssetLabel>',
'child_attachments': 'list<AdAssetFeedSpecCarouselChildAttachment>',
'multi_share_end_card': 'bool',
'multi_share_optimized': 'bool',
}
@classmethod
def _get_field_enum_info(cls):
field_enum_info = {}
return field_enum_info


Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from facebook_business.adobjects.abstractobject import AbstractObject

"""
This class is auto-generated.
For any issues or feature requests related to this class, please let us know on
github and we'll fix in our codegen framework. We'll not be able to accept
pull request for this class.
"""

class AdAssetFeedSpecCarouselChildAttachment(
AbstractObject,
):

def __init__(self, api=None):
super(AdAssetFeedSpecCarouselChildAttachment, self).__init__()
self._isAdAssetFeedSpecCarouselChildAttachment = True
self._api = api

class Field(AbstractObject.Field):
body_label = 'body_label'
call_to_action_type_label = 'call_to_action_type_label'
caption_label = 'caption_label'
description_label = 'description_label'
image_label = 'image_label'
link_url_label = 'link_url_label'
phone_data_ids_label = 'phone_data_ids_label'
static_card = 'static_card'
title_label = 'title_label'
video_label = 'video_label'

_field_types = {
'body_label': 'AdAssetFeedSpecAssetLabel',
'call_to_action_type_label': 'AdAssetFeedSpecAssetLabel',
'caption_label': 'AdAssetFeedSpecAssetLabel',
'description_label': 'AdAssetFeedSpecAssetLabel',
'image_label': 'AdAssetFeedSpecAssetLabel',
'link_url_label': 'AdAssetFeedSpecAssetLabel',
'phone_data_ids_label': 'AdAssetFeedSpecAssetLabel',
'static_card': 'bool',
'title_label': 'AdAssetFeedSpecAssetLabel',
'video_label': 'AdAssetFeedSpecAssetLabel',
}
@classmethod
def _get_field_enum_info(cls):
field_enum_info = {}
return field_enum_info


40 changes: 40 additions & 0 deletions facebook_business/adobjects/adassetfeedspecevents.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from facebook_business.adobjects.abstractobject import AbstractObject
from facebook_business.adobjects.abstractcrudobject import AbstractCrudObject
from facebook_business.adobjects.objectparser import ObjectParser
from facebook_business.api import FacebookRequest
from facebook_business.typechecker import TypeChecker

"""
This class is auto-generated.
For any issues or feature requests related to this class, please let us know on
github and we'll fix in our codegen framework. We'll not be able to accept
pull request for this class.
"""

class AdAssetFeedSpecEvents(
AbstractCrudObject,
):

def __init__(self, fbid=None, parent_id=None, api=None):
self._isAdAssetFeedSpecEvents = True
super(AdAssetFeedSpecEvents, self).__init__(fbid, parent_id, api)

class Field(AbstractObject.Field):
id = 'id'

_field_types = {
'id': 'string',
}
@classmethod
def _get_field_enum_info(cls):
field_enum_info = {}
return field_enum_info


43 changes: 43 additions & 0 deletions facebook_business/adobjects/adassetonsitedestinations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from facebook_business.adobjects.abstractobject import AbstractObject

"""
This class is auto-generated.
For any issues or feature requests related to this class, please let us know on
github and we'll fix in our codegen framework. We'll not be able to accept
pull request for this class.
"""

class AdAssetOnsiteDestinations(
AbstractObject,
):

def __init__(self, api=None):
super(AdAssetOnsiteDestinations, self).__init__()
self._isAdAssetOnsiteDestinations = True
self._api = api

class Field(AbstractObject.Field):
auto_optimization = 'auto_optimization'
details_page_product_id = 'details_page_product_id'
shop_collection_product_set_id = 'shop_collection_product_set_id'
storefront_shop_id = 'storefront_shop_id'

_field_types = {
'auto_optimization': 'string',
'details_page_product_id': 'string',
'shop_collection_product_set_id': 'string',
'storefront_shop_id': 'string',
}
@classmethod
def _get_field_enum_info(cls):
field_enum_info = {}
return field_enum_info


2 changes: 1 addition & 1 deletion facebook_business/adobjects/adcreativebrandedcontentads.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Field(AbstractObject.Field):
'creator_ad_permission_type': 'string',
'instagram_boost_post_access_token': 'string',
'is_mca_internal': 'bool',
'partners': 'list<Object>',
'partners': 'list<AdCreativeBrandedContentAdsPartners>',
'ui_version': 'int',
}
@classmethod
Expand Down
43 changes: 43 additions & 0 deletions facebook_business/adobjects/adcreativebrandedcontentadspartners.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from facebook_business.adobjects.abstractobject import AbstractObject

"""
This class is auto-generated.
For any issues or feature requests related to this class, please let us know on
github and we'll fix in our codegen framework. We'll not be able to accept
pull request for this class.
"""

class AdCreativeBrandedContentAdsPartners(
AbstractObject,
):

def __init__(self, api=None):
super(AdCreativeBrandedContentAdsPartners, self).__init__()
self._isAdCreativeBrandedContentAdsPartners = True
self._api = api

class Field(AbstractObject.Field):
fb_page_id = 'fb_page_id'
identity_type = 'identity_type'
ig_asset_id = 'ig_asset_id'
ig_user_id = 'ig_user_id'

_field_types = {
'fb_page_id': 'string',
'identity_type': 'string',
'ig_asset_id': 'string',
'ig_user_id': 'string',
}
@classmethod
def _get_field_enum_info(cls):
field_enum_info = {}
return field_enum_info


1 change: 1 addition & 0 deletions facebook_business/adobjects/advideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ class ContainerType:
instagram_video_copy = 'INSTAGRAM_VIDEO_COPY'
instant_application_preview = 'INSTANT_APPLICATION_PREVIEW'
instant_article = 'INSTANT_ARTICLE'
instant_games_promo = 'INSTANT_GAMES_PROMO'
instant_game_clip = 'INSTANT_GAME_CLIP'
issue_module = 'ISSUE_MODULE'
jobs_careers = 'JOBS_CAREERS'
Expand Down
Loading

0 comments on commit c7b025a

Please sign in to comment.