From 6270c85917db02da397c49f13a46a31d8b985cd2 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Mon, 18 Mar 2024 23:15:35 -0700 Subject: [PATCH] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D54971065 fbshipit-source-id: e912137558596dcef4c99d560053d49696740763 --- .../AdAccountAdSetsPostAdSetCreateCpa.php | 4 +- ...countAdSetsPostAdSetCreateCpaAppEvents.php | 4 +- examples/AdAccountAdSetsPostCreateAdSet.php | 4 +- examples/AdAccountAdSetsPostDailyBudget20.php | 4 +- ...etsPostLifetimeBudget200Duration10Days.php | 4 +- ...ccountAdSetsPostOptimizePostEngagement.php | 4 +- src/FacebookAds/ApiConfig.php | 2 +- src/FacebookAds/Object/Ad.php | 2 +- src/FacebookAds/Object/AdAccount.php | 24 --------- src/FacebookAds/Object/AdSet.php | 2 +- src/FacebookAds/Object/Album.php | 1 - src/FacebookAds/Object/Avatar.php | 1 + src/FacebookAds/Object/Business.php | 1 - src/FacebookAds/Object/Campaign.php | 2 +- .../AdAssetFeedAdditionalDataFields.php | 2 + ...pPlacementSpecificReviewFeedbackFields.php | 2 + .../Object/Fields/AdsInsightsFields.php | 2 + .../Fields/CatalogSubVerticalListFields.php | 2 - .../FundingSourceDetailsCouponFields.php | 2 + .../Fields/FundingSourceDetailsFields.php | 2 + .../Object/Fields/InsightsResultFields.php | 2 +- .../Object/Fields/InsightsValueFields.php | 50 +++++++++++++++++++ src/FacebookAds/Object/Fields/PageFields.php | 2 + src/FacebookAds/Object/Group.php | 5 +- src/FacebookAds/Object/IGUser.php | 1 + src/FacebookAds/Object/InsightsValue.php | 42 ++++++++++++++++ src/FacebookAds/Object/Page.php | 36 ++++++++++++- src/FacebookAds/Object/User.php | 5 +- ...ccountAdVolumeRecommendationTypeValues.php | 6 +++ .../Object/Values/AdDatePresetValues.php | 2 +- .../Object/Values/AdSetDatePresetValues.php | 2 +- .../Values/AdVideoContainerTypeValues.php | 1 + ...InsightsActionAttributionWindowsValues.php | 4 ++ .../AdsInsightsActionBreakdownsValues.php | 2 + .../Values/AdsInsightsDatePresetValues.php | 2 +- ...sInsightsSummaryActionBreakdownsValues.php | 2 + .../Values/CampaignDatePresetValues.php | 2 +- .../CustomAudienceDataSourceSubTypeValues.php | 1 + .../Values/InsightsResultDatePresetValues.php | 2 +- .../Object/Values/PageActionTypeValues.php | 26 ++++++++++ .../Object/Values/PageActionValues.php | 26 ++++++++++ .../Values/PageSubscribedFieldsValues.php | 2 + .../Values/ProductCatalogVerticalValues.php | 2 - 43 files changed, 236 insertions(+), 60 deletions(-) create mode 100644 src/FacebookAds/Object/Fields/InsightsValueFields.php create mode 100644 src/FacebookAds/Object/InsightsValue.php create mode 100644 src/FacebookAds/Object/Values/PageActionTypeValues.php create mode 100644 src/FacebookAds/Object/Values/PageActionValues.php diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpa.php b/examples/AdAccountAdSetsPostAdSetCreateCpa.php index 583e256a2..11b392d08 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpa.php +++ b/examples/AdAccountAdSetsPostAdSetCreateCpa.php @@ -43,8 +43,8 @@ 'name' => 'A CPA Ad Set', 'campaign_id' => '', 'daily_budget' => '5000', - 'start_time' => '2023-04-24T09:25:05-0700', - 'end_time' => '2023-05-01T09:25:05-0700', + 'start_time' => '2024-03-20T14:31:58-0700', + 'end_time' => '2024-03-27T14:31:58-0700', 'billing_event' => 'IMPRESSIONS', 'optimization_goal' => 'REACH', 'bid_amount' => '1000', diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php index 94230c370..6fc0ed287 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php +++ b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php @@ -43,8 +43,8 @@ 'name' => 'A CPA Ad Set optimized for App Events', 'campaign_id' => '', 'daily_budget' => '300', - 'start_time' => '2023-04-24T09:25:55-0700', - 'end_time' => '2023-05-01T09:25:55-0700', + 'start_time' => '2024-03-20T14:32:42-0700', + 'end_time' => '2024-03-27T14:32:42-0700', 'billing_event' => 'IMPRESSIONS', 'optimization_goal' => 'OFFSITE_CONVERSIONS', 'bid_amount' => '100', diff --git a/examples/AdAccountAdSetsPostCreateAdSet.php b/examples/AdAccountAdSetsPostCreateAdSet.php index 961d26c02..a2c30d77b 100644 --- a/examples/AdAccountAdSetsPostCreateAdSet.php +++ b/examples/AdAccountAdSetsPostCreateAdSet.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First AdSet', 'lifetime_budget' => '20000', - 'start_time' => '2023-04-24T09:24:18-0700', - 'end_time' => '2023-05-01T09:24:18-0700', + 'start_time' => '2024-03-20T14:31:13-0700', + 'end_time' => '2024-03-27T14:31:13-0700', 'campaign_id' => '', 'bid_amount' => '500', 'billing_event' => 'IMPRESSIONS', diff --git a/examples/AdAccountAdSetsPostDailyBudget20.php b/examples/AdAccountAdSetsPostDailyBudget20.php index d327c2b67..d33b75b04 100644 --- a/examples/AdAccountAdSetsPostDailyBudget20.php +++ b/examples/AdAccountAdSetsPostDailyBudget20.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'daily_budget' => '2000', - 'start_time' => '2023-04-17T09:25:24-0700', - 'end_time' => '2023-04-24T09:25:24-0700', + 'start_time' => '2024-03-13T14:32:15-0700', + 'end_time' => '2024-03-20T14:32:15-0700', 'campaign_id' => '', 'bid_amount' => '100', 'billing_event' => 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php index 602a45e5b..fad96b6a6 100644 --- a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php +++ b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'lifetime_budget' => '20000', - 'start_time' => '2023-04-17T09:25:36-0700', - 'end_time' => '2023-04-27T09:25:36-0700', + 'start_time' => '2024-03-13T14:32:24-0700', + 'end_time' => '2024-03-23T14:32:24-0700', 'campaign_id' => '', 'bid_amount' => '100', 'billing_event' => 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostOptimizePostEngagement.php b/examples/AdAccountAdSetsPostOptimizePostEngagement.php index b0c2f4581..b42a2ae2a 100644 --- a/examples/AdAccountAdSetsPostOptimizePostEngagement.php +++ b/examples/AdAccountAdSetsPostOptimizePostEngagement.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'lifetime_budget' => '20000', - 'start_time' => '2023-04-17T09:25:45-0700', - 'end_time' => '2023-04-27T09:25:45-0700', + 'start_time' => '2024-03-13T14:32:33-0700', + 'end_time' => '2024-03-23T14:32:33-0700', 'campaign_id' => '', 'bid_amount' => '500', 'billing_event' => 'IMPRESSIONS', diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 769aa053c..a2e4abc50 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '19.0'; - const SDKVersion = '19.0.1'; + const SDKVersion = '19.0.2'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/Ad.php b/src/FacebookAds/Object/Ad.php index 313babc3b..a974a95ac 100644 --- a/src/FacebookAds/Object/Ad.php +++ b/src/FacebookAds/Object/Ad.php @@ -439,7 +439,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'last_week_mon_sun', 'last_week_sun_sat', 'last_year', - 'lifetime', + 'maximum', 'this_month', 'this_quarter', 'this_week_mon_today', diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 19d755f6c..03f6980da 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -1243,7 +1243,6 @@ public function createAdVideo(array $fields = array(), array $params = array(), 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', @@ -3152,29 +3151,6 @@ public function deleteUsersOfAnyAudience(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function getValueAdjustmentRulePersonaGroups(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, - '/value_adjustment_rule_persona_groups', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getValueAdjustmentRules(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AdSet.php b/src/FacebookAds/Object/AdSet.php index e454b51fb..cc58fdeeb 100644 --- a/src/FacebookAds/Object/AdSet.php +++ b/src/FacebookAds/Object/AdSet.php @@ -586,7 +586,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'last_week_mon_sun', 'last_week_sun_sat', 'last_year', - 'lifetime', + 'maximum', 'this_month', 'this_quarter', 'this_week_mon_today', diff --git a/src/FacebookAds/Object/Album.php b/src/FacebookAds/Object/Album.php index 8412ad0d1..1e982a4c1 100644 --- a/src/FacebookAds/Object/Album.php +++ b/src/FacebookAds/Object/Album.php @@ -228,7 +228,6 @@ public function createPhoto(array $fields = array(), array $params = array(), $p 'proxied_app_id' => 'string', 'published' => 'bool', 'qn' => 'string', - 'scheduled_publish_time' => 'unsigned int', 'spherical_metadata' => 'map', 'sponsor_id' => 'string', 'sponsor_relationship' => 'unsigned int', diff --git a/src/FacebookAds/Object/Avatar.php b/src/FacebookAds/Object/Avatar.php index 18200b59f..bf5dc4ad5 100644 --- a/src/FacebookAds/Object/Avatar.php +++ b/src/FacebookAds/Object/Avatar.php @@ -45,6 +45,7 @@ public function getModels(array $fields = array(), array $params = array(), $pen $param_types = array( 'client_name' => 'string', 'client_version' => 'string', + 'config_id' => 'string', 'force_generate' => 'bool', 'platform' => 'string', 'profile' => 'string', diff --git a/src/FacebookAds/Object/Business.php b/src/FacebookAds/Object/Business.php index 92c495c1e..f3438ac92 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -2758,7 +2758,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', diff --git a/src/FacebookAds/Object/Campaign.php b/src/FacebookAds/Object/Campaign.php index 7061a6f07..d2b0c34f4 100644 --- a/src/FacebookAds/Object/Campaign.php +++ b/src/FacebookAds/Object/Campaign.php @@ -452,7 +452,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'last_week_mon_sun', 'last_week_sun_sat', 'last_year', - 'lifetime', + 'maximum', 'this_month', 'this_quarter', 'this_week_mon_today', diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php index ca740e260..aad7b7844 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php @@ -27,6 +27,7 @@ class AdAssetFeedAdditionalDataFields extends AbstractEnum { const IS_CLICK_TO_MESSAGE = 'is_click_to_message'; const MULTI_SHARE_END_CARD = 'multi_share_end_card'; const PAGE_WELCOME_MESSAGE = 'page_welcome_message'; + const PARTNER_APP_WELCOME_MESSAGE_FLOW_ID = 'partner_app_welcome_message_flow_id'; public function getFieldTypes() { return array( @@ -35,6 +36,7 @@ public function getFieldTypes() { 'is_click_to_message' => 'bool', 'multi_share_end_card' => 'bool', 'page_welcome_message' => 'string', + 'partner_app_welcome_message_flow_id' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php b/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php index 68aa966a0..089da7d45 100644 --- a/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php +++ b/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php @@ -30,6 +30,7 @@ class AdgroupPlacementSpecificReviewFeedbackFields extends AbstractEnum { const BSG = 'bsg'; const CITY_COMMUNITY = 'city_community'; const COMMERCE = 'commerce'; + const COMPROMISE = 'compromise'; const DAILY_DEALS = 'daily_deals'; const DAILY_DEALS_LEGACY = 'daily_deals_legacy'; const DPA = 'dpa'; @@ -69,6 +70,7 @@ public function getFieldTypes() { 'bsg' => 'map', 'city_community' => 'map', 'commerce' => 'map', + 'compromise' => 'map', 'daily_deals' => 'map', 'daily_deals_legacy' => 'map', 'dpa' => 'map', diff --git a/src/FacebookAds/Object/Fields/AdsInsightsFields.php b/src/FacebookAds/Object/Fields/AdsInsightsFields.php index 7f96f20ed..163d1fb69 100644 --- a/src/FacebookAds/Object/Fields/AdsInsightsFields.php +++ b/src/FacebookAds/Object/Fields/AdsInsightsFields.php @@ -110,6 +110,7 @@ class AdsInsightsFields extends AbstractEnum { const MARKETING_MESSAGES_COST_PER_DELIVERED = 'marketing_messages_cost_per_delivered'; const MARKETING_MESSAGES_COST_PER_LINK_BTN_CLICK = 'marketing_messages_cost_per_link_btn_click'; const MARKETING_MESSAGES_SPEND = 'marketing_messages_spend'; + const MARKETING_MESSAGES_WEBSITE_PURCHASE_VALUES = 'marketing_messages_website_purchase_values'; const MOBILE_APP_PURCHASE_ROAS = 'mobile_app_purchase_roas'; const OBJECTIVE = 'objective'; const OPTIMIZATION_GOAL = 'optimization_goal'; @@ -247,6 +248,7 @@ public function getFieldTypes() { 'marketing_messages_cost_per_delivered' => 'string', 'marketing_messages_cost_per_link_btn_click' => 'string', 'marketing_messages_spend' => 'string', + 'marketing_messages_website_purchase_values' => 'string', 'mobile_app_purchase_roas' => 'list', 'objective' => 'string', 'optimization_goal' => 'string', diff --git a/src/FacebookAds/Object/Fields/CatalogSubVerticalListFields.php b/src/FacebookAds/Object/Fields/CatalogSubVerticalListFields.php index ad3e8f3b9..cbf91acc3 100644 --- a/src/FacebookAds/Object/Fields/CatalogSubVerticalListFields.php +++ b/src/FacebookAds/Object/Fields/CatalogSubVerticalListFields.php @@ -51,7 +51,6 @@ class CatalogSubVerticalListFields extends AbstractEnum { const LOCAL_SERVICE_BUSINESS_ITEM = 'local_service_business_item'; const LOCAL_SERVICE_BUSINESS_RESTAURANT = 'local_service_business_restaurant'; const LOYALTY_OFFER = 'loyalty_offer'; - const MEETUP_SPACE = 'meetup_space'; const NURSERY = 'nursery'; const PRINTERS_AND_SCANNERS = 'printers_and_scanners'; const PRINTERS_SCANNERS_AND_FAX_MACHINES = 'printers_scanners_and_fax_machines'; @@ -108,7 +107,6 @@ public function getFieldTypes() { 'local_service_business_item' => 'Object', 'local_service_business_restaurant' => 'Object', 'loyalty_offer' => 'Object', - 'meetup_space' => 'Object', 'nursery' => 'Object', 'printers_and_scanners' => 'Object', 'printers_scanners_and_fax_machines' => 'Object', diff --git a/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php b/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php index 93b6caf2c..034d7ceba 100644 --- a/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php +++ b/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php @@ -23,6 +23,7 @@ class FundingSourceDetailsCouponFields extends AbstractEnum { const AMOUNT = 'amount'; + const CAMPAIGN_IDS = 'campaign_ids'; const CURRENCY = 'currency'; const DISPLAY_AMOUNT = 'display_amount'; const EXPIRATION = 'expiration'; @@ -30,6 +31,7 @@ class FundingSourceDetailsCouponFields extends AbstractEnum { public function getFieldTypes() { return array( 'amount' => 'int', + 'campaign_ids' => 'list', 'currency' => 'string', 'display_amount' => 'string', 'expiration' => 'datetime', diff --git a/src/FacebookAds/Object/Fields/FundingSourceDetailsFields.php b/src/FacebookAds/Object/Fields/FundingSourceDetailsFields.php index 7ad382f55..a5fc13e4c 100644 --- a/src/FacebookAds/Object/Fields/FundingSourceDetailsFields.php +++ b/src/FacebookAds/Object/Fields/FundingSourceDetailsFields.php @@ -23,6 +23,7 @@ class FundingSourceDetailsFields extends AbstractEnum { const COUPON = 'coupon'; + const COUPONS = 'coupons'; const DISPLAY_STRING = 'display_string'; const ID = 'id'; const TYPE = 'type'; @@ -30,6 +31,7 @@ class FundingSourceDetailsFields extends AbstractEnum { public function getFieldTypes() { return array( 'coupon' => 'FundingSourceDetailsCoupon', + 'coupons' => 'list', 'display_string' => 'string', 'id' => 'string', 'type' => 'int', diff --git a/src/FacebookAds/Object/Fields/InsightsResultFields.php b/src/FacebookAds/Object/Fields/InsightsResultFields.php index c1cb09798..786beab46 100644 --- a/src/FacebookAds/Object/Fields/InsightsResultFields.php +++ b/src/FacebookAds/Object/Fields/InsightsResultFields.php @@ -38,7 +38,7 @@ public function getFieldTypes() { 'name' => 'string', 'period' => 'string', 'title' => 'string', - 'values' => 'list', + 'values' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/InsightsValueFields.php b/src/FacebookAds/Object/Fields/InsightsValueFields.php new file mode 100644 index 000000000..da3621562 --- /dev/null +++ b/src/FacebookAds/Object/Fields/InsightsValueFields.php @@ -0,0 +1,50 @@ + 'string', + 'end_time' => 'datetime', + 'engagement_source' => 'string', + 'message_type' => 'string', + 'messaging_channel' => 'string', + 'recurring_notifications_entry_point' => 'string', + 'recurring_notifications_frequency' => 'string', + 'recurring_notifications_topic' => 'string', + 'start_time' => 'datetime', + 'value' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index a4fefe6cb..27b4bb2ac 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -37,6 +37,7 @@ class PageFields extends AbstractEnum { const BIO = 'bio'; const BIRTHDAY = 'birthday'; const BOOKING_AGENT = 'booking_agent'; + const BREAKING_NEWS_USAGE = 'breaking_news_usage'; const BUILT = 'built'; const BUSINESS = 'business'; const CAN_CHECKIN = 'can_checkin'; @@ -189,6 +190,7 @@ public function getFieldTypes() { 'bio' => 'string', 'birthday' => 'string', 'booking_agent' => 'string', + 'breaking_news_usage' => 'Object', 'built' => 'string', 'business' => 'Object', 'can_checkin' => 'bool', diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index b3991d96d..8cd862cd4 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -271,6 +271,8 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'audience_exp' => 'bool', 'backdated_time' => 'datetime', 'backdated_time_granularity' => 'backdated_time_granularity_enum', + 'breaking_news' => 'bool', + 'breaking_news_expiration' => 'unsigned int', 'call_to_action' => 'Object', 'caption' => 'string', 'child_attachments' => 'list', @@ -295,7 +297,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'formatting' => 'formatting_enum', 'fun_fact_prompt_id' => 'unsigned int', 'fun_fact_toastee_id' => 'unsigned int', - 'has_nickname' => 'bool', 'height' => 'unsigned int', 'holiday_card' => 'string', 'home_checkin_city_id' => 'Object', @@ -669,7 +670,6 @@ public function createPhoto(array $fields = array(), array $params = array(), $p 'proxied_app_id' => 'string', 'published' => 'bool', 'qn' => 'string', - 'scheduled_publish_time' => 'unsigned int', 'spherical_metadata' => 'map', 'sponsor_id' => 'string', 'sponsor_relationship' => 'unsigned int', @@ -789,7 +789,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', diff --git a/src/FacebookAds/Object/IGUser.php b/src/FacebookAds/Object/IGUser.php index c96a40fcb..a4893d566 100644 --- a/src/FacebookAds/Object/IGUser.php +++ b/src/FacebookAds/Object/IGUser.php @@ -386,6 +386,7 @@ public function createMedia(array $fields = array(), array $params = array(), $p 'product_tags' => 'list', 'share_to_feed' => 'bool', 'thumb_offset' => 'string', + 'upload_type' => 'string', 'user_tags' => 'list', 'video_url' => 'string', ); diff --git a/src/FacebookAds/Object/InsightsValue.php b/src/FacebookAds/Object/InsightsValue.php new file mode 100644 index 000000000..4aed32499 --- /dev/null +++ b/src/FacebookAds/Object/InsightsValue.php @@ -0,0 +1,42 @@ +getValues(); $ref_enums['DeveloperAction'] = PageDeveloperActionValues::getInstance()->getValues(); $ref_enums['SubscribedFields'] = PageSubscribedFieldsValues::getInstance()->getValues(); + $ref_enums['Action'] = PageActionValues::getInstance()->getValues(); + $ref_enums['ActionType'] = PageActionTypeValues::getInstance()->getValues(); return $ref_enums; } @@ -1267,6 +1271,8 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'audience_exp' => 'bool', 'backdated_time' => 'datetime', 'backdated_time_granularity' => 'backdated_time_granularity_enum', + 'breaking_news' => 'bool', + 'breaking_news_expiration' => 'unsigned int', 'call_to_action' => 'Object', 'caption' => 'string', 'child_attachments' => 'list', @@ -1292,7 +1298,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'formatting' => 'formatting_enum', 'fun_fact_prompt_id' => 'unsigned int', 'fun_fact_toastee_id' => 'unsigned int', - 'has_nickname' => 'bool', 'height' => 'unsigned int', 'holiday_card' => 'string', 'home_checkin_city_id' => 'Object', @@ -3080,6 +3085,34 @@ public function createTakeThreadControl(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } + public function createThreadAction(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'action' => 'action_enum', + 'action_type' => 'action_type_enum', + 'user_id' => 'map', + ); + $enums = array( + 'action_enum' => PageActionValues::getInstance()->getValues(), + 'action_type_enum' => PageActionTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/thread_action', + new Page(), + 'EDGE', + Page::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getThreadOwner(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -3435,7 +3468,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', diff --git a/src/FacebookAds/Object/User.php b/src/FacebookAds/Object/User.php index b1c9c0326..0edd5cd76 100644 --- a/src/FacebookAds/Object/User.php +++ b/src/FacebookAds/Object/User.php @@ -715,6 +715,8 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'audience_exp' => 'bool', 'backdated_time' => 'datetime', 'backdated_time_granularity' => 'backdated_time_granularity_enum', + 'breaking_news' => 'bool', + 'breaking_news_expiration' => 'unsigned int', 'call_to_action' => 'Object', 'caption' => 'string', 'child_attachments' => 'list', @@ -739,7 +741,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'formatting' => 'formatting_enum', 'fun_fact_prompt_id' => 'unsigned int', 'fun_fact_toastee_id' => 'unsigned int', - 'has_nickname' => 'bool', 'height' => 'unsigned int', 'holiday_card' => 'string', 'home_checkin_city_id' => 'Object', @@ -1395,7 +1396,6 @@ public function createPhoto(array $fields = array(), array $params = array(), $p 'proxied_app_id' => 'string', 'published' => 'bool', 'qn' => 'string', - 'scheduled_publish_time' => 'unsigned int', 'spherical_metadata' => 'map', 'sponsor_id' => 'string', 'sponsor_relationship' => 'unsigned int', @@ -1593,7 +1593,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index 717cb9779..01bf5fc28 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -48,6 +48,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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 ASC_CREATION_PACKAGE = 'ASC_CREATION_PACKAGE'; const ASPECT_RATIO = 'ASPECT_RATIO'; const ATLEAST_6_PLACEMENTS = 'ATLEAST_6_PLACEMENTS'; const AUCTION_OVERLAP = 'AUCTION_OVERLAP'; @@ -67,12 +68,14 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const CASH_REWARDS_OPT_IN = 'CASH_REWARDS_OPT_IN'; const CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM = 'CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM'; const CONNECT_FACEBOOK_PAGE_TO_WHATSAPP = 'CONNECT_FACEBOOK_PAGE_TO_WHATSAPP'; + const CONVERSION_LEAD_ADS = 'CONVERSION_LEAD_ADS'; const COST_GOAL = 'COST_GOAL'; const COST_GOAL_BUDGET_LIMITED = 'COST_GOAL_BUDGET_LIMITED'; 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 CREATION_PACKAGE_UPGRADE_TO_TMC = 'CREATION_PACKAGE_UPGRADE_TO_TMC'; const CREATIVE_BADGE = 'CREATIVE_BADGE'; const CREATIVE_DIVERSITY = 'CREATIVE_DIVERSITY'; const CREATIVE_FATIGUE = 'CREATIVE_FATIGUE'; @@ -82,6 +85,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const CREATOR_ADS_PA_CONVERSION = 'CREATOR_ADS_PA_CONVERSION'; const CTA = 'CTA'; const CTX_BUDGET_OPTIMIZATION = 'CTX_BUDGET_OPTIMIZATION'; + const CTX_GUIDANCE = 'CTX_GUIDANCE'; const DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS = 'DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS'; const DEAD_LINK = 'DEAD_LINK'; const DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET = 'DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET'; @@ -94,6 +98,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const HIGH_COST = 'HIGH_COST'; const HISTORICAL_BENCHMARK = 'HISTORICAL_BENCHMARK'; const IG_MULTI_ADS = 'IG_MULTI_ADS'; + const LEAD_ADS_GUIDANCE = 'LEAD_ADS_GUIDANCE'; const LEARNING_LIMITED = 'LEARNING_LIMITED'; const LEARNING_PAUSE_FRICTION = 'LEARNING_PAUSE_FRICTION'; const LEARNING_PHASE_BUDGET_EDITS = 'LEARNING_PHASE_BUDGET_EDITS'; @@ -127,6 +132,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const SPEND_LIMIT = 'SPEND_LIMIT'; const SYD_TEST_MODE = 'SYD_TEST_MODE'; const TAILORED_LEAD_AD_CAMPAIGN = 'TAILORED_LEAD_AD_CAMPAIGN'; + const TAILORED_MESSAGES_CAMPAIGN = 'TAILORED_MESSAGES_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/AdDatePresetValues.php b/src/FacebookAds/Object/Values/AdDatePresetValues.php index bedc73a60..bad7b500b 100644 --- a/src/FacebookAds/Object/Values/AdDatePresetValues.php +++ b/src/FacebookAds/Object/Values/AdDatePresetValues.php @@ -34,7 +34,7 @@ class AdDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'last_week_mon_sun'; const LAST_WEEK_SUN_SAT = 'last_week_sun_sat'; const LAST_YEAR = 'last_year'; - const LIFETIME = 'lifetime'; + const MAXIMUM = 'maximum'; const THIS_MONTH = 'this_month'; const THIS_QUARTER = 'this_quarter'; const THIS_WEEK_MON_TODAY = 'this_week_mon_today'; diff --git a/src/FacebookAds/Object/Values/AdSetDatePresetValues.php b/src/FacebookAds/Object/Values/AdSetDatePresetValues.php index aa75ff833..cae4261b3 100644 --- a/src/FacebookAds/Object/Values/AdSetDatePresetValues.php +++ b/src/FacebookAds/Object/Values/AdSetDatePresetValues.php @@ -34,7 +34,7 @@ class AdSetDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'LAST_WEEK_MON_SUN'; const LAST_WEEK_SUN_SAT = 'LAST_WEEK_SUN_SAT'; const LAST_YEAR = 'LAST_YEAR'; - const LIFETIME = 'LIFETIME'; + const MAXIMUM = 'MAXIMUM'; const THIS_MONTH = 'THIS_MONTH'; const THIS_QUARTER = 'THIS_QUARTER'; const THIS_WEEK_MON_TODAY = 'THIS_WEEK_MON_TODAY'; diff --git a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php index 86cb0c032..2a1469de2 100644 --- a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +++ b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php @@ -122,6 +122,7 @@ class AdVideoContainerTypeValues extends AbstractEnum { const MUSIC_CLIP_IN_AUDIO_DIGEST = 'MUSIC_CLIP_IN_AUDIO_DIGEST'; const MUSIC_CLIP_IN_COMMENT = 'MUSIC_CLIP_IN_COMMENT'; const MUSIC_CLIP_IN_LIGHTWEIGHT_STATUS = 'MUSIC_CLIP_IN_LIGHTWEIGHT_STATUS'; + const MUSIC_CLIP_IN_MSGR_NOTE = 'MUSIC_CLIP_IN_MSGR_NOTE'; const MUSIC_CLIP_IN_POLL_OPTION = 'MUSIC_CLIP_IN_POLL_OPTION'; const MUSIC_CLIP_ON_DATING_PROFILE = 'MUSIC_CLIP_ON_DATING_PROFILE'; const NEO_ASYNC_GAME_VIDEO = 'NEO_ASYNC_GAME_VIDEO'; diff --git a/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php b/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php index d5ca3b47a..4a98e0924 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php @@ -27,8 +27,12 @@ class AdsInsightsActionAttributionWindowsValues extends AbstractEnum { const VALUE_1D_VIEW = '1d_view'; const VALUE_28D_CLICK = '28d_click'; const VALUE_28D_VIEW = '28d_view'; + const VALUE_28D_VIEW_ALL_CONVERSIONS = '28d_view_all_conversions'; + const VALUE_28D_VIEW_FIRST_CONVERSION = '28d_view_first_conversion'; const VALUE_7D_CLICK = '7d_click'; const VALUE_7D_VIEW = '7d_view'; + const VALUE_7D_VIEW_ALL_CONVERSIONS = '7d_view_all_conversions'; + const VALUE_7D_VIEW_FIRST_CONVERSION = '7d_view_first_conversion'; const DDA = 'dda'; const VALUE_DEFAULT = 'default'; const SKAN_CLICK = 'skan_click'; diff --git a/src/FacebookAds/Object/Values/AdsInsightsActionBreakdownsValues.php b/src/FacebookAds/Object/Values/AdsInsightsActionBreakdownsValues.php index 309eccdf0..54e0fd495 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsActionBreakdownsValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsActionBreakdownsValues.php @@ -33,6 +33,8 @@ class AdsInsightsActionBreakdownsValues extends AbstractEnum { const ACTION_VIDEO_SOUND = 'action_video_sound'; const ACTION_VIDEO_TYPE = 'action_video_type'; const CONVERSION_DESTINATION = 'conversion_destination'; + const MATCHED_PERSONA_ID = 'matched_persona_id'; + const MATCHED_PERSONA_NAME = 'matched_persona_name'; const SIGNAL_SOURCE_BUCKET = 'signal_source_bucket'; const STANDARD_EVENT_CONTENT_TYPE = 'standard_event_content_type'; } diff --git a/src/FacebookAds/Object/Values/AdsInsightsDatePresetValues.php b/src/FacebookAds/Object/Values/AdsInsightsDatePresetValues.php index 292eaadf6..99365b46b 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsDatePresetValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsDatePresetValues.php @@ -34,7 +34,7 @@ class AdsInsightsDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'last_week_mon_sun'; const LAST_WEEK_SUN_SAT = 'last_week_sun_sat'; const LAST_YEAR = 'last_year'; - const LIFETIME = 'lifetime'; + const MAXIMUM = 'maximum'; const THIS_MONTH = 'this_month'; const THIS_QUARTER = 'this_quarter'; const THIS_WEEK_MON_TODAY = 'this_week_mon_today'; diff --git a/src/FacebookAds/Object/Values/AdsInsightsSummaryActionBreakdownsValues.php b/src/FacebookAds/Object/Values/AdsInsightsSummaryActionBreakdownsValues.php index e3f5165c7..02315e703 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsSummaryActionBreakdownsValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsSummaryActionBreakdownsValues.php @@ -33,6 +33,8 @@ class AdsInsightsSummaryActionBreakdownsValues extends AbstractEnum { const ACTION_VIDEO_SOUND = 'action_video_sound'; const ACTION_VIDEO_TYPE = 'action_video_type'; const CONVERSION_DESTINATION = 'conversion_destination'; + const MATCHED_PERSONA_ID = 'matched_persona_id'; + const MATCHED_PERSONA_NAME = 'matched_persona_name'; const SIGNAL_SOURCE_BUCKET = 'signal_source_bucket'; const STANDARD_EVENT_CONTENT_TYPE = 'standard_event_content_type'; } diff --git a/src/FacebookAds/Object/Values/CampaignDatePresetValues.php b/src/FacebookAds/Object/Values/CampaignDatePresetValues.php index e28e48ebc..5a256f8c2 100644 --- a/src/FacebookAds/Object/Values/CampaignDatePresetValues.php +++ b/src/FacebookAds/Object/Values/CampaignDatePresetValues.php @@ -34,7 +34,7 @@ class CampaignDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'last_week_mon_sun'; const LAST_WEEK_SUN_SAT = 'last_week_sun_sat'; const LAST_YEAR = 'last_year'; - const LIFETIME = 'lifetime'; + const MAXIMUM = 'maximum'; const THIS_MONTH = 'this_month'; const THIS_QUARTER = 'this_quarter'; const THIS_WEEK_MON_TODAY = 'this_week_mon_today'; diff --git a/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php b/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php index 8865fc884..5d8b447f7 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 MARKETPLACE_LISTINGS = 'MARKETPLACE_LISTINGS'; const MESSENGER_ONSITE_SUBSCRIPTION = 'MESSENGER_ONSITE_SUBSCRIPTION'; const MOBILE_ADVERTISER_IDS = 'MOBILE_ADVERTISER_IDS'; const MOBILE_APP_COMBINATION_EVENTS = 'MOBILE_APP_COMBINATION_EVENTS'; diff --git a/src/FacebookAds/Object/Values/InsightsResultDatePresetValues.php b/src/FacebookAds/Object/Values/InsightsResultDatePresetValues.php index 5615e0312..0e7999d25 100644 --- a/src/FacebookAds/Object/Values/InsightsResultDatePresetValues.php +++ b/src/FacebookAds/Object/Values/InsightsResultDatePresetValues.php @@ -34,7 +34,7 @@ class InsightsResultDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'last_week_mon_sun'; const LAST_WEEK_SUN_SAT = 'last_week_sun_sat'; const LAST_YEAR = 'last_year'; - const LIFETIME = 'lifetime'; + const MAXIMUM = 'maximum'; const THIS_MONTH = 'this_month'; const THIS_QUARTER = 'this_quarter'; const THIS_WEEK_MON_TODAY = 'this_week_mon_today'; diff --git a/src/FacebookAds/Object/Values/PageActionTypeValues.php b/src/FacebookAds/Object/Values/PageActionTypeValues.php new file mode 100644 index 000000000..c3fd6254b --- /dev/null +++ b/src/FacebookAds/Object/Values/PageActionTypeValues.php @@ -0,0 +1,26 @@ +