From bf538a2de60f75fb924ee875a6ac976e9d795bf5 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Thu, 2 Nov 2023 15:31:11 -0700 Subject: [PATCH] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D50948236 fbshipit-source-id: 631bc21751f943b0f6bf6fed31caab3b7051d380 --- src/FacebookAds/ApiConfig.php | 2 +- src/FacebookAds/Object/Ad.php | 4 - src/FacebookAds/Object/AdAccount.php | 4 +- src/FacebookAds/Object/AdSet.php | 29 ++++++ src/FacebookAds/Object/Business.php | 1 + .../CTXPartnerAppWelcomeMessageFlow.php | 65 +++++++++++++ src/FacebookAds/Object/Campaign.php | 29 ++++++ .../Object/Fields/AdAssetFeedSpecFields.php | 6 ++ .../AdCreativeBrandedContentAdsFields.php | 2 + .../Object/Fields/AdCreativeFields.php | 2 + .../Fields/AdCreativeLinkDataFields.php | 2 + src/FacebookAds/Object/Fields/AdFields.php | 2 - .../Object/Fields/AdsInsightsFields.php | 4 + .../Object/Fields/ApplicationFields.php | 4 + .../CTXPartnerAppWelcomeMessageFlowFields.php | 44 +++++++++ .../Object/Fields/CustomAudienceFields.php | 2 + .../Object/Fields/HasLeadAccessFields.php | 48 ++++++++++ .../Fields/ManagedPartnerBusinessFields.php | 2 +- .../ManagedPartnerExtendedCreditFields.php} | 19 +++- src/FacebookAds/Object/Fields/PageFields.php | 2 + src/FacebookAds/Object/Fields/ShopFields.php | 4 + .../Fields/WhatsAppBusinessAccountFields.php | 2 + src/FacebookAds/Object/HasLeadAccess.php | 42 +++++++++ .../Object/ManagedPartnerExtendedCredit.php | 42 +++++++++ src/FacebookAds/Object/Page.php | 93 +++++++++++++++++++ src/FacebookAds/Object/PagePostExperiment.php | 25 +++++ ...ccountAdVolumeRecommendationTypeValues.php | 21 +++++ ...AdAssetFeedSpecCallToActionTypesValues.php | 1 - .../AdCreativeCallToActionTypeValues.php | 1 - ...CreativeLinkDataCallToActionTypeValues.php | 1 - .../AdPromotedObjectCustomEventTypeValues.php | 1 + .../CustomAudienceDataSourceSubTypeValues.php | 1 + ...gePostExperimentOptimizationGoalValues.php | 36 +++++++ ...roductCatalogDiagnosticGroupTypeValues.php | 1 + ...oductCatalogDiagnosticGroupTypesValues.php | 1 + .../Values/ProductItemErrorTypeValues.php | 5 + .../Object/WhatsAppBusinessAccount.php | 61 ------------ 37 files changed, 531 insertions(+), 80 deletions(-) create mode 100644 src/FacebookAds/Object/CTXPartnerAppWelcomeMessageFlow.php create mode 100644 src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php create mode 100644 src/FacebookAds/Object/Fields/HasLeadAccessFields.php rename src/FacebookAds/Object/{Values/AdMetaRewardAdgroupStatusValues.php => Fields/ManagedPartnerExtendedCreditFields.php} (52%) create mode 100644 src/FacebookAds/Object/HasLeadAccess.php create mode 100644 src/FacebookAds/Object/ManagedPartnerExtendedCredit.php create mode 100644 src/FacebookAds/Object/Values/PagePostExperimentOptimizationGoalValues.php diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 806fe96f1..30ce652ff 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.2'; + const SDKVersion = '18.0.3'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/Ad.php b/src/FacebookAds/Object/Ad.php index 15b8f57e8..a974a95ac 100644 --- a/src/FacebookAds/Object/Ad.php +++ b/src/FacebookAds/Object/Ad.php @@ -19,7 +19,6 @@ use FacebookAds\Object\Values\AdDatePresetValues; use FacebookAds\Object\Values\AdEffectiveStatusValues; use FacebookAds\Object\Values\AdExecutionOptionsValues; -use FacebookAds\Object\Values\AdMetaRewardAdgroupStatusValues; use FacebookAds\Object\Values\AdOperatorValues; use FacebookAds\Object\Values\AdPreviewAdFormatValues; use FacebookAds\Object\Values\AdPreviewCreativeFeatureValues; @@ -71,7 +70,6 @@ protected static function getReferencedEnums() { $ref_enums['Status'] = AdStatusValues::getInstance()->getValues(); $ref_enums['DatePreset'] = AdDatePresetValues::getInstance()->getValues(); $ref_enums['ExecutionOptions'] = AdExecutionOptionsValues::getInstance()->getValues(); - $ref_enums['MetaRewardAdgroupStatus'] = AdMetaRewardAdgroupStatusValues::getInstance()->getValues(); $ref_enums['Operator'] = AdOperatorValues::getInstance()->getValues(); $ref_enums['StatusOption'] = AdStatusOptionValues::getInstance()->getValues(); return $ref_enums; @@ -484,7 +482,6 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'engagement_audience' => 'bool', 'execution_options' => 'list', 'include_demolink_hashes' => 'bool', - 'meta_reward_adgroup_status' => 'meta_reward_adgroup_status_enum', 'name' => 'string', 'priority' => 'unsigned int', 'status' => 'status_enum', @@ -492,7 +489,6 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe ); $enums = array( 'execution_options_enum' => AdExecutionOptionsValues::getInstance()->getValues(), - 'meta_reward_adgroup_status_enum' => AdMetaRewardAdgroupStatusValues::getInstance()->getValues(), 'status_enum' => AdStatusValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 59054ed05..73dad114a 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -43,7 +43,6 @@ use FacebookAds\Object\Values\AdCreativeOperatorValues; use FacebookAds\Object\Values\AdDatePresetValues; use FacebookAds\Object\Values\AdExecutionOptionsValues; -use FacebookAds\Object\Values\AdMetaRewardAdgroupStatusValues; use FacebookAds\Object\Values\AdOperatorValues; use FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues; use FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues; @@ -813,7 +812,6 @@ public function createAd(array $fields = array(), array $params = array(), $pend 'engagement_audience' => 'bool', 'execution_options' => 'list', 'include_demolink_hashes' => 'bool', - 'meta_reward_adgroup_status' => 'meta_reward_adgroup_status_enum', 'name' => 'string', 'priority' => 'unsigned int', 'source_ad_id' => 'string', @@ -822,7 +820,6 @@ public function createAd(array $fields = array(), array $params = array(), $pend ); $enums = array( 'execution_options_enum' => AdExecutionOptionsValues::getInstance()->getValues(), - 'meta_reward_adgroup_status_enum' => AdMetaRewardAdgroupStatusValues::getInstance()->getValues(), 'status_enum' => AdStatusValues::getInstance()->getValues(), ); @@ -1907,6 +1904,7 @@ public function createCustomAudience(array $fields = array(), array $params = ar 'subtype' => 'subtype_enum', 'use_in_campaigns' => 'bool', 'video_group_ids' => 'list', + 'whats_app_business_phone_number_id' => 'string', ); $enums = array( 'claim_objective_enum' => CustomAudienceClaimObjectiveValues::getInstance()->getValues(), diff --git a/src/FacebookAds/Object/AdSet.php b/src/FacebookAds/Object/AdSet.php index daf930a49..cc58fdeeb 100644 --- a/src/FacebookAds/Object/AdSet.php +++ b/src/FacebookAds/Object/AdSet.php @@ -40,6 +40,7 @@ use FacebookAds\Object\Values\AdsInsightsDatePresetValues; use FacebookAds\Object\Values\AdsInsightsLevelValues; use FacebookAds\Object\Values\AdsInsightsSummaryActionBreakdownsValues; +use FacebookAds\Object\Values\HighDemandPeriodBudgetValueTypeValues; use FacebookAds\Object\Traits\AdLabelAwareCrudObjectTrait; use FacebookAds\Object\Traits\ObjectValidation; @@ -299,6 +300,34 @@ public function getAsyncAdRequests(array $fields = array(), array $params = arra return $pending ? $request : $request->execute(); } + public function createBudgetSchedule(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'budget_value' => 'unsigned int', + 'budget_value_type' => 'budget_value_type_enum', + 'time_end' => 'unsigned int', + 'time_start' => 'unsigned int', + ); + $enums = array( + 'budget_value_type_enum' => HighDemandPeriodBudgetValueTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/budget_schedules', + new HighDemandPeriod(), + 'EDGE', + HighDemandPeriod::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getCopies(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 f3bcd7a08..ad4c196bf 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -1607,6 +1607,7 @@ public function createManagedPartnerBusiness(array $fields = array(), array $par 'sales_rep_email' => 'string', 'seller_external_website_url' => 'string', 'seller_targeting_countries' => 'list', + 'skip_partner_page_creation' => 'bool', 'survey_business_type' => 'survey_business_type_enum', 'survey_num_assets' => 'unsigned int', 'survey_num_people' => 'unsigned int', diff --git a/src/FacebookAds/Object/CTXPartnerAppWelcomeMessageFlow.php b/src/FacebookAds/Object/CTXPartnerAppWelcomeMessageFlow.php new file mode 100644 index 000000000..2769b0d3d --- /dev/null +++ b/src/FacebookAds/Object/CTXPartnerAppWelcomeMessageFlow.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CTXPartnerAppWelcomeMessageFlow(), + 'NODE', + CTXPartnerAppWelcomeMessageFlow::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Campaign.php b/src/FacebookAds/Object/Campaign.php index b6ba1d1c2..d2b0c34f4 100644 --- a/src/FacebookAds/Object/Campaign.php +++ b/src/FacebookAds/Object/Campaign.php @@ -37,6 +37,7 @@ use FacebookAds\Object\Values\CampaignSpecialAdCategoryValues; use FacebookAds\Object\Values\CampaignStatusOptionValues; use FacebookAds\Object\Values\CampaignStatusValues; +use FacebookAds\Object\Values\HighDemandPeriodBudgetValueTypeValues; use FacebookAds\Object\Traits\AdLabelAwareCrudObjectTrait; use FacebookAds\Object\Traits\ObjectValidation; @@ -217,6 +218,34 @@ public function getAdSets(array $fields = array(), array $params = array(), $pen return $pending ? $request : $request->execute(); } + public function createBudgetSchedule(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'budget_value' => 'unsigned int', + 'budget_value_type' => 'budget_value_type_enum', + 'time_end' => 'unsigned int', + 'time_start' => 'unsigned int', + ); + $enums = array( + 'budget_value_type_enum' => HighDemandPeriodBudgetValueTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/budget_schedules', + new HighDemandPeriod(), + 'EDGE', + HighDemandPeriod::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getCopies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php index 27b05b15d..a6ed6bf7b 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php @@ -38,7 +38,10 @@ class AdAssetFeedSpecFields extends AbstractEnum { const IMAGES = 'images'; const LINK_URLS = 'link_urls'; const MESSAGE_EXTENSIONS = 'message_extensions'; + const ONSITE_DESTINATIONS = 'onsite_destinations'; const OPTIMIZATION_TYPE = 'optimization_type'; + const REASONS_TO_SHOP = 'reasons_to_shop'; + const SHOPS_BUNDLE = 'shops_bundle'; const TITLES = 'titles'; const VIDEOS = 'videos'; @@ -60,7 +63,10 @@ public function getFieldTypes() { 'images' => 'list', 'link_urls' => 'list', 'message_extensions' => 'list', + 'onsite_destinations' => 'list', 'optimization_type' => 'string', + 'reasons_to_shop' => 'bool', + 'shops_bundle' => 'bool', 'titles' => 'list', 'videos' => 'list', ); diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php index fb11bab3b..492b05ad8 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php @@ -25,6 +25,7 @@ class AdCreativeBrandedContentAdsFields extends AbstractEnum { const AD_FORMAT = 'ad_format'; const CREATOR_AD_PERMISSION_TYPE = 'creator_ad_permission_type'; const INSTAGRAM_BOOST_POST_ACCESS_TOKEN = 'instagram_boost_post_access_token'; + const IS_MCA_INTERNAL = 'is_mca_internal'; const PARTNERS = 'partners'; const UI_VERSION = 'ui_version'; @@ -33,6 +34,7 @@ public function getFieldTypes() { 'ad_format' => 'int', 'creator_ad_permission_type' => 'string', 'instagram_boost_post_access_token' => 'string', + 'is_mca_internal' => 'bool', 'partners' => 'list', 'ui_version' => 'int', ); diff --git a/src/FacebookAds/Object/Fields/AdCreativeFields.php b/src/FacebookAds/Object/Fields/AdCreativeFields.php index ba0bc4b34..157c720c0 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFields.php @@ -71,6 +71,7 @@ class AdCreativeFields extends AbstractEnum { const OBJECT_TYPE = 'object_type'; const OBJECT_URL = 'object_url'; const OMNICHANNEL_LINK_SPEC = 'omnichannel_link_spec'; + const PHOTO_ALBUM_SOURCE_OBJECT_STORY_ID = 'photo_album_source_object_story_id'; const PLACE_PAGE_SET_ID = 'place_page_set_id'; const PLATFORM_CUSTOMIZATIONS = 'platform_customizations'; const PLAYABLE_ASSET_ID = 'playable_asset_id'; @@ -142,6 +143,7 @@ public function getFieldTypes() { 'object_type' => 'ObjectType', 'object_url' => 'string', 'omnichannel_link_spec' => 'AdCreativeOmnichannelLinkSpec', + 'photo_album_source_object_story_id' => 'string', 'place_page_set_id' => 'string', 'platform_customizations' => 'AdCreativePlatformCustomization', 'playable_asset_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php index 35797dd76..754215036 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php @@ -26,6 +26,7 @@ class AdCreativeLinkDataFields extends AbstractEnum { const ADDITIONAL_IMAGE_INDEX = 'additional_image_index'; const APP_LINK_SPEC = 'app_link_spec'; const ATTACHMENT_STYLE = 'attachment_style'; + const AUTOMATED_PRODUCT_TAGS = 'automated_product_tags'; const BRANDED_CONTENT_SHARED_TO_SPONSOR_STATUS = 'branded_content_shared_to_sponsor_status'; const BRANDED_CONTENT_SPONSOR_PAGE_ID = 'branded_content_sponsor_page_id'; const CALL_TO_ACTION = 'call_to_action'; @@ -62,6 +63,7 @@ public function getFieldTypes() { 'additional_image_index' => 'int', 'app_link_spec' => 'AdCreativeLinkDataAppLinkSpec', 'attachment_style' => 'string', + 'automated_product_tags' => 'bool', 'branded_content_shared_to_sponsor_status' => 'string', 'branded_content_sponsor_page_id' => 'string', 'call_to_action' => 'AdCreativeLinkDataCallToAction', diff --git a/src/FacebookAds/Object/Fields/AdFields.php b/src/FacebookAds/Object/Fields/AdFields.php index 4e665cccb..6d98a1e72 100644 --- a/src/FacebookAds/Object/Fields/AdFields.php +++ b/src/FacebookAds/Object/Fields/AdFields.php @@ -48,7 +48,6 @@ class AdFields extends AbstractEnum { const ID = 'id'; const ISSUES_INFO = 'issues_info'; const LAST_UPDATED_BY_APP_ID = 'last_updated_by_app_id'; - const META_REWARD_ADGROUP_STATUS = 'meta_reward_adgroup_status'; const NAME = 'name'; const PREVIEW_SHAREABLE_LINK = 'preview_shareable_link'; const PRIORITY = 'priority'; @@ -96,7 +95,6 @@ public function getFieldTypes() { 'id' => 'string', 'issues_info' => 'list', 'last_updated_by_app_id' => 'string', - 'meta_reward_adgroup_status' => 'string', 'name' => 'string', 'preview_shareable_link' => 'string', 'priority' => 'unsigned int', diff --git a/src/FacebookAds/Object/Fields/AdsInsightsFields.php b/src/FacebookAds/Object/Fields/AdsInsightsFields.php index e318f4df4..7f96f20ed 100644 --- a/src/FacebookAds/Object/Fields/AdsInsightsFields.php +++ b/src/FacebookAds/Object/Fields/AdsInsightsFields.php @@ -51,6 +51,7 @@ class AdsInsightsFields extends AbstractEnum { const CATALOG_SEGMENT_VALUE_OMNI_PURCHASE_ROAS = 'catalog_segment_value_omni_purchase_roas'; const CATALOG_SEGMENT_VALUE_WEBSITE_PURCHASE_ROAS = 'catalog_segment_value_website_purchase_roas'; const CLICKS = 'clicks'; + const CONVERSION_LEAD_RATE = 'conversion_lead_rate'; const CONVERSION_RATE_RANKING = 'conversion_rate_ranking'; const CONVERSION_VALUES = 'conversion_values'; const CONVERSIONS = 'conversions'; @@ -61,6 +62,7 @@ class AdsInsightsFields extends AbstractEnum { const COST_PER_ACTION_TYPE = 'cost_per_action_type'; const COST_PER_AD_CLICK = 'cost_per_ad_click'; const COST_PER_CONVERSION = 'cost_per_conversion'; + const COST_PER_CONVERSION_LEAD = 'cost_per_conversion_lead'; const COST_PER_DDA_COUNTBY_CONVS = 'cost_per_dda_countby_convs'; const COST_PER_ESTIMATED_AD_RECALLERS = 'cost_per_estimated_ad_recallers'; const COST_PER_INLINE_LINK_CLICK = 'cost_per_inline_link_click'; @@ -186,6 +188,7 @@ public function getFieldTypes() { 'catalog_segment_value_omni_purchase_roas' => 'list', 'catalog_segment_value_website_purchase_roas' => 'list', 'clicks' => 'string', + 'conversion_lead_rate' => 'string', 'conversion_rate_ranking' => 'string', 'conversion_values' => 'list', 'conversions' => 'list', @@ -196,6 +199,7 @@ public function getFieldTypes() { 'cost_per_action_type' => 'list', 'cost_per_ad_click' => 'list', 'cost_per_conversion' => 'list', + 'cost_per_conversion_lead' => 'string', 'cost_per_dda_countby_convs' => 'string', 'cost_per_estimated_ad_recallers' => 'string', 'cost_per_inline_link_click' => 'string', diff --git a/src/FacebookAds/Object/Fields/ApplicationFields.php b/src/FacebookAds/Object/Fields/ApplicationFields.php index c9d0b7bce..6e17f0eaf 100644 --- a/src/FacebookAds/Object/Fields/ApplicationFields.php +++ b/src/FacebookAds/Object/Fields/ApplicationFields.php @@ -104,6 +104,8 @@ class ApplicationFields extends AbstractEnum { const RESTRICTIONS = 'restrictions'; const RESTRICTIVE_DATA_FILTER_PARAMS = 'restrictive_data_filter_params'; const RESTRICTIVE_DATA_FILTER_RULES = 'restrictive_data_filter_rules'; + const SDK_AUTO_LOGGING_DEFAULT_VALUE = 'sdk_auto_logging_default_value'; + const SDK_AUTO_LOGGING_OVERRIDE_VALUE = 'sdk_auto_logging_override_value'; const SDK_UPDATE_MESSAGE = 'sdk_update_message'; const SEAMLESS_LOGIN = 'seamless_login'; const SECURE_CANVAS_URL = 'secure_canvas_url'; @@ -210,6 +212,8 @@ public function getFieldTypes() { 'restrictions' => 'Object', 'restrictive_data_filter_params' => 'string', 'restrictive_data_filter_rules' => 'string', + 'sdk_auto_logging_default_value' => 'bool', + 'sdk_auto_logging_override_value' => 'bool', 'sdk_update_message' => 'string', 'seamless_login' => 'int', 'secure_canvas_url' => 'string', diff --git a/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php b/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php new file mode 100644 index 000000000..eddb19832 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php @@ -0,0 +1,44 @@ + 'list', + 'eligible_platforms' => 'list', + 'id' => 'string', + 'is_used_in_ad' => 'bool', + 'last_update_time' => 'datetime', + 'name' => 'string', + 'welcome_message_flow' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CustomAudienceFields.php b/src/FacebookAds/Object/Fields/CustomAudienceFields.php index ea56df511..8ca35d0a9 100644 --- a/src/FacebookAds/Object/Fields/CustomAudienceFields.php +++ b/src/FacebookAds/Object/Fields/CustomAudienceFields.php @@ -81,6 +81,7 @@ class CustomAudienceFields extends AbstractEnum { const PRODUCT_SET_ID = 'product_set_id'; const USE_IN_CAMPAIGNS = 'use_in_campaigns'; const VIDEO_GROUP_IDS = 'video_group_ids'; + const WHATS_APP_BUSINESS_PHONE_NUMBER_ID = 'whats_app_business_phone_number_id'; public function getFieldTypes() { return array( @@ -143,6 +144,7 @@ public function getFieldTypes() { 'product_set_id' => 'string', 'use_in_campaigns' => 'bool', 'video_group_ids' => 'list', + 'whats_app_business_phone_number_id' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/HasLeadAccessFields.php b/src/FacebookAds/Object/Fields/HasLeadAccessFields.php new file mode 100644 index 000000000..a4c88c732 --- /dev/null +++ b/src/FacebookAds/Object/Fields/HasLeadAccessFields.php @@ -0,0 +1,48 @@ + 'bool', + 'can_access_lead' => 'bool', + 'enabled_lead_access_manager' => 'bool', + 'failure_reason' => 'string', + 'failure_resolution' => 'string', + 'is_page_admin' => 'bool', + 'page_id' => 'string', + 'user_has_leads_permission' => 'bool', + 'user_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php b/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php index 434a12e26..91b4a6975 100644 --- a/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php +++ b/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php @@ -34,7 +34,7 @@ public function getFieldTypes() { return array( 'ad_account' => 'AdAccount', 'catalog_segment' => 'ProductCatalog', - 'extended_credit' => 'ExtendedCredit', + 'extended_credit' => 'ManagedPartnerExtendedCredit', 'page' => 'Page', 'seller_business_info' => 'Object', 'seller_business_status' => 'string', diff --git a/src/FacebookAds/Object/Values/AdMetaRewardAdgroupStatusValues.php b/src/FacebookAds/Object/Fields/ManagedPartnerExtendedCreditFields.php similarity index 52% rename from src/FacebookAds/Object/Values/AdMetaRewardAdgroupStatusValues.php rename to src/FacebookAds/Object/Fields/ManagedPartnerExtendedCreditFields.php index 45ee765fc..5570256a9 100644 --- a/src/FacebookAds/Object/Values/AdMetaRewardAdgroupStatusValues.php +++ b/src/FacebookAds/Object/Fields/ManagedPartnerExtendedCreditFields.php @@ -7,7 +7,7 @@ * LICENSE file in the root directory of this source tree. */ -namespace FacebookAds\Object\Values; +namespace FacebookAds\Object\Fields; use FacebookAds\Enum\AbstractEnum; @@ -18,10 +18,19 @@ * on github and we'll fix in our codegen framework. We'll not be able to accept * pull request for this class. * - * @method static AdMetaRewardAdgroupStatusValues getInstance() */ -class AdMetaRewardAdgroupStatusValues extends AbstractEnum { - const ACTIVE = 'ACTIVE'; - const INACTIVE = 'INACTIVE'; +class ManagedPartnerExtendedCreditFields extends AbstractEnum { + + const ID = 'id'; + const MAX_BALANCE = 'max_balance'; + const RECEIVING_CREDIT_ALLOCATION_CONFIG = 'receiving_credit_allocation_config'; + + public function getFieldTypes() { + return array( + 'id' => 'string', + 'max_balance' => 'CurrencyAmount', + 'receiving_credit_allocation_config' => 'ExtendedCreditAllocationConfig', + ); + } } diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index 27448cb12..229491be8 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -74,6 +74,7 @@ class PageFields extends AbstractEnum { const GLOBAL_BRAND_PAGE_NAME = 'global_brand_page_name'; const GLOBAL_BRAND_ROOT_ID = 'global_brand_root_id'; const HAS_ADDED_APP = 'has_added_app'; + const HAS_LEAD_ACCESS = 'has_lead_access'; const HAS_TRANSITIONED_TO_NEW_PAGE_EXPERIENCE = 'has_transitioned_to_new_page_experience'; const HAS_WHATSAPP_BUSINESS_NUMBER = 'has_whatsapp_business_number'; const HAS_WHATSAPP_ENTERPRISE_NUMBER_USING_CLOUD_API = 'has_whatsapp_enterprise_number_using_cloud_api'; @@ -226,6 +227,7 @@ public function getFieldTypes() { 'global_brand_page_name' => 'string', 'global_brand_root_id' => 'string', 'has_added_app' => 'bool', + 'has_lead_access' => 'HasLeadAccess', 'has_transitioned_to_new_page_experience' => 'bool', 'has_whatsapp_business_number' => 'bool', 'has_whatsapp_enterprise_number_using_cloud_api' => 'bool', diff --git a/src/FacebookAds/Object/Fields/ShopFields.php b/src/FacebookAds/Object/Fields/ShopFields.php index bc0a9ca49..fc0a63e4c 100644 --- a/src/FacebookAds/Object/Fields/ShopFields.php +++ b/src/FacebookAds/Object/Fields/ShopFields.php @@ -25,6 +25,8 @@ class ShopFields extends AbstractEnum { const FB_SALES_CHANNEL = 'fb_sales_channel'; const ID = 'id'; const IG_SALES_CHANNEL = 'ig_sales_channel'; + const IS_ONSITE_ENABLED = 'is_onsite_enabled'; + const SHOP_STATUS = 'shop_status'; const WORKSPACE = 'workspace'; public function getFieldTypes() { @@ -32,6 +34,8 @@ public function getFieldTypes() { 'fb_sales_channel' => 'Object', 'id' => 'string', 'ig_sales_channel' => 'Object', + 'is_onsite_enabled' => 'bool', + 'shop_status' => 'string', 'workspace' => 'Object', ); } diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php index 72640a12e..1b93bca1d 100644 --- a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php @@ -28,6 +28,7 @@ class WhatsAppBusinessAccountFields extends AbstractEnum { const COUNTRY = 'country'; const CREATION_TIME = 'creation_time'; const CURRENCY = 'currency'; + const HEALTH_STATUS = 'health_status'; const ID = 'id'; const IS_ENABLED_FOR_INSIGHTS = 'is_enabled_for_insights'; const MESSAGE_TEMPLATE_NAMESPACE = 'message_template_namespace'; @@ -49,6 +50,7 @@ public function getFieldTypes() { 'country' => 'string', 'creation_time' => 'int', 'currency' => 'string', + 'health_status' => 'Object', 'id' => 'string', 'is_enabled_for_insights' => 'bool', 'message_template_namespace' => 'string', diff --git a/src/FacebookAds/Object/HasLeadAccess.php b/src/FacebookAds/Object/HasLeadAccess.php new file mode 100644 index 000000000..c717d64ea --- /dev/null +++ b/src/FacebookAds/Object/HasLeadAccess.php @@ -0,0 +1,42 @@ +execute(); } + public function createAbTest(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'control_video_id' => 'string', + 'description' => 'string', + 'duration' => 'unsigned int', + 'experiment_video_ids' => 'list', + 'name' => 'string', + 'optimization_goal' => 'optimization_goal_enum', + 'scheduled_experiment_timestamp' => 'unsigned int', + ); + $enums = array( + 'optimization_goal_enum' => PagePostExperimentOptimizationGoalValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/ab_tests', + new PagePostExperiment(), + 'EDGE', + PagePostExperiment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createAcknowledgeOrder(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2036,6 +2068,8 @@ public function deleteMessengerProfile(array $fields = array(), array $params = $enums = array( 'fields_enum' => array( 'ACCOUNT_LINKING_URL', + 'COMMANDS', + 'DESCRIPTION', 'GET_STARTED', 'GREETING', 'HOME_URL', @@ -2045,6 +2079,7 @@ public function deleteMessengerProfile(array $fields = array(), array $params = 'PLATFORM', 'SUBJECT_TO_NEW_EU_PRIVACY_RULES', 'TARGET_AUDIENCE', + 'TITLE', 'WHITELISTED_DOMAINS', ), 'platform_enum' => PagePlatformValues::getInstance()->getValues(), @@ -2095,6 +2130,8 @@ public function createMessengerProfile(array $fields = array(), array $params = $param_types = array( 'account_linking_url' => 'string', + 'commands' => 'list', + 'description' => 'list', 'get_started' => 'Object', 'greeting' => 'list', 'ice_breakers' => 'list', @@ -2102,6 +2139,7 @@ public function createMessengerProfile(array $fields = array(), array $params = 'persistent_menu' => 'list', 'platform' => 'platform_enum', 'target_audience' => 'Object', + 'title' => 'list', 'whitelisted_domains' => 'list', ); $enums = array( @@ -3537,6 +3575,30 @@ public function getVisitorPosts(array $fields = array(), array $params = array() return $pending ? $request : $request->execute(); } + public function deleteWelcomeMessageFlows(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'flow_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/welcome_message_flows', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getWelcomeMessageFlows(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -3552,6 +3614,37 @@ public function getWelcomeMessageFlows(array $fields = array(), array $params = $this->data['id'], RequestInterface::METHOD_GET, '/welcome_message_flows', + new CTXPartnerAppWelcomeMessageFlow(), + 'EDGE', + CTXPartnerAppWelcomeMessageFlow::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createWelcomeMessageFlow(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'eligible_platforms' => 'list', + 'flow_id' => 'string', + 'name' => 'string', + 'welcome_message_flow' => 'list', + ); + $enums = array( + 'eligible_platforms_enum' => array( + 'INSTAGRAM', + 'MESSENGER', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/welcome_message_flows', new AbstractCrudObject(), 'EDGE', array(), diff --git a/src/FacebookAds/Object/PagePostExperiment.php b/src/FacebookAds/Object/PagePostExperiment.php index 4ed1c60d7..a2525ec8b 100644 --- a/src/FacebookAds/Object/PagePostExperiment.php +++ b/src/FacebookAds/Object/PagePostExperiment.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\PagePostExperimentFields; +use FacebookAds\Object\Values\PagePostExperimentOptimizationGoalValues; /** * This class is auto-generated. @@ -35,6 +36,7 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['OptimizationGoal'] = PagePostExperimentOptimizationGoalValues::getInstance()->getValues(); return $ref_enums; } @@ -62,6 +64,29 @@ public function getVideoInsights(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } + public function deleteSelf(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_DELETE, + '/', + new AbstractCrudObject(), + 'NODE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index 88ae27703..e1f5aa883 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -23,9 +23,11 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AB_TEST = 'AB_TEST'; + const ACCOUNT_SPEND_LIMIT = 'ACCOUNT_SPEND_LIMIT'; const ACO_TOGGLE = 'ACO_TOGGLE'; const ADS_REPORTING = 'ADS_REPORTING'; const ADVANCED_CAMPAIGN_BUDGET = 'ADVANCED_CAMPAIGN_BUDGET'; + const ADVANTAGE_CUSTOM_AUDIENCE = 'ADVANTAGE_CUSTOM_AUDIENCE'; const ADVANTAGE_CUSTOM_AUDIENCE_UPSELL = 'ADVANTAGE_CUSTOM_AUDIENCE_UPSELL'; const ADVANTAGE_PLUS_AUDIENCE_FRICTION = 'ADVANTAGE_PLUS_AUDIENCE_FRICTION'; const ADVANTAGE_PLUS_AUDIENCE_TOGGLE = 'ADVANTAGE_PLUS_AUDIENCE_TOGGLE'; @@ -38,10 +40,16 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AGGREGATED_BID_LIMITED = 'AGGREGATED_BID_LIMITED'; const AGGREGATED_BUDGET_LIMITED = 'AGGREGATED_BUDGET_LIMITED'; const AGGREGATED_COST_LIMITED = 'AGGREGATED_COST_LIMITED'; + const APP_AEM_V2_INSTALLATION_PROMOTION = 'APP_AEM_V2_INSTALLATION_PROMOTION'; + const ASC_BUDGET_OPTIMIZATION = 'ASC_BUDGET_OPTIMIZATION'; + const ASC_BUDGET_OPTIMIZATION_PFR = 'ASC_BUDGET_OPTIMIZATION_PFR'; + const ASPECT_RATIO = 'ASPECT_RATIO'; + const ATLEAST_6_PLACEMENTS = 'ATLEAST_6_PLACEMENTS'; const AUCTION_OVERLAP = 'AUCTION_OVERLAP'; const AUCTION_OVERLAP_CONSOLIDATION = 'AUCTION_OVERLAP_CONSOLIDATION'; const AUDIENCE_EXPANSION = 'AUDIENCE_EXPANSION'; const AUDIENCE_EXPANSION_RETARGETING = 'AUDIENCE_EXPANSION_RETARGETING'; + const AUDIENCE_LEARNING_LIMITED = 'AUDIENCE_LEARNING_LIMITED'; const AUTOFLOW_OPT_IN = 'AUTOFLOW_OPT_IN'; const AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW = 'AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW'; const AUTOMATIC_PLACEMENTS = 'AUTOMATIC_PLACEMENTS'; @@ -57,7 +65,9 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const COST_GOAL_CPA_LIMITED = 'COST_GOAL_CPA_LIMITED'; const COST_PER_RESULT = 'COST_PER_RESULT'; const CREATION_PACKAGE_UPGRADE_TO_ASC = 'CREATION_PACKAGE_UPGRADE_TO_ASC'; + const CREATION_PACKAGE_UPGRADE_TO_TLA = 'CREATION_PACKAGE_UPGRADE_TO_TLA'; const CREATIVE_BADGE = 'CREATIVE_BADGE'; + const CREATIVE_DIVERSITY = 'CREATIVE_DIVERSITY'; const CREATIVE_FATIGUE = 'CREATIVE_FATIGUE'; const CREATIVE_FATIGUE_HOURLY = 'CREATIVE_FATIGUE_HOURLY'; const CREATIVE_LIMITED = 'CREATIVE_LIMITED'; @@ -71,8 +81,11 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const FRAGMENTATION = 'FRAGMENTATION'; const GES_TEST = 'GES_TEST'; const GUIDANCE_CENTER_CODE_GEN = 'GUIDANCE_CENTER_CODE_GEN'; + const HIGH_COST = 'HIGH_COST'; + const HISTORICAL_BENCHMARK = 'HISTORICAL_BENCHMARK'; const LEARNING_LIMITED = 'LEARNING_LIMITED'; const LEARNING_PAUSE_FRICTION = 'LEARNING_PAUSE_FRICTION'; + const LEARNING_PHASE_BUDGET_EDITS = 'LEARNING_PHASE_BUDGET_EDITS'; const LOW_OUTCOME = 'LOW_OUTCOME'; const MERLIN_GUIDANCE = 'MERLIN_GUIDANCE'; const MIXED_PA_COMBINE_ADSETS = 'MIXED_PA_COMBINE_ADSETS'; @@ -81,6 +94,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const MR_AEMV2SUB_KCONSOLIDATION = 'MR_AEMV2SUB_KCONSOLIDATION'; const MULTI_TEXT = 'MULTI_TEXT'; const MUSIC = 'MUSIC'; + const NOT_APPLICABLE = 'NOT_APPLICABLE'; const OPTIMAL_BAU = 'OPTIMAL_BAU'; const PAYMENT_METHOD = 'PAYMENT_METHOD'; const PERFORMANT_CREATIVE_REELS_OPT_IN = 'PERFORMANT_CREATIVE_REELS_OPT_IN'; @@ -88,6 +102,8 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const PREDICTIVE_CREATIVE_LIMITED = 'PREDICTIVE_CREATIVE_LIMITED'; const PREDICTIVE_CREATIVE_LIMITED_HOURLY = 'PREDICTIVE_CREATIVE_LIMITED_HOURLY'; const RAPID_LEARNING_LIMITED = 'RAPID_LEARNING_LIMITED'; + const RAPID_LEARNING_PHASE = 'RAPID_LEARNING_PHASE'; + const REELS_DUPLICATION_UPSELL = 'REELS_DUPLICATION_UPSELL'; const REVERT = 'REVERT'; const SCALE_GOOD_CAMPAIGN = 'SCALE_GOOD_CAMPAIGN'; const SEMANTIC_BASED_AUDIENCE_EXPANSION = 'SEMANTIC_BASED_AUDIENCE_EXPANSION'; @@ -100,9 +116,14 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const SYD_TEST_MODE = 'SYD_TEST_MODE'; const TOP_ADSETS_WITH_ADS_UNDER_CAP = 'TOP_ADSETS_WITH_ADS_UNDER_CAP'; const TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP = 'TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP'; + const TWO_P_GUIDANCE_CARD_AAA = 'TWO_P_GUIDANCE_CARD_AAA'; + const TWO_P_GUIDANCE_CARD_AUTO_PLACEMENT = 'TWO_P_GUIDANCE_CARD_AUTO_PLACEMENT'; + const TWO_P_GUIDANCE_CARD_CBO_OFF = 'TWO_P_GUIDANCE_CARD_CBO_OFF'; + const TWO_P_GUIDANCE_CARD_CTM_PREFLIGHT = 'TWO_P_GUIDANCE_CARD_CTM_PREFLIGHT'; const UNCROP_IMAGE = 'UNCROP_IMAGE'; const UNECONOMICAL_ADS_THROTTLING = 'UNECONOMICAL_ADS_THROTTLING'; const UNUSED_BUDGET = 'UNUSED_BUDGET'; const VIDEO_LENGTH = 'VIDEO_LENGTH'; + const ZERO_CONVERSION = 'ZERO_CONVERSION'; const ZERO_IMPRESSION = 'ZERO_IMPRESSION'; } diff --git a/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php b/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php index 447a04a70..ef1f8e30a 100644 --- a/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php +++ b/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php @@ -61,7 +61,6 @@ class AdAssetFeedSpecCallToActionTypesValues extends AbstractEnum { const LISTEN_NOW = 'LISTEN_NOW'; const MESSAGE_PAGE = 'MESSAGE_PAGE'; const MOBILE_DOWNLOAD = 'MOBILE_DOWNLOAD'; - const MOMENTS = 'MOMENTS'; const NO_BUTTON = 'NO_BUTTON'; const OPEN_INSTANT_APP = 'OPEN_INSTANT_APP'; const OPEN_LINK = 'OPEN_LINK'; diff --git a/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php b/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php index 208e95aca..80270405a 100644 --- a/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php +++ b/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php @@ -61,7 +61,6 @@ class AdCreativeCallToActionTypeValues extends AbstractEnum { const LISTEN_NOW = 'LISTEN_NOW'; const MESSAGE_PAGE = 'MESSAGE_PAGE'; const MOBILE_DOWNLOAD = 'MOBILE_DOWNLOAD'; - const MOMENTS = 'MOMENTS'; const NO_BUTTON = 'NO_BUTTON'; const OPEN_INSTANT_APP = 'OPEN_INSTANT_APP'; const OPEN_LINK = 'OPEN_LINK'; diff --git a/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php b/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php index 0473e11d3..959d5a1b2 100644 --- a/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php +++ b/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php @@ -61,7 +61,6 @@ class AdCreativeLinkDataCallToActionTypeValues extends AbstractEnum { const LISTEN_NOW = 'LISTEN_NOW'; const MESSAGE_PAGE = 'MESSAGE_PAGE'; const MOBILE_DOWNLOAD = 'MOBILE_DOWNLOAD'; - const MOMENTS = 'MOMENTS'; const NO_BUTTON = 'NO_BUTTON'; const OPEN_INSTANT_APP = 'OPEN_INSTANT_APP'; const OPEN_LINK = 'OPEN_LINK'; diff --git a/src/FacebookAds/Object/Values/AdPromotedObjectCustomEventTypeValues.php b/src/FacebookAds/Object/Values/AdPromotedObjectCustomEventTypeValues.php index 30fa721bf..9eee7eedd 100644 --- a/src/FacebookAds/Object/Values/AdPromotedObjectCustomEventTypeValues.php +++ b/src/FacebookAds/Object/Values/AdPromotedObjectCustomEventTypeValues.php @@ -26,6 +26,7 @@ class AdPromotedObjectCustomEventTypeValues extends AbstractEnum { const ADD_PAYMENT_INFO = 'ADD_PAYMENT_INFO'; const ADD_TO_CART = 'ADD_TO_CART'; const ADD_TO_WISHLIST = 'ADD_TO_WISHLIST'; + const AD_IMPRESSION = 'AD_IMPRESSION'; const COMPLETE_REGISTRATION = 'COMPLETE_REGISTRATION'; const CONTACT = 'CONTACT'; const CONTENT_VIEW = 'CONTENT_VIEW'; diff --git a/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php b/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php index 41ed2b9a2..ed91f7741 100644 --- a/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php +++ b/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php @@ -51,6 +51,7 @@ class CustomAudienceDataSourceSubTypeValues extends AbstractEnum { const INSTANT_ARTICLE_EVENTS = 'INSTANT_ARTICLE_EVENTS'; const LOOKALIKE_PLATFORM = 'LOOKALIKE_PLATFORM'; const MAIL_CHIMP_EMAIL_HASHES = 'MAIL_CHIMP_EMAIL_HASHES'; + const MESSENGER_ONSITE_SUBSCRIPTION = 'MESSENGER_ONSITE_SUBSCRIPTION'; const MOBILE_ADVERTISER_IDS = 'MOBILE_ADVERTISER_IDS'; const MOBILE_APP_COMBINATION_EVENTS = 'MOBILE_APP_COMBINATION_EVENTS'; const MOBILE_APP_CUSTOM_AUDIENCE_USERS = 'MOBILE_APP_CUSTOM_AUDIENCE_USERS'; diff --git a/src/FacebookAds/Object/Values/PagePostExperimentOptimizationGoalValues.php b/src/FacebookAds/Object/Values/PagePostExperimentOptimizationGoalValues.php new file mode 100644 index 000000000..d6bfdd0b0 --- /dev/null +++ b/src/FacebookAds/Object/Values/PagePostExperimentOptimizationGoalValues.php @@ -0,0 +1,36 @@ +execute(); } - public function getExtensions(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, - '/extensions', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function createExtension(array $fields = array(), array $params = array(), $pending = false) { - $this->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( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/extensions', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getFlows(array $fields = array(), array $params = array(), $pending = false) { $this->assureId();