diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index a2eefca0d..cc89131d7 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -9,7 +9,7 @@ namespace FacebookAds; class ApiConfig { - const APIVersion = '18.0'; - const SDKVersion = '18.0.4'; + const APIVersion = '19.0'; + const SDKVersion = '19.0.0'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 73dad114a..2d7707b12 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -23,6 +23,7 @@ use FacebookAds\Object\Values\AdAccountCurrencyValues; use FacebookAds\Object\Values\AdAccountDeliveryEstimateOptimizationGoalValues; use FacebookAds\Object\Values\AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues; +use FacebookAds\Object\Values\AdAccountPermittedTasksValues; use FacebookAds\Object\Values\AdAccountSubtypeValues; use FacebookAds\Object\Values\AdAccountTargetingUnifiedAppStoreValues; use FacebookAds\Object\Values\AdAccountTargetingUnifiedLimitTypeValues; @@ -130,6 +131,7 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['Currency'] = AdAccountCurrencyValues::getInstance()->getValues(); + $ref_enums['PermittedTasks'] = AdAccountPermittedTasksValues::getInstance()->getValues(); $ref_enums['Tasks'] = AdAccountTasksValues::getInstance()->getValues(); $ref_enums['ClaimObjective'] = AdAccountClaimObjectiveValues::getInstance()->getValues(); $ref_enums['ContentType'] = AdAccountContentTypeValues::getInstance()->getValues(); @@ -1381,6 +1383,32 @@ public function getAgencies(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function createAgency(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'business' => 'string', + 'permitted_tasks' => 'list', + ); + $enums = array( + 'permitted_tasks_enum' => AdAccountPermittedTasksValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/agencies', + new AdAccount(), + 'EDGE', + AdAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getApplications(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 1b568aa51..fa4137593 100644 --- a/src/FacebookAds/Object/AdsPixel.php +++ b/src/FacebookAds/Object/AdsPixel.php @@ -215,6 +215,7 @@ public function createEvent(array $fields = array(), array $params = array(), $p 'namespace_id' => 'string', 'partner_agent' => 'string', 'platforms' => 'list', + 'progress' => 'Object', 'test_event_code' => 'string', 'trace' => 'unsigned int', 'upload_id' => 'string', diff --git a/src/FacebookAds/Object/Application.php b/src/FacebookAds/Object/Application.php index f59f93851..b4e016cd5 100644 --- a/src/FacebookAds/Object/Application.php +++ b/src/FacebookAds/Object/Application.php @@ -1029,6 +1029,7 @@ public function createMmpAuditing(array $fields = array(), array $params = array 'click_attr_window' => 'unsigned int', 'custom_events' => 'list', 'decline_reason' => 'string', + 'engagement_type' => 'string', 'event' => 'string', 'event_reported_time' => 'unsigned int', 'fb_ad_id' => 'unsigned int', diff --git a/src/FacebookAds/Object/Business.php b/src/FacebookAds/Object/Business.php index ad4c196bf..8840cf898 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -44,7 +44,6 @@ use FacebookAds\Object\Values\CustomConversionCustomEventTypeValues; use FacebookAds\Object\Values\OmegaCustomerTrxTypeValues; use FacebookAds\Object\Values\ProductCatalogVerticalValues; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; use FacebookAds\Object\Values\SystemUserRoleValues; use FacebookAds\Object\Values\WhatsAppBusinessPreVerifiedPhoneNumberCodeVerificationStatusValues; @@ -1641,6 +1640,7 @@ public function createManagedPartnerBusiness(array $fields = array(), array $par 'LUXURY', 'MARKETING', 'NON_PROFIT', + 'NOT_SET', 'ORGANIZATIONS_AND_ASSOCIATIONS', 'OTHER', 'PROFESSIONAL_SERVICES', @@ -2415,14 +2415,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/Canvas.php b/src/FacebookAds/Object/Canvas.php index 15cc3ca54..7247e8b32 100644 --- a/src/FacebookAds/Object/Canvas.php +++ b/src/FacebookAds/Object/Canvas.php @@ -39,6 +39,29 @@ protected static function getReferencedEnums() { } + public function getPreview(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, + '/preview', + new CanvasPreview(), + 'EDGE', + CanvasPreview::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getPreviews(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/InstantArticlesStats.php b/src/FacebookAds/Object/CanvasPreview.php similarity index 79% rename from src/FacebookAds/Object/InstantArticlesStats.php rename to src/FacebookAds/Object/CanvasPreview.php index ac09914c0..09c15fed1 100644 --- a/src/FacebookAds/Object/InstantArticlesStats.php +++ b/src/FacebookAds/Object/CanvasPreview.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\InstantArticlesStatsFields; +use FacebookAds\Object\Fields\CanvasPreviewFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class InstantArticlesStats extends AbstractObject { +class CanvasPreview extends AbstractObject { /** - * @return InstantArticlesStatsFields + * @return CanvasPreviewFields */ public static function getFieldsEnum() { - return InstantArticlesStatsFields::getInstance(); + return CanvasPreviewFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/CustomAudience.php b/src/FacebookAds/Object/CustomAudience.php index 1b327b9c2..cc29148f6 100644 --- a/src/FacebookAds/Object/CustomAudience.php +++ b/src/FacebookAds/Object/CustomAudience.php @@ -172,6 +172,56 @@ public function getAds(array $fields = array(), array $params = array(), $pendin return $pending ? $request : $request->execute(); } + public function getSalts(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'params' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/salts', + new CustomAudienceSalts(), + 'EDGE', + CustomAudienceSalts::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createSalt(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'salt' => 'string', + 'valid_from' => 'datetime', + 'valid_to' => 'datetime', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/salts', + new CustomAudience(), + 'EDGE', + CustomAudience::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSessions(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/WhitehatFBDLRun.php b/src/FacebookAds/Object/CustomAudienceSalts.php similarity index 50% rename from src/FacebookAds/Object/WhitehatFBDLRun.php rename to src/FacebookAds/Object/CustomAudienceSalts.php index 99b6902f8..ee1ed67f8 100644 --- a/src/FacebookAds/Object/WhitehatFBDLRun.php +++ b/src/FacebookAds/Object/CustomAudienceSalts.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\WhitehatFBDLRunFields; +use FacebookAds\Object\Fields\CustomAudienceSaltsFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class WhitehatFBDLRun extends AbstractCrudObject { +class CustomAudienceSalts extends AbstractObject { /** - * @return WhitehatFBDLRunFields + * @return CustomAudienceSaltsFields */ public static function getFieldsEnum() { - return WhitehatFBDLRunFields::getInstance(); + return CustomAudienceSaltsFields::getInstance(); } protected static function getReferencedEnums() { @@ -39,27 +39,4 @@ protected static function getReferencedEnums() { } - public function getSelf(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, - '/', - new WhitehatFBDLRun(), - 'NODE', - WhitehatFBDLRun::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - } diff --git a/src/FacebookAds/Object/DestinationCatalogSettings.php b/src/FacebookAds/Object/DestinationCatalogSettings.php deleted file mode 100644 index 80f05e4ee..000000000 --- a/src/FacebookAds/Object/DestinationCatalogSettings.php +++ /dev/null @@ -1,65 +0,0 @@ -assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/', - new DestinationCatalogSettings(), - 'NODE', - DestinationCatalogSettings::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - -} diff --git a/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php b/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php index 4ab6adda7..e69608af1 100644 --- a/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php @@ -23,12 +23,16 @@ class AdAccountBusinessConstraintsFields extends AbstractEnum { const AUDIENCE_CONTROLS = 'audience_controls'; + const CAMPAIGNS_WITH_ERROR = 'campaigns_with_error'; const PLACEMENT_CONTROLS = 'placement_controls'; + const STATUS = 'status'; public function getFieldTypes() { return array( 'audience_controls' => 'Object', + 'campaigns_with_error' => 'list', 'placement_controls' => 'Object', + 'status' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php index 533c9e31b..e98a38610 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php @@ -27,6 +27,7 @@ class AdCreativeBrandedContentAdsFields extends AbstractEnum { const INSTAGRAM_BOOST_POST_ACCESS_TOKEN = 'instagram_boost_post_access_token'; const IS_MCA_INTERNAL = 'is_mca_internal'; const PARTNERS = 'partners'; + const PROMOTED_PAGE_ID = 'promoted_page_id'; const UI_VERSION = 'ui_version'; public function getFieldTypes() { @@ -36,6 +37,7 @@ public function getFieldTypes() { 'instagram_boost_post_access_token' => 'string', 'is_mca_internal' => 'bool', 'partners' => 'list', + 'promoted_page_id' => 'string', 'ui_version' => 'int', ); } diff --git a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php index d8b5f4ad2..ada6d7cad 100644 --- a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php +++ b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php @@ -43,8 +43,10 @@ class AdPromotedObjectFields extends AbstractEnum { const PLACE_PAGE_SET_ID = 'place_page_set_id'; const PRODUCT_CATALOG_ID = 'product_catalog_id'; const PRODUCT_ITEM_ID = 'product_item_id'; + const PRODUCT_SET = 'product_set'; const PRODUCT_SET_ID = 'product_set_id'; const RETENTION_DAYS = 'retention_days'; + const WHATSAPP_PHONE_NUMBER = 'whatsapp_phone_number'; public function getFieldTypes() { return array( @@ -69,8 +71,10 @@ public function getFieldTypes() { 'place_page_set_id' => 'string', 'product_catalog_id' => 'string', 'product_item_id' => 'string', + 'product_set' => 'ProductSet', 'product_set_id' => 'string', 'retention_days' => 'string', + 'whatsapp_phone_number' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdsActionStatsFields.php b/src/FacebookAds/Object/Fields/AdsActionStatsFields.php index 0d942de62..bedfffb0a 100644 --- a/src/FacebookAds/Object/Fields/AdsActionStatsFields.php +++ b/src/FacebookAds/Object/Fields/AdsActionStatsFields.php @@ -52,7 +52,11 @@ class AdsActionStatsFields extends AbstractEnum { const INTERACTIVE_COMPONENT_STICKER_ID = 'interactive_component_sticker_id'; const INTERACTIVE_COMPONENT_STICKER_RESPONSE = 'interactive_component_sticker_response'; const SKAN_CLICK = 'skan_click'; + const SKAN_CLICK_SECOND_POSTBACK = 'skan_click_second_postback'; + const SKAN_CLICK_THIRD_POSTBACK = 'skan_click_third_postback'; const SKAN_VIEW = 'skan_view'; + const SKAN_VIEW_SECOND_POSTBACK = 'skan_view_second_postback'; + const SKAN_VIEW_THIRD_POSTBACK = 'skan_view_third_postback'; const VALUE = 'value'; public function getFieldTypes() { @@ -87,7 +91,11 @@ public function getFieldTypes() { 'interactive_component_sticker_id' => 'string', 'interactive_component_sticker_response' => 'string', 'skan_click' => 'string', + 'skan_click_second_postback' => 'string', + 'skan_click_third_postback' => 'string', 'skan_view' => 'string', + 'skan_view_second_postback' => 'string', + 'skan_view_third_postback' => 'string', 'value' => 'string', ); } diff --git a/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php b/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php index 64240adf7..316a3b9b4 100644 --- a/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php +++ b/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php @@ -52,7 +52,11 @@ class AdsHistogramStatsFields extends AbstractEnum { const INTERACTIVE_COMPONENT_STICKER_ID = 'interactive_component_sticker_id'; const INTERACTIVE_COMPONENT_STICKER_RESPONSE = 'interactive_component_sticker_response'; const SKAN_CLICK = 'skan_click'; + const SKAN_CLICK_SECOND_POSTBACK = 'skan_click_second_postback'; + const SKAN_CLICK_THIRD_POSTBACK = 'skan_click_third_postback'; const SKAN_VIEW = 'skan_view'; + const SKAN_VIEW_SECOND_POSTBACK = 'skan_view_second_postback'; + const SKAN_VIEW_THIRD_POSTBACK = 'skan_view_third_postback'; const VALUE = 'value'; public function getFieldTypes() { @@ -87,7 +91,11 @@ public function getFieldTypes() { 'interactive_component_sticker_id' => 'string', 'interactive_component_sticker_response' => 'string', 'skan_click' => 'list', + 'skan_click_second_postback' => 'list', + 'skan_click_third_postback' => 'list', 'skan_view' => 'list', + 'skan_view_second_postback' => 'list', + 'skan_view_third_postback' => 'list', 'value' => 'list', ); } diff --git a/src/FacebookAds/Object/Fields/DestinationCatalogSettingsFields.php b/src/FacebookAds/Object/Fields/CanvasPreviewFields.php similarity index 73% rename from src/FacebookAds/Object/Fields/DestinationCatalogSettingsFields.php rename to src/FacebookAds/Object/Fields/CanvasPreviewFields.php index 8ea57b136..bfdcfc161 100644 --- a/src/FacebookAds/Object/Fields/DestinationCatalogSettingsFields.php +++ b/src/FacebookAds/Object/Fields/CanvasPreviewFields.php @@ -20,15 +20,13 @@ * */ -class DestinationCatalogSettingsFields extends AbstractEnum { +class CanvasPreviewFields extends AbstractEnum { - const GENERATE_ITEMS_FROM_PAGES = 'generate_items_from_pages'; - const ID = 'id'; + const BODY = 'body'; public function getFieldTypes() { return array( - 'generate_items_from_pages' => 'bool', - 'id' => 'string', + 'body' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/InstantArticlesStatsFields.php b/src/FacebookAds/Object/Fields/CustomAudienceSaltsFields.php similarity index 58% rename from src/FacebookAds/Object/Fields/InstantArticlesStatsFields.php rename to src/FacebookAds/Object/Fields/CustomAudienceSaltsFields.php index bc16c25e5..14761c8dd 100644 --- a/src/FacebookAds/Object/Fields/InstantArticlesStatsFields.php +++ b/src/FacebookAds/Object/Fields/CustomAudienceSaltsFields.php @@ -20,21 +20,15 @@ * */ -class InstantArticlesStatsFields extends AbstractEnum { +class CustomAudienceSaltsFields extends AbstractEnum { - const ERROR = 'error'; - const METADATA = 'metadata'; - const METRIC = 'metric'; - const TOTALS = 'totals'; - const X_AXIS_BREAKDOWN = 'x_axis_breakdown'; + const APP_ID = 'app_id'; + const PUBLIC_KEY = 'public_key'; public function getFieldTypes() { return array( - 'error' => 'string', - 'metadata' => 'list>', - 'metric' => 'Object', - 'totals' => 'list>', - 'x_axis_breakdown' => 'list>>', + 'app_id' => 'int', + 'public_key' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/GameItemFields.php b/src/FacebookAds/Object/Fields/VideoCopyrightCheckStatusFields.php similarity index 60% rename from src/FacebookAds/Object/Fields/GameItemFields.php rename to src/FacebookAds/Object/Fields/VideoCopyrightCheckStatusFields.php index 382527c0f..74274a75b 100644 --- a/src/FacebookAds/Object/Fields/GameItemFields.php +++ b/src/FacebookAds/Object/Fields/VideoCopyrightCheckStatusFields.php @@ -20,27 +20,15 @@ * */ -class GameItemFields extends AbstractEnum { +class VideoCopyrightCheckStatusFields extends AbstractEnum { - const COUNT = 'count'; - const CREATED = 'created'; - const EXT_ID = 'ext_id'; - const ID = 'id'; - const ITEM_DEF = 'item_def'; - const OWNER = 'owner'; + const MATCHES_FOUND = 'matches_found'; const STATUS = 'status'; - const UPDATED = 'updated'; public function getFieldTypes() { return array( - 'count' => 'int', - 'created' => 'datetime', - 'ext_id' => 'string', - 'id' => 'string', - 'item_def' => 'string', - 'owner' => 'User', + 'matches_found' => 'bool', 'status' => 'string', - 'updated' => 'datetime', ); } } diff --git a/src/FacebookAds/Object/Values/GameItemActionValues.php b/src/FacebookAds/Object/Fields/VideoStatusErrorFields.php similarity index 65% rename from src/FacebookAds/Object/Values/GameItemActionValues.php rename to src/FacebookAds/Object/Fields/VideoStatusErrorFields.php index f2a00fc43..fd37e66a1 100644 --- a/src/FacebookAds/Object/Values/GameItemActionValues.php +++ b/src/FacebookAds/Object/Fields/VideoStatusErrorFields.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,11 +18,17 @@ * on github and we'll fix in our codegen framework. We'll not be able to accept * pull request for this class. * - * @method static GameItemActionValues getInstance() */ -class GameItemActionValues extends AbstractEnum { - const CONSUME = 'CONSUME'; - const DROP = 'DROP'; - const MARK = 'MARK'; +class VideoStatusErrorFields extends AbstractEnum { + + const CODE = 'code'; + const MESSAGE = 'message'; + + public function getFieldTypes() { + return array( + 'code' => 'int', + 'message' => 'string', + ); + } } diff --git a/src/FacebookAds/Object/Fields/VideoStatusFields.php b/src/FacebookAds/Object/Fields/VideoStatusFields.php new file mode 100644 index 000000000..5fd8e7fcc --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoStatusFields.php @@ -0,0 +1,42 @@ + 'VideoCopyrightCheckStatus', + 'processing_phase' => 'VideoStatusProcessingPhase', + 'processing_progress' => 'unsigned int', + 'publishing_phase' => 'VideoStatusPublishingPhase', + 'uploading_phase' => 'VideoStatusUploadingPhase', + 'video_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/VideoStatusProcessingPhaseFields.php b/src/FacebookAds/Object/Fields/VideoStatusProcessingPhaseFields.php new file mode 100644 index 000000000..ff2ce12b2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoStatusProcessingPhaseFields.php @@ -0,0 +1,34 @@ + 'list', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php b/src/FacebookAds/Object/Fields/VideoStatusPublishingPhaseFields.php similarity index 57% rename from src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php rename to src/FacebookAds/Object/Fields/VideoStatusPublishingPhaseFields.php index 14dfe5ea6..97a5a36cf 100644 --- a/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php +++ b/src/FacebookAds/Object/Fields/VideoStatusPublishingPhaseFields.php @@ -20,27 +20,19 @@ * */ -class WhitehatFBDLRunFields extends AbstractEnum { +class VideoStatusPublishingPhaseFields extends AbstractEnum { - const CREATION_TIME = 'creation_time'; - const ID = 'id'; - const IS_PINNED = 'is_pinned'; - const NOTE = 'note'; - const RESULT = 'result'; - const RUN_CODE = 'run_code'; + const ERRORS = 'errors'; + const PUBLISH_STATUS = 'publish_status'; + const PUBLISH_TIME = 'publish_time'; const STATUS = 'status'; - const USER_TYPE = 'user_type'; public function getFieldTypes() { return array( - 'creation_time' => 'datetime', - 'id' => 'string', - 'is_pinned' => 'bool', - 'note' => 'string', - 'result' => 'list>', - 'run_code' => 'string', + 'errors' => 'list', + 'publish_status' => 'string', + 'publish_time' => 'datetime', 'status' => 'string', - 'user_type' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/VideoStatusUploadingPhaseFields.php b/src/FacebookAds/Object/Fields/VideoStatusUploadingPhaseFields.php new file mode 100644 index 000000000..9130c5437 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoStatusUploadingPhaseFields.php @@ -0,0 +1,38 @@ + 'unsigned int', + 'errors' => 'list', + 'source_file_size' => 'unsigned int', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/GameItem.php b/src/FacebookAds/Object/GameItem.php deleted file mode 100644 index 9db777872..000000000 --- a/src/FacebookAds/Object/GameItem.php +++ /dev/null @@ -1,67 +0,0 @@ -getValues(); - return $ref_enums; - } - - - public function getSelf(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, - '/', - new GameItem(), - 'NODE', - GameItem::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - -} diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index 9c2c3ff3f..b3991d96d 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -42,7 +42,6 @@ use FacebookAds\Object\Values\PostPostingToRedspaceValues; use FacebookAds\Object\Values\PostTargetSurfaceValues; use FacebookAds\Object\Values\PostUnpublishedContentTypeValues; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; /** @@ -708,14 +707,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/IGMedia.php b/src/FacebookAds/Object/IGMedia.php index 88acc8256..27a4e95ee 100644 --- a/src/FacebookAds/Object/IGMedia.php +++ b/src/FacebookAds/Object/IGMedia.php @@ -241,6 +241,10 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->assureId(); $param_types = array( + 'primary_fb_page_id' => 'string', + 'primary_ig_user_id' => 'string', + 'secondary_fb_page_id' => 'string', + 'secondary_ig_user_id' => 'string', ); $enums = array( ); diff --git a/src/FacebookAds/Object/Page.php b/src/FacebookAds/Object/Page.php index 436458947..93391c53e 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -73,7 +73,6 @@ use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues; use FacebookAds\Object\Values\PhotoTypeValues; use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; use FacebookAds\Object\Values\StoriesStatusValues; use FacebookAds\Object\Values\UnifiedThreadPlatformValues; @@ -1574,33 +1573,6 @@ public function getInstagramAccounts(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getInstantArticlesStats(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'metrics_list' => 'list', - 'page_list' => 'list', - 'since' => 'datetime', - 'until' => 'datetime', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/instant_articles_stats', - new InstantArticlesStats(), - 'EDGE', - InstantArticlesStats::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getLeadGenForms(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2547,14 +2519,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/Profile.php b/src/FacebookAds/Object/Profile.php index c3bccfa49..fc4fcc4f6 100644 --- a/src/FacebookAds/Object/Profile.php +++ b/src/FacebookAds/Object/Profile.php @@ -14,7 +14,6 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ProfileFields; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; use FacebookAds\Object\Values\ProfileProfileTypeValues; use FacebookAds\Object\Values\ProfileTypeValues; @@ -49,14 +48,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/ProfilePictureSource.php b/src/FacebookAds/Object/ProfilePictureSource.php index 15a1a53c7..8d6a2e107 100644 --- a/src/FacebookAds/Object/ProfilePictureSource.php +++ b/src/FacebookAds/Object/ProfilePictureSource.php @@ -14,7 +14,6 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ProfilePictureSourceFields; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; /** @@ -38,7 +37,6 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['Type'] = ProfilePictureSourceTypeValues::getInstance()->getValues(); - $ref_enums['BreakingChange'] = ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/User.php b/src/FacebookAds/Object/User.php index 460b690a3..b1c9c0326 100644 --- a/src/FacebookAds/Object/User.php +++ b/src/FacebookAds/Object/User.php @@ -27,7 +27,6 @@ use FacebookAds\Object\Values\BusinessVerticalValues; use FacebookAds\Object\Values\EventTypeValues; use FacebookAds\Object\Values\FundraiserPersonToCharityFundraiserTypeValues; -use FacebookAds\Object\Values\GameItemActionValues; use FacebookAds\Object\Values\LiveVideoBroadcastStatusValues; use FacebookAds\Object\Values\LiveVideoProjectionValues; use FacebookAds\Object\Values\LiveVideoSourceValues; @@ -46,7 +45,6 @@ use FacebookAds\Object\Values\PostPostingToRedspaceValues; use FacebookAds\Object\Values\PostTargetSurfaceValues; use FacebookAds\Object\Values\PostUnpublishedContentTypeValues; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; use FacebookAds\Object\Values\UnifiedThreadPlatformValues; use FacebookAds\Object\Values\UserFilteringValues; @@ -670,29 +668,6 @@ public function getEvents(array $fields = array(), array $params = array(), $pen return $pending ? $request : $request->execute(); } - public function getFbdlRuns(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, - '/fbdl_runs', - new WhitehatFBDLRun(), - 'EDGE', - WhitehatFBDLRun::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getFeed(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -947,36 +922,6 @@ public function createFundraiser(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } - public function createGameItem(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'action' => 'action_enum', - 'app_id' => 'string', - 'drop_table_id' => 'string', - 'ext_id' => 'string', - 'item_id' => 'string', - 'quantity' => 'unsigned int', - ); - $enums = array( - 'action_enum' => GameItemActionValues::getInstance()->getValues(), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/game_items', - new GameItem(), - 'EDGE', - GameItem::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function createGameTime(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1488,14 +1433,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php index cabe2cf1f..974bc0289 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php @@ -27,7 +27,9 @@ class AdAccountAdRulesHistoryActionValues extends AbstractEnum { const CHANGED_BUDGET = 'CHANGED_BUDGET'; const EMAIL = 'EMAIL'; const ENABLE_ADVANTAGE_PLUS_CREATIVE = 'ENABLE_ADVANTAGE_PLUS_CREATIVE'; + const ENABLE_ADVANTAGE_PLUS_PLACEMENTS = 'ENABLE_ADVANTAGE_PLUS_PLACEMENTS'; const ENABLE_AUTOFLOW = 'ENABLE_AUTOFLOW'; + const ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION = 'ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION'; const ENDPOINT_PINGED = 'ENDPOINT_PINGED'; const ERROR = 'ERROR'; const FACEBOOK_NOTIFICATION_SENT = 'FACEBOOK_NOTIFICATION_SENT'; diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index e1f5aa883..9931d1a83 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -27,12 +27,17 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const ACO_TOGGLE = 'ACO_TOGGLE'; const ADS_REPORTING = 'ADS_REPORTING'; const ADVANCED_CAMPAIGN_BUDGET = 'ADVANCED_CAMPAIGN_BUDGET'; + const ADVANTAGE_APP_CAMPAIGN = 'ADVANTAGE_APP_CAMPAIGN'; const ADVANTAGE_CUSTOM_AUDIENCE = 'ADVANTAGE_CUSTOM_AUDIENCE'; const ADVANTAGE_CUSTOM_AUDIENCE_UPSELL = 'ADVANTAGE_CUSTOM_AUDIENCE_UPSELL'; + const ADVANTAGE_DETAILED_TARGETING = 'ADVANTAGE_DETAILED_TARGETING'; + const ADVANTAGE_LOOKALIKE_AUDIENCE = 'ADVANTAGE_LOOKALIKE_AUDIENCE'; + const ADVANTAGE_PLUS_AUDIENCE = 'ADVANTAGE_PLUS_AUDIENCE'; const ADVANTAGE_PLUS_AUDIENCE_FRICTION = 'ADVANTAGE_PLUS_AUDIENCE_FRICTION'; const ADVANTAGE_PLUS_AUDIENCE_TOGGLE = 'ADVANTAGE_PLUS_AUDIENCE_TOGGLE'; const ADVANTAGE_PLUS_CREATIVE = 'ADVANTAGE_PLUS_CREATIVE'; const ADVANTAGE_PLUS_CREATIVE_CATALOG = 'ADVANTAGE_PLUS_CREATIVE_CATALOG'; + const ADVANTAGE_PLUS_PLACEMENTS_FRICTION = 'ADVANTAGE_PLUS_PLACEMENTS_FRICTION'; const ADVANTAGE_SHOPPING_CAMPAIGN = 'ADVANTAGE_SHOPPING_CAMPAIGN'; const ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION = 'ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION'; const AD_OBJECTIVE = 'AD_OBJECTIVE'; @@ -83,6 +88,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const GUIDANCE_CENTER_CODE_GEN = 'GUIDANCE_CENTER_CODE_GEN'; const HIGH_COST = 'HIGH_COST'; const HISTORICAL_BENCHMARK = 'HISTORICAL_BENCHMARK'; + const IG_MULTI_ADS = 'IG_MULTI_ADS'; const LEARNING_LIMITED = 'LEARNING_LIMITED'; const LEARNING_PAUSE_FRICTION = 'LEARNING_PAUSE_FRICTION'; const LEARNING_PHASE_BUDGET_EDITS = 'LEARNING_PHASE_BUDGET_EDITS'; @@ -114,6 +120,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const SIX_PLUS_MANUAL_PLACEMENTS = 'SIX_PLUS_MANUAL_PLACEMENTS'; const SPEND_LIMIT = 'SPEND_LIMIT'; const SYD_TEST_MODE = 'SYD_TEST_MODE'; + const TAILORED_LEAD_AD_CAMPAIGN = 'TAILORED_LEAD_AD_CAMPAIGN'; 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'; diff --git a/src/FacebookAds/Object/Values/ProfilePictureSourceBreakingChangeValues.php b/src/FacebookAds/Object/Values/AdAccountPermittedTasksValues.php similarity index 66% rename from src/FacebookAds/Object/Values/ProfilePictureSourceBreakingChangeValues.php rename to src/FacebookAds/Object/Values/AdAccountPermittedTasksValues.php index 38a639f8e..db4427498 100644 --- a/src/FacebookAds/Object/Values/ProfilePictureSourceBreakingChangeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountPermittedTasksValues.php @@ -18,9 +18,13 @@ * on github and we'll fix in our codegen framework. We'll not be able to accept * pull request for this class. * - * @method static ProfilePictureSourceBreakingChangeValues getInstance() + * @method static AdAccountPermittedTasksValues getInstance() */ -class ProfilePictureSourceBreakingChangeValues extends AbstractEnum { +class AdAccountPermittedTasksValues extends AbstractEnum { - const PROFILE_PICTURE = 'PROFILE_PICTURE'; + const AA_ANALYZE = 'AA_ANALYZE'; + const ADVERTISE = 'ADVERTISE'; + const ANALYZE = 'ANALYZE'; + const DRAFT = 'DRAFT'; + const MANAGE = 'MANAGE'; } diff --git a/src/FacebookAds/Object/Values/AdCreativeAuthorizationCategoryValues.php b/src/FacebookAds/Object/Values/AdCreativeAuthorizationCategoryValues.php index d73a333e4..6c1b0d068 100644 --- a/src/FacebookAds/Object/Values/AdCreativeAuthorizationCategoryValues.php +++ b/src/FacebookAds/Object/Values/AdCreativeAuthorizationCategoryValues.php @@ -24,4 +24,5 @@ class AdCreativeAuthorizationCategoryValues extends AbstractEnum { const NONE = 'NONE'; const POLITICAL = 'POLITICAL'; + const POLITICAL_WITH_DIGITALLY_CREATED_MEDIA = 'POLITICAL_WITH_DIGITALLY_CREATED_MEDIA'; } diff --git a/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php b/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php index 3ee165434..162d3cea4 100644 --- a/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php +++ b/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php @@ -29,6 +29,7 @@ class AdRuleExecutionSpecExecutionTypeValues extends AbstractEnum { const CHANGE_BID = 'CHANGE_BID'; const CHANGE_BUDGET = 'CHANGE_BUDGET'; const CHANGE_CAMPAIGN_BUDGET = 'CHANGE_CAMPAIGN_BUDGET'; + const DCO = 'DCO'; const INCREASE_RADIUS = 'INCREASE_RADIUS'; const NOTIFICATION = 'NOTIFICATION'; const PAUSE = 'PAUSE'; diff --git a/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php b/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php index 387e91db8..8f1e90bbb 100644 --- a/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php +++ b/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php @@ -27,7 +27,9 @@ class AdRuleHistoryActionValues extends AbstractEnum { const CHANGED_BUDGET = 'CHANGED_BUDGET'; const EMAIL = 'EMAIL'; const ENABLE_ADVANTAGE_PLUS_CREATIVE = 'ENABLE_ADVANTAGE_PLUS_CREATIVE'; + const ENABLE_ADVANTAGE_PLUS_PLACEMENTS = 'ENABLE_ADVANTAGE_PLUS_PLACEMENTS'; const ENABLE_AUTOFLOW = 'ENABLE_AUTOFLOW'; + const ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION = 'ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION'; const ENDPOINT_PINGED = 'ENDPOINT_PINGED'; const ERROR = 'ERROR'; const FACEBOOK_NOTIFICATION_SENT = 'FACEBOOK_NOTIFICATION_SENT'; diff --git a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php index 1894c874b..687f5e78f 100644 --- a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +++ b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php @@ -48,6 +48,7 @@ class AdVideoContainerTypeValues extends AbstractEnum { const CONTAINED_POST_AUDIO_BROADCAST = 'CONTAINED_POST_AUDIO_BROADCAST'; const CONTAINED_POST_COPYRIGHT_REFERENCE_BROADCAST = 'CONTAINED_POST_COPYRIGHT_REFERENCE_BROADCAST'; const COPYRIGHT_REFERENCE_BROADCAST = 'COPYRIGHT_REFERENCE_BROADCAST'; + const COPYRIGHT_REFERENCE_IG_XPOST_VIDEO = 'COPYRIGHT_REFERENCE_IG_XPOST_VIDEO'; const COPYRIGHT_REFERENCE_VIDEO = 'COPYRIGHT_REFERENCE_VIDEO'; const CREATION_ML_PRECREATION = 'CREATION_ML_PRECREATION'; const DCO_AD_ASSET_FEED = 'DCO_AD_ASSET_FEED'; diff --git a/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php b/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php index a58429ffb..709a58434 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php @@ -41,6 +41,7 @@ class AdsInsightsBreakdownsValues extends AbstractEnum { const IMAGE_ASSET = 'image_asset'; const IMPRESSION_DEVICE = 'impression_device'; const IS_CONVERSION_ID_MODELED = 'is_conversion_id_modeled'; + const LANDING_DESTINATION = 'landing_destination'; const LINK_URL_ASSET = 'link_url_asset'; const MARKETING_MESSAGES_BTN_NAME = 'marketing_messages_btn_name'; const MDSA_LANDING_DESTINATION = 'mdsa_landing_destination'; diff --git a/src/FacebookAds/Object/Values/BusinessVerticalValues.php b/src/FacebookAds/Object/Values/BusinessVerticalValues.php index fe9a7fc08..49da0edc1 100644 --- a/src/FacebookAds/Object/Values/BusinessVerticalValues.php +++ b/src/FacebookAds/Object/Values/BusinessVerticalValues.php @@ -36,6 +36,7 @@ class BusinessVerticalValues extends AbstractEnum { const LUXURY = 'LUXURY'; const MARKETING = 'MARKETING'; const NON_PROFIT = 'NON_PROFIT'; + const NOT_SET = 'NOT_SET'; const ORGANIZATIONS_AND_ASSOCIATIONS = 'ORGANIZATIONS_AND_ASSOCIATIONS'; const OTHER = 'OTHER'; const PROFESSIONAL_SERVICES = 'PROFESSIONAL_SERVICES'; diff --git a/src/FacebookAds/Object/Values/InstagramInsightsResultMetricValues.php b/src/FacebookAds/Object/Values/InstagramInsightsResultMetricValues.php index 165dd5dd6..758c0866f 100644 --- a/src/FacebookAds/Object/Values/InstagramInsightsResultMetricValues.php +++ b/src/FacebookAds/Object/Values/InstagramInsightsResultMetricValues.php @@ -27,10 +27,12 @@ class InstagramInsightsResultMetricValues extends AbstractEnum { const CAROUSEL_ALBUM_REACH = 'carousel_album_reach'; const CAROUSEL_ALBUM_SAVED = 'carousel_album_saved'; const CAROUSEL_ALBUM_VIDEO_VIEWS = 'carousel_album_video_views'; + const CLIPS_REPLAYS_COUNT = 'clips_replays_count'; const COMMENTS = 'comments'; const ENGAGEMENT = 'engagement'; const EXITS = 'exits'; const FOLLOWS = 'follows'; + const IG_REELS_AGGREGATED_ALL_PLAYS_COUNT = 'ig_reels_aggregated_all_plays_count'; const IG_REELS_AVG_WATCH_TIME = 'ig_reels_avg_watch_time'; const IG_REELS_VIDEO_VIEW_TOTAL_TIME = 'ig_reels_video_view_total_time'; const IMPRESSIONS = 'impressions'; diff --git a/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php b/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php index 1306db7ed..ff2cedd46 100644 --- a/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php +++ b/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php @@ -55,6 +55,7 @@ class ProductItemErrorTypeValues extends AbstractEnum { const INVALID_IMAGES = 'INVALID_IMAGES'; const INVALID_MONETIZER_RETURN_POLICY = 'INVALID_MONETIZER_RETURN_POLICY'; const INVALID_PRE_ORDER_PARAMS = 'INVALID_PRE_ORDER_PARAMS'; + const INVALID_SHELTER_PAGE_ID = 'INVALID_SHELTER_PAGE_ID'; const INVALID_SHIPPING_PROFILE_PARAMS = 'INVALID_SHIPPING_PROFILE_PARAMS'; const INVALID_SUBSCRIPTION_DISABLE_PARAMS = 'INVALID_SUBSCRIPTION_DISABLE_PARAMS'; const INVALID_SUBSCRIPTION_ENABLE_PARAMS = 'INVALID_SUBSCRIPTION_ENABLE_PARAMS'; @@ -122,4 +123,6 @@ class ProductItemErrorTypeValues extends AbstractEnum { const VIDEO_FETCH_FAILED_LINK_BROKEN = 'VIDEO_FETCH_FAILED_LINK_BROKEN'; const VIDEO_FETCH_FAILED_TIMED_OUT = 'VIDEO_FETCH_FAILED_TIMED_OUT'; const VIDEO_NOT_DOWNLOADABLE = 'VIDEO_NOT_DOWNLOADABLE'; + const WHATSAPP_DISABLED_BY_USER = 'WHATSAPP_DISABLED_BY_USER'; + const WHATSAPP_POLICY_VIOLATION = 'WHATSAPP_POLICY_VIOLATION'; } diff --git a/src/FacebookAds/Object/VideoCopyrightCheckStatus.php b/src/FacebookAds/Object/VideoCopyrightCheckStatus.php new file mode 100644 index 000000000..aa1199739 --- /dev/null +++ b/src/FacebookAds/Object/VideoCopyrightCheckStatus.php @@ -0,0 +1,42 @@ + 'list', 'clone_flow_id' => 'string', - 'clone_template' => 'string', 'endpoint_uri' => 'string', 'name' => 'string', );