diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 185e2ebcc..806fe96f1 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '18.0'; - const SDKVersion = '18.0.1'; + const SDKVersion = '18.0.2'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index ef06be711..59054ed05 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -842,103 +842,6 @@ public function createAd(array $fields = array(), array $params = array(), $pend return $pending ? $request : $request->execute(); } - public function createAdsConversionGoal(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'conversion_event_value_source' => 'conversion_event_value_source_enum', - 'description' => 'string', - 'goal_creation_method' => 'goal_creation_method_enum', - 'goal_name' => 'string', - 'performance_goal' => 'performance_goal_enum', - 'single_channel_conversion_events' => 'list', - 'value_adjustment_rule' => 'map', - ); - $enums = array( - 'conversion_event_value_source_enum' => array( - 'DATA_SOURCE', - 'VALUE_RULE', - ), - 'goal_creation_method_enum' => array( - 'ADVERTISER_CREATED_UI', - 'AUTO_MIGRATION', - 'L2_ENHANCE_API_MIGRATION', - ), - 'performance_goal_enum' => array( - 'AD_OPTIMIZATION_GOAL_AD_RECALL_LIFT', - 'AD_OPTIMIZATION_GOAL_APP_DOWNLOADS', - 'AD_OPTIMIZATION_GOAL_APP_INSTALLS', - 'AD_OPTIMIZATION_GOAL_APP_INSTALLS_AND_OFFSITE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_BRAND_AWARENESS', - 'AD_OPTIMIZATION_GOAL_CLICKS', - 'AD_OPTIMIZATION_GOAL_COMPLETED_VIDEO_VIEWS', - 'AD_OPTIMIZATION_GOAL_CONVERSATIONS', - 'AD_OPTIMIZATION_GOAL_DERIVED_EVENTS', - 'AD_OPTIMIZATION_GOAL_DWELLS', - 'AD_OPTIMIZATION_GOAL_ENGAGED_REACH', - 'AD_OPTIMIZATION_GOAL_ENGAGED_USERS', - 'AD_OPTIMIZATION_GOAL_EVENT_RESPONSES', - 'AD_OPTIMIZATION_GOAL_EXTERNAL', - 'AD_OPTIMIZATION_GOAL_IMPRESSIONS', - 'AD_OPTIMIZATION_GOAL_INCREMENTAL_OFFSITE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_IN_APP_VALUE', - 'AD_OPTIMIZATION_GOAL_JOB_APPLICATIONS', - 'AD_OPTIMIZATION_GOAL_LANDING_PAGE_VIEWS', - 'AD_OPTIMIZATION_GOAL_LEAD_GENERATION', - 'AD_OPTIMIZATION_GOAL_MEDIA_DOWNLOADS', - 'AD_OPTIMIZATION_GOAL_MESSAGING_APPOINTMENT_CONVERSION', - 'AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_FOLLOW', - 'AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_REPLY', - 'AD_OPTIMIZATION_GOAL_MESSAGING_PURCHASE_CONVERSION', - 'AD_OPTIMIZATION_GOAL_MID_FUNNEL_EVENT', - 'AD_OPTIMIZATION_GOAL_MRC_VIDEO_VIEWS', - 'AD_OPTIMIZATION_GOAL_MULTI_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_NONE', - 'AD_OPTIMIZATION_GOAL_OFFER_CLAIMS', - 'AD_OPTIMIZATION_GOAL_OFFLINE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_OFFSITE_CLICKS', - 'AD_OPTIMIZATION_GOAL_OFFSITE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_ONSITE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_PAGE_ENGAGEMENT', - 'AD_OPTIMIZATION_GOAL_PAGE_FOLLOWS', - 'AD_OPTIMIZATION_GOAL_PAGE_LIKES', - 'AD_OPTIMIZATION_GOAL_POST_ENGAGEMENT', - 'AD_OPTIMIZATION_GOAL_QUALITY_CALL', - 'AD_OPTIMIZATION_GOAL_QUALITY_LEAD', - 'AD_OPTIMIZATION_GOAL_REACH', - 'AD_OPTIMIZATION_GOAL_REMINDERS_SET', - 'AD_OPTIMIZATION_GOAL_REPLIES', - 'AD_OPTIMIZATION_GOAL_RESEARCH_POLL_RESPONSES', - 'AD_OPTIMIZATION_GOAL_RETENTION', - 'AD_OPTIMIZATION_GOAL_RETURN_ON_AD_SPEND', - 'AD_OPTIMIZATION_GOAL_SOCIAL_IMPRESSIONS', - 'AD_OPTIMIZATION_GOAL_STORE_VISITS', - 'AD_OPTIMIZATION_GOAL_SUBSCRIBERS', - 'AD_OPTIMIZATION_GOAL_TICKET_PURCHASE', - 'AD_OPTIMIZATION_GOAL_VALUE', - 'AD_OPTIMIZATION_GOAL_VIDEO_LONG_VIEWS', - 'AD_OPTIMIZATION_GOAL_VIDEO_VIEWS', - 'AD_OPTIMIZATION_GOAL_VIDEO_VIEWS_15S', - 'AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE', - 'AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE_AND_PROFILE_ACTIONS', - ), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/ads_conversion_goal', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getAdsReportingMmmReports(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AdsPixel.php b/src/FacebookAds/Object/AdsPixel.php index 5f3d95e94..1b568aa51 100644 --- a/src/FacebookAds/Object/AdsPixel.php +++ b/src/FacebookAds/Object/AdsPixel.php @@ -107,6 +107,30 @@ public function getAgencies(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function createAhpConfig(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'applink_autosetup' => 'bool', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/ahp_configs', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getAssignedUsers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Business.php b/src/FacebookAds/Object/Business.php index 41fa821f1..f3bcd7a08 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -1770,6 +1770,8 @@ public function createOpenBridgeConfiguration(array $fields = array(), array $pa 'access_key' => 'string', 'active' => 'bool', 'endpoint' => 'string', + 'fallback_domain' => 'string', + 'fallback_domain_enabled' => 'bool', 'host_business_id' => 'unsigned int', 'host_external_id' => 'string', 'pixel_id' => 'unsigned int', @@ -2046,6 +2048,7 @@ public function createOwnedPage(array $fields = array(), array $params = array() $param_types = array( 'code' => 'string', + 'entry_point' => 'string', 'page_id' => 'int', ); $enums = array( @@ -2825,6 +2828,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( + 'entry_point' => 'string', 'name' => 'string', 'primary_page' => 'string', 'timezone_id' => 'unsigned int', diff --git a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php index af4c1f78c..d8b5f4ad2 100644 --- a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php +++ b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php @@ -45,7 +45,6 @@ class AdPromotedObjectFields extends AbstractEnum { const PRODUCT_ITEM_ID = 'product_item_id'; const PRODUCT_SET_ID = 'product_set_id'; const RETENTION_DAYS = 'retention_days'; - const WHATS_APP_BUSINESS_PHONE_NUMBER_ID = 'whats_app_business_phone_number_id'; public function getFieldTypes() { return array( @@ -72,7 +71,6 @@ public function getFieldTypes() { 'product_item_id' => 'string', 'product_set_id' => 'string', 'retention_days' => 'string', - 'whats_app_business_phone_number_id' => 'Object', ); } } diff --git a/src/FacebookAds/Object/Fields/IGMediaFields.php b/src/FacebookAds/Object/Fields/IGMediaFields.php index f87e4de01..d26ccf153 100644 --- a/src/FacebookAds/Object/Fields/IGMediaFields.php +++ b/src/FacebookAds/Object/Fields/IGMediaFields.php @@ -24,6 +24,7 @@ class IGMediaFields extends AbstractEnum { const CAPTION = 'caption'; const COMMENTS_COUNT = 'comments_count'; + const COPYRIGHT_CHECK_INFORMATION = 'copyright_check_information'; const ID = 'id'; const IG_ID = 'ig_id'; const IS_COMMENT_ENABLED = 'is_comment_enabled'; @@ -43,6 +44,7 @@ public function getFieldTypes() { return array( 'caption' => 'string', 'comments_count' => 'int', + 'copyright_check_information' => 'IGVideoCopyrightCheckMatchesInformation', 'id' => 'string', 'ig_id' => 'string', 'is_comment_enabled' => 'bool', diff --git a/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckMatchesInformationFields.php b/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckMatchesInformationFields.php new file mode 100644 index 000000000..b5fdc4828 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckMatchesInformationFields.php @@ -0,0 +1,34 @@ + 'list', + 'status' => 'IGVideoCopyrightCheckStatus', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckStatusFields.php b/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckStatusFields.php new file mode 100644 index 000000000..5433e4641 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckStatusFields.php @@ -0,0 +1,34 @@ + 'bool', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstagramCommentFields.php b/src/FacebookAds/Object/Fields/InstagramCommentFields.php index e58fd30bd..4cb25e15b 100644 --- a/src/FacebookAds/Object/Fields/InstagramCommentFields.php +++ b/src/FacebookAds/Object/Fields/InstagramCommentFields.php @@ -29,6 +29,7 @@ class InstagramCommentFields extends AbstractEnum { const INSTAGRAM_USER = 'instagram_user'; const MENTIONED_INSTAGRAM_USERS = 'mentioned_instagram_users'; const MESSAGE = 'message'; + const USERNAME = 'username'; public function getFieldTypes() { return array( @@ -39,6 +40,7 @@ public function getFieldTypes() { 'instagram_user' => 'InstagramUser', 'mentioned_instagram_users' => 'list', 'message' => 'string', + 'username' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php b/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php index 2ae76151e..889c96139 100644 --- a/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php +++ b/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php @@ -25,6 +25,8 @@ class OpenBridgeConfigurationFields extends AbstractEnum { const ACCESS_KEY = 'access_key'; const ACTIVE = 'active'; const ENDPOINT = 'endpoint'; + const FALLBACK_DOMAIN = 'fallback_domain'; + const FALLBACK_DOMAIN_ENABLED = 'fallback_domain_enabled'; const HOST_BUSINESS_ID = 'host_business_id'; const HOST_EXTERNAL_ID = 'host_external_id'; const ID = 'id'; @@ -35,6 +37,8 @@ public function getFieldTypes() { 'access_key' => 'string', 'active' => 'bool', 'endpoint' => 'string', + 'fallback_domain' => 'string', + 'fallback_domain_enabled' => 'bool', 'host_business_id' => 'string', 'host_external_id' => 'string', 'id' => 'string', diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index a51dbcc22..27448cb12 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -59,6 +59,7 @@ class PageFields extends AbstractEnum { const DIRECTED_BY = 'directed_by'; const DISPLAY_SUBTEXT = 'display_subtext'; const DISPLAYED_MESSAGE_RESPONSE_TIME = 'displayed_message_response_time'; + const DOES_VIEWER_HAVE_PAGE_PERMISSION_LINK_IG = 'does_viewer_have_page_permission_link_ig'; const EMAILS = 'emails'; const ENGAGEMENT = 'engagement'; const FAN_COUNT = 'fan_count'; @@ -87,6 +88,7 @@ class PageFields extends AbstractEnum { const IS_CHAIN = 'is_chain'; const IS_COMMUNITY_PAGE = 'is_community_page'; const IS_ELIGIBLE_FOR_BRANDED_CONTENT = 'is_eligible_for_branded_content'; + const IS_ELIGIBLE_FOR_DISABLE_CONNECT_IG_BTN_FOR_NON_PAGE_ADMIN_AM_WEB = 'is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web'; const IS_MESSENGER_BOT_GET_STARTED_ENABLED = 'is_messenger_bot_get_started_enabled'; const IS_MESSENGER_PLATFORM_BOT = 'is_messenger_platform_bot'; const IS_OWNED = 'is_owned'; @@ -106,7 +108,6 @@ class PageFields extends AbstractEnum { const MERCHANT_REVIEW_STATUS = 'merchant_review_status'; const MESSAGING_FEATURE_STATUS = 'messaging_feature_status'; const MESSENGER_ADS_DEFAULT_ICEBREAKERS = 'messenger_ads_default_icebreakers'; - const MESSENGER_ADS_DEFAULT_PAGE_WELCOME_MESSAGE = 'messenger_ads_default_page_welcome_message'; const MESSENGER_ADS_DEFAULT_QUICK_REPLIES = 'messenger_ads_default_quick_replies'; const MESSENGER_ADS_QUICK_REPLIES_TYPE = 'messenger_ads_quick_replies_type'; const MINI_SHOP_STOREFRONT = 'mini_shop_storefront'; @@ -210,6 +211,7 @@ public function getFieldTypes() { 'directed_by' => 'string', 'display_subtext' => 'string', 'displayed_message_response_time' => 'string', + 'does_viewer_have_page_permission_link_ig' => 'bool', 'emails' => 'list', 'engagement' => 'Engagement', 'fan_count' => 'unsigned int', @@ -238,6 +240,7 @@ public function getFieldTypes() { 'is_chain' => 'bool', 'is_community_page' => 'bool', 'is_eligible_for_branded_content' => 'bool', + 'is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web' => 'bool', 'is_messenger_bot_get_started_enabled' => 'bool', 'is_messenger_platform_bot' => 'bool', 'is_owned' => 'bool', @@ -257,7 +260,6 @@ public function getFieldTypes() { 'merchant_review_status' => 'string', 'messaging_feature_status' => 'MessagingFeatureStatus', 'messenger_ads_default_icebreakers' => 'list', - 'messenger_ads_default_page_welcome_message' => 'MessengerDestinationPageWelcomeMessage', 'messenger_ads_default_quick_replies' => 'list', 'messenger_ads_quick_replies_type' => 'string', 'mini_shop_storefront' => 'Shop', diff --git a/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php b/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php index 65b43731e..02acf25bc 100644 --- a/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php +++ b/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php @@ -22,12 +22,14 @@ class ShadowIGMediaBuilderFields extends AbstractEnum { + const COPYRIGHT_CHECK_STATUS = 'copyright_check_status'; const ID = 'id'; const STATUS = 'status'; const STATUS_CODE = 'status_code'; public function getFieldTypes() { return array( + 'copyright_check_status' => 'IGVideoCopyrightCheckStatus', 'id' => 'string', 'status' => 'string', 'status_code' => 'string', diff --git a/src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php b/src/FacebookAds/Object/Fields/ShadowIGMediaCollaboratorsFields.php similarity index 54% rename from src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php rename to src/FacebookAds/Object/Fields/ShadowIGMediaCollaboratorsFields.php index 4c98a33c9..5a60ec131 100644 --- a/src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php +++ b/src/FacebookAds/Object/Fields/ShadowIGMediaCollaboratorsFields.php @@ -20,23 +20,17 @@ * */ -class MessengerDestinationPageWelcomeMessageFields extends AbstractEnum { +class ShadowIGMediaCollaboratorsFields extends AbstractEnum { const ID = 'id'; - const PAGE_WELCOME_MESSAGE_BODY = 'page_welcome_message_body'; - const PAGE_WELCOME_MESSAGE_TYPE = 'page_welcome_message_type'; - const TEMPLATE_NAME = 'template_name'; - const TIME_CREATED = 'time_created'; - const TIME_LAST_USED = 'time_last_used'; + const INVITE_STATUS = 'invite_status'; + const USERNAME = 'username'; public function getFieldTypes() { return array( 'id' => 'string', - 'page_welcome_message_body' => 'string', - 'page_welcome_message_type' => 'string', - 'template_name' => 'string', - 'time_created' => 'datetime', - 'time_last_used' => 'datetime', + 'invite_status' => 'string', + 'username' => 'string', ); } } diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index 994dc1f6a..9c2c3ff3f 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -179,53 +179,6 @@ public function createAlbum(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function getAttachmentSurfaces(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/attachment_surfaces', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function createAttachmentSurface(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'title' => 'map', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/attachment_surfaces', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getDocs(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/IGMedia.php b/src/FacebookAds/Object/IGMedia.php index a313fe357..88acc8256 100644 --- a/src/FacebookAds/Object/IGMedia.php +++ b/src/FacebookAds/Object/IGMedia.php @@ -65,6 +65,29 @@ public function getChildren(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function getCollaborators(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/collaborators', + new ShadowIGMediaCollaborators(), + 'EDGE', + ShadowIGMediaCollaborators::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getComments(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/MessengerDestinationPageWelcomeMessage.php b/src/FacebookAds/Object/IGVideoCopyrightCheckMatchesInformation.php similarity index 73% rename from src/FacebookAds/Object/MessengerDestinationPageWelcomeMessage.php rename to src/FacebookAds/Object/IGVideoCopyrightCheckMatchesInformation.php index ec25cf157..fabde2c68 100644 --- a/src/FacebookAds/Object/MessengerDestinationPageWelcomeMessage.php +++ b/src/FacebookAds/Object/IGVideoCopyrightCheckMatchesInformation.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\MessengerDestinationPageWelcomeMessageFields; +use FacebookAds\Object\Fields\IGVideoCopyrightCheckMatchesInformationFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class MessengerDestinationPageWelcomeMessage extends AbstractCrudObject { +class IGVideoCopyrightCheckMatchesInformation extends AbstractObject { /** - * @return MessengerDestinationPageWelcomeMessageFields + * @return IGVideoCopyrightCheckMatchesInformationFields */ public static function getFieldsEnum() { - return MessengerDestinationPageWelcomeMessageFields::getInstance(); + return IGVideoCopyrightCheckMatchesInformationFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/IGVideoCopyrightCheckStatus.php b/src/FacebookAds/Object/IGVideoCopyrightCheckStatus.php new file mode 100644 index 000000000..cff961bb3 --- /dev/null +++ b/src/FacebookAds/Object/IGVideoCopyrightCheckStatus.php @@ -0,0 +1,42 @@ + 'string', 'active' => 'bool', 'endpoint' => 'string', + 'fallback_domain' => 'string', + 'fallback_domain_enabled' => 'bool', 'host_business_id' => 'unsigned int', 'host_external_id' => 'string', ); diff --git a/src/FacebookAds/Object/Page.php b/src/FacebookAds/Object/Page.php index 41dde3dd1..6c2b8e2b8 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -1738,8 +1738,8 @@ public function deleteLocations(array $fields = array(), array $params = array() $this->assureId(); $param_types = array( - 'location_page_id' => 'string', - 'store_number' => 'unsigned int', + 'location_page_ids' => 'list', + 'store_numbers' => 'list', ); $enums = array( ); diff --git a/src/FacebookAds/Object/ShadowIGMediaCollaborators.php b/src/FacebookAds/Object/ShadowIGMediaCollaborators.php new file mode 100644 index 000000000..05182b2e5 --- /dev/null +++ b/src/FacebookAds/Object/ShadowIGMediaCollaborators.php @@ -0,0 +1,42 @@ +assureId(); $param_types = array( + 'categories' => 'list', 'clone_extension_id' => 'string', 'clone_template' => 'string', 'data_channel_uri' => 'string', 'name' => 'string', ); $enums = array( + 'categories_enum' => array( + 'APPOINTMENT_BOOKING', + 'CONTACT_US', + 'CUSTOMER_SUPPORT', + 'LEAD_GENERATION', + 'OTHER', + 'SIGN_IN', + 'SIGN_UP', + 'SURVEY', + ), ); $request = new ApiRequest( @@ -289,12 +300,23 @@ public function createFlow(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( + 'categories' => 'list', 'clone_flow_id' => 'string', 'clone_template' => 'string', 'data_channel_uri' => 'string', 'name' => 'string', ); $enums = array( + 'categories_enum' => array( + 'APPOINTMENT_BOOKING', + 'CONTACT_US', + 'CUSTOMER_SUPPORT', + 'LEAD_GENERATION', + 'OTHER', + 'SIGN_IN', + 'SIGN_UP', + 'SURVEY', + ), ); $request = new ApiRequest(