diff --git a/CHANGELOG.md b/CHANGELOG.md index cabd1d2d3..412494845 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ All notable changes to this project will be documented in this file. ### Changed -- Graph API call upgrade to [v11.0]https://developers.facebook.com/docs/graph-api/changelog/version11.0 +- Graph API call upgrade to [v11.0](https://developers.facebook.com/docs/graph-api/changelog/version11.0) ## v10.0.1 diff --git a/README.md b/README.md index c2dbade02..1b285edc6 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ $adset = $account->createAdSet( array(), array( AdSetFields::NAME => 'My Test AdSet', - AdSetFields::CAMPAIGN_ID => campaign_id, + AdSetFields::CAMPAIGN_ID => $campaign_id, AdSetFields::DAILY_BUDGET => 150, AdSetFields::START_TIME => (new \DateTime("+1 week"))->format(\DateTime::ISO8601), AdSetFields::END_TIME => (new \DateTime("+2 week"))->format(\DateTime::ISO8601), @@ -332,7 +332,7 @@ $account->read(array('id')); ``` When running this code, this cURL request will be printed to the console as: -``` +```shell curl -G \ -d 'fields=id' \ -d 'access_token=' \ diff --git a/examples/AdAccountAdCreativesEdge.php b/examples/AdAccountAdCreativesEdge.php deleted file mode 100644 index 556159953..000000000 --- a/examples/AdAccountAdCreativesEdge.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'name', -); -$params = array( -); -echo json_encode((new AdAccount($id))->getAdCreatives( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdCreativesPost.php b/examples/AdAccountAdCreativesPost.php deleted file mode 100644 index d67e4d360..000000000 --- a/examples/AdAccountAdCreativesPost.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Sample Promoted Post', - 'object_story_id' => '_', -); -echo json_encode((new AdAccount($id))->createAdCreative( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdCreativesPostCreateAdCreative.php b/examples/AdAccountAdCreativesPostCreateAdCreative.php deleted file mode 100644 index f3f5f8c96..000000000 --- a/examples/AdAccountAdCreativesPostCreateAdCreative.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'object_story_id' => '_', -); -echo json_encode((new AdAccount($id))->createAdCreative( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdCreativesPostCreateAdCreativeCanvas.php b/examples/AdAccountAdCreativesPostCreateAdCreativeCanvas.php deleted file mode 100644 index 19b12b149..000000000 --- a/examples/AdAccountAdCreativesPostCreateAdCreativeCanvas.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'image_hash' => '', - 'object_story_spec' => array('page_id' => '','link_data' => array('image_hash' => '','link' => '','name' => 'Creative message','call_to_action' => array('type' => 'LEARN_MORE'))), -); -echo json_encode((new AdAccount($id))->createAdCreative( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.php b/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.php deleted file mode 100644 index 148346088..000000000 --- a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'object_story_spec' => array('page_id' => '','template_data' => array('format_option' => 'collection_video','link' => '','name' => 'English Creative title','message' => 'English Creative message','call_to_action' => array('type' => 'LEARN_MORE'),'retailer_item_ids' => array(0,0,0,0),'customization_rules_spec' => array(array('customization_spec' => array('language' => 'en_XX')),array('customization_spec' => array('language' => 'fr_XX'),'link' => '','name' => 'French Creative title','message' => 'French Creative message')))), - 'product_set_id' => '', -); -echo json_encode((new AdAccount($id))->createAdCreative( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.php b/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.php deleted file mode 100644 index f7ff3363d..000000000 --- a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'object_story_spec' => array('page_id' => '','link_data' => array('picture' => '','link' => '','name' => 'English Creative title','message' => 'English Creative message','call_to_action' => array('type' => 'LEARN_MORE'),'retailer_item_ids' => array(0,0,0,0),'customization_rules_spec' => array(array('customization_spec' => array('language' => 'en_XX')),array('customization_spec' => array('language' => 'fr_XX'),'picture' => '','link' => '','name' => 'French Creative title','message' => 'French Creative message')))), - 'product_set_id' => '', -); -echo json_encode((new AdAccount($id))->createAdCreative( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.php b/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.php deleted file mode 100644 index f66e0c8da..000000000 --- a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'object_story_spec' => array('page_id' => '','video_data' => array('video_id' => '','image_url' => '','title' => 'English Creative title','message' => 'English Creative message','call_to_action' => array('type' => 'LEARN_MORE','value' => array('link' => '')),'retailer_item_ids' => array(0,0,0,0),'customization_rules_spec' => array(array('customization_spec' => array('language' => 'en_XX')),array('customization_spec' => array('language' => 'fr_XX'),'video_id' => '','picture' => '','link' => '','name' => 'French Creative title','message' => 'French Creative message')))), - 'product_set_id' => '', -); -echo json_encode((new AdAccount($id))->createAdCreative( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPost2CreateMAIA.php b/examples/AdAccountAdSetsPost2CreateMAIA.php deleted file mode 100644 index 1b4b079ac..000000000 --- a/examples/AdAccountAdSetsPost2CreateMAIA.php +++ /dev/null @@ -1,56 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Mobile App Installs Ad Set', - 'daily_budget' => '1000', - 'bid_amount' => '2', - 'billing_event' => 'IMPRESSIONS', - 'optimization_goal' => 'APP_INSTALLS', - 'campaign_id' => '', - 'promoted_object' => array('application_id' => '','object_store_url' => ''), - 'targeting' => array('device_platforms' => array('mobile'),'facebook_positions' => array('feed'),'geo_locations' => array('countries' => array('US')),'publisher_platforms' => array('facebook','audience_network'),'user_os' => array('IOS')), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpa.php b/examples/AdAccountAdSetsPostAdSetCreateCpa.php deleted file mode 100644 index 9d95bf0f5..000000000 --- a/examples/AdAccountAdSetsPostAdSetCreateCpa.php +++ /dev/null @@ -1,60 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'A CPA Ad Set', - 'campaign_id' => '', - 'daily_budget' => '5000', - 'start_time' => '2024-06-18T16:39:15-0700', - 'end_time' => '2024-06-25T16:39:15-0700', - 'billing_event' => 'IMPRESSIONS', - 'optimization_goal' => 'REACH', - 'bid_amount' => '1000', - 'promoted_object' => array('page_id' => ''), - 'targeting' => array('facebook_positions' => array('feed'),'geo_locations' => array('countries' => array('US'))), - 'user_os' => 'iOS', - 'publisher_platforms' => 'facebook', - 'device_platforms' => 'mobile', -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php deleted file mode 100644 index b41a80e0a..000000000 --- a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php +++ /dev/null @@ -1,58 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'A CPA Ad Set optimized for App Events', - 'campaign_id' => '', - 'daily_budget' => '300', - 'start_time' => '2024-06-18T16:40:02-0700', - 'end_time' => '2024-06-25T16:40:02-0700', - 'billing_event' => 'IMPRESSIONS', - 'optimization_goal' => 'OFFSITE_CONVERSIONS', - 'bid_amount' => '100', - 'status' => 'PAUSED', - 'promoted_object' => array('application_id' => '','object_store_url' => '','custom_event_type' => 'PURCHASE'), - 'targeting' => array('facebook_positions' => array('feed'),'geo_locations' => array('countries' => array('US')),'user_os' => array('iOS')), -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostBehaviorTargeting.php b/examples/AdAccountAdSetsPostBehaviorTargeting.php deleted file mode 100644 index a64abcad9..000000000 --- a/examples/AdAccountAdSetsPostBehaviorTargeting.php +++ /dev/null @@ -1,54 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My AdSet', - 'optimization_goal' => 'REACH', - 'billing_event' => 'IMPRESSIONS', - 'bid_amount' => '2', - 'daily_budget' => '1000', - 'campaign_id' => '', - 'targeting' => array('facebook_positions' => array('feed'),'geo_locations' => array('countries' => array('US')),'behaviors' => array(array('id' => 6007101597783,'name' => 'Business Travelers'),array('id' => 6004386044572,'name' => 'Android Owners (All)'))), -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostBidMultiplier.php b/examples/AdAccountAdSetsPostBidMultiplier.php deleted file mode 100644 index 2573e2488..000000000 --- a/examples/AdAccountAdSetsPostBidMultiplier.php +++ /dev/null @@ -1,57 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Adset with bid multiplier', - 'campaign_id' => '', - 'daily_budget' => '3000', - 'billing_event' => 'IMPRESSIONS', - 'optimization_goal' => 'OFFSITE_CONVERSIONS', - 'bid_amount' => '500', - 'bid_adjustments' => array('user_groups' => array('gender' => array('male' => 0.8,'female' => 1))), - 'promoted_object' => array('product_set_id' => '','custom_event_type' => 'ADD_TO_CART'), - 'targeting' => array('facebook_positions' => array('feed'),'geo_locations' => array('countries' => array('US'))), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostCreateAdSet.php b/examples/AdAccountAdSetsPostCreateAdSet.php deleted file mode 100644 index 1c23b3561..000000000 --- a/examples/AdAccountAdSetsPostCreateAdSet.php +++ /dev/null @@ -1,57 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My First AdSet', - 'lifetime_budget' => '20000', - 'start_time' => '2024-06-18T16:38:30-0700', - 'end_time' => '2024-06-25T16:38:30-0700', - 'campaign_id' => '', - 'bid_amount' => '500', - 'billing_event' => 'IMPRESSIONS', - 'optimization_goal' => 'POST_ENGAGEMENT', - 'targeting' => array('age_min' => 20,'age_max' => 24,'behaviors' => array(array('id' => 6002714895372,'name' => 'All travelers')),'genders' => array(1),'geo_locations' => array('countries' => array('US'),'regions' => array(array('key' => '4081')),'cities' => array(array('key' => '777934','radius' => 10,'distance_unit' => 'mile'))),'interests' => array(array('id' => '','name' => '')),'life_events' => array(array('id' => 6002714398172,'name' => 'Newlywed (1 year)')),'facebook_positions' => array('feed'),'publisher_platforms' => array('facebook','audience_network')), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostCreateAudienceNetwork.php b/examples/AdAccountAdSetsPostCreateAudienceNetwork.php deleted file mode 100644 index 64e5a685a..000000000 --- a/examples/AdAccountAdSetsPostCreateAudienceNetwork.php +++ /dev/null @@ -1,54 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Ad Set', - 'optimization_goal' => 'LINK_CLICKS', - 'billing_event' => 'LINK_CLICKS', - 'bid_amount' => '2', - 'daily_budget' => '1000', - 'campaign_id' => '', - 'targeting' => array('device_platforms' => array('mobile'),'geo_locations' => array('countries' => array('US')),'publisher_platforms' => array('facebook','audience_network'),'facebook_positions' => array('feed')), -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostDailyBudget20.php b/examples/AdAccountAdSetsPostDailyBudget20.php deleted file mode 100644 index ef1a005dd..000000000 --- a/examples/AdAccountAdSetsPostDailyBudget20.php +++ /dev/null @@ -1,57 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My First Adset', - 'daily_budget' => '2000', - 'start_time' => '2024-06-11T16:39:34-0700', - 'end_time' => '2024-06-18T16:39:34-0700', - 'campaign_id' => '', - 'bid_amount' => '100', - 'billing_event' => 'LINK_CLICKS', - 'optimization_goal' => 'LINK_CLICKS', - 'targeting' => array('facebook_positions' => array('feed'),'geo_locations' => array('countries' => array('US'))), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostDemographicTargeting.php b/examples/AdAccountAdSetsPostDemographicTargeting.php deleted file mode 100644 index 6642ef0c5..000000000 --- a/examples/AdAccountAdSetsPostDemographicTargeting.php +++ /dev/null @@ -1,56 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My First AdSet', - 'daily_budget' => '10000', - 'bid_amount' => '300', - 'billing_event' => 'IMPRESSIONS', - 'optimization_goal' => 'REACH', - 'campaign_id' => '', - 'promoted_object' => array('page_id' => ''), - 'targeting' => array('facebook_positions' => array('feed'),'age_max' => 24,'age_min' => 20,'behaviors' => array(array('id' => 6002714895372,'name' => 'All travelers')),'device_platforms' => array('mobile'),'genders' => array(1),'geo_locations' => array('countries' => array('US'),'regions' => array(array('key' => '4081')),'cities' => array(array('key' => 777934,'radius' => 10,'distance_unit' => 'mile'))),'interests' => array(array('id' => '','name' => '')),'life_events' => array(array('id' => 6002714398172,'name' => 'Newlywed (1 year)')),'publisher_platforms' => array('facebook','audience_network')), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostInterestTargeting.php b/examples/AdAccountAdSetsPostInterestTargeting.php deleted file mode 100644 index bab760b4e..000000000 --- a/examples/AdAccountAdSetsPostInterestTargeting.php +++ /dev/null @@ -1,56 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My First AdSet', - 'daily_budget' => '10000', - 'bid_amount' => '300', - 'billing_event' => 'IMPRESSIONS', - 'optimization_goal' => 'REACH', - 'campaign_id' => '', - 'promoted_object' => array('page_id' => ''), - 'targeting' => array('facebook_positions' => array('feed'),'geo_locations' => array('countries' => array('US'),'regions' => array(array('key' => '4081')),'cities' => array(array('key' => 777934,'radius' => 10,'distance_unit' => 'mile'))),'genders' => array(1),'age_max' => 24,'age_min' => 20,'publisher_platforms' => array('facebook','audience_network'),'device_platforms' => array('mobile'),'flexible_spec' => array(array('interests' => array(array('id' => '','name' => ''))))), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php deleted file mode 100644 index ed8368921..000000000 --- a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php +++ /dev/null @@ -1,57 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My First Adset', - 'lifetime_budget' => '20000', - 'start_time' => '2024-06-11T16:39:43-0700', - 'end_time' => '2024-06-21T16:39:43-0700', - 'campaign_id' => '', - 'bid_amount' => '100', - 'billing_event' => 'LINK_CLICKS', - 'optimization_goal' => 'LINK_CLICKS', - 'targeting' => array('facebook_positions' => array('feed'),'geo_locations' => array('countries' => array('US')),'publisher_platforms' => array('facebook','audience_network')), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostOptimizePostEngagement.php b/examples/AdAccountAdSetsPostOptimizePostEngagement.php deleted file mode 100644 index c6e48fe39..000000000 --- a/examples/AdAccountAdSetsPostOptimizePostEngagement.php +++ /dev/null @@ -1,57 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My First Adset', - 'lifetime_budget' => '20000', - 'start_time' => '2024-06-11T16:39:52-0700', - 'end_time' => '2024-06-21T16:39:52-0700', - 'campaign_id' => '', - 'bid_amount' => '500', - 'billing_event' => 'IMPRESSIONS', - 'optimization_goal' => 'POST_ENGAGEMENT', - 'targeting' => array('facebook_positions' => array('feed'),'geo_locations' => array('countries' => array('US'),'regions' => array(array('key' => '4081')),'cities' => array(array('key' => 777934,'radius' => 10,'distance_unit' => 'mile'))),'genders' => array(1),'age_max' => 24,'age_min' => 20,'behaviors' => array(array('id' => 6002714895372,'name' => 'All travelers')),'life_events' => array(array('id' => 6002714398172,'name' => 'Newlywed (1 year)')),'publisher_platforms' => array('facebook'),'device_platforms' => array('desktop')), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostPageLikes.php b/examples/AdAccountAdSetsPostPageLikes.php deleted file mode 100644 index 1249f4c2d..000000000 --- a/examples/AdAccountAdSetsPostPageLikes.php +++ /dev/null @@ -1,56 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Reach Ad Set', - 'optimization_goal' => 'REACH', - 'billing_event' => 'IMPRESSIONS', - 'bid_amount' => '2', - 'daily_budget' => '1000', - 'campaign_id' => '', - 'targeting' => array('geo_locations' => array('countries' => array('US')),'facebook_positions' => array('feed')), - 'status' => 'PAUSED', - 'promoted_object' => array('page_id' => ''), -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostPlacementTargeting.php b/examples/AdAccountAdSetsPostPlacementTargeting.php deleted file mode 100644 index 375b38380..000000000 --- a/examples/AdAccountAdSetsPostPlacementTargeting.php +++ /dev/null @@ -1,55 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My AdSet', - 'optimization_goal' => 'REACH', - 'billing_event' => 'IMPRESSIONS', - 'bid_amount' => '2', - 'daily_budget' => '1000', - 'campaign_id' => '', - 'targeting' => array('geo_locations' => array('countries' => array('US')),'publisher_platforms' => array('facebook'),'facebook_positions' => array('feed')), - 'promoted_object' => array('page_id' => ''), -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdSetsPostReach.php b/examples/AdAccountAdSetsPostReach.php deleted file mode 100644 index 0687e32e6..000000000 --- a/examples/AdAccountAdSetsPostReach.php +++ /dev/null @@ -1,56 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Reach Ad Set', - 'optimization_goal' => 'REACH', - 'billing_event' => 'IMPRESSIONS', - 'bid_amount' => '2', - 'daily_budget' => '1000', - 'campaign_id' => '', - 'targeting' => array('excluded_geo_locations' => array('regions' => array(array('key' => '3847'))),'geo_locations' => array('countries' => array('US')),'facebook_positions' => array('feed')), - 'status' => 'PAUSED', - 'promoted_object' => array('page_id' => ''), -); -echo json_encode((new AdAccount($id))->createAdSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdVideosPost.php b/examples/AdAccountAdVideosPost.php deleted file mode 100644 index 2bbb32759..000000000 --- a/examples/AdAccountAdVideosPost.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'source' => '', -); -echo json_encode((new AdAccount($id))->createAdVideo( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdsPixelEdgeGetPixelCode.php b/examples/AdAccountAdsPixelEdgeGetPixelCode.php deleted file mode 100644 index 88190aa3a..000000000 --- a/examples/AdAccountAdsPixelEdgeGetPixelCode.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'code', -); -$params = array( -); -echo json_encode((new AdsPixel($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdsPixelsPost.php b/examples/AdAccountAdsPixelsPost.php deleted file mode 100644 index bbf49cfe8..000000000 --- a/examples/AdAccountAdsPixelsPost.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My WCA Pixel', -); -echo json_encode((new AdAccount($id))->createAdsPixel( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdsPost.php b/examples/AdAccountAdsPost.php deleted file mode 100644 index 3a63c55b0..000000000 --- a/examples/AdAccountAdsPost.php +++ /dev/null @@ -1,51 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Ad', - 'adset_id' => '', - 'creative' => array('creative_id' => ''), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAd( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdsPostAdsRedownload.php b/examples/AdAccountAdsPostAdsRedownload.php deleted file mode 100644 index ad780c5c2..000000000 --- a/examples/AdAccountAdsPostAdsRedownload.php +++ /dev/null @@ -1,52 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My AdGroup with Redownload', - 'adset_id' => '', - 'creative' => array('creative_id' => ''), - 'redownload' => '1', - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAd( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountAdsPostTrackingPostEngagement.php b/examples/AdAccountAdsPostTrackingPostEngagement.php deleted file mode 100644 index 779bffa3b..000000000 --- a/examples/AdAccountAdsPostTrackingPostEngagement.php +++ /dev/null @@ -1,52 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My First Ad', - 'adset_id' => '', - 'creative' => array('creative_id' => ''), - 'tracking_specs' => array('action.type' => 'post_engagement','post' => '','page' => ''), - 'status' => 'PAUSED', -); -echo json_encode((new AdAccount($id))->createAd( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCampaignsEdge.php b/examples/AdAccountCampaignsEdge.php deleted file mode 100644 index edf2e91e1..000000000 --- a/examples/AdAccountCampaignsEdge.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'name', - 'objective', -); -$params = array( - 'effective_status' => array('ACTIVE','PAUSED'), -); -echo json_encode((new AdAccount($id))->getCampaigns( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCampaignsPostLinkClicks.php b/examples/AdAccountCampaignsPostLinkClicks.php deleted file mode 100644 index 1bd5d2c5d..000000000 --- a/examples/AdAccountCampaignsPostLinkClicks.php +++ /dev/null @@ -1,51 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My campaign', - 'objective' => 'OUTCOME_TRAFFIC', - 'status' => 'PAUSED', - 'special_ad_categories' => array(), -); -echo json_encode((new AdAccount($id))->createCampaign( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesEdge.php b/examples/AdAccountCustomAudiencesEdge.php deleted file mode 100644 index 8ec4ac838..000000000 --- a/examples/AdAccountCustomAudiencesEdge.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'id', -); -$params = array( -); -echo json_encode((new AdAccount($id))->getCustomAudiences( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesEdgeDataSourceSubtype.php b/examples/AdAccountCustomAudiencesEdgeDataSourceSubtype.php deleted file mode 100644 index 98c5ef35b..000000000 --- a/examples/AdAccountCustomAudiencesEdgeDataSourceSubtype.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'data_source', - 'subtype', -); -$params = array( -); -echo json_encode((new AdAccount($id))->getCustomAudiences( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostCreateCustomAudience.php b/examples/AdAccountCustomAudiencesPostCreateCustomAudience.php deleted file mode 100644 index b5d1a1ee8..000000000 --- a/examples/AdAccountCustomAudiencesPostCreateCustomAudience.php +++ /dev/null @@ -1,51 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My new Custom Audience', - 'subtype' => 'CUSTOM', - 'description' => 'People who purchased on my website', - 'customer_file_source' => 'USER_PROVIDED_ONLY', -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.php b/examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.php deleted file mode 100644 index d0d1c418b..000000000 --- a/examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Test Value-Based lookalike from Pixel', - 'subtype' => 'LOOKALIKE', - 'lookalike_spec' => array('origin_event_sources' => array(array('id' => '','event_names' => array('AddToCart'))),'type' => 'custom_ratio','ratio' => 0.01,'country' => 'US'), -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.php b/examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.php deleted file mode 100644 index 0d970ef98..000000000 --- a/examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Test Value-Based lookalike from Pixel', - 'subtype' => 'LOOKALIKE', - 'lookalike_spec' => array('origin_event_sources' => array(array('id' => '')),'type' => 'custom_ratio','ratio' => 0.01,'country' => 'US'), -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.php b/examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.php deleted file mode 100644 index 64ced828b..000000000 --- a/examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Test Website Custom Audience', - 'rule' => array('inclusions' => array('operator' => 'or','rules' => array(array('event_sources' => array(array('id' => '','type' => 'app')),'retention_seconds' => 8400,'filter' => array('operator' => 'and','filters' => array(array('field' => 'event','operator' => 'eq','value' => 'fb_mobile_purchase'))))))), - 'prefill' => '1', -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostPlatformECAExclusions.php b/examples/AdAccountCustomAudiencesPostPlatformECAExclusions.php deleted file mode 100644 index 4a3834df0..000000000 --- a/examples/AdAccountCustomAudiencesPostPlatformECAExclusions.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Test Engagement Custom Audience', - 'rule' => array('inclusions' => array('operator' => 'or','rules' => array(array('event_sources' => array(array('id' => '','type' => 'page')),'retention_seconds' => 31536000,'filter' => array('operator' => 'and','filters' => array(array('field' => 'event','operator' => 'eq','value' => 'page_engaged')))))),'exclusions' => array('operator' => 'or','rules' => array(array('event_sources' => array(array('id' => '','type' => 'page')),'retention_seconds' => 31536000,'filter' => array('operator' => 'and','filters' => array(array('field' => 'event','operator' => 'eq','value' => 'page_cta_clicked'))))))), - 'prefill' => '1', -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.php b/examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.php deleted file mode 100644 index 0afabb35d..000000000 --- a/examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Test Engagement Custom Audience', - 'rule' => array('inclusions' => array('operator' => 'or','rules' => array(array('event_sources' => array(array('id' => '','type' => 'page')),'retention_seconds' => 31536000,'filter' => array('operator' => 'and','filters' => array(array('field' => 'event','operator' => 'eq','value' => 'page_engaged'),array('field' => 'event','operator' => 'eq','value' => 'page_engaged'))))))), - 'prefill' => '1', -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.php b/examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.php deleted file mode 100644 index ecc8c9244..000000000 --- a/examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Test Engagement Custom Audience', - 'rule' => array('inclusions' => array('operator' => 'or','rules' => array(array('event_sources' => array(array('id' => '','type' => 'page'),array('id' => '','type' => 'page')),'retention_seconds' => 31536000,'filter' => array('operator' => 'and','filters' => array(array('field' => 'event','operator' => 'eq','value' => 'page_engaged'))))))), - 'prefill' => '1', -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.php b/examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.php deleted file mode 100644 index 379083900..000000000 --- a/examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Test Engagement Custom Audience', - 'rule' => array('inclusions' => array('operator' => 'or','rules' => array(array('event_sources' => array(array('id' => '','type' => 'page')),'retention_seconds' => 31536000,'filter' => array('operator' => 'and','filters' => array(array('field' => 'event','operator' => 'eq','value' => 'page_engaged'))))))), - 'prefill' => '1', -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.php b/examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.php deleted file mode 100644 index aacfb5201..000000000 --- a/examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My Test Website Custom Audience', - 'rule' => array('inclusions' => array('operator' => 'or','rules' => array(array('event_sources' => array(array('id' => '','type' => 'pixel')),'retention_seconds' => 8400,'filter' => array('operator' => 'and','filters' => array(array('field' => 'url','operator' => 'i_contains','value' => 'shoes'))))))), - 'prefill' => '1', -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.php b/examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.php deleted file mode 100644 index c25747253..000000000 --- a/examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.php +++ /dev/null @@ -1,51 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Value-Based Custom Audience', - 'subtype' => 'CUSTOM', - 'is_value_based' => '1', - 'customer_file_source' => 'PARTNER_PROVIDED_ONLY', -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.php b/examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.php deleted file mode 100644 index 3489d7a3b..000000000 --- a/examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.php +++ /dev/null @@ -1,51 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Value-Based lookalike', - 'subtype' => 'LOOKALIKE', - 'origin_audience_id' => '', - 'lookalike_spec' => array('type' => 'custom_ratio','ratio' => 0.01,'country' => 'US'), -); -echo json_encode((new AdAccount($id))->createCustomAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountGeneratePreviewsEdge.php b/examples/AdAccountGeneratePreviewsEdge.php deleted file mode 100644 index 375355932..000000000 --- a/examples/AdAccountGeneratePreviewsEdge.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'creative' => '', - 'ad_format' => '', -); -echo json_encode((new AdAccount($id))->getGeneratePreviews( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountGeneratePreviewsEdgeDesktopWithStoryId.php b/examples/AdAccountGeneratePreviewsEdgeDesktopWithStoryId.php deleted file mode 100644 index 565053d21..000000000 --- a/examples/AdAccountGeneratePreviewsEdgeDesktopWithStoryId.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'creative' => array('object_story_id' => '_'), - 'ad_format' => 'DESKTOP_FEED_STANDARD', -); -echo json_encode((new AdAccount($id))->getGeneratePreviews( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountGeneratePreviewsEdgeInstagramStandards.php b/examples/AdAccountGeneratePreviewsEdgeInstagramStandards.php deleted file mode 100644 index 27f8a74f5..000000000 --- a/examples/AdAccountGeneratePreviewsEdgeInstagramStandards.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'creative' => array('instagram_actor_id' => '','object_story_spec' => array('link_data' => array('call_to_action' => array('type' => 'LEARN_MORE','value' => array('link' => '')),'caption' => 'www.example.com','image_hash' => '','link' => '','message' => 'Message'),'page_id' => '')), - 'ad_format' => 'INSTAGRAM_STANDARD', -); -echo json_encode((new AdAccount($id))->getGeneratePreviews( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.php b/examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.php deleted file mode 100644 index f9c4435ba..000000000 --- a/examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'creative' => array('object_story_spec' => array('link_data' => array('call_to_action' => array('type' => 'USE_APP','value' => array('link' => '')),'description' => 'Description','link' => '','message' => 'Message','name' => 'Name','picture' => ''),'page_id' => '')), - 'ad_format' => 'MOBILE_FEED_STANDARD', -); -echo json_encode((new AdAccount($id))->getGeneratePreviews( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountNode.php b/examples/AdAccountNode.php deleted file mode 100644 index d4690e85e..000000000 --- a/examples/AdAccountNode.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'name', -); -$params = array( -); -echo json_encode((new AdAccount($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountProductAudiencesPostIphoneViewNoPurchase.php b/examples/AdAccountProductAudiencesPostIphoneViewNoPurchase.php deleted file mode 100644 index 7c0909cc2..000000000 --- a/examples/AdAccountProductAudiencesPostIphoneViewNoPurchase.php +++ /dev/null @@ -1,51 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Test Iphone Product Audience', - 'product_set_id' => '', - 'inclusions' => array(array('retention_seconds' => 86400,'rule' => array('and' => array(array('event' => array('eq' => 'AddToCart')),array('userAgent' => array('i_contains' => 'iPhone')))))), - 'exclusions' => array(array('retention_seconds' => 172800,'rule' => array('event' => array('eq' => 'Purchase')))), -); -echo json_encode((new AdAccount($id))->createProductAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountProductAudiencesPostNoPurchase.php b/examples/AdAccountProductAudiencesPostNoPurchase.php deleted file mode 100644 index 59caf6468..000000000 --- a/examples/AdAccountProductAudiencesPostNoPurchase.php +++ /dev/null @@ -1,51 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Test Product Audience', - 'product_set_id' => '', - 'inclusions' => array(array('retention_seconds' => 86400,'rule' => array('event' => array('eq' => 'AddToCart'))),array('retention_seconds' => 72000,'rule' => array('event' => array('eq' => 'ViewContent')))), - 'exclusions' => array(array('retention_seconds' => 172800,'rule' => array('event' => array('eq' => 'Purchase')))), -); -echo json_encode((new AdAccount($id))->createProductAudience( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdAccountReachEstimate.php b/examples/AdAccountReachEstimate.php deleted file mode 100644 index 728bd1024..000000000 --- a/examples/AdAccountReachEstimate.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'targeting_spec' => array('geo_locations' => array('countries' => array('US')),'age_min' => 20,'age_max' => 40), -); -echo json_encode((new AdAccount($id))->getReachEstimate( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCampaignGroupAdsEdge.php b/examples/AdCampaignGroupAdsEdge.php deleted file mode 100644 index b317ef3c2..000000000 --- a/examples/AdCampaignGroupAdsEdge.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'name', -); -$params = array( -); -echo json_encode((new Campaign($id))->getAds( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.php b/examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.php deleted file mode 100644 index 84f161825..000000000 --- a/examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'name', -); -$params = array( - 'effective_status' => array('ARCHIVED'), -); -echo json_encode((new Campaign($id))->getAds( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCampaignGroupAdsetsEdge.php b/examples/AdCampaignGroupAdsetsEdge.php deleted file mode 100644 index 325833263..000000000 --- a/examples/AdCampaignGroupAdsetsEdge.php +++ /dev/null @@ -1,52 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'name', - 'start_time', - 'end_time', - 'daily_budget', - 'lifetime_budget', -); -$params = array( -); -echo json_encode((new Campaign($id))->getAdSets( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCampaignNode.php b/examples/AdCampaignNode.php deleted file mode 100644 index e2eef33c5..000000000 --- a/examples/AdCampaignNode.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'adset_schedule', -); -$params = array( -); -echo json_encode((new AdSet($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCampaignPost.php b/examples/AdCampaignPost.php deleted file mode 100644 index ba0c8ffcf..000000000 --- a/examples/AdCampaignPost.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'bid_adjustments' => array('user_groups' => array('user_bucket' => array('event_sources' => array('',''),'1' => 0.1,'2' => 0.2,'3' => 0.3,'default' => array('gender' => array('male' => 0.99,'female' => 0.12))))), -); -echo json_encode((new AdSet($id))->updateSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCampaignPostAdsetUpdateCpa.php b/examples/AdCampaignPostAdsetUpdateCpa.php deleted file mode 100644 index 8c3cb4cfd..000000000 --- a/examples/AdCampaignPostAdsetUpdateCpa.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'billing_event' => 'IMPRESSIONS', - 'optimization_goal' => 'LINK_CLICKS', - 'bid_amount' => '200', - 'targeting' => array('geo_locations' => array('countries' => array('US')),'facebook_positions' => array('feed')), -); -echo json_encode((new AdSet($id))->updateSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCreativeNode.php b/examples/AdCreativeNode.php deleted file mode 100644 index 470da7c80..000000000 --- a/examples/AdCreativeNode.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'asset_feed_spec', -); -$params = array( -); -echo json_encode((new AdCreative($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCreativeNodeRead.php b/examples/AdCreativeNodeRead.php deleted file mode 100644 index 680215c09..000000000 --- a/examples/AdCreativeNodeRead.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'name', - 'object_story_id', -); -$params = array( -); -echo json_encode((new AdCreative($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCreativeNodeReadInstagramPermalinkUrl.php b/examples/AdCreativeNodeReadInstagramPermalinkUrl.php deleted file mode 100644 index fa7d5a14f..000000000 --- a/examples/AdCreativeNodeReadInstagramPermalinkUrl.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'instagram_permalink_url', -); -$params = array( -); -echo json_encode((new AdCreative($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCreativePreviewsEdge.php b/examples/AdCreativePreviewsEdge.php deleted file mode 100644 index f1b98f396..000000000 --- a/examples/AdCreativePreviewsEdge.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'ad_format' => 'DESKTOP_FEED_STANDARD', - 'product_item_ids' => array(''), -); -echo json_encode((new AdCreative($id))->getPreviews( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCreativePreviewsEdgePreview.php b/examples/AdCreativePreviewsEdgePreview.php deleted file mode 100644 index f1cb91c5a..000000000 --- a/examples/AdCreativePreviewsEdgePreview.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'ad_format' => 'DESKTOP_FEED_STANDARD', -); -echo json_encode((new AdCreative($id))->getPreviews( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCreativePreviewsEdgePreviewDynamicAds.php b/examples/AdCreativePreviewsEdgePreviewDynamicAds.php deleted file mode 100644 index f1b98f396..000000000 --- a/examples/AdCreativePreviewsEdgePreviewDynamicAds.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'ad_format' => 'DESKTOP_FEED_STANDARD', - 'product_item_ids' => array(''), -); -echo json_encode((new AdCreative($id))->getPreviews( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.php b/examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.php deleted file mode 100644 index 512616a2f..000000000 --- a/examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'ad_format' => 'DESKTOP_FEED_STANDARD', - 'product_item_ids' => array(''), - 'dynamic_customization' => array('language' => 'fr_XX','country' => 'FR'), -); -echo json_encode((new AdCreative($id))->getPreviews( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdgroupLeadsEdgeAdgroupLeads.php b/examples/AdgroupLeadsEdgeAdgroupLeads.php deleted file mode 100644 index 67fe5a65c..000000000 --- a/examples/AdgroupLeadsEdgeAdgroupLeads.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new Ad($id))->getLeads( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdgroupLeadsEdgeAdgroupLeadsDPA.php b/examples/AdgroupLeadsEdgeAdgroupLeadsDPA.php deleted file mode 100644 index 4ad8e93d3..000000000 --- a/examples/AdgroupLeadsEdgeAdgroupLeadsDPA.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'field_data', - 'retailer_item_id', -); -$params = array( -); -echo json_encode((new Ad($id))->getLeads( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php b/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php deleted file mode 100644 index 9a215c444..000000000 --- a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1717544918)), -); -echo json_encode((new Ad($id))->getLeads( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdgroupPost.php b/examples/AdgroupPost.php deleted file mode 100644 index debab5bf1..000000000 --- a/examples/AdgroupPost.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'My New Ad', -); -echo json_encode((new Ad($id))->updateSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdgroupPostUpdateStatus.php b/examples/AdgroupPostUpdateStatus.php deleted file mode 100644 index 06d269e0d..000000000 --- a/examples/AdgroupPostUpdateStatus.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'adgroup_status' => 'PAUSED', -); -echo json_encode((new Ad($id))->updateSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdsInsightsEdgeAdCampaignInsights.php b/examples/AdsInsightsEdgeAdCampaignInsights.php deleted file mode 100644 index fb4e14274..000000000 --- a/examples/AdsInsightsEdgeAdCampaignInsights.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'impressions', -); -$params = array( - 'breakdown' => 'publisher_platform', -); -echo json_encode((new AdSet($id))->getInsights( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdsPixelEventsPost.php b/examples/AdsPixelEventsPost.php deleted file mode 100644 index 06a104c44..000000000 --- a/examples/AdsPixelEventsPost.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'data' => array(array('event_name' => 'PageView','event_time' => 1718149023,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))), -); -echo json_encode((new AdsPixel($id))->createEvent( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdsPixelEventsPostCustom.php b/examples/AdsPixelEventsPostCustom.php deleted file mode 100644 index 72e0c38b7..000000000 --- a/examples/AdsPixelEventsPostCustom.php +++ /dev/null @@ -1,76 +0,0 @@ -'; -$pixel_id = ''; - -$api = Api::init(null, null, $access_token); -$api->setLogger(new CurlLogger()); - -$user_data = (new UserData()) - ->setEmails(array('joe@eg.com')) - ->setPhones(array('12345678901', '14251234567')) - // It is recommended to send Client IP and User Agent for Conversions API Events. - ->setClientIpAddress($_SERVER['REMOTE_ADDR']) - ->setClientUserAgent($_SERVER['HTTP_USER_AGENT']) - ->setFbc('fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890') - ->setFbp('fb.1.1558571054389.1098115397'); - -$content = (new Content()) - ->setProductId('product123') - ->setQuantity(1) - ->setDeliveryCategory(DeliveryCategory::HOME_DELIVERY); - -$custom_data = (new CustomData()) - ->setContents(array($content)) - ->setCurrency('usd') - ->setValue(123.45); - -$event = (new Event()) - ->setEventName('Purchase') - ->setEventTime(time()) - ->setEventSourceUrl('http://jaspers-market.com/product/123') - ->setUserData($user_data) - ->setCustomData($custom_data) - ->setActionSource(ActionSource::WEBSITE); - -$events = array(); -array_push($events, $event); - -$request = (new EventRequest($pixel_id)) - ->setEvents($events); -$response = $request->execute(); -print_r($response); \ No newline at end of file diff --git a/examples/AdsPixelSharedAccountsEdge.php b/examples/AdsPixelSharedAccountsEdge.php deleted file mode 100644 index 401c278fb..000000000 --- a/examples/AdsPixelSharedAccountsEdge.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'business' => '', -); -echo json_encode((new AdsPixel($id))->getSharedAccounts( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdsPixelSharedAccountsPost.php b/examples/AdsPixelSharedAccountsPost.php deleted file mode 100644 index 2633e40c0..000000000 --- a/examples/AdsPixelSharedAccountsPost.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'account_id' => '', - 'business' => '', -); -echo json_encode((new AdsPixel($id))->createSharedAccount( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/AdsPixelSharedAgenciesEdge.php b/examples/AdsPixelSharedAgenciesEdge.php deleted file mode 100644 index 1835139ba..000000000 --- a/examples/AdsPixelSharedAgenciesEdge.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new AdsPixel($id))->getSharedAgencies( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/CustomAudienceDelete.php b/examples/CustomAudienceDelete.php deleted file mode 100644 index 7fc924054..000000000 --- a/examples/CustomAudienceDelete.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new CustomAudience($id))->deleteSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/CustomAudienceNode.php b/examples/CustomAudienceNode.php deleted file mode 100644 index cc8510376..000000000 --- a/examples/CustomAudienceNode.php +++ /dev/null @@ -1,46 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new CustomAudience($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/CustomAudienceNodeReadRule.php b/examples/CustomAudienceNodeReadRule.php deleted file mode 100644 index 3533fec69..000000000 --- a/examples/CustomAudienceNodeReadRule.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'name', - 'rule', -); -$params = array( -); -echo json_encode((new CustomAudience($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/CustomAudiencePost.php b/examples/CustomAudiencePost.php deleted file mode 100644 index de5214322..000000000 --- a/examples/CustomAudiencePost.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Updated Name for CA', -); -echo json_encode((new CustomAudience($id))->updateSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/CustomAudienceUsersPost.php b/examples/CustomAudienceUsersPost.php deleted file mode 100644 index 004c97416..000000000 --- a/examples/CustomAudienceUsersPost.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'payload' => array('schema' => array('EMAIL','LOOKALIKE_VALUE'),'data' => array(array('9b431636bd164765d63c573c346708846af4f68fe3701a77a3bdd7e7e5166254',44.5),array('8cc62c145cd0c6dc444168eaeb1b61b351f9b1809a579cc9b4c9e9d7213a39ee',140),array('4eaf70b1f7a797962b9d2a533f122c8039012b31e0a52b34a426729319cb792a',0),array('98df8d46f118f8bef552b0ec0a3d729466a912577830212a844b73960777ac56',0.9))), -); -echo json_encode((new CustomAudience($id))->createUser( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/CustomAudienceUsersPostCrossPlatform.php b/examples/CustomAudienceUsersPostCrossPlatform.php deleted file mode 100644 index 432bff6d3..000000000 --- a/examples/CustomAudienceUsersPostCrossPlatform.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'payload' => array('schema' => array('EMAIL','MADID','APPUID','LOOKALIKE_VALUE'),'app_ids' => array(''),'data' => array(array('b36a83701f1c3191e19722d6f90274bc1b5501fe69ebf33313e440fe4b0fe210','6032d997-3ab0-4de0-aa16-8af0e5b482fb','1234567890','0.9'),array('2b3b2b9ce842ab8b6a6c614cb1f9604bb8a0d502d1af49c526b72b10894e95b5','B67385F8-9A82-4670-8C0A-6F9EA7513F5F','','0'),array('898628e28890f937bdf009391def42879c401a4bcf1b5fd24e738d9f5da8cbbb','','9876543210','0.4'))), -); -echo json_encode((new CustomAudience($id))->createUser( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/OfflineConversionsCreateOfflineSet.php b/examples/OfflineConversionsCreateOfflineSet.php deleted file mode 100644 index 4c5e348cc..000000000 --- a/examples/OfflineConversionsCreateOfflineSet.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'offline_event_set', - 'description' => 'conversion data used for superbowl campaign', -); -echo json_encode((new Business($id))->createOfflineConversionDataSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PageFeedEdge.php b/examples/PageFeedEdge.php deleted file mode 100644 index 3a823fb5d..000000000 --- a/examples/PageFeedEdge.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new Page($id))->getFeed( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PageFeedPost.php b/examples/PageFeedPost.php deleted file mode 100644 index 8e87c115c..000000000 --- a/examples/PageFeedPost.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'message' => 'This is a test value', -); -echo json_encode((new Page($id))->createFeed( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PageFeedPostFeedImageDeepLink.php b/examples/PageFeedPostFeedImageDeepLink.php deleted file mode 100644 index 7a8e5551f..000000000 --- a/examples/PageFeedPostFeedImageDeepLink.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'message' => 'This is a test message', - 'call_to_action' => array('type' => 'BUY_NOW','value' => array('link' => '','app_link' => '')), -); -echo json_encode((new Page($id))->createFeed( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PageNode.php b/examples/PageNode.php deleted file mode 100644 index 43f1c0896..000000000 --- a/examples/PageNode.php +++ /dev/null @@ -1,50 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( - 'location{latitude', - 'longitude}', - 'is_permanently_closed', -); -$params = array( - 'limit' => '30000', -); -echo json_encode((new Page($id))->getLocations( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PageNodePageSearch.php b/examples/PageNodePageSearch.php deleted file mode 100644 index d99531528..000000000 --- a/examples/PageNodePageSearch.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'type' => 'adradiussuggestion', - 'latitude' => '51.5152253', - 'longitude' => '-0.1423029', -); -echo json_encode((new Page($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePageWhatsAppNumberVerificationPost.php b/examples/PagePageWhatsAppNumberVerificationPost.php deleted file mode 100644 index 2232c1073..000000000 --- a/examples/PagePageWhatsAppNumberVerificationPost.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'whatsapp_number' => '123456789', - 'verification_code' => '12345', -); -echo json_encode((new Page($id))->createPageWhatsappNumberVerification( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePhotosEdge.php b/examples/PagePhotosEdge.php deleted file mode 100644 index 72ca68a25..000000000 --- a/examples/PagePhotosEdge.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new Page($id))->getPhotos( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePhotosPost.php b/examples/PagePhotosPost.php deleted file mode 100644 index 694213300..000000000 --- a/examples/PagePhotosPost.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'url' => 'https://www.facebook.com/images/fb_icon_325x325.png', - 'published' => 'false', -); -echo json_encode((new Page($id))->createPhoto( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePictureEdge.php b/examples/PagePictureEdge.php deleted file mode 100644 index 4a8d1b3a7..000000000 --- a/examples/PagePictureEdge.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'redirect' => '0', -); -echo json_encode((new Page($id))->getPicture( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePostCommentsPost.php b/examples/PagePostCommentsPost.php deleted file mode 100644 index b7b795aa5..000000000 --- a/examples/PagePostCommentsPost.php +++ /dev/null @@ -1,48 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'message' => 'This is a test value', -); -echo json_encode((new PagePost($id))->createComment( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePostDelete.php b/examples/PagePostDelete.php deleted file mode 100644 index 62b68e6d8..000000000 --- a/examples/PagePostDelete.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new PagePost($id))->deleteSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePostNode.php b/examples/PagePostNode.php deleted file mode 100644 index 798d81110..000000000 --- a/examples/PagePostNode.php +++ /dev/null @@ -1,46 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new PagePost($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePostPost.php b/examples/PagePostPost.php deleted file mode 100644 index 7c8ac4e58..000000000 --- a/examples/PagePostPost.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'message' => 'This is a test value', -); -echo json_encode((new PagePost($id))->updateSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePostsEdge.php b/examples/PagePostsEdge.php deleted file mode 100644 index 627eb5793..000000000 --- a/examples/PagePostsEdge.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new Page($id))->getPosts( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PagePostsEdgePagePostCreateCarousel.php b/examples/PagePostsEdgePagePostCreateCarousel.php deleted file mode 100644 index c63055407..000000000 --- a/examples/PagePostsEdgePagePostCreateCarousel.php +++ /dev/null @@ -1,52 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'message' => 'Browse our latest products', - 'published' => '0', - 'child_attachments' => array(array('link' => '','name' => 'Product 1','description' => '$4.99','image_hash' => ''),array('link' => '','name' => 'Product 2','description' => '$4.99','image_hash' => ''),array('link' => '','name' => 'Product 3','description' => '$4.99','image_hash' => ''),array('link' => '','name' => 'Product 4','description' => '$4.99','image_hash' => '')), - 'caption' => 'WWW.EXAMPLE.COM', - 'link' => 'http://www.example.com/products', -); -echo json_encode((new Page($id))->getPosts( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PageRolesEdge.php b/examples/PageRolesEdge.php deleted file mode 100644 index 39687f700..000000000 --- a/examples/PageRolesEdge.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new Page($id))->getRoles( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/PageSubscribedAppsPost.php b/examples/PageSubscribedAppsPost.php deleted file mode 100644 index 489da5e65..000000000 --- a/examples/PageSubscribedAppsPost.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'subscribed_fields' => 'leadgen', -); -echo json_encode((new Page($id))->createSubscribedApp( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/ProductCatalogEventStatsEdge.php b/examples/ProductCatalogEventStatsEdge.php deleted file mode 100644 index e8dd1c96d..000000000 --- a/examples/ProductCatalogEventStatsEdge.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new ProductCatalog($id))->getEventStats( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/ProductCatalogHotelsPost.php b/examples/ProductCatalogHotelsPost.php deleted file mode 100644 index 09b88685a..000000000 --- a/examples/ProductCatalogHotelsPost.php +++ /dev/null @@ -1,57 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'hotel_id' => 'h_1', - 'name' => 'Sample Hotel', - 'description' => 'hotel description', - 'brand' => 'hotel brand', - 'url' => 'http://www.example.com/samplehotel', - 'images' => array(array('image_url' => 'https://www.example.com/pic1.jpg','tags' => array('front view','balcony')),array('image_url' => 'http://www.example.com/pic2.jpg','tags' => array('lobby view'))), - 'address' => array('street_address' => '1 Hacker Way','city' => 'Menlo Park','region' => 'California','country' => 'United States','postal_code' => '94025','neighborhoods' => array('Palo Alto','Menlo Park'),'latitude' => 37.484116,'longitude' => -122.148244), - 'guest_ratings' => array(array('score' => 7.8,'max_score' => 10,'rating_system' => 'sample_rating','number_of_raters' => 780)), - 'star_rating' => '4', - 'phone' => '+351234123456', -); -echo json_encode((new ProductCatalog($id))->createHotel( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.php b/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.php deleted file mode 100644 index ac992c43c..000000000 --- a/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.php +++ /dev/null @@ -1,46 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new ProductCatalog($id))->updateSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/ProductCatalogProductFeedsPostProductFeed.php b/examples/ProductCatalogProductFeedsPostProductFeed.php deleted file mode 100644 index 50974686d..000000000 --- a/examples/ProductCatalogProductFeedsPostProductFeed.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Test Feed', - 'schedule' => array('interval' => 'DAILY','url' => 'http://www.example.com/sample_feed.tsv','hour' => '22'), -); -echo json_encode((new ProductCatalog($id))->createProductFeed( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/ProductCatalogProductSetsPostHotelSet.php b/examples/ProductCatalogProductSetsPostHotelSet.php deleted file mode 100644 index 96b18c570..000000000 --- a/examples/ProductCatalogProductSetsPostHotelSet.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Test Hotel Set', - 'filter' => array('brand' => array('i_contains' => 'sample brand')), -); -echo json_encode((new ProductCatalog($id))->createProductSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/ProductCatalogProductSetsPostProductSet.php b/examples/ProductCatalogProductSetsPostProductSet.php deleted file mode 100644 index 323a7d770..000000000 --- a/examples/ProductCatalogProductSetsPostProductSet.php +++ /dev/null @@ -1,49 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( - 'name' => 'Test Set', - 'filter' => array('product_type' => array('i_contains' => 'shirt')), -); -echo json_encode((new ProductCatalog($id))->createProductSet( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/UserAccountsEdge.php b/examples/UserAccountsEdge.php deleted file mode 100644 index bb246b3f2..000000000 --- a/examples/UserAccountsEdge.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new User($id))->getAccounts( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/UserAdAccountsEdge.php b/examples/UserAdAccountsEdge.php deleted file mode 100644 index c34e2dadb..000000000 --- a/examples/UserAdAccountsEdge.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new User($id))->getAdAccounts( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/UserLeadGenInfoNode.php b/examples/UserLeadGenInfoNode.php deleted file mode 100644 index 00a5cda57..000000000 --- a/examples/UserLeadGenInfoNode.php +++ /dev/null @@ -1,46 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new Lead($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/UserNode.php b/examples/UserNode.php deleted file mode 100644 index 1e2e532ea..000000000 --- a/examples/UserNode.php +++ /dev/null @@ -1,46 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new User($id))->getSelf( - $fields, - $params -)->exportAllData(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/examples/VideoThumbnailsEdge.php b/examples/VideoThumbnailsEdge.php deleted file mode 100644 index 40ed1529a..000000000 --- a/examples/VideoThumbnailsEdge.php +++ /dev/null @@ -1,47 +0,0 @@ -'; -$app_secret = ''; -$app_id = ''; -$id = ''; - -$api = Api::init($app_id, $app_secret, $access_token); -$api->setLogger(new CurlLogger()); - -$fields = array( -); -$params = array( -); -echo json_encode((new AdVideo($id))->getThumbnails( - $fields, - $params -)->getResponse()->getContent(), JSON_PRETTY_PRINT); \ No newline at end of file diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 0db45d0b0..b2d6af7c8 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -9,7 +9,7 @@ namespace FacebookAds; class ApiConfig { - const APIVersion = '20.0'; - const SDKVersion = '20.0.0'; + const APIVersion = '21.0'; + const SDKVersion = '21.0.1'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/BCPCreatorIgUser.php b/src/FacebookAds/Object/ALMAdAccountInfo.php similarity index 82% rename from src/FacebookAds/Object/BCPCreatorIgUser.php rename to src/FacebookAds/Object/ALMAdAccountInfo.php index 7fd9d3698..2b18be520 100644 --- a/src/FacebookAds/Object/BCPCreatorIgUser.php +++ b/src/FacebookAds/Object/ALMAdAccountInfo.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\BCPCreatorIgUserFields; +use FacebookAds\Object\Fields\ALMAdAccountInfoFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class BCPCreatorIgUser extends AbstractCrudObject { +class ALMAdAccountInfo extends AbstractCrudObject { /** - * @return BCPCreatorIgUserFields + * @return ALMAdAccountInfoFields */ public static function getFieldsEnum() { - return BCPCreatorIgUserFields::getInstance(); + return ALMAdAccountInfoFields::getInstance(); } protected static function getReferencedEnums() { @@ -52,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new BCPCreatorIgUser(), + new ALMAdAccountInfo(), 'NODE', - BCPCreatorIgUser::getFieldsEnum()->getValues(), + ALMAdAccountInfo::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/UserSetReportingRoot.php b/src/FacebookAds/Object/ALMEndAdvertiserInfo.php similarity index 80% rename from src/FacebookAds/Object/UserSetReportingRoot.php rename to src/FacebookAds/Object/ALMEndAdvertiserInfo.php index b89d2edf4..ffdaff41b 100644 --- a/src/FacebookAds/Object/UserSetReportingRoot.php +++ b/src/FacebookAds/Object/ALMEndAdvertiserInfo.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\UserSetReportingRootFields; +use FacebookAds\Object\Fields\ALMEndAdvertiserInfoFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class UserSetReportingRoot extends AbstractCrudObject { +class ALMEndAdvertiserInfo extends AbstractCrudObject { /** - * @return UserSetReportingRootFields + * @return ALMEndAdvertiserInfoFields */ public static function getFieldsEnum() { - return UserSetReportingRootFields::getInstance(); + return ALMEndAdvertiserInfoFields::getInstance(); } protected static function getReferencedEnums() { @@ -52,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new UserSetReportingRoot(), + new ALMEndAdvertiserInfo(), 'NODE', - UserSetReportingRoot::getFieldsEnum()->getValues(), + ALMEndAdvertiserInfo::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/PanelAPIReport.php b/src/FacebookAds/Object/ALMEvent.php similarity index 82% rename from src/FacebookAds/Object/PanelAPIReport.php rename to src/FacebookAds/Object/ALMEvent.php index cbd550059..a1887840e 100644 --- a/src/FacebookAds/Object/PanelAPIReport.php +++ b/src/FacebookAds/Object/ALMEvent.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\PanelAPIReportFields; +use FacebookAds\Object\Fields\ALMEventFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class PanelAPIReport extends AbstractCrudObject { +class ALMEvent extends AbstractCrudObject { /** - * @return PanelAPIReportFields + * @return ALMEventFields */ public static function getFieldsEnum() { - return PanelAPIReportFields::getInstance(); + return ALMEventFields::getInstance(); } protected static function getReferencedEnums() { @@ -52,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new PanelAPIReport(), + new ALMEvent(), 'NODE', - PanelAPIReport::getFieldsEnum()->getValues(), + ALMEvent::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/ExpirablePost.php b/src/FacebookAds/Object/ALMGuidance.php similarity index 81% rename from src/FacebookAds/Object/ExpirablePost.php rename to src/FacebookAds/Object/ALMGuidance.php index 502cc2d51..7e36f53e4 100644 --- a/src/FacebookAds/Object/ExpirablePost.php +++ b/src/FacebookAds/Object/ALMGuidance.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\ExpirablePostFields; +use FacebookAds\Object\Fields\ALMGuidanceFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class ExpirablePost extends AbstractCrudObject { +class ALMGuidance extends AbstractObject { /** - * @return ExpirablePostFields + * @return ALMGuidanceFields */ public static function getFieldsEnum() { - return ExpirablePostFields::getInstance(); + return ALMGuidanceFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/GenericVideoAsset.php b/src/FacebookAds/Object/ALMGuidanceMetrics.php similarity index 79% rename from src/FacebookAds/Object/GenericVideoAsset.php rename to src/FacebookAds/Object/ALMGuidanceMetrics.php index 125ef1460..15c86fe9f 100644 --- a/src/FacebookAds/Object/GenericVideoAsset.php +++ b/src/FacebookAds/Object/ALMGuidanceMetrics.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\GenericVideoAssetFields; +use FacebookAds\Object\Fields\ALMGuidanceMetricsFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class GenericVideoAsset extends AbstractCrudObject { +class ALMGuidanceMetrics extends AbstractObject { /** - * @return GenericVideoAssetFields + * @return ALMGuidanceMetricsFields */ public static function getFieldsEnum() { - return GenericVideoAssetFields::getInstance(); + return ALMGuidanceMetricsFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 255a8b418..bfccd12c6 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -18,6 +18,7 @@ use FacebookAds\Object\Values\AdAccountAdRulesHistoryActionValues; use FacebookAds\Object\Values\AdAccountAdRulesHistoryEvaluationTypeValues; use FacebookAds\Object\Values\AdAccountAdVolumeRecommendationTypeValues; +use FacebookAds\Object\Values\AdAccountBrandSafetyContentFilterLevelsValues; use FacebookAds\Object\Values\AdAccountClaimObjectiveValues; use FacebookAds\Object\Values\AdAccountContentTypeValues; use FacebookAds\Object\Values\AdAccountCurrencyValues; @@ -98,7 +99,9 @@ use FacebookAds\Object\Values\CustomAudienceClaimObjectiveValues; use FacebookAds\Object\Values\CustomAudienceContentTypeValues; use FacebookAds\Object\Values\CustomAudienceCustomerFileSourceValues; +use FacebookAds\Object\Values\CustomAudienceSubscriptionInfoValues; use FacebookAds\Object\Values\CustomAudienceSubtypeValues; +use FacebookAds\Object\Values\CustomAudienceUseForProductsValues; use FacebookAds\Object\Values\CustomConversionActionSourceTypeValues; use FacebookAds\Object\Values\CustomConversionCustomEventTypeValues; use FacebookAds\Object\Values\ReachFrequencyPredictionActionValues; @@ -135,6 +138,7 @@ protected static function getReferencedEnums() { $ref_enums['Currency'] = AdAccountCurrencyValues::getInstance()->getValues(); $ref_enums['PermittedTasks'] = AdAccountPermittedTasksValues::getInstance()->getValues(); $ref_enums['Tasks'] = AdAccountTasksValues::getInstance()->getValues(); + $ref_enums['BrandSafetyContentFilterLevels'] = AdAccountBrandSafetyContentFilterLevelsValues::getInstance()->getValues(); $ref_enums['ClaimObjective'] = AdAccountClaimObjectiveValues::getInstance()->getValues(); $ref_enums['ContentType'] = AdAccountContentTypeValues::getInstance()->getValues(); $ref_enums['Subtype'] = AdAccountSubtypeValues::getInstance()->getValues(); @@ -1010,6 +1014,8 @@ public function createAdSet(array $fields = array(), array $params = array(), $p 'lifetime_min_spend_target' => 'unsigned int', 'lifetime_spend_cap' => 'unsigned int', 'line_number' => 'unsigned int', + 'max_budget_spend_percentage' => 'unsigned int', + 'min_budget_spend_percentage' => 'unsigned int', 'multi_optimization_goal_weight' => 'multi_optimization_goal_weight_enum', 'name' => 'string', 'optimization_goal' => 'optimization_goal_enum', @@ -1220,7 +1226,6 @@ public function createAdVideo(array $fields = array(), array $params = array(), $this->assureId(); $param_types = array( - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', @@ -1245,11 +1250,10 @@ public function createAdVideo(array $fields = array(), array $params = array(), 'formatting' => 'formatting_enum', 'fov' => 'unsigned int', 'front_z_rotation' => 'float', - 'fun_fact_prompt_id' => 'unsigned int', + 'fun_fact_prompt_id' => 'string', 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', 'instant_game_entry_point_data' => 'string', @@ -1258,7 +1262,6 @@ public function createAdVideo(array $fields = array(), array $params = array(), 'is_voice_clip' => 'bool', 'location_source_id' => 'string', 'name' => 'string', - 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_icon_id' => 'string', 'og_object_id' => 'string', @@ -1661,6 +1664,32 @@ public function createBlockListDraft(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } + public function createBrandSafetyContentFilterLevel(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'brand_safety_content_filter_levels' => 'list', + 'business_id' => 'string', + ); + $enums = array( + 'brand_safety_content_filter_levels_enum' => AdAccountBrandSafetyContentFilterLevelsValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/brand_safety_content_filter_levels', + new AdAccount(), + 'EDGE', + AdAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getBroadTargetingCategories(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1985,11 +2014,13 @@ public function createCustomAudience(array $fields = array(), array $params = ar 'event_source_group' => 'string', 'event_sources' => 'list', 'exclusions' => 'list', + 'facebook_page_id' => 'string', 'inclusions' => 'list', 'is_snapshot' => 'bool', 'is_value_based' => 'bool', 'list_of_accounts' => 'list', 'lookalike_spec' => 'string', + 'marketing_message_channels' => 'Object', 'name' => 'string', 'opt_out_link' => 'string', 'origin_audience_id' => 'string', @@ -2003,7 +2034,9 @@ public function createCustomAudience(array $fields = array(), array $params = ar 'rev_share_policy_id' => 'unsigned int', 'rule' => 'string', 'rule_aggregation' => 'string', + 'subscription_info' => 'list', 'subtype' => 'subtype_enum', + 'use_for_products' => 'list', 'use_in_campaigns' => 'bool', 'video_group_ids' => 'list', 'whats_app_business_phone_number_id' => 'string', @@ -2012,7 +2045,9 @@ public function createCustomAudience(array $fields = array(), array $params = ar 'claim_objective_enum' => CustomAudienceClaimObjectiveValues::getInstance()->getValues(), 'content_type_enum' => CustomAudienceContentTypeValues::getInstance()->getValues(), 'customer_file_source_enum' => CustomAudienceCustomerFileSourceValues::getInstance()->getValues(), + 'subscription_info_enum' => CustomAudienceSubscriptionInfoValues::getInstance()->getValues(), 'subtype_enum' => CustomAudienceSubtypeValues::getInstance()->getValues(), + 'use_for_products_enum' => CustomAudienceUseForProductsValues::getInstance()->getValues(), ); $request = new ApiRequest( @@ -2421,7 +2456,7 @@ public function getIosFourteenCampaignLimits(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function createMAnAgeDPartnerAd(array $fields = array(), array $params = array(), $pending = false) { + public function createManagedPartnerAd(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2817,6 +2852,53 @@ public function createReachFrequencyPrediction(array $fields = array(), array $p return $pending ? $request : $request->execute(); } + public function getRecommendations(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, + '/recommendations', + new AdAccountRecommendations(), + 'EDGE', + AdAccountRecommendations::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createRecommendation(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'recommendation_signature' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/recommendations', + new AdAccountRecommendations(), + 'EDGE', + AdAccountRecommendations::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSavedAudiences(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -3183,7 +3265,7 @@ public function deleteUsersOfAnyAudience(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function getValueAdjustmentRuleCollections(array $fields = array(), array $params = array(), $pending = false) { + public function getValueAdjustmentRules(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -3195,7 +3277,30 @@ public function getValueAdjustmentRuleCollections(array $fields = array(), array $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/value_adjustment_rule_collections', + '/value_adjustment_rules', + new AdsValueAdjustmentRule(), + 'EDGE', + AdsValueAdjustmentRule::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getValueRuleSet(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_rule_set', new AdsValueAdjustmentRuleCollection(), 'EDGE', AdsValueAdjustmentRuleCollection::getFieldsEnum()->getValues(), @@ -3206,10 +3311,12 @@ public function getValueAdjustmentRuleCollections(array $fields = array(), array return $pending ? $request : $request->execute(); } - public function getValueAdjustmentRules(array $fields = array(), array $params = array(), $pending = false) { + public function getVideoAds(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'since' => 'datetime', + 'until' => 'datetime', ); $enums = array( ); @@ -3218,10 +3325,10 @@ public function getValueAdjustmentRules(array $fields = array(), array $params = $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/value_adjustment_rules', - new AdsValueAdjustmentRule(), + '/video_ads', + new AdVideo(), 'EDGE', - AdsValueAdjustmentRule::getFieldsEnum()->getValues(), + AdVideo::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/AdAccountLiveVideoAdvertiser.php b/src/FacebookAds/Object/AdAccountLiveVideoAdvertiser.php new file mode 100644 index 000000000..7b051ab8d --- /dev/null +++ b/src/FacebookAds/Object/AdAccountLiveVideoAdvertiser.php @@ -0,0 +1,42 @@ +execute(); } + public function getMessageDeliveryEstimate(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'bid_amount' => 'unsigned int', + 'lifetime_budget' => 'unsigned int', + 'lifetime_in_days' => 'unsigned int', + 'optimization_goal' => 'optimization_goal_enum', + 'pacing_type' => 'pacing_type_enum', + 'promoted_object' => 'Object', + 'targeting_spec' => 'Targeting', + ); + $enums = array( + 'optimization_goal_enum' => MessageDeliveryEstimateOptimizationGoalValues::getInstance()->getValues(), + 'pacing_type_enum' => MessageDeliveryEstimatePacingTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/message_delivery_estimate', + new MessageDeliveryEstimate(), + 'EDGE', + MessageDeliveryEstimate::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getTargetingSentenceLines(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -646,6 +680,8 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'lifetime_imps' => 'unsigned int', 'lifetime_min_spend_target' => 'unsigned int', 'lifetime_spend_cap' => 'unsigned int', + 'max_budget_spend_percentage' => 'unsigned int', + 'min_budget_spend_percentage' => 'unsigned int', 'multi_optimization_goal_weight' => 'multi_optimization_goal_weight_enum', 'name' => 'string', 'optimization_goal' => 'optimization_goal_enum', diff --git a/src/FacebookAds/Object/AdVideo.php b/src/FacebookAds/Object/AdVideo.php index 0a2403795..ea2dd8f92 100644 --- a/src/FacebookAds/Object/AdVideo.php +++ b/src/FacebookAds/Object/AdVideo.php @@ -239,7 +239,7 @@ public function createComment(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } - public function getCrosspostShareDPages(array $fields = array(), array $params = array(), $pending = false) { + public function getCrosspostSharedPages(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -458,32 +458,6 @@ public function getTags(array $fields = array(), array $params = array(), $pendi return $pending ? $request : $request->execute(); } - public function createTag(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'tag_uid' => 'int', - 'uid' => 'int', - 'vid' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/tags', - new AdVideo(), - 'EDGE', - AdVideo::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getThumbnails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -618,7 +592,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'call_to_action' => 'Object', 'content_category' => 'content_category_enum', 'content_tags' => 'list', - 'custom_labels' => 'list', + 'custom_labels' => 'string', 'description' => 'string', 'direct_share_status' => 'unsigned int', 'embeddable' => 'bool', diff --git a/src/FacebookAds/Object/AdsPixel.php b/src/FacebookAds/Object/AdsPixel.php index e6265287b..4309db3ec 100644 --- a/src/FacebookAds/Object/AdsPixel.php +++ b/src/FacebookAds/Object/AdsPixel.php @@ -368,7 +368,7 @@ public function createShadowTrafficHelper(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function deleteShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function deleteSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -393,7 +393,7 @@ public function deleteShareDAccounts(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -417,7 +417,7 @@ public function getShareDAccounts(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function createShareDAccount(array $fields = array(), array $params = array(), $pending = false) { + public function createSharedAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -442,7 +442,7 @@ public function createShareDAccount(array $fields = array(), array $params = arr return $pending ? $request : $request->execute(); } - public function getShareDAgencies(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAgencies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/VidwallaBroadcast.php b/src/FacebookAds/Object/AdsQuickViews.php similarity index 81% rename from src/FacebookAds/Object/VidwallaBroadcast.php rename to src/FacebookAds/Object/AdsQuickViews.php index 4669e2ba0..222188964 100644 --- a/src/FacebookAds/Object/VidwallaBroadcast.php +++ b/src/FacebookAds/Object/AdsQuickViews.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\VidwallaBroadcastFields; +use FacebookAds\Object\Fields\AdsQuickViewsFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class VidwallaBroadcast extends AbstractCrudObject { +class AdsQuickViews extends AbstractCrudObject { /** - * @return VidwallaBroadcastFields + * @return AdsQuickViewsFields */ public static function getFieldsEnum() { - return VidwallaBroadcastFields::getInstance(); + return AdsQuickViewsFields::getInstance(); } protected static function getReferencedEnums() { @@ -52,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new VidwallaBroadcast(), + new AdsQuickViews(), 'NODE', - VidwallaBroadcast::getFieldsEnum()->getValues(), + AdsQuickViews::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/AdsValueAdjustmentRuleCollection.php b/src/FacebookAds/Object/AdsValueAdjustmentRuleCollection.php index 71a7f569a..b2a06b348 100644 --- a/src/FacebookAds/Object/AdsValueAdjustmentRuleCollection.php +++ b/src/FacebookAds/Object/AdsValueAdjustmentRuleCollection.php @@ -39,7 +39,7 @@ protected static function getReferencedEnums() { } - public function getPersonas(array $fields = array(), array $params = array(), $pending = false) { + public function getRules(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -51,7 +51,7 @@ public function getPersonas(array $fields = array(), array $params = array(), $p $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/personas', + '/rules', new AbstractCrudObject(), 'EDGE', array(), diff --git a/src/FacebookAds/Object/Application.php b/src/FacebookAds/Object/Application.php index 9612cc8b4..2923bad27 100644 --- a/src/FacebookAds/Object/Application.php +++ b/src/FacebookAds/Object/Application.php @@ -20,8 +20,6 @@ use FacebookAds\Object\Values\AdNetworkAnalyticsSyncQueryResultOrderingColumnValues; use FacebookAds\Object\Values\AdNetworkAnalyticsSyncQueryResultOrderingTypeValues; use FacebookAds\Object\Values\ApplicationAnPlatformsValues; -use FacebookAds\Object\Values\ApplicationLoggingSourceValues; -use FacebookAds\Object\Values\ApplicationLoggingTargetValues; use FacebookAds\Object\Values\ApplicationMutationMethodValues; use FacebookAds\Object\Values\ApplicationOwnerPermissionsValues; use FacebookAds\Object\Values\ApplicationPartnerPermissionsValues; @@ -64,8 +62,6 @@ protected static function getReferencedEnums() { $ref_enums['RequestType'] = ApplicationRequestTypeValues::getInstance()->getValues(); $ref_enums['MutationMethod'] = ApplicationMutationMethodValues::getInstance()->getValues(); $ref_enums['PostMethod'] = ApplicationPostMethodValues::getInstance()->getValues(); - $ref_enums['LoggingSource'] = ApplicationLoggingSourceValues::getInstance()->getValues(); - $ref_enums['LoggingTarget'] = ApplicationLoggingTargetValues::getInstance()->getValues(); $ref_enums['OwnerPermissions'] = ApplicationOwnerPermissionsValues::getInstance()->getValues(); $ref_enums['PartnerPermissions'] = ApplicationPartnerPermissionsValues::getInstance()->getValues(); return $ref_enums; @@ -184,6 +180,7 @@ public function createActivity(array $fields = array(), array $params = array(), 'data_processing_options_state' => 'unsigned int', 'device_token' => 'string', 'event' => 'event_enum', + 'event_id' => 'string', 'extinfo' => 'Object', 'include_dwell_data' => 'bool', 'include_video_data' => 'bool', @@ -997,6 +994,30 @@ public function getLinkedDataset(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } + public function getMessageTemplates(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'template_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/message_templates', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createMmpAuditing(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1187,38 +1208,6 @@ public function createOccludesPopup(array $fields = array(), array $params = arr return $pending ? $request : $request->execute(); } - public function createPageActivity(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'advertiser_tracking_enabled' => 'bool', - 'application_tracking_enabled' => 'bool', - 'custom_events' => 'list', - 'logging_source' => 'logging_source_enum', - 'logging_target' => 'logging_target_enum', - 'page_id' => 'unsigned int', - 'page_scoped_user_id' => 'unsigned int', - ); - $enums = array( - 'logging_source_enum' => ApplicationLoggingSourceValues::getInstance()->getValues(), - 'logging_target_enum' => ApplicationLoggingTargetValues::getInstance()->getValues(), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/page_activities', - new Application(), - 'EDGE', - Application::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function createPaymentCurrency(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1489,6 +1478,29 @@ public function deleteSubscriptions(array $fields = array(), array $params = arr return $pending ? $request : $request->execute(); } + public function getSubscriptions(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, + '/subscriptions', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createSubscription(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AutomotiveModel.php b/src/FacebookAds/Object/AutomotiveModel.php index a344703f4..14169e6d2 100644 --- a/src/FacebookAds/Object/AutomotiveModel.php +++ b/src/FacebookAds/Object/AutomotiveModel.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\AutomotiveModelFields; use FacebookAds\Object\Values\AutomotiveModelImageFetchStatusValues; use FacebookAds\Object\Values\AutomotiveModelVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -43,7 +44,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +56,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,22 +67,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/BrandSafetyCampaignConfig.php b/src/FacebookAds/Object/BrandSafetyCampaignConfig.php new file mode 100644 index 000000000..01f064e2b --- /dev/null +++ b/src/FacebookAds/Object/BrandSafetyCampaignConfig.php @@ -0,0 +1,42 @@ +execute(); } + public function getAdAccountInfos(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_account_id' => 'string', + 'parent_advertiser_id' => 'string', + 'user_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/ad_account_infos', + new ALMAdAccountInfo(), + 'EDGE', + ALMAdAccountInfo::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteAdAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -135,6 +162,30 @@ public function deleteAdAccounts(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } + public function createAdReviewRequest(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_account_ids' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/ad_review_requests', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getAdStudies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -569,6 +620,30 @@ public function createBlockListDraft(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } + public function createBmReviewRequest(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'business_manager_ids' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/bm_review_requests', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getBusinessAssetGroups(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -651,9 +726,11 @@ public function createBusinessUser(array $fields = array(), array $params = arra $param_types = array( 'email' => 'string', + 'invited_user_type' => 'list', 'role' => 'role_enum', ); $enums = array( + 'invited_user_type_enum' => BusinessUserInvitedUserTypeValues::getInstance()->getValues(), 'role_enum' => BusinessUserRoleValues::getInstance()->getValues(), ); @@ -1480,7 +1557,7 @@ public function getInstagramBusinessAccounts(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function deleteMAnAgeDBusinesses(array $fields = array(), array $params = array(), $pending = false) { + public function deleteManagedBusinesses(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1504,7 +1581,7 @@ public function deleteMAnAgeDBusinesses(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function createMAnAgeDBusiness(array $fields = array(), array $params = array(), $pending = false) { + public function createManagedBusiness(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1539,7 +1616,7 @@ public function createMAnAgeDBusiness(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } - public function createMAnAgeDPartnerBusinessSetup(array $fields = array(), array $params = array(), $pending = false) { + public function createManagedPartnerBusinessSetup(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1569,7 +1646,7 @@ public function createMAnAgeDPartnerBusinessSetup(array $fields = array(), array return $pending ? $request : $request->execute(); } - public function deleteMAnAgeDPartnerBusinesses(array $fields = array(), array $params = array(), $pending = false) { + public function deleteManagedPartnerBusinesses(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1594,7 +1671,7 @@ public function deleteMAnAgeDPartnerBusinesses(array $fields = array(), array $p return $pending ? $request : $request->execute(); } - public function createMAnAgeDPartnerBusiness(array $fields = array(), array $params = array(), $pending = false) { + public function createManagedPartnerBusiness(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2807,7 +2884,7 @@ public function getPendingOwnedPages(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getPendingShareDOffsiteSignalContainerBusinessObjects(array $fields = array(), array $params = array(), $pending = false) { + public function getPendingSharedOffsiteSignalContainerBusinessObjects(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2980,7 +3057,7 @@ public function getResellerGuidances(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getSelfCertifiedWhatsappBusinessSubmissions(array $fields = array(), array $params = array(), $pending = false) { + public function getSelfCertifiedWhatsAppBusinessSubmissions(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -3004,7 +3081,7 @@ public function getSelfCertifiedWhatsappBusinessSubmissions(array $fields = arra return $pending ? $request : $request->execute(); } - public function createSetupMAnAgeDPartnerAdAccount(array $fields = array(), array $params = array(), $pending = false) { + public function createSetupManagedPartnerAdAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -3190,7 +3267,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $param_types = array( 'ad_placements_validation_only' => 'bool', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', @@ -3216,11 +3292,10 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'formatting' => 'formatting_enum', 'fov' => 'unsigned int', 'front_z_rotation' => 'float', - 'fun_fact_prompt_id' => 'unsigned int', + 'fun_fact_prompt_id' => 'string', 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', 'instant_game_entry_point_data' => 'string', @@ -3228,7 +3303,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'is_group_linking_post' => 'bool', 'is_voice_clip' => 'bool', 'location_source_id' => 'string', - 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_icon_id' => 'string', 'og_object_id' => 'string', diff --git a/src/FacebookAds/Object/BusinessDataAPI/Event.php b/src/FacebookAds/Object/BusinessDataAPI/Event.php index cd9baa6e4..8b45e42ca 100644 --- a/src/FacebookAds/Object/BusinessDataAPI/Event.php +++ b/src/FacebookAds/Object/BusinessDataAPI/Event.php @@ -81,7 +81,7 @@ public function setEventId($event_id) { /** * Sets UserData object that contains user data. - * @param FacebookAds\Object\BusinessDataAPI\UserData $user_data + * @param \FacebookAds\Object\BusinessDataAPI\UserData $user_data * @return $this */ public function setUserData($user_data) { @@ -92,7 +92,7 @@ public function setUserData($user_data) { /** * Sets CustomData object that includes additional business data about the event. - * @param FacebookAds\Object\BusinessDataAPI\CustomData $custom_data + * @param \FacebookAds\Object\BusinessDataAPI\CustomData $custom_data * @return $this */ public function setCustomData($custom_data) { diff --git a/src/FacebookAds/Object/BusinessDataAPI/EventRequest.php b/src/FacebookAds/Object/BusinessDataAPI/EventRequest.php index 165846974..0bb6871eb 100644 --- a/src/FacebookAds/Object/BusinessDataAPI/EventRequest.php +++ b/src/FacebookAds/Object/BusinessDataAPI/EventRequest.php @@ -53,7 +53,7 @@ public function __construct(string $page_id, array $data = null) { /** * Sets an array of Business Data Event objects - * @param FacebookAds\Object\BusinessDataAPI\Event[] $events An array of Business Data Event objects + * @param \FacebookAds\Object\BusinessDataAPI\Event[] $events An array of Business Data Event objects * @return $this */ public function setEvents($events) { diff --git a/src/FacebookAds/Object/BusinessUser.php b/src/FacebookAds/Object/BusinessUser.php index 6e96765d2..8485492a9 100644 --- a/src/FacebookAds/Object/BusinessUser.php +++ b/src/FacebookAds/Object/BusinessUser.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\BusinessUserFields; +use FacebookAds\Object\Values\BusinessUserInvitedUserTypeValues; use FacebookAds\Object\Values\BusinessUserRoleValues; /** @@ -43,6 +44,7 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['InvitedUserType'] = BusinessUserInvitedUserTypeValues::getInstance()->getValues(); $ref_enums['Role'] = BusinessUserRoleValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/CatalogItemRejectionReasons.php b/src/FacebookAds/Object/CatalogItemRejectionReasons.php index b97054c12..b9a4b500d 100644 --- a/src/FacebookAds/Object/CatalogItemRejectionReasons.php +++ b/src/FacebookAds/Object/CatalogItemRejectionReasons.php @@ -14,7 +14,6 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\CatalogItemRejectionReasonsFields; -use FacebookAds\Object\Values\CatalogItemRejectionReasonsCapabilityValues; /** * This class is auto-generated. @@ -36,7 +35,6 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['Capability'] = CatalogItemRejectionReasonsCapabilityValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/CommerceMerchantSettings.php b/src/FacebookAds/Object/CommerceMerchantSettings.php index ff35b9c03..48a8caa30 100644 --- a/src/FacebookAds/Object/CommerceMerchantSettings.php +++ b/src/FacebookAds/Object/CommerceMerchantSettings.php @@ -146,7 +146,7 @@ public function getCommerceTransactions(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getOrderMAnAgeMEntApps(array $fields = array(), array $params = array(), $pending = false) { + public function getOrderManagementApps(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -169,7 +169,7 @@ public function getOrderMAnAgeMEntApps(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function createOrderMAnAgeMEntApp(array $fields = array(), array $params = array(), $pending = false) { + public function createOrderManagementApp(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/CommerceOrder.php b/src/FacebookAds/Object/CommerceOrder.php index 05fe34c38..8105a3196 100644 --- a/src/FacebookAds/Object/CommerceOrder.php +++ b/src/FacebookAds/Object/CommerceOrder.php @@ -93,7 +93,7 @@ public function getCancellations(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } - public function createCanCellATIOn(array $fields = array(), array $params = array(), $pending = false) { + public function createCancellation(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/AdoptablePet.php b/src/FacebookAds/Object/ContentBlockList.php similarity index 64% rename from src/FacebookAds/Object/AdoptablePet.php rename to src/FacebookAds/Object/ContentBlockList.php index ec76ba039..b175fc9eb 100644 --- a/src/FacebookAds/Object/AdoptablePet.php +++ b/src/FacebookAds/Object/ContentBlockList.php @@ -13,9 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\AdoptablePetFields; -use FacebookAds\Object\Values\AdoptablePetImageFetchStatusValues; -use FacebookAds\Object\Values\AdoptablePetVisibilityValues; +use FacebookAds\Object\Fields\ContentBlockListFields; /** * This class is auto-generated. @@ -26,24 +24,22 @@ * */ -class AdoptablePet extends AbstractCrudObject { +class ContentBlockList extends AbstractCrudObject { /** - * @return AdoptablePetFields + * @return ContentBlockListFields */ public static function getFieldsEnum() { - return AdoptablePetFields::getInstance(); + return ContentBlockListFields::getInstance(); } protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['ImageFetchStatus'] = AdoptablePetImageFetchStatusValues::getInstance()->getValues(); - $ref_enums['Visibility'] = AdoptablePetVisibilityValues::getInstance()->getValues(); return $ref_enums; } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getAppliedAdAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +51,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/applied_ad_accounts', + new AdAccount(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + AdAccount::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,7 +62,7 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getFacebookContent(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -78,10 +74,10 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/facebook_content', + new AbstractCrudObject(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + array(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -89,7 +85,7 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function getVideosMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getInstagramContent(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -101,10 +97,10 @@ public function getVideosMetadata(array $fields = array(), array $params = array $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/videos_metadata', - new DynamicVideoMetadata(), + '/instagram_content', + new IGMedia(), 'EDGE', - DynamicVideoMetadata::getFieldsEnum()->getValues(), + IGMedia::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -125,9 +121,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new AdoptablePet(), + new ContentBlockList(), 'NODE', - AdoptablePet::getFieldsEnum()->getValues(), + ContentBlockList::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/CustomAudience.php b/src/FacebookAds/Object/CustomAudience.php index b340c359e..8dc10d1d9 100644 --- a/src/FacebookAds/Object/CustomAudience.php +++ b/src/FacebookAds/Object/CustomAudience.php @@ -18,7 +18,9 @@ use FacebookAds\Object\Values\CustomAudienceClaimObjectiveValues; use FacebookAds\Object\Values\CustomAudienceContentTypeValues; use FacebookAds\Object\Values\CustomAudienceCustomerFileSourceValues; +use FacebookAds\Object\Values\CustomAudienceSubscriptionInfoValues; use FacebookAds\Object\Values\CustomAudienceSubtypeValues; +use FacebookAds\Object\Values\CustomAudienceUseForProductsValues; use FacebookAds\Object\Values\CustomAudienceTypes; use FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields; use FacebookAds\Object\CustomAudienceNormalizers\EmailNormalizer; @@ -66,7 +68,9 @@ protected static function getReferencedEnums() { $ref_enums['ClaimObjective'] = CustomAudienceClaimObjectiveValues::getInstance()->getValues(); $ref_enums['ContentType'] = CustomAudienceContentTypeValues::getInstance()->getValues(); $ref_enums['CustomerFileSource'] = CustomAudienceCustomerFileSourceValues::getInstance()->getValues(); + $ref_enums['SubscriptionInfo'] = CustomAudienceSubscriptionInfoValues::getInstance()->getValues(); $ref_enums['Subtype'] = CustomAudienceSubtypeValues::getInstance()->getValues(); + $ref_enums['UseForProducts'] = CustomAudienceUseForProductsValues::getInstance()->getValues(); $ref_enums['ActionSource'] = CustomAudienceActionSourceValues::getInstance()->getValues(); return $ref_enums; } @@ -246,7 +250,7 @@ public function getSessions(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function getShareDAccountInfo(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAccountInfo(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/InstantArticleCTA.php b/src/FacebookAds/Object/Dataset.php similarity index 79% rename from src/FacebookAds/Object/InstantArticleCTA.php rename to src/FacebookAds/Object/Dataset.php index 862b3c115..c5afd793e 100644 --- a/src/FacebookAds/Object/InstantArticleCTA.php +++ b/src/FacebookAds/Object/Dataset.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\InstantArticleCTAFields; +use FacebookAds\Object\Fields\DatasetFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class InstantArticleCTA extends AbstractCrudObject { +class Dataset extends AbstractCrudObject { /** - * @return InstantArticleCTAFields + * @return DatasetFields */ public static function getFieldsEnum() { - return InstantArticleCTAFields::getInstance(); + return DatasetFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/Destination.php b/src/FacebookAds/Object/Destination.php index d9a75e614..5f778edfd 100644 --- a/src/FacebookAds/Object/Destination.php +++ b/src/FacebookAds/Object/Destination.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\DestinationFields; use FacebookAds\Object\Values\DestinationImageFetchStatusValues; use FacebookAds\Object\Values\DestinationVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -43,7 +44,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +56,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,22 +67,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/EventSourceGroup.php b/src/FacebookAds/Object/EventSourceGroup.php index 3b19c10cd..efe711a31 100644 --- a/src/FacebookAds/Object/EventSourceGroup.php +++ b/src/FacebookAds/Object/EventSourceGroup.php @@ -46,7 +46,7 @@ protected static function getReferencedEnums() { } - public function getShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -69,7 +69,7 @@ public function getShareDAccounts(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function createShareDAccount(array $fields = array(), array $params = array(), $pending = false) { + public function createSharedAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/ExtendedCredit.php b/src/FacebookAds/Object/ExtendedCredit.php index fc7418959..0861d7678 100644 --- a/src/FacebookAds/Object/ExtendedCredit.php +++ b/src/FacebookAds/Object/ExtendedCredit.php @@ -145,7 +145,56 @@ public function createOwningCreditAllocationConfig(array $fields = array(), arra return $pending ? $request : $request->execute(); } - public function createWhatsAppCreditSharingAnDAttach(array $fields = array(), array $params = array(), $pending = false) { + public function createWhatsAppCreditAttach(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'waba_currency' => 'string', + 'waba_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/whatsapp_credit_attach', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createWhatsAppCreditSharing(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'receiving_business_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/whatsapp_credit_sharing', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createWhatsAppCreditSharingAndAttach(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php b/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php new file mode 100644 index 000000000..78afb6c1d --- /dev/null +++ b/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php @@ -0,0 +1,48 @@ + 'string', + 'id' => 'string', + 'managed_by' => 'string', + 'owned_by' => 'string', + 'parent_advertiser_id' => 'string', + 'sub_vertical' => 'string', + 'tag' => 'list', + 'user_ids' => 'list', + 'vertical' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php b/src/FacebookAds/Object/Fields/ALMEndAdvertiserInfoFields.php similarity index 61% rename from src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php rename to src/FacebookAds/Object/Fields/ALMEndAdvertiserInfoFields.php index eb3334b84..4c7ff4136 100644 --- a/src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php +++ b/src/FacebookAds/Object/Fields/ALMEndAdvertiserInfoFields.php @@ -20,21 +20,21 @@ * */ -class CPASSetupCatalogProgressFields extends AbstractEnum { +class ALMEndAdvertiserInfoFields extends AbstractEnum { - const CHILD_CATALOG_COUNT = 'child_catalog_count'; - const CHILD_CATALOG_ISSUES = 'child_catalog_issues'; + const ESTIMATED_AD_BUDGET = 'estimated_ad_budget'; const ID = 'id'; - const ISSUES = 'issues'; - const NAME = 'name'; + const PARENT_ADVERTISER_ID = 'parent_advertiser_id'; + const PARENT_ADVERTISER_NAME = 'parent_advertiser_name'; + const TAG = 'tag'; public function getFieldTypes() { return array( - 'child_catalog_count' => 'int', - 'child_catalog_issues' => 'list', + 'estimated_ad_budget' => 'int', 'id' => 'string', - 'issues' => 'list', - 'name' => 'string', + 'parent_advertiser_id' => 'string', + 'parent_advertiser_name' => 'string', + 'tag' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/ALMEventFields.php b/src/FacebookAds/Object/Fields/ALMEventFields.php new file mode 100644 index 000000000..55d35d5c8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ALMEventFields.php @@ -0,0 +1,54 @@ + 'list', + 'campaign_ids' => 'list', + 'channel' => 'string', + 'event' => 'string', + 'event_time' => 'datetime', + 'guidance' => 'string', + 'guidance_detail' => 'string', + 'id' => 'string', + 'parent_advertiser_ids' => 'list', + 'reseller_business_id' => 'string', + 'sub_channel' => 'string', + 'user_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstantArticleCTAFields.php b/src/FacebookAds/Object/Fields/ALMGuidanceFields.php similarity index 60% rename from src/FacebookAds/Object/Fields/InstantArticleCTAFields.php rename to src/FacebookAds/Object/Fields/ALMGuidanceFields.php index ceb2068a1..323e5f588 100644 --- a/src/FacebookAds/Object/Fields/InstantArticleCTAFields.php +++ b/src/FacebookAds/Object/Fields/ALMGuidanceFields.php @@ -20,21 +20,19 @@ * */ -class InstantArticleCTAFields extends AbstractEnum { +class ALMGuidanceFields extends AbstractEnum { - const ID = 'id'; - const IS_ENABLED = 'is_enabled'; - const PUBLISHER_DEFINED_VALUE = 'publisher_defined_value'; - const TYPE = 'type'; - const UPDATE_TIME = 'update_time'; + const AD_ACCOUNT_ID = 'ad_account_id'; + const GUIDANCES = 'guidances'; + const PARENT_ADVERTISER_ID = 'parent_advertiser_id'; + const PARENT_ADVERTISER_NAME = 'parent_advertiser_name'; public function getFieldTypes() { return array( - 'id' => 'string', - 'is_enabled' => 'bool', - 'publisher_defined_value' => 'float', - 'type' => 'string', - 'update_time' => 'datetime', + 'ad_account_id' => 'string', + 'guidances' => 'list', + 'parent_advertiser_id' => 'string', + 'parent_advertiser_name' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/ALMGuidanceMetricsFields.php b/src/FacebookAds/Object/Fields/ALMGuidanceMetricsFields.php new file mode 100644 index 000000000..d8b424db2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ALMGuidanceMetricsFields.php @@ -0,0 +1,56 @@ + 'string', + 'adopted_objects' => 'list', + 'guidance_name' => 'string', + 'guidance_type' => 'string', + 'l28_adoption' => 'int', + 'l28_available' => 'int', + 'l28_click' => 'int', + 'l28_conversion' => 'int', + 'l28_impression' => 'int', + 'l28_pitch' => 'int', + 'last_pitch_ds' => 'string', + 'parent_advertiser_id' => 'string', + 'report_ds' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php b/src/FacebookAds/Object/Fields/AdAccountLiveVideoAdvertiserFields.php similarity index 64% rename from src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php rename to src/FacebookAds/Object/Fields/AdAccountLiveVideoAdvertiserFields.php index 69b3f55ca..68edd0a4b 100644 --- a/src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountLiveVideoAdvertiserFields.php @@ -20,17 +20,17 @@ * */ -class DogNotificationSettingsFields extends AbstractEnum { +class AdAccountLiveVideoAdvertiserFields extends AbstractEnum { - const DOG_CHECK_KEY = 'dog_check_key'; - const ID = 'id'; - const SUBSCRIPTION_STATUS_PER_CHANNEL = 'subscription_status_per_channel'; + const IS_LVA_TOGGLE_ON = 'is_lva_toggle_on'; + const LVA_DEFAULT_BUDGET = 'lva_default_budget'; + const SHOULD_SHOW_LVA_TOGGLE = 'should_show_lva_toggle'; public function getFieldTypes() { return array( - 'dog_check_key' => 'string', - 'id' => 'string', - 'subscription_status_per_channel' => 'list>', + 'is_lva_toggle_on' => 'bool', + 'lva_default_budget' => 'int', + 'should_show_lva_toggle' => 'bool', ); } } diff --git a/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php b/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php index a9c2b8ecc..cea869f5b 100644 --- a/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php @@ -23,10 +23,12 @@ class AdAccountRecommendationsFields extends AbstractEnum { const RECOMMENDATIONS = 'recommendations'; + const RECOMMENDATION_SIGNATURE = 'recommendation_signature'; public function getFieldTypes() { return array( 'recommendations' => 'list', + 'recommendation_signature' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php b/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php index 1ecfab531..f383ef082 100644 --- a/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php @@ -39,6 +39,7 @@ class AdAccountUserSettingsFields extends AbstractEnum { const EXPORT_DELETED_ITEMS_WITH_DELIVERY = 'export_deleted_items_with_delivery'; const EXPORT_SUMMARY_ROW = 'export_summary_row'; const HAS_SEEN_GROUPS_COLUMN_FLEXING_EXPERIENCE = 'has_seen_groups_column_flexing_experience'; + const HAS_SEEN_INSTAGRAM_COLUMN_FLEXING_EXPERIENCE = 'has_seen_instagram_column_flexing_experience'; const HAS_SEEN_LEADS_COLUMN_FLEXING_EXPERIENCE = 'has_seen_leads_column_flexing_experience'; const HAS_SEEN_SHOPS_ADS_METRICS_ONBOARDING_TOUR = 'has_seen_shops_ads_metrics_onboarding_tour'; const HAS_SEEN_SHOPS_COLUMN_FLEXING_EXPERIENCE = 'has_seen_shops_column_flexing_experience'; @@ -96,6 +97,7 @@ public function getFieldTypes() { 'export_deleted_items_with_delivery' => 'bool', 'export_summary_row' => 'bool', 'has_seen_groups_column_flexing_experience' => 'bool', + 'has_seen_instagram_column_flexing_experience' => 'bool', 'has_seen_leads_column_flexing_experience' => 'bool', 'has_seen_shops_ads_metrics_onboarding_tour' => 'bool', 'has_seen_shops_column_flexing_experience' => 'bool', diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php index b40cd14a1..6d28a0fdc 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php @@ -28,6 +28,7 @@ class AdAssetFeedSpecFields extends AbstractEnum { const ASSET_CUSTOMIZATION_RULES = 'asset_customization_rules'; const AUTOTRANSLATE = 'autotranslate'; const BODIES = 'bodies'; + const CALL_ADS_CONFIGURATION = 'call_ads_configuration'; const CALL_TO_ACTION_TYPES = 'call_to_action_types'; const CALL_TO_ACTIONS = 'call_to_actions'; const CAPTIONS = 'captions'; @@ -55,6 +56,7 @@ public function getFieldTypes() { 'asset_customization_rules' => 'list', 'autotranslate' => 'list', 'bodies' => 'list', + 'call_ads_configuration' => 'Object', 'call_to_action_types' => 'list', 'call_to_actions' => 'list', 'captions' => 'list', diff --git a/src/FacebookAds/Object/Fields/CatalogItemAppealStatusFields.php b/src/FacebookAds/Object/Fields/AdCampaignConversionValueExpressionSpecFields.php similarity index 64% rename from src/FacebookAds/Object/Fields/CatalogItemAppealStatusFields.php rename to src/FacebookAds/Object/Fields/AdCampaignConversionValueExpressionSpecFields.php index d1cab7873..0c1e701ab 100644 --- a/src/FacebookAds/Object/Fields/CatalogItemAppealStatusFields.php +++ b/src/FacebookAds/Object/Fields/AdCampaignConversionValueExpressionSpecFields.php @@ -20,19 +20,17 @@ * */ -class CatalogItemAppealStatusFields extends AbstractEnum { +class AdCampaignConversionValueExpressionSpecFields extends AbstractEnum { - const HANDLE = 'handle'; - const ITEM_ID = 'item_id'; - const STATUS = 'status'; - const USE_CASES = 'use_cases'; + const ADJUSTMENT_SIGN = 'adjustment_sign'; + const ADJUSTMENT_WEIGHT = 'adjustment_weight'; + const DESTINATION_TYPE = 'destination_type'; public function getFieldTypes() { return array( - 'handle' => 'string', - 'item_id' => 'int', - 'status' => 'Status', - 'use_cases' => 'list', + 'adjustment_sign' => 'string', + 'adjustment_weight' => 'unsigned int', + 'destination_type' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php index e2bc4ee32..f12ee8044 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php @@ -28,8 +28,12 @@ class AdCreativeBrandedContentAdsFields extends AbstractEnum { const FACEBOOK_BOOST_POST_ACCESS_TOKEN = 'facebook_boost_post_access_token'; const INSTAGRAM_BOOST_POST_ACCESS_TOKEN = 'instagram_boost_post_access_token'; const IS_MCA_INTERNAL = 'is_mca_internal'; + const PARENT_SOURCE_FACEBOOK_POST_ID = 'parent_source_facebook_post_id'; + const PARENT_SOURCE_INSTAGRAM_MEDIA_ID = 'parent_source_instagram_media_id'; const PARTNERS = 'partners'; + const PRODUCT_SET_PARTNER_SELECTION_STATUS = 'product_set_partner_selection_status'; const PROMOTED_PAGE_ID = 'promoted_page_id'; + const TESTIMONIAL = 'testimonial'; const UI_VERSION = 'ui_version'; public function getFieldTypes() { @@ -40,8 +44,12 @@ public function getFieldTypes() { 'facebook_boost_post_access_token' => 'string', 'instagram_boost_post_access_token' => 'string', 'is_mca_internal' => 'bool', + 'parent_source_facebook_post_id' => 'string', + 'parent_source_instagram_media_id' => 'string', 'partners' => 'list', + 'product_set_partner_selection_status' => 'string', 'promoted_page_id' => 'string', + 'testimonial' => 'string', 'ui_version' => 'int', ); } diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsPartnersFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsPartnersFields.php index bf7c16df8..e15e3b348 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsPartnersFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsPartnersFields.php @@ -23,6 +23,7 @@ class AdCreativeBrandedContentAdsPartnersFields extends AbstractEnum { const FB_PAGE_ID = 'fb_page_id'; + const HAS_CREATE_ADS_ACCESS = 'has_create_ads_access'; const IDENTITY_TYPE = 'identity_type'; const IG_ASSET_ID = 'ig_asset_id'; const IG_USER_ID = 'ig_user_id'; @@ -30,6 +31,7 @@ class AdCreativeBrandedContentAdsPartnersFields extends AbstractEnum { public function getFieldTypes() { return array( 'fb_page_id' => 'string', + 'has_create_ads_access' => 'bool', 'identity_type' => 'string', 'ig_asset_id' => 'string', 'ig_user_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php b/src/FacebookAds/Object/Fields/AdCreativeDestinationSpecFields.php similarity index 80% rename from src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php rename to src/FacebookAds/Object/Fields/AdCreativeDestinationSpecFields.php index e790ebbde..123fef8a6 100644 --- a/src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeDestinationSpecFields.php @@ -20,13 +20,13 @@ * */ -class ProductCatalogExampleFeedFields extends AbstractEnum { +class AdCreativeDestinationSpecFields extends AbstractEnum { - const EXAMPLE_FEED = 'example_feed'; + const DESTINATION_TYPE = 'destination_type'; public function getFieldTypes() { return array( - 'example_feed' => 'string', + 'destination_type' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php index 8ec11eb08..c1c313549 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php @@ -22,23 +22,11 @@ class AdCreativeFeatureCustomizationsFields extends AbstractEnum { - const BACKGROUND_COLOR = 'background_color'; - const CATALOG_FEED_TAG_NAME = 'catalog_feed_tag_name'; - const FONT_NAME = 'font_name'; - const PRODUCT_RECOMMENDATION_TYPE = 'product_recommendation_type'; const SHOWCASE_CARD_DISPLAY = 'showcase_card_display'; - const TEXT_STYLE = 'text_style'; - const VIDEO_CROP_STYLE = 'video_crop_style'; public function getFieldTypes() { return array( - 'background_color' => 'string', - 'catalog_feed_tag_name' => 'string', - 'font_name' => 'string', - 'product_recommendation_type' => 'string', 'showcase_card_display' => 'string', - 'text_style' => 'string', - 'video_crop_style' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php index 8e3a03fe7..834f17a09 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php @@ -22,10 +22,12 @@ class AdCreativeFeatureDetailsFields extends AbstractEnum { + const CUSTOMIZATIONS = 'customizations'; const ENROLL_STATUS = 'enroll_status'; public function getFieldTypes() { return array( + 'customizations' => 'AdCreativeFeatureCustomizations', 'enroll_status' => 'string', ); } diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php index 2e9f705d9..aa9d7617e 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php @@ -23,6 +23,7 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const ADAPT_TO_PLACEMENT = 'adapt_to_placement'; + const ADD_TEXT_OVERLAY = 'add_text_overlay'; const ADS_WITH_BENEFITS = 'ads_with_benefits'; const ADVANTAGE_PLUS_CREATIVE = 'advantage_plus_creative'; const APP_HIGHLIGHTS = 'app_highlights'; @@ -33,8 +34,17 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const CV_TRANSFORMATION = 'cv_transformation'; const DESCRIPTION_AUTOMATION = 'description_automation'; const DHA_OPTIMIZATION = 'dha_optimization'; + const DYNAMIC_PARTNER_CONTENT = 'dynamic_partner_content'; + const ENHANCE_CTA = 'enhance_cta'; + const FB_FEED_TAG = 'fb_feed_tag'; + const FB_REELS_TAG = 'fb_reels_tag'; + const FB_STORY_TAG = 'fb_story_tag'; const FEED_CAPTION_OPTIMIZATION = 'feed_caption_optimization'; + const IG_FEED_TAG = 'ig_feed_tag'; const IG_GLADOS_FEED = 'ig_glados_feed'; + const IG_REELS_TAG = 'ig_reels_tag'; + const IG_STREAM_TAG = 'ig_stream_tag'; + const IMAGE_ANIMATION = 'image_animation'; const IMAGE_AUTO_CROP = 'image_auto_crop'; const IMAGE_BACKGROUND_GEN = 'image_background_gen'; const IMAGE_BRIGHTNESS_AND_CONTRAST = 'image_brightness_and_contrast'; @@ -43,9 +53,11 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const IMAGE_TOUCHUPS = 'image_touchups'; const IMAGE_UNCROP = 'image_uncrop'; const INLINE_COMMENT = 'inline_comment'; + const LOCAL_STORE_EXTENSION = 'local_store_extension'; const MEDIA_LIQUIDITY_ANIMATED_IMAGE = 'media_liquidity_animated_image'; const MEDIA_ORDER = 'media_order'; const MEDIA_TYPE_AUTOMATION = 'media_type_automation'; + const PAC_RELAXATION = 'pac_relaxation'; const PRODUCT_EXTENSIONS = 'product_extensions'; const PRODUCT_METADATA_AUTOMATION = 'product_metadata_automation'; const PRODUCT_TAGS = 'product_tags'; @@ -58,10 +70,12 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const VIDEO_AUTO_CROP = 'video_auto_crop'; const VIDEO_FILTERING = 'video_filtering'; const VIDEO_HIGHLIGHT = 'video_highlight'; + const VIDEO_UNCROP = 'video_uncrop'; public function getFieldTypes() { return array( 'adapt_to_placement' => 'AdCreativeFeatureDetails', + 'add_text_overlay' => 'AdCreativeFeatureDetails', 'ads_with_benefits' => 'AdCreativeFeatureDetails', 'advantage_plus_creative' => 'AdCreativeFeatureDetails', 'app_highlights' => 'AdCreativeFeatureDetails', @@ -72,8 +86,17 @@ public function getFieldTypes() { 'cv_transformation' => 'AdCreativeFeatureDetails', 'description_automation' => 'AdCreativeFeatureDetails', 'dha_optimization' => 'AdCreativeFeatureDetails', + 'dynamic_partner_content' => 'AdCreativeFeatureDetails', + 'enhance_cta' => 'AdCreativeFeatureDetails', + 'fb_feed_tag' => 'AdCreativeFeatureDetails', + 'fb_reels_tag' => 'AdCreativeFeatureDetails', + 'fb_story_tag' => 'AdCreativeFeatureDetails', 'feed_caption_optimization' => 'AdCreativeFeatureDetails', + 'ig_feed_tag' => 'AdCreativeFeatureDetails', 'ig_glados_feed' => 'AdCreativeFeatureDetails', + 'ig_reels_tag' => 'AdCreativeFeatureDetails', + 'ig_stream_tag' => 'AdCreativeFeatureDetails', + 'image_animation' => 'AdCreativeFeatureDetails', 'image_auto_crop' => 'AdCreativeFeatureDetails', 'image_background_gen' => 'AdCreativeFeatureDetails', 'image_brightness_and_contrast' => 'AdCreativeFeatureDetails', @@ -82,9 +105,11 @@ public function getFieldTypes() { 'image_touchups' => 'AdCreativeFeatureDetails', 'image_uncrop' => 'AdCreativeFeatureDetails', 'inline_comment' => 'AdCreativeFeatureDetails', + 'local_store_extension' => 'AdCreativeFeatureDetails', 'media_liquidity_animated_image' => 'AdCreativeFeatureDetails', 'media_order' => 'AdCreativeFeatureDetails', 'media_type_automation' => 'AdCreativeFeatureDetails', + 'pac_relaxation' => 'AdCreativeFeatureDetails', 'product_extensions' => 'AdCreativeFeatureDetails', 'product_metadata_automation' => 'AdCreativeFeatureDetails', 'product_tags' => 'AdCreativeFeatureDetails', @@ -97,6 +122,7 @@ public function getFieldTypes() { 'video_auto_crop' => 'AdCreativeFeatureDetails', 'video_filtering' => 'AdCreativeFeatureDetails', 'video_highlight' => 'AdCreativeFeatureDetails', + 'video_uncrop' => 'AdCreativeFeatureDetails', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeFields.php b/src/FacebookAds/Object/Fields/AdCreativeFields.php index eb428b550..275bd31f4 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFields.php @@ -63,6 +63,7 @@ class AdCreativeFields extends AbstractEnum { const LINK_DESTINATION_DISPLAY_URL = 'link_destination_display_url'; const LINK_OG_ID = 'link_og_id'; const LINK_URL = 'link_url'; + const MESSENGER_SPONSORED_MESSAGE = 'messenger_sponsored_message'; const NAME = 'name'; const OBJECT_ID = 'object_id'; const OBJECT_STORE_URL = 'object_store_url'; @@ -136,6 +137,7 @@ public function getFieldTypes() { 'link_destination_display_url' => 'string', 'link_og_id' => 'string', 'link_url' => 'string', + 'messenger_sponsored_message' => 'string', 'name' => 'string', 'object_id' => 'string', 'object_store_url' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataCallToActionValueFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataCallToActionValueFields.php index 5467cb0b3..4b06784d4 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeLinkDataCallToActionValueFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataCallToActionValueFields.php @@ -30,6 +30,7 @@ class AdCreativeLinkDataCallToActionValueFields extends AbstractEnum { const LINK = 'link'; const LINK_CAPTION = 'link_caption'; const LINK_FORMAT = 'link_format'; + const OBJECT_STORE_URLS = 'object_store_urls'; const PAGE = 'page'; const PRODUCT_LINK = 'product_link'; const WHATSAPP_NUMBER = 'whatsapp_number'; @@ -44,6 +45,7 @@ public function getFieldTypes() { 'link' => 'string', 'link_caption' => 'string', 'link_format' => 'string', + 'object_store_urls' => 'list', 'page' => 'string', 'product_link' => 'string', 'whatsapp_number' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php index 754215036..d4c814177 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php @@ -52,6 +52,7 @@ class AdCreativeLinkDataFields extends AbstractEnum { const PICTURE = 'picture'; const POST_CLICK_CONFIGURATION = 'post_click_configuration'; const PREFERRED_IMAGE_TAGS = 'preferred_image_tags'; + const PREFERRED_VIDEO_TAGS = 'preferred_video_tags'; const RETAILER_ITEM_IDS = 'retailer_item_ids'; const SHOW_MULTIPLE_IMAGES = 'show_multiple_images'; const STATIC_FALLBACK_SPEC = 'static_fallback_spec'; @@ -89,6 +90,7 @@ public function getFieldTypes() { 'picture' => 'string', 'post_click_configuration' => 'AdCreativePostClickConfiguration', 'preferred_image_tags' => 'list', + 'preferred_video_tags' => 'list', 'retailer_item_ids' => 'list', 'show_multiple_images' => 'bool', 'static_fallback_spec' => 'AdCreativeStaticFallbackSpec', diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataImageLayerSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataImageLayerSpecFields.php index 3c214e06c..2143ed06c 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeLinkDataImageLayerSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataImageLayerSpecFields.php @@ -24,6 +24,7 @@ class AdCreativeLinkDataImageLayerSpecFields extends AbstractEnum { const BLENDING_MODE = 'blending_mode'; const CONTENT = 'content'; + const FRAME_AUTO_SHOW_ENROLL_STATUS = 'frame_auto_show_enroll_status'; const FRAME_IMAGE_HASH = 'frame_image_hash'; const FRAME_SOURCE = 'frame_source'; const IMAGE_SOURCE = 'image_source'; @@ -40,6 +41,7 @@ public function getFieldTypes() { return array( 'blending_mode' => 'BlendingMode', 'content' => 'Object', + 'frame_auto_show_enroll_status' => 'string', 'frame_image_hash' => 'string', 'frame_source' => 'FrameSource', 'image_source' => 'ImageSource', diff --git a/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php index 5ce4ea571..f53ab1860 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php @@ -25,6 +25,7 @@ class AdCreativeMarketingMessageStructuredSpecFields extends AbstractEnum { const BUTTONS = 'buttons'; const FOOTER = 'footer'; const GREETING = 'greeting'; + const IS_OPTIMIZED_TEXT = 'is_optimized_text'; const LANGUAGE = 'language'; const REFERENCED_ADGROUP_ID = 'referenced_adgroup_id'; const WHATS_APP_BUSINESS_PHONE_NUMBER_ID = 'whats_app_business_phone_number_id'; @@ -34,6 +35,7 @@ public function getFieldTypes() { 'buttons' => 'list', 'footer' => 'string', 'greeting' => 'string', + 'is_optimized_text' => 'bool', 'language' => 'string', 'referenced_adgroup_id' => 'string', 'whats_app_business_phone_number_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php index 004db2471..f3992f6d7 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php @@ -26,8 +26,10 @@ class AdCreativeObjectStorySpecFields extends AbstractEnum { const LINK_DATA = 'link_data'; const PAGE_ID = 'page_id'; const PHOTO_DATA = 'photo_data'; + const PRODUCT_DATA = 'product_data'; const TEMPLATE_DATA = 'template_data'; const TEXT_DATA = 'text_data'; + const THREADS_USER_ID = 'threads_user_id'; const VIDEO_DATA = 'video_data'; public function getFieldTypes() { @@ -36,8 +38,10 @@ public function getFieldTypes() { 'link_data' => 'AdCreativeLinkData', 'page_id' => 'string', 'photo_data' => 'AdCreativePhotoData', + 'product_data' => 'list', 'template_data' => 'AdCreativeLinkData', 'text_data' => 'AdCreativeTextData', + 'threads_user_id' => 'string', 'video_data' => 'AdCreativeVideoData', ); } diff --git a/src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php b/src/FacebookAds/Object/Fields/AdCreativeProductDataFields.php similarity index 72% rename from src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php rename to src/FacebookAds/Object/Fields/AdCreativeProductDataFields.php index b520d4523..71553c9d8 100644 --- a/src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeProductDataFields.php @@ -20,15 +20,15 @@ * */ -class ProductCatalogMicrodataStatsPixelInfoFields extends AbstractEnum { +class AdCreativeProductDataFields extends AbstractEnum { - const IS_ALREADY_CONNECTED = 'is_already_connected'; - const PIXEL_ID = 'pixel_id'; + const PRODUCT_ID = 'product_id'; + const PRODUCT_SOURCE = 'product_source'; public function getFieldTypes() { return array( - 'is_already_connected' => 'bool', - 'pixel_id' => 'string', + 'product_id' => 'string', + 'product_source' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php index 477f9d99e..d91524769 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php @@ -22,11 +22,17 @@ class AdCreativeSiteLinksSpecFields extends AbstractEnum { + const SITE_LINK_IMAGE_HASH = 'site_link_image_hash'; + const SITE_LINK_IMAGE_URL = 'site_link_image_url'; + const SITE_LINK_RECOMMENDATION_TYPE = 'site_link_recommendation_type'; const SITE_LINK_TITLE = 'site_link_title'; const SITE_LINK_URL = 'site_link_url'; public function getFieldTypes() { return array( + 'site_link_image_hash' => 'string', + 'site_link_image_url' => 'string', + 'site_link_recommendation_type' => 'string', 'site_link_title' => 'string', 'site_link_url' => 'string', ); diff --git a/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php index e19ec1bf4..065085a0d 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php @@ -23,6 +23,7 @@ class AdCreativeSourcingSpecFields extends AbstractEnum { const ASSOCIATED_PRODUCT_SET_ID = 'associated_product_set_id'; + const ENABLE_SOCIAL_FEEDBACK_PRESERVATION = 'enable_social_feedback_preservation'; const PROMOTION_METADATA_SPEC = 'promotion_metadata_spec'; const SITE_LINKS_SPEC = 'site_links_spec'; const SOURCE_URL = 'source_url'; @@ -30,6 +31,7 @@ class AdCreativeSourcingSpecFields extends AbstractEnum { public function getFieldTypes() { return array( 'associated_product_set_id' => 'string', + 'enable_social_feedback_preservation' => 'bool', 'promotion_metadata_spec' => 'list', 'site_links_spec' => 'list', 'source_url' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdFields.php b/src/FacebookAds/Object/Fields/AdFields.php index c107ea804..d0a86cb11 100644 --- a/src/FacebookAds/Object/Fields/AdFields.php +++ b/src/FacebookAds/Object/Fields/AdFields.php @@ -50,6 +50,7 @@ class AdFields extends AbstractEnum { const ISSUES_INFO = 'issues_info'; const LAST_UPDATED_BY_APP_ID = 'last_updated_by_app_id'; const NAME = 'name'; + const PLACEMENT = 'placement'; const PREVIEW_SHAREABLE_LINK = 'preview_shareable_link'; const PRIORITY = 'priority'; const RECOMMENDATIONS = 'recommendations'; @@ -98,6 +99,7 @@ public function getFieldTypes() { 'issues_info' => 'list', 'last_updated_by_app_id' => 'string', 'name' => 'string', + 'placement' => 'Placement', 'preview_shareable_link' => 'string', 'priority' => 'unsigned int', 'recommendations' => 'list', diff --git a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php index ada6d7cad..6bd1ea03e 100644 --- a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php +++ b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php @@ -23,12 +23,14 @@ class AdPromotedObjectFields extends AbstractEnum { const APPLICATION_ID = 'application_id'; + const BOOSTED_PRODUCT_SET_ID = 'boosted_product_set_id'; const CONVERSION_GOAL_ID = 'conversion_goal_id'; const CUSTOM_CONVERSION_ID = 'custom_conversion_id'; const CUSTOM_EVENT_STR = 'custom_event_str'; const CUSTOM_EVENT_TYPE = 'custom_event_type'; const EVENT_ID = 'event_id'; const FUNDRAISER_CAMPAIGN_ID = 'fundraiser_campaign_id'; + const LEAD_ADS_FORM_EVENT_SOURCE_TYPE = 'lead_ads_form_event_source_type'; const MCME_CONVERSION_ID = 'mcme_conversion_id'; const OBJECT_STORE_URL = 'object_store_url'; const OFFER_ID = 'offer_id'; @@ -46,17 +48,21 @@ class AdPromotedObjectFields extends AbstractEnum { const PRODUCT_SET = 'product_set'; const PRODUCT_SET_ID = 'product_set_id'; const RETENTION_DAYS = 'retention_days'; + const VALUE_SEMANTIC_TYPE = 'value_semantic_type'; + const VARIATION = 'variation'; const WHATSAPP_PHONE_NUMBER = 'whatsapp_phone_number'; public function getFieldTypes() { return array( 'application_id' => 'string', + 'boosted_product_set_id' => 'string', 'conversion_goal_id' => 'string', 'custom_conversion_id' => 'string', 'custom_event_str' => 'string', 'custom_event_type' => 'CustomEventType', 'event_id' => 'string', 'fundraiser_campaign_id' => 'string', + 'lead_ads_form_event_source_type' => 'string', 'mcme_conversion_id' => 'string', 'object_store_url' => 'string', 'offer_id' => 'string', @@ -74,6 +80,8 @@ public function getFieldTypes() { 'product_set' => 'ProductSet', 'product_set_id' => 'string', 'retention_days' => 'string', + 'value_semantic_type' => 'string', + 'variation' => 'string', 'whatsapp_phone_number' => 'string', ); } diff --git a/src/FacebookAds/Object/Fields/AdRuleFields.php b/src/FacebookAds/Object/Fields/AdRuleFields.php index ec7b130e3..bec19f6f6 100644 --- a/src/FacebookAds/Object/Fields/AdRuleFields.php +++ b/src/FacebookAds/Object/Fields/AdRuleFields.php @@ -25,6 +25,7 @@ class AdRuleFields extends AbstractEnum { const ACCOUNT_ID = 'account_id'; const CREATED_BY = 'created_by'; const CREATED_TIME = 'created_time'; + const DISABLE_ERROR_CODE = 'disable_error_code'; const EVALUATION_SPEC = 'evaluation_spec'; const EXECUTION_SPEC = 'execution_spec'; const ID = 'id'; @@ -39,6 +40,7 @@ public function getFieldTypes() { 'account_id' => 'string', 'created_by' => 'User', 'created_time' => 'datetime', + 'disable_error_code' => 'int', 'evaluation_spec' => 'AdRuleEvaluationSpec', 'execution_spec' => 'AdRuleExecutionSpec', 'id' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdSetFields.php b/src/FacebookAds/Object/Fields/AdSetFields.php index 44a142245..813725249 100644 --- a/src/FacebookAds/Object/Fields/AdSetFields.php +++ b/src/FacebookAds/Object/Fields/AdSetFields.php @@ -33,6 +33,7 @@ class AdSetFields extends AbstractEnum { const BID_INFO = 'bid_info'; const BID_STRATEGY = 'bid_strategy'; const BILLING_EVENT = 'billing_event'; + const BRAND_SAFETY_CONFIG = 'brand_safety_config'; const BUDGET_REMAINING = 'budget_remaining'; const CAMPAIGN = 'campaign'; const CAMPAIGN_ACTIVE_TIME = 'campaign_active_time'; @@ -62,6 +63,8 @@ class AdSetFields extends AbstractEnum { const LIFETIME_IMPS = 'lifetime_imps'; const LIFETIME_MIN_SPEND_TARGET = 'lifetime_min_spend_target'; const LIFETIME_SPEND_CAP = 'lifetime_spend_cap'; + const MAX_BUDGET_SPEND_PERCENTAGE = 'max_budget_spend_percentage'; + const MIN_BUDGET_SPEND_PERCENTAGE = 'min_budget_spend_percentage'; const MULTI_OPTIMIZATION_GOAL_WEIGHT = 'multi_optimization_goal_weight'; const NAME = 'name'; const OPTIMIZATION_GOAL = 'optimization_goal'; @@ -108,6 +111,7 @@ public function getFieldTypes() { 'bid_info' => 'map', 'bid_strategy' => 'BidStrategy', 'billing_event' => 'BillingEvent', + 'brand_safety_config' => 'BrandSafetyCampaignConfig', 'budget_remaining' => 'string', 'campaign' => 'Campaign', 'campaign_active_time' => 'string', @@ -137,6 +141,8 @@ public function getFieldTypes() { 'lifetime_imps' => 'int', 'lifetime_min_spend_target' => 'string', 'lifetime_spend_cap' => 'string', + 'max_budget_spend_percentage' => 'string', + 'min_budget_spend_percentage' => 'string', 'multi_optimization_goal_weight' => 'string', 'name' => 'string', 'optimization_goal' => 'OptimizationGoal', diff --git a/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php b/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php index 1332e8c0d..f639f5a38 100644 --- a/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php +++ b/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php @@ -22,11 +22,15 @@ class AdjacentContentDeliveryReportFields extends AbstractEnum { + const AD_ID = 'ad_id'; const CONTENT = 'content'; + const IMPRESSION_ID = 'impression_id'; public function getFieldTypes() { return array( + 'ad_id' => 'string', 'content' => 'list', + 'impression_id' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdoptablePetFields.php b/src/FacebookAds/Object/Fields/AdoptablePetFields.php deleted file mode 100644 index 57b98ff54..000000000 --- a/src/FacebookAds/Object/Fields/AdoptablePetFields.php +++ /dev/null @@ -1,88 +0,0 @@ - 'string', - 'adoption_application_form_url' => 'string', - 'age_bucket' => 'string', - 'animal_type' => 'string', - 'applinks' => 'CatalogItemAppLinks', - 'availability' => 'string', - 'breed' => 'string', - 'category_specific_fields' => 'CatalogSubVerticalList', - 'coat_length' => 'string', - 'color' => 'string', - 'currency' => 'string', - 'description' => 'string', - 'features' => 'list', - 'gender' => 'string', - 'id' => 'string', - 'image_fetch_status' => 'ImageFetchStatus', - 'images' => 'list', - 'name' => 'string', - 'price' => 'string', - 'sanitized_images' => 'list', - 'secondary_color' => 'string', - 'shelter_email' => 'string', - 'shelter_name' => 'string', - 'shelter_page_id' => 'Page', - 'shelter_phone' => 'string', - 'size' => 'string', - 'tertiary_color' => 'string', - 'url' => 'string', - 'visibility' => 'Visibility', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/AdsInsightsFields.php b/src/FacebookAds/Object/Fields/AdsInsightsFields.php index 2a5677c9f..7df7a3e38 100644 --- a/src/FacebookAds/Object/Fields/AdsInsightsFields.php +++ b/src/FacebookAds/Object/Fields/AdsInsightsFields.php @@ -31,7 +31,6 @@ class AdsInsightsFields extends AbstractEnum { const AD_ID = 'ad_id'; const AD_IMPRESSION_ACTIONS = 'ad_impression_actions'; const AD_NAME = 'ad_name'; - const ADJUSTED_OFFLINE_PURCHASE = 'adjusted_offline_purchase'; const ADSET_END = 'adset_end'; const ADSET_ID = 'adset_id'; const ADSET_NAME = 'adset_name'; @@ -41,6 +40,7 @@ class AdsInsightsFields extends AbstractEnum { const AUCTION_BID = 'auction_bid'; const AUCTION_COMPETITIVENESS = 'auction_competitiveness'; const AUCTION_MAX_COMPETITOR_BID = 'auction_max_competitor_bid'; + const AVERAGE_PURCHASES_CONVERSION_VALUE = 'average_purchases_conversion_value'; const BUYING_TYPE = 'buying_type'; const CAMPAIGN_ID = 'campaign_id'; const CAMPAIGN_NAME = 'campaign_name'; @@ -170,7 +170,6 @@ public function getFieldTypes() { 'ad_id' => 'string', 'ad_impression_actions' => 'list', 'ad_name' => 'string', - 'adjusted_offline_purchase' => 'list', 'adset_end' => 'string', 'adset_id' => 'string', 'adset_name' => 'string', @@ -180,6 +179,7 @@ public function getFieldTypes() { 'auction_bid' => 'string', 'auction_competitiveness' => 'string', 'auction_max_competitor_bid' => 'string', + 'average_purchases_conversion_value' => 'list', 'buying_type' => 'string', 'campaign_id' => 'string', 'campaign_name' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdsQuickViewsFields.php b/src/FacebookAds/Object/Fields/AdsQuickViewsFields.php new file mode 100644 index 000000000..ed2d8138f --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsQuickViewsFields.php @@ -0,0 +1,46 @@ + 'list', + 'breakdowns' => 'list', + 'column_fields' => 'list', + 'description' => 'string', + 'id' => 'string', + 'name' => 'string', + 'permission' => 'string', + 'sort' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php b/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php index 3bbb8285f..e4edb8670 100644 --- a/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php +++ b/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php @@ -23,7 +23,9 @@ class AdsUserSettingsFields extends AbstractEnum { const A_PLUS_C_SURVEY_SEEN = 'a_plus_c_survey_seen'; + const ADD_OVERLAYS_OPT_IN_STATUS = 'add_overlays_opt_in_status'; const ADGROUP_NAME_TEMPLATE = 'adgroup_name_template'; + const ADS_CS_CATALOG_OPT_OUT_TIMESTAMP = 'ads_cs_catalog_opt_out_timestamp'; const ADS_TOOL_VISITS = 'ads_tool_visits'; const APLUSC_CAROUSEL_CDA_OPT_IN_STATUS = 'aplusc_carousel_cda_opt_in_status'; const APLUSC_CAROUSEL_INLINE_COMMENT_OPT_IN_STATUS = 'aplusc_carousel_inline_comment_opt_in_status'; @@ -32,6 +34,7 @@ class AdsUserSettingsFields extends AbstractEnum { const AUTOFLOW_LITE_OPT_IN_STATUS = 'autoflow_lite_opt_in_status'; const AUTOFLOW_LITE_SHOULD_OPT_IN = 'autoflow_lite_should_opt_in'; const BLENDED_ADS_CREATION_DEFAULTING_OPT_IN_STATUS = 'blended_ads_creation_defaulting_opt_in_status'; + const BLENDED_ADS_CREATION_DEFAULTING_OPT_OUT_CAMPAIGN_GROUP_IDS = 'blended_ads_creation_defaulting_opt_out_campaign_group_ids'; const BOOKMARKED_PAGES = 'bookmarked_pages'; const CAMPAIGN_GROUP_NAME_TEMPLATE = 'campaign_group_name_template'; const CAMPAIGN_NAME_TEMPLATE = 'campaign_name_template'; @@ -42,13 +45,13 @@ class AdsUserSettingsFields extends AbstractEnum { const FOCUS_MODE_DEFAULT = 'focus_mode_default'; const GEN_AI_ALPHA_TEST_STATUS = 'gen_ai_alpha_test_status'; const ID = 'id'; + const IMAGE_BACKGROUND_GENERATION_OPT_IN_STATUS = 'image_background_generation_opt_in_status'; const IMAGE_EXPANSION_OPT_IN_STATUS = 'image_expansion_opt_in_status'; const IS_ADS_AI_CONSENTED = 'is_ads_ai_consented'; const IS_CBO_DEFAULT_ON = 'is_cbo_default_on'; const IS_SE_REMOVAL_GUIDANCE_DISMISSED = 'is_se_removal_guidance_dismissed'; const LAST_USED_POST_FORMAT = 'last_used_post_format'; const LAST_VISITED_TIME = 'last_visited_time'; - const MULTI_ADS_SETTINGS = 'multi_ads_settings'; const MUSIC_ON_REELS_OPT_IN = 'music_on_reels_opt_in'; const MUTED_CBO_MIDFLIGHT_EDUCATION_MESSAGES = 'muted_cbo_midflight_education_messages'; const ONSITE_DESTINATION_OPTIMIZATION_OPT_IN = 'onsite_destination_optimization_opt_in'; @@ -74,6 +77,7 @@ class AdsUserSettingsFields extends AbstractEnum { const SYD_CAMPAIGN_TRENDS_METRIC = 'syd_campaign_trends_metric'; const TOTAL_COUPON_SYD_DISMISSALS = 'total_coupon_syd_dismissals'; const TOTAL_COUPON_UPSELL_DISMISSALS = 'total_coupon_upsell_dismissals'; + const URL_PREFILL_REMOVAL_TIMESTAMP = 'url_prefill_removal_timestamp'; const USE_PE_CREATE_FLOW = 'use_pe_create_flow'; const USE_STEPPER_PRIMARY_ENTRY = 'use_stepper_primary_entry'; const USER = 'user'; @@ -81,7 +85,9 @@ class AdsUserSettingsFields extends AbstractEnum { public function getFieldTypes() { return array( 'a_plus_c_survey_seen' => 'bool', + 'add_overlays_opt_in_status' => 'string', 'adgroup_name_template' => 'Object', + 'ads_cs_catalog_opt_out_timestamp' => 'list>', 'ads_tool_visits' => 'list', 'aplusc_carousel_cda_opt_in_status' => 'string', 'aplusc_carousel_inline_comment_opt_in_status' => 'string', @@ -90,6 +96,7 @@ public function getFieldTypes() { 'autoflow_lite_opt_in_status' => 'string', 'autoflow_lite_should_opt_in' => 'bool', 'blended_ads_creation_defaulting_opt_in_status' => 'string', + 'blended_ads_creation_defaulting_opt_out_campaign_group_ids' => 'list', 'bookmarked_pages' => 'list', 'campaign_group_name_template' => 'Object', 'campaign_name_template' => 'Object', @@ -100,13 +107,13 @@ public function getFieldTypes() { 'focus_mode_default' => 'string', 'gen_ai_alpha_test_status' => 'int', 'id' => 'string', + 'image_background_generation_opt_in_status' => 'string', 'image_expansion_opt_in_status' => 'string', 'is_ads_ai_consented' => 'bool', 'is_cbo_default_on' => 'bool', 'is_se_removal_guidance_dismissed' => 'bool', 'last_used_post_format' => 'string', 'last_visited_time' => 'datetime', - 'multi_ads_settings' => 'list>', 'music_on_reels_opt_in' => 'list>', 'muted_cbo_midflight_education_messages' => 'list', 'onsite_destination_optimization_opt_in' => 'string', @@ -132,6 +139,7 @@ public function getFieldTypes() { 'syd_campaign_trends_metric' => 'string', 'total_coupon_syd_dismissals' => 'int', 'total_coupon_upsell_dismissals' => 'int', + 'url_prefill_removal_timestamp' => 'int', 'use_pe_create_flow' => 'bool', 'use_stepper_primary_entry' => 'bool', 'user' => 'User', diff --git a/src/FacebookAds/Object/Fields/BrandSafetyCampaignConfigFields.php b/src/FacebookAds/Object/Fields/BrandSafetyCampaignConfigFields.php new file mode 100644 index 000000000..dfd50a432 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BrandSafetyCampaignConfigFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessRoleRequestFields.php b/src/FacebookAds/Object/Fields/BusinessRoleRequestFields.php index 61c93d4ca..c879e0212 100644 --- a/src/FacebookAds/Object/Fields/BusinessRoleRequestFields.php +++ b/src/FacebookAds/Object/Fields/BusinessRoleRequestFields.php @@ -30,6 +30,7 @@ class BusinessRoleRequestFields extends AbstractEnum { const FINANCE_ROLE = 'finance_role'; const ID = 'id'; const INVITE_LINK = 'invite_link'; + const INVITED_USER_TYPE = 'invited_user_type'; const IP_ROLE = 'ip_role'; const OWNER = 'owner'; const ROLE = 'role'; @@ -47,6 +48,7 @@ public function getFieldTypes() { 'finance_role' => 'string', 'id' => 'string', 'invite_link' => 'string', + 'invited_user_type' => 'list', 'ip_role' => 'string', 'owner' => 'Business', 'role' => 'string', diff --git a/src/FacebookAds/Object/Fields/BusinessUserFields.php b/src/FacebookAds/Object/Fields/BusinessUserFields.php index 67fd5a6f3..7fad31cb1 100644 --- a/src/FacebookAds/Object/Fields/BusinessUserFields.php +++ b/src/FacebookAds/Object/Fields/BusinessUserFields.php @@ -36,6 +36,7 @@ class BusinessUserFields extends AbstractEnum { const ROLE = 'role'; const TITLE = 'title'; const TWO_FAC_STATUS = 'two_fac_status'; + const INVITED_USER_TYPE = 'invited_user_type'; public function getFieldTypes() { return array( @@ -53,6 +54,7 @@ public function getFieldTypes() { 'role' => 'string', 'title' => 'string', 'two_fac_status' => 'string', + 'invited_user_type' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php b/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php index c403ff4d5..8d0601f9d 100644 --- a/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php +++ b/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php @@ -25,7 +25,9 @@ class CTWAWhatsAppNumbersInfoFields extends AbstractEnum { const CAN_MANAGE_WA_FLOWS = 'can_manage_wa_flows'; const FORMATTED_WHATSAPP_NUMBER = 'formatted_whatsapp_number'; const IS_BUSINESS_NUMBER = 'is_business_number'; + const NUMBER_COUNTRY_PREFIX = 'number_country_prefix'; const PAGE_WHATSAPP_NUMBER_ID = 'page_whatsapp_number_id'; + const WABA_ID = 'waba_id'; const WHATSAPP_NUMBER = 'whatsapp_number'; const WHATSAPP_SMB_DEVICE = 'whatsapp_smb_device'; @@ -34,7 +36,9 @@ public function getFieldTypes() { 'can_manage_wa_flows' => 'bool', 'formatted_whatsapp_number' => 'string', 'is_business_number' => 'bool', + 'number_country_prefix' => 'string', 'page_whatsapp_number_id' => 'string', + 'waba_id' => 'string', 'whatsapp_number' => 'string', 'whatsapp_smb_device' => 'string', ); diff --git a/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php b/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php index eddb19832..61fc1c36b 100644 --- a/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php +++ b/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php @@ -25,20 +25,24 @@ class CTXPartnerAppWelcomeMessageFlowFields extends AbstractEnum { const COMPATIBLE_PLATFORMS = 'compatible_platforms'; const ELIGIBLE_PLATFORMS = 'eligible_platforms'; const ID = 'id'; + const IS_IG_ONLY_FLOW = 'is_ig_only_flow'; const IS_USED_IN_AD = 'is_used_in_ad'; const LAST_UPDATE_TIME = 'last_update_time'; const NAME = 'name'; const WELCOME_MESSAGE_FLOW = 'welcome_message_flow'; + const WELCOME_MESSAGE_SEQUENCE = 'welcome_message_sequence'; public function getFieldTypes() { return array( 'compatible_platforms' => 'list', 'eligible_platforms' => 'list', 'id' => 'string', + 'is_ig_only_flow' => 'bool', 'is_used_in_ad' => 'bool', 'last_update_time' => 'datetime', 'name' => 'string', 'welcome_message_flow' => 'string', + 'welcome_message_sequence' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/CampaignFields.php b/src/FacebookAds/Object/Fields/CampaignFields.php index be092ab28..dc09ee3cd 100644 --- a/src/FacebookAds/Object/Fields/CampaignFields.php +++ b/src/FacebookAds/Object/Fields/CampaignFields.php @@ -53,6 +53,7 @@ class CampaignFields extends AbstractEnum { const SMART_PROMOTION_TYPE = 'smart_promotion_type'; const SOURCE_CAMPAIGN = 'source_campaign'; const SOURCE_CAMPAIGN_ID = 'source_campaign_id'; + const SOURCE_RECOMMENDATION_TYPE = 'source_recommendation_type'; const SPECIAL_AD_CATEGORIES = 'special_ad_categories'; const SPECIAL_AD_CATEGORY = 'special_ad_category'; const SPECIAL_AD_CATEGORY_COUNTRY = 'special_ad_category_country'; @@ -99,6 +100,7 @@ public function getFieldTypes() { 'smart_promotion_type' => 'string', 'source_campaign' => 'Campaign', 'source_campaign_id' => 'string', + 'source_recommendation_type' => 'string', 'special_ad_categories' => 'list', 'special_ad_category' => 'string', 'special_ad_category_country' => 'list', diff --git a/src/FacebookAds/Object/Fields/CatalogItemRejectionReasonsFields.php b/src/FacebookAds/Object/Fields/CatalogItemRejectionReasonsFields.php index 3cbd855d0..7c24f6d9e 100644 --- a/src/FacebookAds/Object/Fields/CatalogItemRejectionReasonsFields.php +++ b/src/FacebookAds/Object/Fields/CatalogItemRejectionReasonsFields.php @@ -27,7 +27,7 @@ class CatalogItemRejectionReasonsFields extends AbstractEnum { public function getFieldTypes() { return array( - 'capability' => 'Capability', + 'capability' => 'string', 'rejection_information' => 'list', ); } diff --git a/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php b/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php index 14ca5c072..2333c516a 100644 --- a/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php +++ b/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php @@ -27,8 +27,6 @@ class CatalogSmartPixelSettingsFields extends AbstractEnum { const CATALOG = 'catalog'; const CBB_CUSTOM_OVERRIDE_FILTERS = 'cbb_custom_override_filters'; const CBB_DEFAULT_FILTER = 'cbb_default_filter'; - const CBB_DEFAULT_FILTER_CRAWL_PARAMS = 'cbb_default_filter_crawl_params'; - const CBB_OVERRIDE_TYPE_FIELD_MAPPING = 'cbb_override_type_field_mapping'; const DEFAULTS = 'defaults'; const FILTERS = 'filters'; const ID = 'id'; @@ -39,7 +37,6 @@ class CatalogSmartPixelSettingsFields extends AbstractEnum { const MICRODATA_FORMAT_PRECEDENCE = 'microdata_format_precedence'; const PIXEL = 'pixel'; const PROPERTY_FILTER = 'property_filter'; - const RETENTION_TIME_SEC = 'retention_time_sec'; const TRUSTED_DOMAINS = 'trusted_domains'; public function getFieldTypes() { @@ -49,8 +46,6 @@ public function getFieldTypes() { 'catalog' => 'ProductCatalog', 'cbb_custom_override_filters' => 'list', 'cbb_default_filter' => 'list>>', - 'cbb_default_filter_crawl_params' => 'string', - 'cbb_override_type_field_mapping' => 'list>>', 'defaults' => 'list>', 'filters' => 'list>>', 'id' => 'string', @@ -61,7 +56,6 @@ public function getFieldTypes() { 'microdata_format_precedence' => 'list', 'pixel' => 'AdsPixel', 'property_filter' => 'list', - 'retention_time_sec' => 'int', 'trusted_domains' => 'list', ); } diff --git a/src/FacebookAds/Object/Fields/CommerceOrderFields.php b/src/FacebookAds/Object/Fields/CommerceOrderFields.php index 720b9146b..2dd1e6723 100644 --- a/src/FacebookAds/Object/Fields/CommerceOrderFields.php +++ b/src/FacebookAds/Object/Fields/CommerceOrderFields.php @@ -33,6 +33,7 @@ class CommerceOrderFields extends AbstractEnum { const LAST_UPDATED = 'last_updated'; const MERCHANT_ORDER_ID = 'merchant_order_id'; const ORDER_STATUS = 'order_status'; + const PRE_ORDER_DETAILS = 'pre_order_details'; const SELECTED_SHIPPING_OPTION = 'selected_shipping_option'; const SHIP_BY_DATE = 'ship_by_date'; const SHIPPING_ADDRESS = 'shipping_address'; @@ -50,6 +51,7 @@ public function getFieldTypes() { 'last_updated' => 'string', 'merchant_order_id' => 'string', 'order_status' => 'Object', + 'pre_order_details' => 'Object', 'selected_shipping_option' => 'Object', 'ship_by_date' => 'string', 'shipping_address' => 'Object', diff --git a/src/FacebookAds/Object/Fields/CommerceOrderTransactionDetailFields.php b/src/FacebookAds/Object/Fields/CommerceOrderTransactionDetailFields.php index bfffca0d5..2dbfdcc79 100644 --- a/src/FacebookAds/Object/Fields/CommerceOrderTransactionDetailFields.php +++ b/src/FacebookAds/Object/Fields/CommerceOrderTransactionDetailFields.php @@ -22,10 +22,15 @@ class CommerceOrderTransactionDetailFields extends AbstractEnum { + const MERCHANT_ORDER_ID = 'merchant_order_id'; const NET_PAYMENT_AMOUNT = 'net_payment_amount'; + const ORDER_CREATED = 'order_created'; const ORDER_DETAILS = 'order_details'; + const ORDER_ID = 'order_id'; const PAYOUT_REFERENCE_ID = 'payout_reference_id'; + const POSTAL_CODE = 'postal_code'; const PROCESSING_FEE = 'processing_fee'; + const STATE = 'state'; const TAX_RATE = 'tax_rate'; const TRANSACTION_DATE = 'transaction_date'; const TRANSACTION_TYPE = 'transaction_type'; @@ -34,10 +39,15 @@ class CommerceOrderTransactionDetailFields extends AbstractEnum { public function getFieldTypes() { return array( + 'merchant_order_id' => 'string', 'net_payment_amount' => 'Object', + 'order_created' => 'string', 'order_details' => 'CommerceOrder', + 'order_id' => 'string', 'payout_reference_id' => 'string', + 'postal_code' => 'string', 'processing_fee' => 'Object', + 'state' => 'string', 'tax_rate' => 'string', 'transaction_date' => 'string', 'transaction_type' => 'string', diff --git a/src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php b/src/FacebookAds/Object/Fields/ContentBlockListFields.php similarity index 78% rename from src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php rename to src/FacebookAds/Object/Fields/ContentBlockListFields.php index 96c744ada..048f22e1e 100644 --- a/src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php +++ b/src/FacebookAds/Object/Fields/ContentBlockListFields.php @@ -20,17 +20,17 @@ * */ -class PageVideosYouCanUseFields extends AbstractEnum { +class ContentBlockListFields extends AbstractEnum { - const DESCRIPTION = 'description'; + const BUSINESS = 'business'; const ID = 'id'; - const TITLE = 'title'; + const NAME = 'name'; public function getFieldTypes() { return array( - 'description' => 'string', + 'business' => 'Business', 'id' => 'string', - 'title' => 'string', + 'name' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/CustomAudienceFields.php b/src/FacebookAds/Object/Fields/CustomAudienceFields.php index 8ca35d0a9..de98fe42e 100644 --- a/src/FacebookAds/Object/Fields/CustomAudienceFields.php +++ b/src/FacebookAds/Object/Fields/CustomAudienceFields.php @@ -72,13 +72,17 @@ class CustomAudienceFields extends AbstractEnum { const EVENT_SOURCE_GROUP = 'event_source_group'; const EVENT_SOURCES = 'event_sources'; const EXCLUSIONS = 'exclusions'; + const FACEBOOK_PAGE_ID = 'facebook_page_id'; const INCLUSIONS = 'inclusions'; const LIST_OF_ACCOUNTS = 'list_of_accounts'; + const MARKETING_MESSAGE_CHANNELS = 'marketing_message_channels'; const ORIGIN_AUDIENCE_ID = 'origin_audience_id'; const PARENT_AUDIENCE_ID = 'parent_audience_id'; const PARTNER_REFERENCE_KEY = 'partner_reference_key'; const PREFILL = 'prefill'; const PRODUCT_SET_ID = 'product_set_id'; + const SUBSCRIPTION_INFO = 'subscription_info'; + const USE_FOR_PRODUCTS = 'use_for_products'; 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'; @@ -135,13 +139,17 @@ public function getFieldTypes() { 'event_source_group' => 'string', 'event_sources' => 'list', 'exclusions' => 'list', + 'facebook_page_id' => 'string', 'inclusions' => 'list', 'list_of_accounts' => 'list', + 'marketing_message_channels' => 'Object', 'origin_audience_id' => 'string', 'parent_audience_id' => 'unsigned int', 'partner_reference_key' => 'string', 'prefill' => 'bool', 'product_set_id' => 'string', + 'subscription_info' => 'list', + 'use_for_products' => 'list', 'use_in_campaigns' => 'bool', 'video_group_ids' => 'list', 'whats_app_business_phone_number_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php b/src/FacebookAds/Object/Fields/DatasetFields.php similarity index 83% rename from src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php rename to src/FacebookAds/Object/Fields/DatasetFields.php index 598201ad0..dab0afab4 100644 --- a/src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php +++ b/src/FacebookAds/Object/Fields/DatasetFields.php @@ -20,15 +20,15 @@ * */ -class VidwallaBroadcastFields extends AbstractEnum { +class DatasetFields extends AbstractEnum { const ID = 'id'; - const OVERLAY_URL = 'overlay_url'; + const NAME = 'name'; public function getFieldTypes() { return array( 'id' => 'string', - 'overlay_url' => 'string', + 'name' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/ExpirablePostFields.php b/src/FacebookAds/Object/Fields/ExpirablePostFields.php deleted file mode 100644 index 10975e8e4..000000000 --- a/src/FacebookAds/Object/Fields/ExpirablePostFields.php +++ /dev/null @@ -1,70 +0,0 @@ - 'User', - 'can_republish' => 'bool', - 'content_type' => 'string', - 'creation_time' => 'datetime', - 'expiration' => 'Object', - 'feed_audience_description' => 'string', - 'feed_targeting' => 'Targeting', - 'id' => 'string', - 'is_post_in_good_state' => 'bool', - 'message' => 'string', - 'modified_time' => 'datetime', - 'og_action_summary' => 'string', - 'permalink_url' => 'string', - 'place' => 'Place', - 'privacy_description' => 'string', - 'scheduled_failure_notice' => 'string', - 'scheduled_publish_time' => 'datetime', - 'story_token' => 'string', - 'thumbnail' => 'string', - 'video_id' => 'string', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/ExternalEventSourceDAStatsResultFields.php b/src/FacebookAds/Object/Fields/ExternalEventSourceDAStatsResultFields.php deleted file mode 100644 index 469eba4d3..000000000 --- a/src/FacebookAds/Object/Fields/ExternalEventSourceDAStatsResultFields.php +++ /dev/null @@ -1,42 +0,0 @@ - 'unsigned int', - 'count_content_ids_match_any_catalog' => 'unsigned int', - 'count_fires' => 'unsigned int', - 'count_fires_match_any_catalog' => 'unsigned int', - 'date' => 'string', - 'percentage_missed_users' => 'float', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php b/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php index 034d7ceba..2a8a6edc8 100644 --- a/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php +++ b/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php @@ -24,17 +24,23 @@ class FundingSourceDetailsCouponFields extends AbstractEnum { const AMOUNT = 'amount'; const CAMPAIGN_IDS = 'campaign_ids'; + const COUPON_ID = 'coupon_id'; const CURRENCY = 'currency'; const DISPLAY_AMOUNT = 'display_amount'; const EXPIRATION = 'expiration'; + const ORIGINAL_AMOUNT = 'original_amount'; + const ORIGINAL_DISPLAY_AMOUNT = 'original_display_amount'; public function getFieldTypes() { return array( 'amount' => 'int', 'campaign_ids' => 'list', + 'coupon_id' => 'string', 'currency' => 'string', 'display_amount' => 'string', 'expiration' => 'datetime', + 'original_amount' => 'int', + 'original_display_amount' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/GenericVideoAssetFields.php b/src/FacebookAds/Object/Fields/GenericVideoAssetFields.php deleted file mode 100644 index 138bc8e61..000000000 --- a/src/FacebookAds/Object/Fields/GenericVideoAssetFields.php +++ /dev/null @@ -1,122 +0,0 @@ - 'string', - 'broadcast_planned_start_time' => 'datetime', - 'can_viewer_edit' => 'bool', - 'copyright_monitoring_status' => 'string', - 'created_time' => 'datetime', - 'creator' => 'User', - 'description' => 'string', - 'download_hd_url' => 'string', - 'download_sd_url' => 'string', - 'embeddable' => 'bool', - 'expiration' => 'Object', - 'feed_type' => 'string', - 'id' => 'string', - 'is_crossposting_eligible' => 'bool', - 'is_crossposting_within_bm_eligible' => 'bool', - 'is_crossposting_within_bm_enabled' => 'bool', - 'is_episode' => 'bool', - 'is_featured' => 'bool', - 'is_live_premiere' => 'bool', - 'is_video_asset' => 'bool', - 'last_added_time' => 'datetime', - 'latest_creator' => 'User', - 'latest_owned_description' => 'string', - 'latest_owned_title' => 'string', - 'length' => 'float', - 'live_status' => 'string', - 'no_story' => 'bool', - 'owner_name' => 'string', - 'owner_picture' => 'string', - 'owner_post_state' => 'string', - 'permalink_url' => 'string', - 'picture' => 'string', - 'posts_count' => 'unsigned int', - 'posts_ids' => 'list', - 'posts_status' => 'Object', - 'premiere_living_room_status' => 'string', - 'published' => 'bool', - 'scheduled_publish_time' => 'datetime', - 'secret' => 'bool', - 'secure_stream_url' => 'string', - 'social_actions' => 'bool', - 'status' => 'VideoStatus', - 'stream_url' => 'string', - 'thumbnail_while_encoding' => 'string', - 'title' => 'string', - 'views' => 'unsigned int', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/HotelFields.php b/src/FacebookAds/Object/Fields/HotelFields.php index 73b192bc6..76b381cc7 100644 --- a/src/FacebookAds/Object/Fields/HotelFields.php +++ b/src/FacebookAds/Object/Fields/HotelFields.php @@ -39,6 +39,11 @@ class HotelFields extends AbstractEnum { const MARGIN_LEVEL = 'margin_level'; const NAME = 'name'; const PHONE = 'phone'; + const PRODUCT_PRIORITY_0 = 'product_priority_0'; + const PRODUCT_PRIORITY_1 = 'product_priority_1'; + const PRODUCT_PRIORITY_2 = 'product_priority_2'; + const PRODUCT_PRIORITY_3 = 'product_priority_3'; + const PRODUCT_PRIORITY_4 = 'product_priority_4'; const SALE_PRICE = 'sale_price'; const SANITIZED_IMAGES = 'sanitized_images'; const STAR_RATING = 'star_rating'; @@ -67,6 +72,11 @@ public function getFieldTypes() { 'margin_level' => 'unsigned int', 'name' => 'string', 'phone' => 'string', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'sale_price' => 'string', 'sanitized_images' => 'list', 'star_rating' => 'float', diff --git a/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php index ee5d9c90e..2c2a23a79 100644 --- a/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php +++ b/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php @@ -23,7 +23,9 @@ class IGMediaForIGOnlyAPIFields extends AbstractEnum { const CAPTION = 'caption'; + const COMMENTS_COUNT = 'comments_count'; const ID = 'id'; + const IS_COMMENT_ENABLED = 'is_comment_enabled'; const IS_SHARED_TO_FEED = 'is_shared_to_feed'; const LIKE_COUNT = 'like_count'; const MEDIA_PRODUCT_TYPE = 'media_product_type'; @@ -39,7 +41,9 @@ class IGMediaForIGOnlyAPIFields extends AbstractEnum { public function getFieldTypes() { return array( 'caption' => 'string', + 'comments_count' => 'int', 'id' => 'string', + 'is_comment_enabled' => 'bool', 'is_shared_to_feed' => 'bool', 'like_count' => 'int', 'media_product_type' => 'string', diff --git a/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php index 4507cc02c..46564d887 100644 --- a/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php +++ b/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php @@ -24,6 +24,7 @@ class IGRefreshAccessTokenForIGOnlyAPIFields extends AbstractEnum { const ACCESS_TOKEN = 'access_token'; const EXPIRES_IN = 'expires_in'; + const PERMISSIONS = 'permissions'; const TOKEN_TYPE = 'token_type'; const ID = 'id'; @@ -31,6 +32,7 @@ public function getFieldTypes() { return array( 'access_token' => 'string', 'expires_in' => 'int', + 'permissions' => 'string', 'token_type' => 'string', 'id' => 'string', ); diff --git a/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php b/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php index 5fa6e0f09..2af91ea06 100644 --- a/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php +++ b/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php @@ -24,6 +24,8 @@ class IGUpcomingEventFields extends AbstractEnum { const END_TIME = 'end_time'; const ID = 'id'; + const NOTIFICATION_SUBTYPES = 'notification_subtypes'; + const NOTIFICATION_TARGET_TIME = 'notification_target_time'; const START_TIME = 'start_time'; const TITLE = 'title'; @@ -31,6 +33,8 @@ public function getFieldTypes() { return array( 'end_time' => 'datetime', 'id' => 'string', + 'notification_subtypes' => 'list', + 'notification_target_time' => 'string', 'start_time' => 'datetime', 'title' => 'string', ); diff --git a/src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php b/src/FacebookAds/Object/Fields/IGUserExportForCAMFields.php similarity index 95% rename from src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php rename to src/FacebookAds/Object/Fields/IGUserExportForCAMFields.php index 06ed6102e..e7eb6a359 100644 --- a/src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php +++ b/src/FacebookAds/Object/Fields/IGUserExportForCAMFields.php @@ -20,7 +20,7 @@ * */ -class BCPCreatorIgUserFields extends AbstractEnum { +class IGUserExportForCAMFields extends AbstractEnum { const EMAIL = 'email'; const ID = 'id'; diff --git a/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php index 233beedf7..7c953b867 100644 --- a/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php +++ b/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php @@ -23,16 +23,30 @@ class IGUserForIGOnlyAPIFields extends AbstractEnum { const ACCOUNT_TYPE = 'account_type'; + const BIOGRAPHY = 'biography'; + const FOLLOWERS_COUNT = 'followers_count'; + const FOLLOWS_COUNT = 'follows_count'; const ID = 'id'; const MEDIA_COUNT = 'media_count'; + const NAME = 'name'; + const PROFILE_PICTURE_URL = 'profile_picture_url'; + const USER_ID = 'user_id'; const USERNAME = 'username'; + const WEBSITE = 'website'; public function getFieldTypes() { return array( 'account_type' => 'string', + 'biography' => 'string', + 'followers_count' => 'int', + 'follows_count' => 'int', 'id' => 'string', 'media_count' => 'int', + 'name' => 'string', + 'profile_picture_url' => 'string', + 'user_id' => 'int', 'username' => 'string', + 'website' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php b/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php index 2b3548f3d..e453434f1 100644 --- a/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php +++ b/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php @@ -22,6 +22,7 @@ class LeadGenFormPreviewDetailsFields extends AbstractEnum { + const CALL_BUSINESS_TEXT = 'call_business_text'; const CALL_TO_ACTION_TITLE = 'call_to_action_title'; const CONTACT_INFORMATION_TEXT = 'contact_information_text'; const CREATIVES_OVERVIEW_DEFAULT_TEXT = 'creatives_overview_default_text'; @@ -46,18 +47,22 @@ class LeadGenFormPreviewDetailsFields extends AbstractEnum { const OPTIONAL_QUESTION_TEXT = 'optional_question_text'; const PERSONAL_INFO_TEXT = 'personal_info_text'; const PHONE_NUMBER_INLINE_CONTEXT_TEXT = 'phone_number_inline_context_text'; + const PRIVACY_POLICY_LINK_TEXT = 'privacy_policy_link_text'; const PRIVACY_POLICY_TITLE_SECTION_TITLE_TEXT = 'privacy_policy_title_section_title_text'; const PRIVACY_SETTING_DESCRIPTION = 'privacy_setting_description'; const PRODUCTS_SECTION_HEADERS = 'products_section_headers'; const QUALIFIED_THANK_YOU_CARD_TRANSPARENCY_INFO_TEXT = 'qualified_thank_you_card_transparency_info_text'; + const REDEEM_PROMO_CODE_TEXT = 'redeem_promo_code_text'; const REVIEW_YOUR_INFO_TEXT = 'review_your_info_text'; const SECURE_SHARING_TEXT = 'secure_sharing_text'; const SLIDE_TO_SUBMIT_TEXT = 'slide_to_submit_text'; const SOCIAL_PROOF_SECTION_HEADERS = 'social_proof_section_headers'; const SUBMIT_BUTTON_TEXT = 'submit_button_text'; + const VIEW_FILE_TEXT = 'view_file_text'; public function getFieldTypes() { return array( + 'call_business_text' => 'string', 'call_to_action_title' => 'string', 'contact_information_text' => 'string', 'creatives_overview_default_text' => 'string', @@ -82,15 +87,18 @@ public function getFieldTypes() { 'optional_question_text' => 'string', 'personal_info_text' => 'string', 'phone_number_inline_context_text' => 'string', + 'privacy_policy_link_text' => 'string', 'privacy_policy_title_section_title_text' => 'string', 'privacy_setting_description' => 'string', 'products_section_headers' => 'list>', 'qualified_thank_you_card_transparency_info_text' => 'string', + 'redeem_promo_code_text' => 'string', 'review_your_info_text' => 'string', 'secure_sharing_text' => 'string', 'slide_to_submit_text' => 'string', 'social_proof_section_headers' => 'list>', 'submit_button_text' => 'string', + 'view_file_text' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/LocationBasedItemFields.php b/src/FacebookAds/Object/Fields/LocationBasedItemFields.php deleted file mode 100644 index 3ac0f30f4..000000000 --- a/src/FacebookAds/Object/Fields/LocationBasedItemFields.php +++ /dev/null @@ -1,56 +0,0 @@ - 'CatalogItemAppLinks', - 'category_specific_fields' => 'CatalogSubVerticalList', - 'currency' => 'string', - 'description' => 'string', - 'id' => 'string', - 'image_fetch_status' => 'ImageFetchStatus', - 'images' => 'list', - 'location_based_item_id' => 'string', - 'name' => 'string', - 'price' => 'string', - 'sanitized_images' => 'list', - 'url' => 'string', - 'visibility' => 'Visibility', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/MessageDeliveryEstimateFields.php b/src/FacebookAds/Object/Fields/MessageDeliveryEstimateFields.php new file mode 100644 index 000000000..dfc881e6d --- /dev/null +++ b/src/FacebookAds/Object/Fields/MessageDeliveryEstimateFields.php @@ -0,0 +1,48 @@ + 'float', + 'estimate_cost_lower_bound' => 'float', + 'estimate_cost_upper_bound' => 'float', + 'estimate_coverage_lower_bound' => 'int', + 'estimate_coverage_upper_bound' => 'int', + 'estimate_delivery' => 'int', + 'estimate_delivery_lower_bound' => 'int', + 'estimate_delivery_upper_bound' => 'int', + 'estimate_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php b/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php index 48bde3b22..b8e923e14 100644 --- a/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php +++ b/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php @@ -22,6 +22,7 @@ class MessagingAppsInfoFields extends AbstractEnum { + const CTD_SUPPORT_ONLY_FOR_IG_APP = 'ctd_support_only_for_ig_app'; const HAS_INSTAGRAM_MESSAGING_PERMISSION = 'has_instagram_messaging_permission'; const HAS_MESSENGER_MESSAGING_PERMISSION = 'has_messenger_messaging_permission'; const ID = 'id'; @@ -29,6 +30,7 @@ class MessagingAppsInfoFields extends AbstractEnum { public function getFieldTypes() { return array( + 'ctd_support_only_for_ig_app' => 'bool', 'has_instagram_messaging_permission' => 'bool', 'has_messenger_messaging_permission' => 'bool', 'id' => 'string', diff --git a/src/FacebookAds/Object/Fields/MessengerBusinessTemplateFields.php b/src/FacebookAds/Object/Fields/MessengerBusinessTemplateFields.php new file mode 100644 index 000000000..6546e1565 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MessengerBusinessTemplateFields.php @@ -0,0 +1,52 @@ + 'string', + 'components' => 'list', + 'creation_time' => 'int', + 'id' => 'string', + 'language' => 'string', + 'language_count' => 'int', + 'last_updated_time' => 'datetime', + 'library_template_name' => 'string', + 'name' => 'string', + 'rejected_reason' => 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/OverrideDetailsFields.php b/src/FacebookAds/Object/Fields/OverrideDetailsFields.php new file mode 100644 index 000000000..4565180d7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/OverrideDetailsFields.php @@ -0,0 +1,36 @@ + 'string', + 'type' => 'string', + 'values' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageCTXMessagingFeatureLimitFields.php b/src/FacebookAds/Object/Fields/PageCTXMessagingFeatureLimitFields.php new file mode 100644 index 000000000..4f4f5a468 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageCTXMessagingFeatureLimitFields.php @@ -0,0 +1,36 @@ + 'int', + 'messaging_feature_limit_type' => 'string', + 'messaging_violation_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PanelAPIReportFields.php b/src/FacebookAds/Object/Fields/PanelAPIReportFields.php deleted file mode 100644 index 4bf9e6f5b..000000000 --- a/src/FacebookAds/Object/Fields/PanelAPIReportFields.php +++ /dev/null @@ -1,50 +0,0 @@ - 'string', - 'download_url' => 'string', - 'end_date' => 'datetime', - 'export_file_type' => 'string', - 'id' => 'string', - 'index' => 'int', - 'name' => 'string', - 'number_of_chunks' => 'int', - 'start_date' => 'datetime', - 'upload_date' => 'datetime', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/PartnershipAdContentSearchMediaFields.php b/src/FacebookAds/Object/Fields/PartnershipAdContentSearchMediaFields.php index 962305e42..82307f8ff 100644 --- a/src/FacebookAds/Object/Fields/PartnershipAdContentSearchMediaFields.php +++ b/src/FacebookAds/Object/Fields/PartnershipAdContentSearchMediaFields.php @@ -22,14 +22,20 @@ class PartnershipAdContentSearchMediaFields extends AbstractEnum { + const IG_AD_CODE_SPONSOR_COUNT = 'ig_ad_code_sponsor_count'; + const IG_AD_CODE_SPONSORS = 'ig_ad_code_sponsors'; const IG_MEDIA = 'ig_media'; const IG_MEDIA_HAS_PRODUCT_TAGS = 'ig_media_has_product_tags'; + const IS_AD_CODE_ELIGIBLE_FOR_BOOSTING_BY_TWO_SPONSORS = 'is_ad_code_eligible_for_boosting_by_two_sponsors'; const IS_AD_CODE_ENTRY = 'is_ad_code_entry'; public function getFieldTypes() { return array( + 'ig_ad_code_sponsor_count' => 'int', + 'ig_ad_code_sponsors' => 'list', 'ig_media' => 'IGMedia', 'ig_media_has_product_tags' => 'bool', + 'is_ad_code_eligible_for_boosting_by_two_sponsors' => 'bool', 'is_ad_code_entry' => 'bool', ); } diff --git a/src/FacebookAds/Object/Fields/PlacementFields.php b/src/FacebookAds/Object/Fields/PlacementFields.php new file mode 100644 index 000000000..d6ead86ec --- /dev/null +++ b/src/FacebookAds/Object/Fields/PlacementFields.php @@ -0,0 +1,66 @@ + 'list', + 'device_platforms' => 'list', + 'effective_audience_network_positions' => 'list', + 'effective_device_platforms' => 'list', + 'effective_facebook_positions' => 'list', + 'effective_instagram_positions' => 'list', + 'effective_messenger_positions' => 'list', + 'effective_oculus_positions' => 'list', + 'effective_publisher_platforms' => 'list', + 'effective_threads_positions' => 'list', + 'effective_whatsapp_positions' => 'list', + 'facebook_positions' => 'list', + 'instagram_positions' => 'list', + 'messenger_positions' => 'list', + 'oculus_positions' => 'list', + 'publisher_platforms' => 'list', + 'threads_positions' => 'list', + 'whatsapp_positions' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductCatalogDiagnosticGroupFields.php b/src/FacebookAds/Object/Fields/ProductCatalogDiagnosticGroupFields.php index b3f2e8797..62124de91 100644 --- a/src/FacebookAds/Object/Fields/ProductCatalogDiagnosticGroupFields.php +++ b/src/FacebookAds/Object/Fields/ProductCatalogDiagnosticGroupFields.php @@ -36,7 +36,7 @@ class ProductCatalogDiagnosticGroupFields extends AbstractEnum { public function getFieldTypes() { return array( - 'affected_channels' => 'list', + 'affected_channels' => 'list', 'affected_entity' => 'AffectedEntity', 'affected_features' => 'list', 'diagnostics' => 'list', diff --git a/src/FacebookAds/Object/Fields/UserSetReportingRootFields.php b/src/FacebookAds/Object/Fields/ProductDeliveryPreferenceFields.php similarity index 65% rename from src/FacebookAds/Object/Fields/UserSetReportingRootFields.php rename to src/FacebookAds/Object/Fields/ProductDeliveryPreferenceFields.php index 7fcfae9c9..1db528169 100644 --- a/src/FacebookAds/Object/Fields/UserSetReportingRootFields.php +++ b/src/FacebookAds/Object/Fields/ProductDeliveryPreferenceFields.php @@ -20,17 +20,19 @@ * */ -class UserSetReportingRootFields extends AbstractEnum { +class ProductDeliveryPreferenceFields extends AbstractEnum { - const CREATION_TIME = 'creation_time'; + const AD_OBJECT_ID = 'ad_object_id'; const ID = 'id'; - const LAST_MODIFIED_TIME = 'last_modified_time'; + const PRODUCT_PRIORITY = 'product_priority'; + const PRODUCT_PRIORITY_CATEGORY = 'product_priority_category'; public function getFieldTypes() { return array( - 'creation_time' => 'datetime', + 'ad_object_id' => 'string', 'id' => 'string', - 'last_modified_time' => 'datetime', + 'product_priority' => 'string', + 'product_priority_category' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/ProductItemFields.php b/src/FacebookAds/Object/Fields/ProductItemFields.php index 50f6a4a0d..c7280258a 100644 --- a/src/FacebookAds/Object/Fields/ProductItemFields.php +++ b/src/FacebookAds/Object/Fields/ProductItemFields.php @@ -29,6 +29,8 @@ class ProductItemFields extends AbstractEnum { const APPLINKS = 'applinks'; const AVAILABILITY = 'availability'; const BRAND = 'brand'; + const BUNDLE_ITEMS = 'bundle_items'; + const BUNDLE_RETAILER_IDS = 'bundle_retailer_ids'; const CAPABILITY_TO_REVIEW_STATUS = 'capability_to_review_status'; const CATEGORY = 'category'; const CATEGORY_SPECIFIC_FIELDS = 'category_specific_fields'; @@ -62,6 +64,7 @@ class ProductItemFields extends AbstractEnum { const IMPORTER_NAME = 'importer_name'; const INVALIDATION_ERRORS = 'invalidation_errors'; const INVENTORY = 'inventory'; + const IS_BUNDLE_HERO = 'is_bundle_hero'; const MANUFACTURER_INFO = 'manufacturer_info'; const MANUFACTURER_PART_NUMBER = 'manufacturer_part_number'; const MARKED_FOR_PRODUCT_LAUNCH = 'marked_for_product_launch'; @@ -97,7 +100,6 @@ class ProductItemFields extends AbstractEnum { const VIDEO_FETCH_STATUS = 'video_fetch_status'; const VISIBILITY = 'visibility'; const WA_COMPLIANCE_CATEGORY = 'wa_compliance_category'; - const ADDITIONAL_UPLOADED_IMAGE_IDS = 'additional_uploaded_image_ids'; const ANDROID_APP_NAME = 'android_app_name'; const ANDROID_CLASS = 'android_class'; const ANDROID_PACKAGE = 'android_package'; @@ -114,6 +116,11 @@ class ProductItemFields extends AbstractEnum { const IPHONE_APP_STORE_ID = 'iphone_app_store_id'; const IPHONE_URL = 'iphone_url'; const LAUNCH_DATE = 'launch_date'; + const PRODUCT_PRIORITY_0 = 'product_priority_0'; + const PRODUCT_PRIORITY_1 = 'product_priority_1'; + const PRODUCT_PRIORITY_2 = 'product_priority_2'; + const PRODUCT_PRIORITY_3 = 'product_priority_3'; + const PRODUCT_PRIORITY_4 = 'product_priority_4'; const RETURN_POLICY_DAYS = 'return_policy_days'; const WINDOWS_PHONE_APP_ID = 'windows_phone_app_id'; const WINDOWS_PHONE_APP_NAME = 'windows_phone_app_name'; @@ -128,7 +135,9 @@ public function getFieldTypes() { 'applinks' => 'CatalogItemAppLinks', 'availability' => 'Availability', 'brand' => 'string', - 'capability_to_review_status' => 'list>', + 'bundle_items' => 'list', + 'bundle_retailer_ids' => 'list', + 'capability_to_review_status' => 'list>', 'category' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'color' => 'string', @@ -161,6 +170,7 @@ public function getFieldTypes() { 'importer_name' => 'string', 'invalidation_errors' => 'list', 'inventory' => 'int', + 'is_bundle_hero' => 'bool', 'manufacturer_info' => 'string', 'manufacturer_part_number' => 'string', 'marked_for_product_launch' => 'string', @@ -196,7 +206,6 @@ public function getFieldTypes() { 'video_fetch_status' => 'VideoFetchStatus', 'visibility' => 'Visibility', 'wa_compliance_category' => 'string', - 'additional_uploaded_image_ids' => 'list', 'android_app_name' => 'string', 'android_class' => 'string', 'android_package' => 'string', @@ -213,6 +222,11 @@ public function getFieldTypes() { 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'launch_date' => 'string', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'return_policy_days' => 'unsigned int', 'windows_phone_app_id' => 'string', 'windows_phone_app_name' => 'string', diff --git a/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php b/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php index 802a681fd..9079b1bf4 100644 --- a/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php +++ b/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php @@ -28,10 +28,7 @@ class ResellerGuidanceFields extends AbstractEnum { const ADVERTISER_NAME = 'advertiser_name'; const ATTRIBUTED_TO_RESELLER_L7D = 'attributed_to_reseller_l7d'; const AVAILABLE_GUIDANCE = 'available_guidance'; - const BENCHMARK_REPORT_LINK = 'benchmark_report_link'; const GUIDANCE_ADOPTION_RATE_L7D = 'guidance_adoption_rate_l7d'; - const NO_ADSETS_GTE_BENCHMARK = 'no_adsets_gte_benchmark'; - const NO_ADSETS_LT_BENCHMARK = 'no_adsets_lt_benchmark'; const NURTURED_BY_RESELLER_L7D = 'nurtured_by_reseller_l7d'; const PLANNING_AGENCY_NAME = 'planning_agency_name'; const RECOMMENDATION_TIME = 'recommendation_time'; @@ -48,10 +45,7 @@ public function getFieldTypes() { 'advertiser_name' => 'string', 'attributed_to_reseller_l7d' => 'bool', 'available_guidance' => 'list', - 'benchmark_report_link' => 'string', 'guidance_adoption_rate_l7d' => 'float', - 'no_adsets_gte_benchmark' => 'int', - 'no_adsets_lt_benchmark' => 'int', 'nurtured_by_reseller_l7d' => 'bool', 'planning_agency_name' => 'string', 'recommendation_time' => 'datetime', diff --git a/src/FacebookAds/Object/Fields/SavedMessageResponseFields.php b/src/FacebookAds/Object/Fields/SavedMessageResponseFields.php index bdf0b25dc..cc31bd1fb 100644 --- a/src/FacebookAds/Object/Fields/SavedMessageResponseFields.php +++ b/src/FacebookAds/Object/Fields/SavedMessageResponseFields.php @@ -22,7 +22,6 @@ class SavedMessageResponseFields extends AbstractEnum { - const CATEGORY = 'category'; const ID = 'id'; const IMAGE = 'image'; const IS_ENABLED = 'is_enabled'; @@ -31,7 +30,6 @@ class SavedMessageResponseFields extends AbstractEnum { public function getFieldTypes() { return array( - 'category' => 'string', 'id' => 'string', 'image' => 'string', 'is_enabled' => 'bool', diff --git a/src/FacebookAds/Object/Fields/ProductFeedMissingFeedItemReplacementFields.php b/src/FacebookAds/Object/Fields/ShadowIGUserPartnershipAdsMediaErrorsFields.php similarity index 65% rename from src/FacebookAds/Object/Fields/ProductFeedMissingFeedItemReplacementFields.php rename to src/FacebookAds/Object/Fields/ShadowIGUserPartnershipAdsMediaErrorsFields.php index cb25803de..7493bb422 100644 --- a/src/FacebookAds/Object/Fields/ProductFeedMissingFeedItemReplacementFields.php +++ b/src/FacebookAds/Object/Fields/ShadowIGUserPartnershipAdsMediaErrorsFields.php @@ -20,17 +20,19 @@ * */ -class ProductFeedMissingFeedItemReplacementFields extends AbstractEnum { +class ShadowIGUserPartnershipAdsMediaErrorsFields extends AbstractEnum { - const HOME_LISTING = 'home_listing'; - const PRODUCT_ITEM = 'product_item'; - const VEHICLE = 'vehicle'; + const AD_CODE = 'ad_code'; + const ERROR_CODES = 'error_codes'; + const ERRORS = 'errors'; + const PERMALINK = 'permalink'; public function getFieldTypes() { return array( - 'home_listing' => 'Object', - 'product_item' => 'Object', - 'vehicle' => 'Object', + 'ad_code' => 'string', + 'error_codes' => 'string', + 'errors' => 'list', + 'permalink' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/StoriesFields.php b/src/FacebookAds/Object/Fields/StoriesFields.php index 485d67100..82b47cc6b 100644 --- a/src/FacebookAds/Object/Fields/StoriesFields.php +++ b/src/FacebookAds/Object/Fields/StoriesFields.php @@ -28,6 +28,7 @@ class StoriesFields extends AbstractEnum { const POST_ID = 'post_id'; const STATUS = 'status'; const URL = 'url'; + const ID = 'id'; public function getFieldTypes() { return array( @@ -37,6 +38,7 @@ public function getFieldTypes() { 'post_id' => 'string', 'status' => 'string', 'url' => 'string', + 'id' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php b/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php index 29ae1f174..b585e03d9 100644 --- a/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php +++ b/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php @@ -39,10 +39,10 @@ public function getFieldTypes() { 'description' => 'string', 'hour' => 'datetime', 'id' => 'string', - 'metric' => 'string', + 'metric' => 'Metric', 'modified_time' => 'datetime', 'owner_instance_id' => 'string', - 'platform' => 'string', + 'platform' => 'Platform', 'status' => 'Status', 'total_file_count' => 'unsigned int', ); diff --git a/src/FacebookAds/Object/Fields/VehicleFields.php b/src/FacebookAds/Object/Fields/VehicleFields.php index a7b845684..f1723d62f 100644 --- a/src/FacebookAds/Object/Fields/VehicleFields.php +++ b/src/FacebookAds/Object/Fields/VehicleFields.php @@ -54,6 +54,11 @@ class VehicleFields extends AbstractEnum { const PREVIOUS_CURRENCY = 'previous_currency'; const PREVIOUS_PRICE = 'previous_price'; const PRICE = 'price'; + const PRODUCT_PRIORITY_0 = 'product_priority_0'; + const PRODUCT_PRIORITY_1 = 'product_priority_1'; + const PRODUCT_PRIORITY_2 = 'product_priority_2'; + const PRODUCT_PRIORITY_3 = 'product_priority_3'; + const PRODUCT_PRIORITY_4 = 'product_priority_4'; const SALE_CURRENCY = 'sale_currency'; const SALE_PRICE = 'sale_price'; const SANITIZED_IMAGES = 'sanitized_images'; @@ -105,6 +110,11 @@ public function getFieldTypes() { 'previous_currency' => 'string', 'previous_price' => 'string', 'price' => 'string', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'sale_currency' => 'string', 'sale_price' => 'string', 'sanitized_images' => 'list', diff --git a/src/FacebookAds/Object/Fields/VehicleOfferFields.php b/src/FacebookAds/Object/Fields/VehicleOfferFields.php index 4449ecaf1..ebb04b17b 100644 --- a/src/FacebookAds/Object/Fields/VehicleOfferFields.php +++ b/src/FacebookAds/Object/Fields/VehicleOfferFields.php @@ -54,6 +54,11 @@ class VehicleOfferFields extends AbstractEnum { const OFFER_DISCLAIMER = 'offer_disclaimer'; const OFFER_TYPE = 'offer_type'; const PRICE = 'price'; + const PRODUCT_PRIORITY_0 = 'product_priority_0'; + const PRODUCT_PRIORITY_1 = 'product_priority_1'; + const PRODUCT_PRIORITY_2 = 'product_priority_2'; + const PRODUCT_PRIORITY_3 = 'product_priority_3'; + const PRODUCT_PRIORITY_4 = 'product_priority_4'; const SANITIZED_IMAGES = 'sanitized_images'; const START_DATE = 'start_date'; const START_TIME = 'start_time'; @@ -102,6 +107,11 @@ public function getFieldTypes() { 'offer_disclaimer' => 'string', 'offer_type' => 'string', 'price' => 'string', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'sanitized_images' => 'list', 'start_date' => 'string', 'start_time' => 'int', diff --git a/src/FacebookAds/Object/Fields/VideoAssetFields.php b/src/FacebookAds/Object/Fields/VideoAssetFields.php deleted file mode 100644 index 697b0d263..000000000 --- a/src/FacebookAds/Object/Fields/VideoAssetFields.php +++ /dev/null @@ -1,122 +0,0 @@ - 'string', - 'broadcast_planned_start_time' => 'datetime', - 'can_viewer_edit' => 'bool', - 'copyright_monitoring_status' => 'string', - 'created_time' => 'datetime', - 'creator' => 'User', - 'description' => 'string', - 'download_hd_url' => 'string', - 'download_sd_url' => 'string', - 'embeddable' => 'bool', - 'expiration' => 'Object', - 'feed_type' => 'string', - 'id' => 'string', - 'is_crossposting_eligible' => 'bool', - 'is_crossposting_within_bm_eligible' => 'bool', - 'is_crossposting_within_bm_enabled' => 'bool', - 'is_episode' => 'bool', - 'is_featured' => 'bool', - 'is_live_premiere' => 'bool', - 'is_video_asset' => 'bool', - 'last_added_time' => 'datetime', - 'latest_creator' => 'User', - 'latest_owned_description' => 'string', - 'latest_owned_title' => 'string', - 'length' => 'float', - 'live_status' => 'string', - 'no_story' => 'bool', - 'owner_name' => 'string', - 'owner_picture' => 'string', - 'owner_post_state' => 'string', - 'permalink_url' => 'string', - 'picture' => 'string', - 'posts_count' => 'unsigned int', - 'posts_ids' => 'list', - 'posts_status' => 'Object', - 'premiere_living_room_status' => 'string', - 'published' => 'bool', - 'scheduled_publish_time' => 'datetime', - 'secret' => 'bool', - 'secure_stream_url' => 'string', - 'social_actions' => 'bool', - 'status' => 'VideoStatus', - 'stream_url' => 'string', - 'thumbnail_while_encoding' => 'string', - 'title' => 'string', - 'views' => 'unsigned int', - ); - } -} diff --git a/src/FacebookAds/Object/Flight.php b/src/FacebookAds/Object/Flight.php index ce8c12eff..dee07b532 100644 --- a/src/FacebookAds/Object/Flight.php +++ b/src/FacebookAds/Object/Flight.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\FlightFields; use FacebookAds\Object\Values\FlightImageFetchStatusValues; use FacebookAds\Object\Values\FlightVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -43,7 +44,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +56,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,22 +67,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index af2b3e65b..2b7d04f0d 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -72,7 +72,7 @@ protected static function getReferencedEnums() { } - public function deleteAdMIns(array $fields = array(), array $params = array(), $pending = false) { + public function deleteAdmins(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -96,7 +96,7 @@ public function deleteAdMIns(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function createAdMIn(array $fields = array(), array $params = array(), $pending = false) { + public function createAdmin(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -143,41 +143,6 @@ public function getAlbums(array $fields = array(), array $params = array(), $pen return $pending ? $request : $request->execute(); } - public function createAlbum(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'contributors' => 'list', - 'description' => 'string', - 'is_default' => 'bool', - 'location' => 'string', - 'make_shared_album' => 'bool', - 'message' => 'string', - 'name' => 'string', - 'place' => 'Object', - 'privacy' => 'string', - 'session_id' => 'string', - 'tags' => 'list', - 'visible' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/albums', - new Album(), - 'EDGE', - Album::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getDocs(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -260,10 +225,9 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'actions' => 'Object', 'album_id' => 'string', 'android_key_hash' => 'string', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', - 'asset3d_id' => 'unsigned int', + 'asset3d_id' => 'string', 'associated_id' => 'string', 'attach_place_suggestion' => 'bool', 'attached_media' => 'list', @@ -294,10 +258,9 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'expanded_width' => 'unsigned int', 'feed_targeting' => 'Object', 'formatting' => 'formatting_enum', - 'fun_fact_prompt_id' => 'unsigned int', + 'fun_fact_prompt_id' => 'string', 'fun_fact_toastee_id' => 'unsigned int', 'height' => 'unsigned int', - 'holiday_card' => 'string', 'home_checkin_city_id' => 'Object', 'image_crops' => 'map', 'implicit_with_tags' => 'list', @@ -318,7 +281,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'name' => 'string', 'nectar_module' => 'string', 'object_attachment' => 'string', - 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_hide_object_attachment' => 'bool', 'og_icon_id' => 'string', @@ -758,7 +720,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $this->assureId(); $param_types = array( - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', @@ -782,11 +743,10 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'formatting' => 'formatting_enum', 'fov' => 'unsigned int', 'front_z_rotation' => 'float', - 'fun_fact_prompt_id' => 'unsigned int', + 'fun_fact_prompt_id' => 'string', 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', 'instant_game_entry_point_data' => 'string', @@ -796,7 +756,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'is_voice_clip' => 'bool', 'location_source_id' => 'string', 'manual_privacy' => 'bool', - 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_icon_id' => 'string', 'og_object_id' => 'string', diff --git a/src/FacebookAds/Object/HomeListing.php b/src/FacebookAds/Object/HomeListing.php index 522c3e853..df0ba7566 100644 --- a/src/FacebookAds/Object/HomeListing.php +++ b/src/FacebookAds/Object/HomeListing.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\HomeListingFields; use FacebookAds\Object\Values\HomeListingImageFetchStatusValues; use FacebookAds\Object\Values\HomeListingVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -50,7 +51,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -62,10 +63,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -73,22 +74,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Hotel.php b/src/FacebookAds/Object/Hotel.php index 2a34b9df4..b1bc70033 100644 --- a/src/FacebookAds/Object/Hotel.php +++ b/src/FacebookAds/Object/Hotel.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\HotelFields; use FacebookAds\Object\Values\HotelImageFetchStatusValues; use FacebookAds\Object\Values\HotelVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -50,7 +51,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -62,10 +63,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -73,7 +74,7 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getHotelRooms(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -85,10 +86,10 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/hotel_rooms', + new HotelRoom(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + HotelRoom::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -96,22 +97,25 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function getHotelRooms(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/hotel_rooms', - new HotelRoom(), + '/override_details', + new OverrideDetails(), 'EDGE', - HotelRoom::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/IGMedia.php b/src/FacebookAds/Object/IGMedia.php index cbd6d5e46..f309193ce 100644 --- a/src/FacebookAds/Object/IGMedia.php +++ b/src/FacebookAds/Object/IGMedia.php @@ -235,12 +235,10 @@ public function getInsights(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function deleteProductTags(array $fields = array(), array $params = array(), $pending = false) { + public function deletePartnershipAdCode(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( - 'child_index' => 'unsigned int', - 'deleted_tags' => 'list', ); $enums = array( ); @@ -249,7 +247,30 @@ public function deleteProductTags(array $fields = array(), array $params = array $this->api, $this->data['id'], RequestInterface::METHOD_DELETE, - '/product_tags', + '/partnership_ad_code', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createPartnershipAdCode(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_POST, + '/partnership_ad_code', new AbstractCrudObject(), 'EDGE', array(), @@ -312,6 +333,8 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->assureId(); $param_types = array( + 'ad_account_id' => 'unsigned int', + 'business_id' => 'string', 'primary_fb_page_id' => 'string', 'primary_ig_user_id' => 'string', 'secondary_fb_page_id' => 'string', diff --git a/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php b/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php index 2c779a5ed..ff934cc01 100644 --- a/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php +++ b/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php @@ -14,6 +14,9 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\IGMediaForIGOnlyAPIFields; +use FacebookAds\Object\Values\InsightsResultBreakdownValues; +use FacebookAds\Object\Values\InsightsResultMetricValues; +use FacebookAds\Object\Values\InsightsResultPeriodValues; /** * This class is auto-generated. @@ -62,6 +65,82 @@ public function getChildren(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function getComments(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, + '/comments', + new Comment(), + 'EDGE', + Comment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createComment(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'message' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/comments', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getInsights(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'breakdown' => 'list', + 'metric' => 'list', + 'period' => 'list', + ); + $enums = array( + 'breakdown_enum' => InsightsResultBreakdownValues::getInstance()->getValues(), + 'metric_enum' => InsightsResultMetricValues::getInstance()->getValues(), + 'period_enum' => InsightsResultPeriodValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/insights', + new InsightsResult(), + 'EDGE', + InsightsResult::getFieldsEnum()->getValues(), + 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(); @@ -85,4 +164,28 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi return $pending ? $request : $request->execute(); } + public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'comment_enabled' => 'bool', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/', + new AbstractCrudObject(), + 'NODE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + } diff --git a/src/FacebookAds/Object/IGUpcomingEvent.php b/src/FacebookAds/Object/IGUpcomingEvent.php index 36e577ea4..7ca660d15 100644 --- a/src/FacebookAds/Object/IGUpcomingEvent.php +++ b/src/FacebookAds/Object/IGUpcomingEvent.php @@ -14,6 +14,8 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\IGUpcomingEventFields; +use FacebookAds\Object\Values\IGUpcomingEventNotificationSubtypesValues; +use FacebookAds\Object\Values\IGUpcomingEventNotificationTargetTimeValues; /** * This class is auto-generated. @@ -35,6 +37,8 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['NotificationSubtypes'] = IGUpcomingEventNotificationSubtypesValues::getInstance()->getValues(); + $ref_enums['NotificationTargetTime'] = IGUpcomingEventNotificationTargetTimeValues::getInstance()->getValues(); return $ref_enums; } @@ -67,10 +71,14 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe $param_types = array( 'end_time' => 'datetime', + 'notification_subtypes' => 'list', + 'notification_target_time' => 'notification_target_time_enum', 'start_time' => 'datetime', 'title' => 'string', ); $enums = array( + 'notification_subtypes_enum' => IGUpcomingEventNotificationSubtypesValues::getInstance()->getValues(), + 'notification_target_time_enum' => IGUpcomingEventNotificationTargetTimeValues::getInstance()->getValues(), ); $request = new ApiRequest( diff --git a/src/FacebookAds/Object/IGUser.php b/src/FacebookAds/Object/IGUser.php index 5d228e772..508cae1aa 100644 --- a/src/FacebookAds/Object/IGUser.php +++ b/src/FacebookAds/Object/IGUser.php @@ -120,6 +120,7 @@ public function getBrandedContentAdvertisableMedias(array $fields = array(), arr $this->assureId(); $param_types = array( + 'ad_code' => 'string', 'creator_username' => 'string', 'only_fetch_allowlisted' => 'bool', 'permalinks' => 'list', @@ -263,7 +264,7 @@ public function getContentPublishingLimit(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function getDataSet(array $fields = array(), array $params = array(), $pending = false) { + public function getDataset(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -276,9 +277,9 @@ public function getDataSet(array $fields = array(), array $params = array(), $pe $this->data['id'], RequestInterface::METHOD_GET, '/dataset', - new AdsPixel(), + new Dataset(), 'EDGE', - AdsPixel::getFieldsEnum()->getValues(), + Dataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -286,10 +287,11 @@ public function getDataSet(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } - public function createDataSet(array $fields = array(), array $params = array(), $pending = false) { + public function createDataset(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'dataset_name' => 'string', ); $enums = array( ); @@ -299,9 +301,9 @@ public function createDataSet(array $fields = array(), array $params = array(), $this->data['id'], RequestInterface::METHOD_POST, '/dataset', - new AdsPixel(), + new Dataset(), 'EDGE', - AdsPixel::getFieldsEnum()->getValues(), + Dataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/IGUserExportForCAM.php b/src/FacebookAds/Object/IGUserExportForCAM.php new file mode 100644 index 000000000..26f4203bf --- /dev/null +++ b/src/FacebookAds/Object/IGUserExportForCAM.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new IGUserExportForCAM(), + 'NODE', + IGUserExportForCAM::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/IGUserForIGOnlyAPI.php b/src/FacebookAds/Object/IGUserForIGOnlyAPI.php index fd040a135..9c993e513 100644 --- a/src/FacebookAds/Object/IGUserForIGOnlyAPI.php +++ b/src/FacebookAds/Object/IGUserForIGOnlyAPI.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\IGUserForIGOnlyAPIFields; +use FacebookAds\Object\Values\UnifiedThreadPlatformValues; /** * This class is auto-generated. @@ -39,6 +40,58 @@ protected static function getReferencedEnums() { } + public function getContentPublishingLimit(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'since' => 'datetime', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/content_publishing_limit', + new ContentPublishingLimitResponse(), + 'EDGE', + ContentPublishingLimitResponse::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getConversations(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'folder' => 'string', + 'platform' => 'platform_enum', + 'tags' => 'list', + 'user_id' => 'string', + ); + $enums = array( + 'platform_enum' => UnifiedThreadPlatformValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/conversations', + new UnifiedThread(), + 'EDGE', + UnifiedThread::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getLiveMedia(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -87,6 +140,249 @@ public function getMedia(array $fields = array(), array $params = array(), $pend return $pending ? $request : $request->execute(); } + public function createMedia(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'audio_name' => 'string', + 'caption' => 'string', + 'children' => 'list', + 'collaborators' => 'list', + 'cover_url' => 'string', + 'image_url' => 'string', + 'is_carousel_item' => 'bool', + 'location_id' => 'string', + 'media_type' => 'string', + 'product_tags' => 'list', + 'share_to_feed' => 'bool', + 'thumb_offset' => 'string', + 'upload_type' => 'string', + 'user_tags' => 'list', + 'video_url' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/media', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMediaPublish(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'creation_id' => 'unsigned int', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/mediapublish', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMention(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'comment_id' => 'string', + 'media_id' => 'string', + 'message' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/mentions', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMessageAttachment(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'message' => 'Object', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/messageattachments', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMessage(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'message' => 'Object', + 'messaging_type' => 'messaging_type_enum', + 'payload' => 'string', + 'recipient' => 'Object', + 'sender_action' => 'sender_action_enum', + 'tag' => 'Object', + 'thread_control' => 'Object', + ); + $enums = array( + 'messaging_type_enum' => array( + 'MESSAGE_TAG', + 'RESPONSE', + 'UPDATE', + 'UTILITY', + ), + 'sender_action_enum' => array( + 'MARK_SEEN', + 'REACT', + 'TYPING_OFF', + 'TYPING_ON', + 'UNREACT', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/messages', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function deleteMessengerProfile(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'fields' => 'list', + ); + $enums = array( + 'fields_enum' => array( + 'ACCOUNT_LINKING_URL', + 'COMMANDS', + 'DESCRIPTION', + 'GET_STARTED', + 'GREETING', + 'HOME_URL', + 'ICE_BREAKERS', + 'PAYMENT_SETTINGS', + 'PERSISTENT_MENU', + 'PLATFORM', + 'SUBJECT_TO_NEW_EU_PRIVACY_RULES', + 'TARGET_AUDIENCE', + 'TITLE', + 'WHITELISTED_DOMAINS', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/messenger_profile', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getMessengerProfile(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, + '/messenger_profile', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMessengerProfile(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ice_breakers' => 'list', + 'persistent_menu' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/messenger_profile', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getStories(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -110,6 +406,173 @@ public function getStories(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } + public function deleteSubscribedApps(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, + '/subscribed_apps', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSubscribedApps(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, + '/subscribed_apps', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createSubscribedApp(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'subscribed_fields' => 'list', + ); + $enums = array( + 'subscribed_fields_enum' => array( + 'comments', + 'creator_marketplace_invited_creator_onboarding', + 'creator_marketplace_projects', + 'delta', + 'live_comments', + 'mentions', + 'message_reactions', + 'messages', + 'messaging_handover', + 'messaging_optins', + 'messaging_postbacks', + 'messaging_referral', + 'messaging_seen', + 'standby', + 'story_insights', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/subscribed_apps', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getTags(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, + '/tags', + 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(); + + $param_types = array( + 'app_id' => 'string', + 'flow_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $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', + 'WHATSAPP', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/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 getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/InsightsResult.php b/src/FacebookAds/Object/InsightsResult.php index 7a6e967f9..c8af419e9 100644 --- a/src/FacebookAds/Object/InsightsResult.php +++ b/src/FacebookAds/Object/InsightsResult.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\InsightsResultFields; +use FacebookAds\Object\Values\InsightsResultBreakdownValues; use FacebookAds\Object\Values\InsightsResultDatePresetValues; use FacebookAds\Object\Values\InsightsResultMetricValues; use FacebookAds\Object\Values\InsightsResultPeriodValues; @@ -38,9 +39,10 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['DatePreset'] = InsightsResultDatePresetValues::getInstance()->getValues(); - $ref_enums['Period'] = InsightsResultPeriodValues::getInstance()->getValues(); + $ref_enums['Breakdown'] = InsightsResultBreakdownValues::getInstance()->getValues(); $ref_enums['Metric'] = InsightsResultMetricValues::getInstance()->getValues(); + $ref_enums['Period'] = InsightsResultPeriodValues::getInstance()->getValues(); + $ref_enums['DatePreset'] = InsightsResultDatePresetValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/InstagramUser.php b/src/FacebookAds/Object/InstagramUser.php index 70fa22643..882e61842 100644 --- a/src/FacebookAds/Object/InstagramUser.php +++ b/src/FacebookAds/Object/InstagramUser.php @@ -14,6 +14,8 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\InstagramUserFields; +use FacebookAds\Object\Values\IGUpcomingEventNotificationSubtypesValues; +use FacebookAds\Object\Values\IGUpcomingEventNotificationTargetTimeValues; /** * This class is auto-generated. @@ -162,10 +164,14 @@ public function createUpcomingEvent(array $fields = array(), array $params = arr $param_types = array( 'end_time' => 'datetime', + 'notification_subtypes' => 'list', + 'notification_target_time' => 'notification_target_time_enum', 'start_time' => 'datetime', 'title' => 'string', ); $enums = array( + 'notification_subtypes_enum' => IGUpcomingEventNotificationSubtypesValues::getInstance()->getValues(), + 'notification_target_time_enum' => IGUpcomingEventNotificationTargetTimeValues::getInstance()->getValues(), ); $request = new ApiRequest( diff --git a/src/FacebookAds/Object/LiveVideo.php b/src/FacebookAds/Object/LiveVideo.php index dcf29a1be..14295108e 100644 --- a/src/FacebookAds/Object/LiveVideo.php +++ b/src/FacebookAds/Object/LiveVideo.php @@ -115,7 +115,7 @@ public function getComments(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function getCrosspostShareDPages(array $fields = array(), array $params = array(), $pending = false) { + public function getCrosspostSharedPages(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/LocalServiceBusiness.php b/src/FacebookAds/Object/LocalServiceBusiness.php index 415da1833..a6f004b26 100644 --- a/src/FacebookAds/Object/LocalServiceBusiness.php +++ b/src/FacebookAds/Object/LocalServiceBusiness.php @@ -18,6 +18,7 @@ use FacebookAds\Object\Values\LocalServiceBusinessConditionValues; use FacebookAds\Object\Values\LocalServiceBusinessImageFetchStatusValues; use FacebookAds\Object\Values\LocalServiceBusinessVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -70,6 +71,32 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', + ); + $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/override_details', + new OverrideDetails(), + 'EDGE', + OverrideDetails::getFieldsEnum()->getValues(), + 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/LocationBasedItem.php b/src/FacebookAds/Object/LocationBasedItem.php deleted file mode 100644 index f622949a3..000000000 --- a/src/FacebookAds/Object/LocationBasedItem.php +++ /dev/null @@ -1,92 +0,0 @@ -getValues(); - $ref_enums['Visibility'] = LocationBasedItemVisibilityValues::getInstance()->getValues(); - return $ref_enums; - } - - - public function getChannelsToIntegrityStatus(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, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), - 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), - 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(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/', - new LocationBasedItem(), - 'NODE', - LocationBasedItem::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - -} diff --git a/src/FacebookAds/Object/MediaTitle.php b/src/FacebookAds/Object/MediaTitle.php index b85378b84..200f541eb 100644 --- a/src/FacebookAds/Object/MediaTitle.php +++ b/src/FacebookAds/Object/MediaTitle.php @@ -17,6 +17,7 @@ use FacebookAds\Object\Values\MediaTitleContentCategoryValues; use FacebookAds\Object\Values\MediaTitleImageFetchStatusValues; use FacebookAds\Object\Values\MediaTitleVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -45,7 +46,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -57,10 +58,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -68,22 +69,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/MessageDeliveryEstimate.php b/src/FacebookAds/Object/MessageDeliveryEstimate.php new file mode 100644 index 000000000..975f169b3 --- /dev/null +++ b/src/FacebookAds/Object/MessageDeliveryEstimate.php @@ -0,0 +1,46 @@ +getValues(); + $ref_enums['PacingType'] = MessageDeliveryEstimatePacingTypeValues::getInstance()->getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/DogNotificationSettings.php b/src/FacebookAds/Object/MessengerBusinessTemplate.php similarity index 79% rename from src/FacebookAds/Object/DogNotificationSettings.php rename to src/FacebookAds/Object/MessengerBusinessTemplate.php index 2ef5366dd..715fdf2a3 100644 --- a/src/FacebookAds/Object/DogNotificationSettings.php +++ b/src/FacebookAds/Object/MessengerBusinessTemplate.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\DogNotificationSettingsFields; +use FacebookAds\Object\Fields\MessengerBusinessTemplateFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class DogNotificationSettings extends AbstractCrudObject { +class MessengerBusinessTemplate extends AbstractCrudObject { /** - * @return DogNotificationSettingsFields + * @return MessengerBusinessTemplateFields */ public static function getFieldsEnum() { - return DogNotificationSettingsFields::getInstance(); + return MessengerBusinessTemplateFields::getInstance(); } protected static function getReferencedEnums() { @@ -52,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new DogNotificationSettings(), + new MessengerBusinessTemplate(), 'NODE', - DogNotificationSettings::getFieldsEnum()->getValues(), + MessengerBusinessTemplate::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/OfflineConversionDataSet.php b/src/FacebookAds/Object/OfflineConversionDataSet.php index 80bfe8bb1..3d437407d 100644 --- a/src/FacebookAds/Object/OfflineConversionDataSet.php +++ b/src/FacebookAds/Object/OfflineConversionDataSet.php @@ -164,7 +164,7 @@ public function getServerEventsPermittedBusiness(array $fields = array(), array return $pending ? $request : $request->execute(); } - public function getShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -190,7 +190,7 @@ public function getShareDAccounts(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function getShareDAgencies(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAgencies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/OfflineProductItem.php b/src/FacebookAds/Object/OfflineProductItem.php index f0b1f1b77..e2a904ec2 100644 --- a/src/FacebookAds/Object/OfflineProductItem.php +++ b/src/FacebookAds/Object/OfflineProductItem.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\OfflineProductItemFields; use FacebookAds\Object\Values\OfflineProductItemImageFetchStatusValues; use FacebookAds\Object\Values\OfflineProductItemVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -66,6 +67,32 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', + ); + $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/override_details', + new OverrideDetails(), + 'EDGE', + OverrideDetails::getFieldsEnum()->getValues(), + 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/OverrideDetails.php b/src/FacebookAds/Object/OverrideDetails.php new file mode 100644 index 000000000..90461b38b --- /dev/null +++ b/src/FacebookAds/Object/OverrideDetails.php @@ -0,0 +1,44 @@ +getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/Page.php b/src/FacebookAds/Object/Page.php index 410589cba..4aff2ec88 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -997,6 +997,29 @@ public function getCrosspostWhitelistedPages(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getCtxOptimizationEligibility(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, + '/ctx_optimization_eligibility', + new CTXOptimizationEligibility(), + 'EDGE', + CTXOptimizationEligibility::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getCustomLabels(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1122,7 +1145,7 @@ public function createCustomUserSetting(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getDataSet(array $fields = array(), array $params = array(), $pending = false) { + public function getDataset(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1135,9 +1158,9 @@ public function getDataSet(array $fields = array(), array $params = array(), $pe $this->data['id'], RequestInterface::METHOD_GET, '/dataset', - new AdsPixel(), + new Dataset(), 'EDGE', - AdsPixel::getFieldsEnum()->getValues(), + Dataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1145,10 +1168,11 @@ public function getDataSet(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } - public function createDataSet(array $fields = array(), array $params = array(), $pending = false) { + public function createDataset(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'dataset_name' => 'string', ); $enums = array( ); @@ -1158,9 +1182,9 @@ public function createDataSet(array $fields = array(), array $params = array(), $this->data['id'], RequestInterface::METHOD_POST, '/dataset', - new AdsPixel(), + new Dataset(), 'EDGE', - AdsPixel::getFieldsEnum()->getValues(), + Dataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1281,10 +1305,9 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'actions' => 'Object', 'album_id' => 'string', 'android_key_hash' => 'string', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', - 'asset3d_id' => 'unsigned int', + 'asset3d_id' => 'string', 'associated_id' => 'string', 'attach_place_suggestion' => 'bool', 'attached_media' => 'list', @@ -1316,10 +1339,9 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'expanded_width' => 'unsigned int', 'feed_targeting' => 'Object', 'formatting' => 'formatting_enum', - 'fun_fact_prompt_id' => 'unsigned int', + 'fun_fact_prompt_id' => 'string', 'fun_fact_toastee_id' => 'unsigned int', 'height' => 'unsigned int', - 'holiday_card' => 'string', 'home_checkin_city_id' => 'Object', 'image_crops' => 'map', 'implicit_with_tags' => 'list', @@ -1340,7 +1362,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'name' => 'string', 'nectar_module' => 'string', 'object_attachment' => 'string', - 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_hide_object_attachment' => 'bool', 'og_icon_id' => 'string', @@ -1437,31 +1458,6 @@ public function getGlobalBrandChildren(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getGroups(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'admin_only' => 'bool', - 'parent' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/groups', - new Group(), - 'EDGE', - Group::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getImageCopyrights(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1908,7 +1904,7 @@ public function createMediaFingerprint(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function createMessageAttachMEnt(array $fields = array(), array $params = array(), $pending = false) { + public function createMessageAttachment(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2044,7 +2040,7 @@ public function createMessengerCallSetting(array $fields = array(), array $param return $pending ? $request : $request->execute(); } - public function getMessengerLeadForMs(array $fields = array(), array $params = array(), $pending = false) { + public function getMessengerLeadForms(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2067,7 +2063,7 @@ public function getMessengerLeadForMs(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } - public function createMessengerLeadForM(array $fields = array(), array $params = array(), $pending = false) { + public function createMessengerLeadForm(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2361,7 +2357,7 @@ public function createPassThreadControl(array $fields = array(), array $params = $param_types = array( 'metadata' => 'string', 'recipient' => 'Object', - 'target_app_id' => 'int', + 'target_app_id' => 'string', ); $enums = array( ); @@ -2863,7 +2859,7 @@ public function getRtbDynamicPosts(array $fields = array(), array $params = arra return $pending ? $request : $request->execute(); } - public function getScheduleDPosts(array $fields = array(), array $params = array(), $pending = false) { + public function getScheduledPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -3497,7 +3493,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $param_types = array( 'ad_breaks' => 'list', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', @@ -3529,11 +3524,10 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'formatting' => 'formatting_enum', 'fov' => 'unsigned int', 'front_z_rotation' => 'float', - 'fun_fact_prompt_id' => 'unsigned int', + 'fun_fact_prompt_id' => 'string', 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', 'instant_game_entry_point_data' => 'string', @@ -3545,7 +3539,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'manual_privacy' => 'bool', 'multilingual_data' => 'list', 'no_story' => 'bool', - 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_icon_id' => 'string', 'og_object_id' => 'string', @@ -3703,6 +3696,7 @@ public function createWelcomeMessageFlow(array $fields = array(), array $params 'eligible_platforms_enum' => array( 'INSTAGRAM', 'MESSENGER', + 'WHATSAPP', ), ); diff --git a/src/FacebookAds/Object/PageCTXMessagingFeatureLimit.php b/src/FacebookAds/Object/PageCTXMessagingFeatureLimit.php new file mode 100644 index 000000000..4d3fb923e --- /dev/null +++ b/src/FacebookAds/Object/PageCTXMessagingFeatureLimit.php @@ -0,0 +1,42 @@ +assureId(); $param_types = array( @@ -294,7 +294,7 @@ public function getReactions(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function getShareDPosts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/CatalogItemAppealStatus.php b/src/FacebookAds/Object/Placement.php similarity index 60% rename from src/FacebookAds/Object/CatalogItemAppealStatus.php rename to src/FacebookAds/Object/Placement.php index 6d3600367..d93138735 100644 --- a/src/FacebookAds/Object/CatalogItemAppealStatus.php +++ b/src/FacebookAds/Object/Placement.php @@ -13,8 +13,9 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\CatalogItemAppealStatusFields; -use FacebookAds\Object\Values\CatalogItemAppealStatusStatusValues; +use FacebookAds\Object\Fields\PlacementFields; +use FacebookAds\Object\Values\PlacementDevicePlatformsValues; +use FacebookAds\Object\Values\PlacementEffectiveDevicePlatformsValues; /** * This class is auto-generated. @@ -25,18 +26,19 @@ * */ -class CatalogItemAppealStatus extends AbstractObject { +class Placement extends AbstractObject { /** - * @return CatalogItemAppealStatusFields + * @return PlacementFields */ public static function getFieldsEnum() { - return CatalogItemAppealStatusFields::getInstance(); + return PlacementFields::getInstance(); } protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['Status'] = CatalogItemAppealStatusStatusValues::getInstance()->getValues(); + $ref_enums['DevicePlatforms'] = PlacementDevicePlatformsValues::getInstance()->getValues(); + $ref_enums['EffectiveDevicePlatforms'] = PlacementEffectiveDevicePlatformsValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/Post.php b/src/FacebookAds/Object/Post.php index c30d0b104..c85e4adf3 100644 --- a/src/FacebookAds/Object/Post.php +++ b/src/FacebookAds/Object/Post.php @@ -64,7 +64,7 @@ protected static function getReferencedEnums() { } - public function getAttachMEnts(array $fields = array(), array $params = array(), $pending = false) { + public function getAttachments(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -281,7 +281,7 @@ public function getReactions(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function getShareDPosts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/ProductCatalog.php b/src/FacebookAds/Object/ProductCatalog.php index 2c1608c36..4df55cc94 100644 --- a/src/FacebookAds/Object/ProductCatalog.php +++ b/src/FacebookAds/Object/ProductCatalog.php @@ -149,7 +149,7 @@ public function createAgency(array $fields = array(), array $params = array(), $ 'business' => 'string', 'permitted_roles' => 'list', 'permitted_tasks' => 'list', - 'skip_default_utms' => 'bool', + 'skip_defaults' => 'bool', 'utm_settings' => 'map', ); $enums = array( @@ -934,6 +934,30 @@ public function createLocalizedItemsBatch(array $fields = array(), array $params return $pending ? $request : $request->execute(); } + public function createMarketPlacePartnerSellersDetail(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'requests' => 'map', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/marketplace_partner_sellers_details', + new ProductCatalog(), + 'EDGE', + ProductCatalog::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getPricingVariablesBatch(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1223,7 +1247,6 @@ public function createProduct(array $fields = array(), array $params = array(), $param_types = array( 'additional_image_urls' => 'list', - 'additional_uploaded_image_ids' => 'list', 'additional_variant_attributes' => 'map', 'android_app_name' => 'string', 'android_class' => 'string', @@ -1278,6 +1301,11 @@ public function createProduct(array $fields = array(), array $params = array(), 'origin_country' => 'origin_country_enum', 'pattern' => 'string', 'price' => 'unsigned int', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', diff --git a/src/FacebookAds/Object/ProductCatalogDiagnosticGroup.php b/src/FacebookAds/Object/ProductCatalogDiagnosticGroup.php index 3f91365b9..e3416b117 100644 --- a/src/FacebookAds/Object/ProductCatalogDiagnosticGroup.php +++ b/src/FacebookAds/Object/ProductCatalogDiagnosticGroup.php @@ -43,11 +43,11 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['AffectedChannels'] = ProductCatalogDiagnosticGroupAffectedChannelsValues::getInstance()->getValues(); $ref_enums['AffectedEntity'] = ProductCatalogDiagnosticGroupAffectedEntityValues::getInstance()->getValues(); $ref_enums['AffectedFeatures'] = ProductCatalogDiagnosticGroupAffectedFeaturesValues::getInstance()->getValues(); $ref_enums['Severity'] = ProductCatalogDiagnosticGroupSeverityValues::getInstance()->getValues(); $ref_enums['Type'] = ProductCatalogDiagnosticGroupTypeValues::getInstance()->getValues(); + $ref_enums['AffectedChannels'] = ProductCatalogDiagnosticGroupAffectedChannelsValues::getInstance()->getValues(); $ref_enums['AffectedEntities'] = ProductCatalogDiagnosticGroupAffectedEntitiesValues::getInstance()->getValues(); $ref_enums['Severities'] = ProductCatalogDiagnosticGroupSeveritiesValues::getInstance()->getValues(); $ref_enums['Types'] = ProductCatalogDiagnosticGroupTypesValues::getInstance()->getValues(); diff --git a/src/FacebookAds/Object/ProductCatalogExampleFeed.php b/src/FacebookAds/Object/ProductCatalogExampleFeed.php deleted file mode 100644 index 051f23e3a..000000000 --- a/src/FacebookAds/Object/ProductCatalogExampleFeed.php +++ /dev/null @@ -1,42 +0,0 @@ -assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ProductDeliveryPreference(), + 'NODE', + ProductDeliveryPreference::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ProductFeedMissingFeedItemReplacement.php b/src/FacebookAds/Object/ProductFeedMissingFeedItemReplacement.php deleted file mode 100644 index 2321cc192..000000000 --- a/src/FacebookAds/Object/ProductFeedMissingFeedItemReplacement.php +++ /dev/null @@ -1,42 +0,0 @@ - 'unsigned int', 'pattern' => 'string', 'price' => 'unsigned int', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', diff --git a/src/FacebookAds/Object/ProductItem.php b/src/FacebookAds/Object/ProductItem.php index 5f0202649..a07f7f647 100644 --- a/src/FacebookAds/Object/ProductItem.php +++ b/src/FacebookAds/Object/ProductItem.php @@ -14,8 +14,10 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ProductItemFields; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; use FacebookAds\Object\Values\ProductItemAgeGroupValues; use FacebookAds\Object\Values\ProductItemAvailabilityValues; +use FacebookAds\Object\Values\ProductItemCapabilityToReviewStatusValues; use FacebookAds\Object\Values\ProductItemCommerceTaxCategoryValues; use FacebookAds\Object\Values\ProductItemConditionValues; use FacebookAds\Object\Values\ProductItemErrorPriorityValues; @@ -59,6 +61,7 @@ protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['AgeGroup'] = ProductItemAgeGroupValues::getInstance()->getValues(); $ref_enums['Availability'] = ProductItemAvailabilityValues::getInstance()->getValues(); + $ref_enums['CapabilityToReviewStatus'] = ProductItemCapabilityToReviewStatusValues::getInstance()->getValues(); $ref_enums['Condition'] = ProductItemConditionValues::getInstance()->getValues(); $ref_enums['Gender'] = ProductItemGenderValues::getInstance()->getValues(); $ref_enums['ImageFetchStatus'] = ProductItemImageFetchStatusValues::getInstance()->getValues(); @@ -99,6 +102,32 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', + ); + $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/override_details', + new OverrideDetails(), + 'EDGE', + OverrideDetails::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getProductSets(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -201,7 +230,6 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe $param_types = array( 'additional_image_urls' => 'list', - 'additional_uploaded_image_ids' => 'list', 'additional_variant_attributes' => 'map', 'android_app_name' => 'string', 'android_class' => 'string', @@ -256,6 +284,11 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'origin_country' => 'origin_country_enum', 'pattern' => 'string', 'price' => 'unsigned int', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', diff --git a/src/FacebookAds/Object/ServerSide/Event.php b/src/FacebookAds/Object/ServerSide/Event.php index 2aa5af26c..2801bc3f1 100644 --- a/src/FacebookAds/Object/ServerSide/Event.php +++ b/src/FacebookAds/Object/ServerSide/Event.php @@ -268,7 +268,7 @@ public function setEventId($event_id) { /** * Sets UserData object that contains user data. - * @param FacebookAds\Object\ServerSide\UserData $user_data + * @param \FacebookAds\Object\ServerSide\UserData $user_data * @return $this */ public function setUserData($user_data) { @@ -279,7 +279,7 @@ public function setUserData($user_data) { /** * Sets CustomData object that includes additional business data about the event. - * @param FacebookAds\Object\ServerSide\CustomData $custom_data + * @param \FacebookAds\Object\ServerSide\CustomData $custom_data * @return $this */ public function setCustomData($custom_data) { @@ -473,7 +473,7 @@ public function getEventId() { /** * Gets UserData object that contains user data - * @return FacebookAds\Object\ServerSide\UserData + * @return \FacebookAds\Object\ServerSide\UserData */ public function getUserData() { return $this->container['user_data']; @@ -481,7 +481,7 @@ public function getUserData() { /** * Gets customData object that includes additional business data about the event. - * @return FacebookAds\Object\ServerSide\CustomData + * @return \FacebookAds\Object\ServerSide\CustomData */ public function getCustomData() { return $this->container['custom_data']; diff --git a/src/FacebookAds/Object/ServerSide/EventRequest.php b/src/FacebookAds/Object/ServerSide/EventRequest.php index dd9be73d3..96f8d982a 100644 --- a/src/FacebookAds/Object/ServerSide/EventRequest.php +++ b/src/FacebookAds/Object/ServerSide/EventRequest.php @@ -157,7 +157,7 @@ public function valid() { /** * Sets an array of Server Event objects - * @param FacebookAds\Object\ServerSide\Event[] $events An array of Server Event objects + * @param \FacebookAds\Object\ServerSide\Event[] $events An array of Server Event objects * @return $this */ public function setEvents($events) { diff --git a/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php b/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php index 9510ddc7d..d0d42d5ba 100644 --- a/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php +++ b/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php @@ -27,7 +27,7 @@ interface HttpServiceInterface { /** * @param string $url The graph API endpoint that will be requested - * @param FacebookAds\Object\ServerSide\HttpMethod $method The HTTP request method + * @param \FacebookAds\Object\ServerSide\HttpMethod $method The HTTP request method * @param array $curl_options Contains curl options * @param array $headers Contains HTTP request headers including User-Agent and Accept-Encoding * @param array $params Contains request parameters including access_token, data, test_event_code, etc. diff --git a/src/FacebookAds/Object/ServerSide/UserData.php b/src/FacebookAds/Object/ServerSide/UserData.php index 54d66e253..b81ceeb7a 100644 --- a/src/FacebookAds/Object/ServerSide/UserData.php +++ b/src/FacebookAds/Object/ServerSide/UserData.php @@ -452,7 +452,7 @@ public function setPhones($phones) { /** * Sets Gender, in lowercase. Either f or m. - * @param FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m. + * @param \FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m. * @return $this */ public function setGender($gender) { @@ -464,7 +464,7 @@ public function setGender($gender) { /** * Sets a list of Genders, in lowercase. *

Example: array('f', 'm') - * @param FacebookAds\Object\ServerSide\Gender[] $genders A list of Genders, in lowercase. + * @param \FacebookAds\Object\ServerSide\Gender[] $genders A list of Genders, in lowercase. * @return $this */ public function setGenders($genders) { diff --git a/src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php b/src/FacebookAds/Object/ShadowIGUserPartnershipAdsMediaErrors.php similarity index 75% rename from src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php rename to src/FacebookAds/Object/ShadowIGUserPartnershipAdsMediaErrors.php index 558a92b47..1c844dd28 100644 --- a/src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php +++ b/src/FacebookAds/Object/ShadowIGUserPartnershipAdsMediaErrors.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\ProductCatalogMicrodataStatsPixelInfoFields; +use FacebookAds\Object\Fields\ShadowIGUserPartnershipAdsMediaErrorsFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class ProductCatalogMicrodataStatsPixelInfo extends AbstractObject { +class ShadowIGUserPartnershipAdsMediaErrors extends AbstractObject { /** - * @return ProductCatalogMicrodataStatsPixelInfoFields + * @return ShadowIGUserPartnershipAdsMediaErrorsFields */ public static function getFieldsEnum() { - return ProductCatalogMicrodataStatsPixelInfoFields::getInstance(); + return ShadowIGUserPartnershipAdsMediaErrorsFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/Signal/Event.php b/src/FacebookAds/Object/Signal/Event.php index d5d1b97be..328081edd 100644 --- a/src/FacebookAds/Object/Signal/Event.php +++ b/src/FacebookAds/Object/Signal/Event.php @@ -99,7 +99,7 @@ public function setEventId($event_id) { /** * Sets UserData object that contains user data. - * @param FacebookAds\Object\Signal\UserData $user_data + * @param \FacebookAds\Object\Signal\UserData $user_data * @return $this */ public function setUserData($user_data) { @@ -111,7 +111,7 @@ public function setUserData($user_data) { /** * Sets CustomData object that includes additional business data about the event. - * @param FacebookAds\Object\Signal\CustomData $custom_data + * @param \FacebookAds\Object\Signal\CustomData $custom_data * @return $this */ public function setCustomData($custom_data) { diff --git a/src/FacebookAds/Object/Signal/EventRequest.php b/src/FacebookAds/Object/Signal/EventRequest.php index fbe353e6e..2c8dc8123 100644 --- a/src/FacebookAds/Object/Signal/EventRequest.php +++ b/src/FacebookAds/Object/Signal/EventRequest.php @@ -75,7 +75,7 @@ public function __construct(string $pixel_id, string $page_id, array $data = nul /** * Sets an array of Signal Event objects - * @param FacebookAds\Object\Signal\Event[] $events An array of Signal Event objects + * @param \FacebookAds\Object\Signal\Event[] $events An array of Signal Event objects * @return $this */ public function setEvents($events) { diff --git a/src/FacebookAds/Object/Signal/UserData.php b/src/FacebookAds/Object/Signal/UserData.php index 82c48cd09..aa6c9ca53 100644 --- a/src/FacebookAds/Object/Signal/UserData.php +++ b/src/FacebookAds/Object/Signal/UserData.php @@ -86,7 +86,7 @@ public function setPhone($phone) { /** * Sets Gender, in lowercase. Either f or m. - * @param FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m. + * @param \FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m. * @return $this */ public function setGender($gender) { diff --git a/src/FacebookAds/Object/Stories.php b/src/FacebookAds/Object/Stories.php index d3095a7f7..52cdc711e 100644 --- a/src/FacebookAds/Object/Stories.php +++ b/src/FacebookAds/Object/Stories.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\StoriesFields; +use FacebookAds\Object\Values\InsightsResultMetricValues; use FacebookAds\Object\Values\StoriesStatusValues; /** @@ -25,7 +26,7 @@ * */ -class Stories extends AbstractObject { +class Stories extends AbstractCrudObject { /** * @return StoriesFields @@ -41,4 +42,52 @@ protected static function getReferencedEnums() { } + public function getInsights(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'metric' => 'list', + ); + $enums = array( + 'metric_enum' => InsightsResultMetricValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/insights', + new InsightsResult(), + 'EDGE', + InsightsResult::getFieldsEnum()->getValues(), + 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(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new Stories(), + 'NODE', + Stories::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + } diff --git a/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php b/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php index 96f4112c0..4144b3285 100644 --- a/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php +++ b/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php @@ -14,6 +14,8 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ThirdPartyPartnerViewabilityRequestFields; +use FacebookAds\Object\Values\ThirdPartyPartnerViewabilityRequestMetricValues; +use FacebookAds\Object\Values\ThirdPartyPartnerViewabilityRequestPlatformValues; use FacebookAds\Object\Values\ThirdPartyPartnerViewabilityRequestStatusValues; /** @@ -36,6 +38,8 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['Metric'] = ThirdPartyPartnerViewabilityRequestMetricValues::getInstance()->getValues(); + $ref_enums['Platform'] = ThirdPartyPartnerViewabilityRequestPlatformValues::getInstance()->getValues(); $ref_enums['Status'] = ThirdPartyPartnerViewabilityRequestStatusValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/TransactableItem.php b/src/FacebookAds/Object/TransactableItem.php index 87c95c69d..58725aa23 100644 --- a/src/FacebookAds/Object/TransactableItem.php +++ b/src/FacebookAds/Object/TransactableItem.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\TransactableItemFields; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; use FacebookAds\Object\Values\TransactableItemImageFetchStatusValues; use FacebookAds\Object\Values\TransactableItemVisibilityValues; @@ -66,6 +67,32 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', + ); + $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/override_details', + new OverrideDetails(), + 'EDGE', + OverrideDetails::getFieldsEnum()->getValues(), + 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/User.php b/src/FacebookAds/Object/User.php index a0a2fdd25..e04ff3099 100644 --- a/src/FacebookAds/Object/User.php +++ b/src/FacebookAds/Object/User.php @@ -108,9 +108,9 @@ public function createAccessToken(array $fields = array(), array $params = array $this->assureId(); $param_types = array( - 'business_app' => 'int', + 'business_app' => 'string', 'page_id' => 'string', - 'scope' => 'list', + 'scope' => 'list', 'set_token_expires_in_60_days' => 'bool', ); $enums = array( @@ -135,6 +135,7 @@ public function getAccounts(array $fields = array(), array $params = array(), $p $this->assureId(); $param_types = array( + 'ad_id' => 'string', 'is_place' => 'bool', 'is_promotable' => 'bool', ); @@ -729,10 +730,9 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'actions' => 'Object', 'album_id' => 'string', 'android_key_hash' => 'string', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', - 'asset3d_id' => 'unsigned int', + 'asset3d_id' => 'string', 'associated_id' => 'string', 'attach_place_suggestion' => 'bool', 'attached_media' => 'list', @@ -763,10 +763,9 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'expanded_width' => 'unsigned int', 'feed_targeting' => 'Object', 'formatting' => 'formatting_enum', - 'fun_fact_prompt_id' => 'unsigned int', + 'fun_fact_prompt_id' => 'string', 'fun_fact_toastee_id' => 'unsigned int', 'height' => 'unsigned int', - 'holiday_card' => 'string', 'home_checkin_city_id' => 'Object', 'image_crops' => 'map', 'implicit_with_tags' => 'list', @@ -787,7 +786,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'name' => 'string', 'nectar_module' => 'string', 'object_attachment' => 'string', - 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_hide_object_attachment' => 'bool', 'og_icon_id' => 'string', @@ -1557,7 +1555,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $this->assureId(); $param_types = array( - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', @@ -1582,11 +1579,10 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'formatting' => 'formatting_enum', 'fov' => 'unsigned int', 'front_z_rotation' => 'float', - 'fun_fact_prompt_id' => 'unsigned int', + 'fun_fact_prompt_id' => 'string', 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', 'instant_game_entry_point_data' => 'string', @@ -1597,7 +1593,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'location_source_id' => 'string', 'manual_privacy' => 'bool', 'no_story' => 'bool', - 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_icon_id' => 'string', 'og_object_id' => 'string', diff --git a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php index 9cc9c845d..cfeb2e354 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php @@ -25,13 +25,17 @@ class AdAccountAdRulesHistoryActionValues extends AbstractEnum { const BUDGET_NOT_REDISTRIBUTED = 'BUDGET_NOT_REDISTRIBUTED'; const CHANGED_BID = 'CHANGED_BID'; const CHANGED_BUDGET = 'CHANGED_BUDGET'; + const CONSOLIDATE_ASC_FRAGMENTATION = 'CONSOLIDATE_ASC_FRAGMENTATION'; + const CONVERT_ASC_CP_SINGLE_INSTANCE = 'CONVERT_ASC_CP_SINGLE_INSTANCE'; const EMAIL = 'EMAIL'; const ENABLE_ADVANTAGE_CAMPAIGN_BUDGET = 'ENABLE_ADVANTAGE_CAMPAIGN_BUDGET'; 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_GEN_UNCROP = 'ENABLE_GEN_UNCROP'; + const ENABLE_LANDING_PAGE_VIEWS = 'ENABLE_LANDING_PAGE_VIEWS'; const ENABLE_MUSIC = 'ENABLE_MUSIC'; + const ENABLE_REELS_PLACEMENTS = 'ENABLE_REELS_PLACEMENTS'; const ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION = 'ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION'; const ENABLE_SHOPS_ADS = 'ENABLE_SHOPS_ADS'; const ENDPOINT_PINGED = 'ENDPOINT_PINGED'; diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index 30551b501..ded1fef30 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -24,42 +24,58 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AAC_CREATION_PACKAGE = 'AAC_CREATION_PACKAGE'; const AB_TEST = 'AB_TEST'; + const ACCOUNT_NEEDS_CREDIT = 'ACCOUNT_NEEDS_CREDIT'; const ACCOUNT_SPEND_LIMIT = 'ACCOUNT_SPEND_LIMIT'; + const ACCOUNT_SPEND_LIMIT_DUPLICATION = 'ACCOUNT_SPEND_LIMIT_DUPLICATION'; 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_CAMPAIGN_BUDGET_DUPLICATION = 'ADVANTAGE_CAMPAIGN_BUDGET_DUPLICATION'; const ADVANTAGE_CUSTOM_AUDIENCE = 'ADVANTAGE_CUSTOM_AUDIENCE'; + const ADVANTAGE_CUSTOM_AUDIENCE_DUPLICATION = 'ADVANTAGE_CUSTOM_AUDIENCE_DUPLICATION'; 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_LOOKALIKE_DUPLICATION = 'ADVANTAGE_LOOKALIKE_DUPLICATION'; + const ADVANTAGE_PLUS_APP_CAMPAIGN = 'ADVANTAGE_PLUS_APP_CAMPAIGN'; + const ADVANTAGE_PLUS_APP_CAMPAIGN_PRECREATE = 'ADVANTAGE_PLUS_APP_CAMPAIGN_PRECREATE'; const ADVANTAGE_PLUS_AUDIENCE = 'ADVANTAGE_PLUS_AUDIENCE'; const ADVANTAGE_PLUS_AUDIENCE_DUPLICATION = 'ADVANTAGE_PLUS_AUDIENCE_DUPLICATION'; const ADVANTAGE_PLUS_AUDIENCE_FRICTION = 'ADVANTAGE_PLUS_AUDIENCE_FRICTION'; const ADVANTAGE_PLUS_AUDIENCE_TOGGLE = 'ADVANTAGE_PLUS_AUDIENCE_TOGGLE'; const ADVANTAGE_PLUS_CAMPAIGN_BUDGET = 'ADVANTAGE_PLUS_CAMPAIGN_BUDGET'; + const ADVANTAGE_PLUS_CATALOG_ADS = 'ADVANTAGE_PLUS_CATALOG_ADS'; const ADVANTAGE_PLUS_CREATIVE = 'ADVANTAGE_PLUS_CREATIVE'; const ADVANTAGE_PLUS_CREATIVE_CATALOG = 'ADVANTAGE_PLUS_CREATIVE_CATALOG'; const ADVANTAGE_PLUS_CREATIVE_SE = 'ADVANTAGE_PLUS_CREATIVE_SE'; const ADVANTAGE_PLUS_PLACEMENTS_DUPLICATION = 'ADVANTAGE_PLUS_PLACEMENTS_DUPLICATION'; const ADVANTAGE_PLUS_PLACEMENTS_FRICTION = 'ADVANTAGE_PLUS_PLACEMENTS_FRICTION'; + const ADVANTAGE_PLUS_PLACEMENTS_V2_DUPLICATION = 'ADVANTAGE_PLUS_PLACEMENTS_V2_DUPLICATION'; const ADVANTAGE_SHOPPING_CAMPAIGN = 'ADVANTAGE_SHOPPING_CAMPAIGN'; const ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION = 'ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION'; + const AD_LIFT_RECALL_GOAL = 'AD_LIFT_RECALL_GOAL'; + const AD_LIFT_RECALL_GOAL_PRECREATE = 'AD_LIFT_RECALL_GOAL_PRECREATE'; + const AD_LIFT_RECALL_OPTIMIZATION_GOAL = 'AD_LIFT_RECALL_OPTIMIZATION_GOAL'; const AD_OBJECTIVE = 'AD_OBJECTIVE'; const AEM_V2_INELIGIBLE = 'AEM_V2_INELIGIBLE'; const AGGREGATED_BID_LIMITED = 'AGGREGATED_BID_LIMITED'; const AGGREGATED_BUDGET_LIMITED = 'AGGREGATED_BUDGET_LIMITED'; const AGGREGATED_COST_LIMITED = 'AGGREGATED_COST_LIMITED'; + const APLUS_C_CATALOG_DUPLICATION = 'APLUS_C_CATALOG_DUPLICATION'; const APP_AEM_V2_INSTALLATION_PROMOTION = 'APP_AEM_V2_INSTALLATION_PROMOTION'; + const APP_ENGAGED_VIEW_CONVERSIONS_DUPLICATION = 'APP_ENGAGED_VIEW_CONVERSIONS_DUPLICATION'; const ASC_BUDGET_OPTIMIZATION = 'ASC_BUDGET_OPTIMIZATION'; const ASC_CREATION_PACKAGE = 'ASC_CREATION_PACKAGE'; const ASC_FRAGMENTATION_V2 = 'ASC_FRAGMENTATION_V2'; + const ASC_PRECREATE = 'ASC_PRECREATE'; 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_GEORADIUS = 'AUDIENCE_EXPANSION_GEORADIUS'; + const AUDIENCE_EXPANSION_LOOKALIKE = 'AUDIENCE_EXPANSION_LOOKALIKE'; const AUDIENCE_EXPANSION_RETARGETING = 'AUDIENCE_EXPANSION_RETARGETING'; const AUDIENCE_LEARNING_LIMITED = 'AUDIENCE_LEARNING_LIMITED'; const AUTOFLOW_OPT_IN = 'AUTOFLOW_OPT_IN'; @@ -68,14 +84,21 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AUTOMATIC_PLACEMENTS = 'AUTOMATIC_PLACEMENTS'; const AUTOMATIC_PLACEMENTS_V2 = 'AUTOMATIC_PLACEMENTS_V2'; const AUTO_BID = 'AUTO_BID'; + const BACKGROUND_GENERATION = 'BACKGROUND_GENERATION'; const BLENDED_ADS = 'BLENDED_ADS'; + const BLENDED_ADS_DUPLICATION = 'BLENDED_ADS_DUPLICATION'; + const BLENDED_ADS_FOR_SHOPS_ADS_DUPLICATION = 'BLENDED_ADS_FOR_SHOPS_ADS_DUPLICATION'; const BROAD_TARGETING = 'BROAD_TARGETING'; const BUDGET_LIMITED = 'BUDGET_LIMITED'; const CAPI = 'CAPI'; + const CAPI_CRM_GUIDANCE = 'CAPI_CRM_GUIDANCE'; const CAPI_PERFORMANCE_MATCH_KEY = 'CAPI_PERFORMANCE_MATCH_KEY'; const CAPI_PERFORMANCE_MATCH_KEY_V2 = 'CAPI_PERFORMANCE_MATCH_KEY_V2'; const CASH_REWARDS_OPT_IN = 'CASH_REWARDS_OPT_IN'; + const CATALOG_MATCH_RATE = 'CATALOG_MATCH_RATE'; + const COMMERCE_SHOPS_ADS_DUPLICATION = 'COMMERCE_SHOPS_ADS_DUPLICATION'; const CONNECTED_SOURCES = 'CONNECTED_SOURCES'; + const CONNECTED_SOURCES_DUPLICATION = 'CONNECTED_SOURCES_DUPLICATION'; 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'; @@ -90,68 +113,116 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const CREATIVE_BADGE = 'CREATIVE_BADGE'; const CREATIVE_DIVERSITY = 'CREATIVE_DIVERSITY'; const CREATIVE_FATIGUE = 'CREATIVE_FATIGUE'; + const CREATIVE_FATIGUE_DUPLICATION = 'CREATIVE_FATIGUE_DUPLICATION'; const CREATIVE_FATIGUE_HOURLY = 'CREATIVE_FATIGUE_HOURLY'; const CREATIVE_LIMITED = 'CREATIVE_LIMITED'; + const CREATIVE_LIMITED_DUPLICATION = 'CREATIVE_LIMITED_DUPLICATION'; const CREATIVE_LIMITED_HOURLY = 'CREATIVE_LIMITED_HOURLY'; const CREATOR_ADS_PA_CONVERSION = 'CREATOR_ADS_PA_CONVERSION'; const CTA = 'CTA'; const CTX_BUDGET_OPTIMIZATION = 'CTX_BUDGET_OPTIMIZATION'; const CTX_CREATION_PACKAGE = 'CTX_CREATION_PACKAGE'; + const CTX_CTA_UPGRADE_IN_DUPLICATION = 'CTX_CTA_UPGRADE_IN_DUPLICATION'; + const CTX_CTMPO_UPGRADE = 'CTX_CTMPO_UPGRADE'; const CTX_GUIDANCE = 'CTX_GUIDANCE'; + const CTX_PRECREATE = 'CTX_PRECREATE'; const DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS = 'DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS'; const DA_DUPLICATION_PRODUCT_TAGS = 'DA_DUPLICATION_PRODUCT_TAGS'; const DEAD_LINK = 'DEAD_LINK'; const DEFRAGMENTATION_ACB = 'DEFRAGMENTATION_ACB'; + const DEFRAGMENTATION_ACB_DUPLICATION = 'DEFRAGMENTATION_ACB_DUPLICATION'; + const DELIVERY_ERROR = 'DELIVERY_ERROR'; + const DELIVERY_WARNING = 'DELIVERY_WARNING'; const DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET = 'DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET'; const ECOSYSTEM_BID_REDUCE_L1_CARDINALITY = 'ECOSYSTEM_BID_REDUCE_L1_CARDINALITY'; + const ENGAGED_VIEW_CONVERSIONS_CREATION = 'ENGAGED_VIEW_CONVERSIONS_CREATION'; const EVC_APP_DUPLICATION_UPGRADE = 'EVC_APP_DUPLICATION_UPGRADE'; const EVC_WEB_DUPLICATION_UPGRADE = 'EVC_WEB_DUPLICATION_UPGRADE'; const FRAGMENTATION = 'FRAGMENTATION'; + const FRAGMENTATION_RESOLUTION_UPDATE = 'FRAGMENTATION_RESOLUTION_UPDATE'; const FRAGMENTATION_V2 = 'FRAGMENTATION_V2'; + const GENERATIVE_UNCROP_DUPLICATION = 'GENERATIVE_UNCROP_DUPLICATION'; const GES_TEST = 'GES_TEST'; const GUIDANCE_CENTER_CODE_GEN = 'GUIDANCE_CENTER_CODE_GEN'; const HEURISTIC_DEFAULT_DURATION = 'HEURISTIC_DEFAULT_DURATION'; const HIGH_COST = 'HIGH_COST'; const HISTORICAL_BENCHMARK = 'HISTORICAL_BENCHMARK'; const IG_MULTI_ADS = 'IG_MULTI_ADS'; + const LANDING_PAGE_VIEW = 'LANDING_PAGE_VIEW'; + const LANDING_PAGE_VIEW_OPTIMIZATION_GOAL = 'LANDING_PAGE_VIEW_OPTIMIZATION_GOAL'; + const LANDING_PAGE_VIEW_PRECREATE = 'LANDING_PAGE_VIEW_PRECREATE'; 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'; + const LOW_BUDGET_UTILIZATION = 'LOW_BUDGET_UTILIZATION'; const LOW_OUTCOME = 'LOW_OUTCOME'; const MERLIN_GUIDANCE = 'MERLIN_GUIDANCE'; + const MESSAGING_EVENTS = 'MESSAGING_EVENTS'; + const MESSAGING_EVENTS_PRECREATE = 'MESSAGING_EVENTS_PRECREATE'; + const MESSAGING_PARTNERS = 'MESSAGING_PARTNERS'; + const MESSAGING_PARTNERS_PRECREATE = 'MESSAGING_PARTNERS_PRECREATE'; + const META_VERIFIED_ADS_PERFORMANCE_GUIDANCE = 'META_VERIFIED_ADS_PERFORMANCE_GUIDANCE'; + const MISSING_OR_INVALID_PARAMETERS = 'MISSING_OR_INVALID_PARAMETERS'; + const MIXED_FORMATS = 'MIXED_FORMATS'; const MIXED_PA_COMBINE_ADSETS = 'MIXED_PA_COMBINE_ADSETS'; const MMT_CAROUSEL_TO_VIDEO = 'MMT_CAROUSEL_TO_VIDEO'; + const MOBILE_FIRST_CREATIVE = 'MOBILE_FIRST_CREATIVE'; const MOBILE_FIRST_VIDEO = 'MOBILE_FIRST_VIDEO'; const MR_AEMV2SUB_KCONSOLIDATION = 'MR_AEMV2SUB_KCONSOLIDATION'; + const MULTI_ADVERTISER_ADS = 'MULTI_ADVERTISER_ADS'; const MULTI_TEXT = 'MULTI_TEXT'; const MUSIC = 'MUSIC'; const NOT_APPLICABLE = 'NOT_APPLICABLE'; const NO_DELIVERY_STATUS = 'NO_DELIVERY_STATUS'; + const OFFSITE_CONVERSION = 'OFFSITE_CONVERSION'; const OPTIMAL_BAU = 'OPTIMAL_BAU'; + const OUTCOME_FORECASTER_SHADOW_LOGGING = 'OUTCOME_FORECASTER_SHADOW_LOGGING'; const PAYMENT_METHOD = 'PAYMENT_METHOD'; const PERFORMANT_CREATIVE_REELS_OPT_IN = 'PERFORMANT_CREATIVE_REELS_OPT_IN'; const PFR_L1_INLINE_MMT = 'PFR_L1_INLINE_MMT'; + const PIXEL_OPTIMIZATION_AAM = 'PIXEL_OPTIMIZATION_AAM'; + const PIXEL_OPTIMIZATION_AAM_PRECREATE = 'PIXEL_OPTIMIZATION_AAM_PRECREATE'; + const PIXEL_OPTIMIZATION_HIE = 'PIXEL_OPTIMIZATION_HIE'; + const PIXEL_OPTIMIZATION_HIE_PRECREATE = 'PIXEL_OPTIMIZATION_HIE_PRECREATE'; + const PIXEL_SETUP = 'PIXEL_SETUP'; + const PIXEL_SETUP_PRECREATE = 'PIXEL_SETUP_PRECREATE'; const PIXEL_UPSELL = 'PIXEL_UPSELL'; + const PLACEMENTS_LIQUIDITY_AUTOMATIC_GUIDANCE = 'PLACEMENTS_LIQUIDITY_AUTOMATIC_GUIDANCE'; const PREDICTIVE_CREATIVE_LIMITED = 'PREDICTIVE_CREATIVE_LIMITED'; const PREDICTIVE_CREATIVE_LIMITED_HOURLY = 'PREDICTIVE_CREATIVE_LIMITED_HOURLY'; const PREPARING_STATUS = 'PREPARING_STATUS'; const PURCHASE_OPTIMIZATION = 'PURCHASE_OPTIMIZATION'; const RAPID_LEARNING_LIMITED = 'RAPID_LEARNING_LIMITED'; const RAPID_LEARNING_PHASE = 'RAPID_LEARNING_PHASE'; + const REACH_OPTIMIZATION_GOAL = 'REACH_OPTIMIZATION_GOAL'; + const REACH_OPTIMIZATION_GOAL_PRECREATE = 'REACH_OPTIMIZATION_GOAL_PRECREATE'; const REELS_DUPLICATION_UPSELL = 'REELS_DUPLICATION_UPSELL'; + const REELS_MUSIC_DUPLICATION = 'REELS_MUSIC_DUPLICATION'; + const REELS_PC_AND_MOBILE_FIRST_CREATIVE = 'REELS_PC_AND_MOBILE_FIRST_CREATIVE'; + const REELS_PERFORMANT_CREATIVE = 'REELS_PERFORMANT_CREATIVE'; const REELS_PLACEMENT = 'REELS_PLACEMENT'; const REVERT = 'REVERT'; + const SABR_DEFAULT_DURATION = 'SABR_DEFAULT_DURATION'; + const SALES_CONVERSION = 'SALES_CONVERSION'; const SCALE_GOOD_CAMPAIGN = 'SCALE_GOOD_CAMPAIGN'; + const SCALE_GOOD_CAMPAIGN_DUPLICATION = 'SCALE_GOOD_CAMPAIGN_DUPLICATION'; + const SCALE_GOOD_CAMPAIGN_SMB = 'SCALE_GOOD_CAMPAIGN_SMB'; + const SCALE_GOOD_CTX_CAMPAIGN = 'SCALE_GOOD_CTX_CAMPAIGN'; + const SEMANTIC_BASED_AUDIENCE_DUPLICATION = 'SEMANTIC_BASED_AUDIENCE_DUPLICATION'; const SEMANTIC_BASED_AUDIENCE_EXPANSION = 'SEMANTIC_BASED_AUDIENCE_EXPANSION'; const SETUP_PIXEL = 'SETUP_PIXEL'; const SHOPS_ADS = 'SHOPS_ADS'; const SHOPS_ADS_DUPLICATION = 'SHOPS_ADS_DUPLICATION'; + const SHOPS_ADS_TRAFFIC_CAP_SETTINGS = 'SHOPS_ADS_TRAFFIC_CAP_SETTINGS'; + const SHOP_ADS_V2 = 'SHOP_ADS_V2'; const SIGNALS_GROWTH_CAPI = 'SIGNALS_GROWTH_CAPI'; + const SIGNALS_GROWTH_CAPI_PRECREATE = 'SIGNALS_GROWTH_CAPI_PRECREATE'; const SIGNALS_GROWTH_CAPI_TABLE = 'SIGNALS_GROWTH_CAPI_TABLE'; const SIGNALS_GROWTH_CAPI_V2 = 'SIGNALS_GROWTH_CAPI_V2'; const SIMILAR_ADVERTISER_BUDGET_RECOMMENDATION = 'SIMILAR_ADVERTISER_BUDGET_RECOMMENDATION'; const SIX_PLUS_MANUAL_PLACEMENTS = 'SIX_PLUS_MANUAL_PLACEMENTS'; + const SIX_PLUS_PLACEMENTS_DUPLICATION = 'SIX_PLUS_PLACEMENTS_DUPLICATION'; const SPEND_LIMIT = 'SPEND_LIMIT'; const SYD_TEST_MODE = 'SYD_TEST_MODE'; const TAILORED_LEAD_AD_CAMPAIGN = 'TAILORED_LEAD_AD_CAMPAIGN'; @@ -165,8 +236,15 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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 UNIFIED_INBOX = 'UNIFIED_INBOX'; const UNUSED_BUDGET = 'UNUSED_BUDGET'; + const VALUE_DIAGNOSTICS_GUIDANCE = 'VALUE_DIAGNOSTICS_GUIDANCE'; const VIDEO_LENGTH = 'VIDEO_LENGTH'; + const VIDEO_VIEWS_UPSELL = 'VIDEO_VIEWS_UPSELL'; + const VIDEO_VIEWS_UPSELL_PRECREATE = 'VIDEO_VIEWS_UPSELL_PRECREATE'; + const WA_MESSAGING_PARTNERS = 'WA_MESSAGING_PARTNERS'; + const WA_MESSAGING_PARTNERS_PRECREATE = 'WA_MESSAGING_PARTNERS_PRECREATE'; + const WEB_ENGAGED_VIEW_CONVERSIONS = 'WEB_ENGAGED_VIEW_CONVERSIONS'; const ZERO_CONVERSION = 'ZERO_CONVERSION'; const ZERO_IMPRESSION = 'ZERO_IMPRESSION'; } diff --git a/src/FacebookAds/Object/Values/AdAccountBrandSafetyContentFilterLevelsValues.php b/src/FacebookAds/Object/Values/AdAccountBrandSafetyContentFilterLevelsValues.php new file mode 100644 index 000000000..20e9a5cb6 --- /dev/null +++ b/src/FacebookAds/Object/Values/AdAccountBrandSafetyContentFilterLevelsValues.php @@ -0,0 +1,37 @@ +assureId(); $param_types = array( @@ -78,10 +79,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -89,22 +90,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/VehicleOffer.php b/src/FacebookAds/Object/VehicleOffer.php index 3ff582598..3d8d6d7a1 100644 --- a/src/FacebookAds/Object/VehicleOffer.php +++ b/src/FacebookAds/Object/VehicleOffer.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\VehicleOfferFields; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; use FacebookAds\Object\Values\VehicleOfferImageFetchStatusValues; use FacebookAds\Object\Values\VehicleOfferVisibilityValues; @@ -43,7 +44,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +56,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,22 +67,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/VideoAsset.php b/src/FacebookAds/Object/VideoAsset.php deleted file mode 100644 index 7e248e221..000000000 --- a/src/FacebookAds/Object/VideoAsset.php +++ /dev/null @@ -1,94 +0,0 @@ -assureId(); - - $param_types = array( - 'metric' => 'list', - 'period' => 'period_enum', - ); - $enums = array( - 'metric_enum' => InsightsResultMetricValues::getInstance()->getValues(), - 'period_enum' => InsightsResultPeriodValues::getInstance()->getValues(), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/insights', - new InsightsResult(), - 'EDGE', - InsightsResult::getFieldsEnum()->getValues(), - 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(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/', - new VideoAsset(), - 'NODE', - VideoAsset::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - -} diff --git a/src/FacebookAds/Object/WhatsAppBusinessAccount.php b/src/FacebookAds/Object/WhatsAppBusinessAccount.php index c031ec94e..f68f9d9f3 100644 --- a/src/FacebookAds/Object/WhatsAppBusinessAccount.php +++ b/src/FacebookAds/Object/WhatsAppBusinessAccount.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\WhatsAppBusinessAccountFields; use FacebookAds\Object\Values\WhatsAppBusinessAccountCategoryValues; use FacebookAds\Object\Values\WhatsAppBusinessAccountDisplayFormatValues; +use FacebookAds\Object\Values\WhatsAppBusinessAccountProviderNameValues; use FacebookAds\Object\Values\WhatsAppBusinessAccountSubCategoryValues; use FacebookAds\Object\Values\WhatsAppBusinessAccountTasksValues; @@ -43,10 +44,34 @@ protected static function getReferencedEnums() { $ref_enums['Category'] = WhatsAppBusinessAccountCategoryValues::getInstance()->getValues(); $ref_enums['DisplayFormat'] = WhatsAppBusinessAccountDisplayFormatValues::getInstance()->getValues(); $ref_enums['SubCategory'] = WhatsAppBusinessAccountSubCategoryValues::getInstance()->getValues(); + $ref_enums['ProviderName'] = WhatsAppBusinessAccountProviderNameValues::getInstance()->getValues(); return $ref_enums; } + public function getActivities(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, + '/activities', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteAssignedUsers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -144,6 +169,59 @@ public function getAudiences(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } + public function getCallAnalytics(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'country_codes' => 'list', + 'dimensions' => 'list', + 'directions' => 'list', + 'end' => 'unsigned int', + 'granularity' => 'granularity_enum', + 'metric_types' => 'list', + 'phone_numbers' => 'list', + 'start' => 'unsigned int', + ); + $enums = array( + 'dimensions_enum' => array( + 'COUNTRY', + 'DIRECTION', + 'PHONE', + 'UNKNOWN', + ), + 'directions_enum' => array( + 'BUSINESS_INITIATED', + 'UNKNOWN', + 'USER_INITIATED', + ), + 'granularity_enum' => array( + 'DAILY', + 'HALF_HOUR', + 'MONTHLY', + ), + 'metric_types_enum' => array( + 'AVERAGE_DURATION', + 'COST', + 'COUNT', + 'UNKNOWN', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/call_analytics', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getConversationAnalytics(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -216,6 +294,53 @@ public function getConversationAnalytics(array $fields = array(), array $params return $pending ? $request : $request->execute(); } + public function getDataset(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, + '/dataset', + new Dataset(), + 'EDGE', + Dataset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createDataset(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'dataset_name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/dataset', + new Dataset(), + 'EDGE', + Dataset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getDccConfig(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -278,6 +403,7 @@ public function createFlow(array $fields = array(), array $params = array(), $pe 'CUSTOMER_SUPPORT', 'LEAD_GENERATION', 'OTHER', + 'SHOPPING', 'SIGN_IN', 'SIGN_UP', 'SURVEY', @@ -299,6 +425,31 @@ public function createFlow(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } + public function createGeneratePaymentConfigurationOauthLink(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'configuration_name' => 'string', + 'redirect_url' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/generate_payment_configuration_oauth_link', + new WhatsAppBusinessAccount(), + 'EDGE', + WhatsAppBusinessAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getMessageCampaigns(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -440,6 +591,7 @@ public function createMessageTemplate(array $fields = array(), array $params = a 'cta_url_link_tracking_opted_out' => 'bool', 'display_format' => 'display_format_enum', 'language' => 'string', + 'library_template_body_inputs' => 'map', 'library_template_button_inputs' => 'list', 'library_template_name' => 'string', 'message_send_ttl_seconds' => 'unsigned int', @@ -467,6 +619,32 @@ public function createMessageTemplate(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } + public function createMigrateFlow(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'page_number' => 'unsigned int', + 'source_flow_ids' => 'list', + 'source_waba_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/migrate_flows', + new WhatsAppBusinessAccount(), + 'EDGE', + WhatsAppBusinessAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createMigrateMessageTemplate(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -492,6 +670,107 @@ public function createMigrateMessageTemplate(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function deletePaymentConfiguration(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'configuration_name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/payment_configuration', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getPaymentConfiguration(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'configuration_name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/payment_configuration', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createPaymentConfiguration(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'configuration_name' => 'string', + 'merchant_category_code' => 'string', + 'merchant_vpa' => 'string', + 'provider_name' => 'provider_name_enum', + 'purpose_code' => 'string', + 'redirect_url' => 'string', + ); + $enums = array( + 'provider_name_enum' => WhatsAppBusinessAccountProviderNameValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/payment_configuration', + new WhatsAppBusinessAccount(), + 'EDGE', + WhatsAppBusinessAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getPaymentConfigurations(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, + '/payment_configurations', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getPhoneNumbers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -661,6 +940,30 @@ public function createSetOboMobilityIntent(array $fields = array(), array $param return $pending ? $request : $request->execute(); } + public function createSetSolutionMigrationInTEnt(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'solution_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/set_solution_migration_intent', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSolutions(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -762,6 +1065,7 @@ public function getTemplateAnalytics(array $fields = array(), array $params = ar 'end' => 'datetime', 'granularity' => 'granularity_enum', 'metric_types' => 'list', + 'product_type' => 'product_type_enum', 'start' => 'datetime', 'template_ids' => 'list', ); @@ -776,6 +1080,10 @@ public function getTemplateAnalytics(array $fields = array(), array $params = ar 'READ', 'SENT', ), + 'product_type_enum' => array( + 'CLOUD_API', + 'MARKETING_MESSAGES_LITE_API', + ), ); $request = new ApiRequest( @@ -847,6 +1155,31 @@ public function createUpsertMessageTemplate(array $fields = array(), array $para return $pending ? $request : $request->execute(); } + public function getWelcomeMessageSequences(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'app_id' => 'string', + 'sequence_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/welcome_message_sequences', + new CTXPartnerAppWelcomeMessageFlow(), + 'EDGE', + CTXPartnerAppWelcomeMessageFlow::getFieldsEnum()->getValues(), + 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();