From 7ec7292c1ce3c78e2005d730da0092e28458af95 Mon Sep 17 00:00:00 2001 From: Satwika Reddy Maddi Date: Wed, 9 Oct 2024 10:18:05 -0700 Subject: [PATCH] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: yoongyj Differential Revision: D64084318 fbshipit-source-id: cf9f895a7977fbfc494352c3bcae5de6d4b6763d --- examples/AdAccountAdCreativesEdge.php | 48 ------------ examples/AdAccountAdCreativesPost.php | 49 ------------ ...AccountAdCreativesPostCreateAdCreative.php | 48 ------------ ...tAdCreativesPostCreateAdCreativeCanvas.php | 49 ------------ ...tCreateAdCreativeCustomizationCanvasDV.php | 49 ------------ ...eateAdCreativeCustomizationCanvasImage.php | 49 ------------ ...eateAdCreativeCustomizationCanvasVideo.php | 49 ------------ examples/AdAccountAdSetsPost2CreateMAIA.php | 56 -------------- .../AdAccountAdSetsPostAdSetCreateCpa.php | 60 --------------- ...countAdSetsPostAdSetCreateCpaAppEvents.php | 58 -------------- .../AdAccountAdSetsPostBehaviorTargeting.php | 54 ------------- examples/AdAccountAdSetsPostBidMultiplier.php | 57 -------------- examples/AdAccountAdSetsPostCreateAdSet.php | 57 -------------- ...AccountAdSetsPostCreateAudienceNetwork.php | 54 ------------- examples/AdAccountAdSetsPostDailyBudget20.php | 57 -------------- ...dAccountAdSetsPostDemographicTargeting.php | 56 -------------- .../AdAccountAdSetsPostInterestTargeting.php | 56 -------------- ...etsPostLifetimeBudget200Duration10Days.php | 57 -------------- ...ccountAdSetsPostOptimizePostEngagement.php | 57 -------------- examples/AdAccountAdSetsPostPageLikes.php | 56 -------------- .../AdAccountAdSetsPostPlacementTargeting.php | 55 -------------- examples/AdAccountAdSetsPostReach.php | 56 -------------- examples/AdAccountAdVideosPost.php | 48 ------------ .../AdAccountAdsPixelEdgeGetPixelCode.php | 47 ------------ examples/AdAccountAdsPixelsPost.php | 48 ------------ examples/AdAccountAdsPost.php | 51 ------------- examples/AdAccountAdsPostAdsRedownload.php | 52 ------------- ...AdAccountAdsPostTrackingPostEngagement.php | 52 ------------- examples/AdAccountCampaignsEdge.php | 50 ------------ examples/AdAccountCampaignsPostLinkClicks.php | 51 ------------- examples/AdAccountCustomAudiencesEdge.php | 48 ------------ ...ntCustomAudiencesEdgeDataSourceSubtype.php | 49 ------------ ...ustomAudiencesPostCreateCustomAudience.php | 51 ------------- ...EventValueBasedLookalikeCustomAudience.php | 50 ------------ ...namicValueBasedLookalikeCustomAudience.php | 50 ------------ ...ncesPostPlatformCustomAudienceMACARule.php | 50 ------------ ...stomAudiencesPostPlatformECAExclusions.php | 50 ------------ ...omAudiencesPostPlatformECAMultiFilters.php | 50 ------------ ...stomAudiencesPostPlatformECAMultiPages.php | 50 ------------ ...esPostPlatformEngagementCustomAudience.php | 50 ------------ ...encesPostPlatformWebsiteCustomAudience.php | 50 ------------ ...mAudiencesPostValueBasedCustomAudience.php | 51 ------------- ...sPostValueBasedLookalikeCustomAudience.php | 51 ------------- examples/AdAccountGeneratePreviewsEdge.php | 49 ------------ ...GeneratePreviewsEdgeDesktopWithStoryId.php | 49 ------------ ...GeneratePreviewsEdgeInstagramStandards.php | 49 ------------ ...atePreviewsEdgeMaiaWithObjectStorySpec.php | 49 ------------ examples/AdAccountNode.php | 47 ------------ ...oductAudiencesPostIphoneViewNoPurchase.php | 51 ------------- ...dAccountProductAudiencesPostNoPurchase.php | 51 ------------- examples/AdAccountReachEstimate.php | 48 ------------ examples/AdCampaignGroupAdsEdge.php | 48 ------------ ...GroupAdsEdgeAdgroupsWithStatusArchived.php | 49 ------------ examples/AdCampaignGroupAdsetsEdge.php | 52 ------------- examples/AdCampaignNode.php | 47 ------------ examples/AdCampaignPost.php | 47 ------------ examples/AdCampaignPostAdsetUpdateCpa.php | 50 ------------ examples/AdCreativeNode.php | 47 ------------ examples/AdCreativeNodeRead.php | 48 ------------ ...dCreativeNodeReadInstagramPermalinkUrl.php | 47 ------------ examples/AdCreativePreviewsEdge.php | 49 ------------ examples/AdCreativePreviewsEdgePreview.php | 48 ------------ ...dCreativePreviewsEdgePreviewDynamicAds.php | 49 ------------ ...dgePreviewDynamicAdsWithCustomizations.php | 50 ------------ examples/AdgroupLeadsEdgeAdgroupLeads.php | 47 ------------ examples/AdgroupLeadsEdgeAdgroupLeadsDPA.php | 49 ------------ .../AdgroupLeadsEdgeAdgroupLeadsFiltered.php | 48 ------------ examples/AdgroupPost.php | 47 ------------ examples/AdgroupPostUpdateStatus.php | 47 ------------ .../AdsInsightsEdgeAdCampaignInsights.php | 49 ------------ examples/AdsPixelEventsPost.php | 47 ------------ examples/AdsPixelEventsPostCustom.php | 76 ------------------- examples/AdsPixelSharedAccountsEdge.php | 48 ------------ examples/AdsPixelSharedAccountsPost.php | 48 ------------ examples/AdsPixelSharedAgenciesEdge.php | 47 ------------ examples/CustomAudienceDelete.php | 47 ------------ examples/CustomAudienceNode.php | 46 ----------- examples/CustomAudienceNodeReadRule.php | 48 ------------ examples/CustomAudiencePost.php | 47 ------------ examples/CustomAudienceUsersPost.php | 47 ------------ .../CustomAudienceUsersPostCrossPlatform.php | 47 ------------ .../OfflineConversionsCreateOfflineSet.php | 49 ------------ examples/PageFeedEdge.php | 47 ------------ examples/PageFeedPost.php | 48 ------------ examples/PageFeedPostFeedImageDeepLink.php | 49 ------------ examples/PageNode.php | 50 ------------ examples/PageNodePageSearch.php | 49 ------------ ...PagePageWhatsAppNumberVerificationPost.php | 48 ------------ examples/PagePhotosEdge.php | 47 ------------ examples/PagePhotosPost.php | 49 ------------ examples/PagePictureEdge.php | 48 ------------ examples/PagePostCommentsPost.php | 48 ------------ examples/PagePostDelete.php | 47 ------------ examples/PagePostNode.php | 46 ----------- examples/PagePostPost.php | 47 ------------ examples/PagePostsEdge.php | 47 ------------ .../PagePostsEdgePagePostCreateCarousel.php | 52 ------------- examples/PageRolesEdge.php | 47 ------------ examples/PageSubscribedAppsPost.php | 47 ------------ examples/ProductCatalogEventStatsEdge.php | 47 ------------ examples/ProductCatalogHotelsPost.php | 57 -------------- ...gHotelsPostUpdateHotelsCatalogSettings.php | 46 ----------- ...ductCatalogProductFeedsPostProductFeed.php | 49 ------------ .../ProductCatalogProductSetsPostHotelSet.php | 49 ------------ ...roductCatalogProductSetsPostProductSet.php | 49 ------------ examples/UserAccountsEdge.php | 47 ------------ examples/UserAdAccountsEdge.php | 47 ------------ examples/UserLeadGenInfoNode.php | 46 ----------- examples/UserNode.php | 46 ----------- examples/VideoThumbnailsEdge.php | 47 ------------ src/FacebookAds/ApiConfig.php | 4 +- src/FacebookAds/Object/AdAccount.php | 51 ++++++++++--- ...t.php => AdAccountLiveVideoAdvertiser.php} | 8 +- .../Object/AdCreativeProductData.php | 42 ++++++++++ src/FacebookAds/Object/AdSet.php | 2 + src/FacebookAds/Object/AdVideo.php | 2 +- .../{PanelAPIReport.php => AdsQuickViews.php} | 12 +-- .../AdsValueAdjustmentRuleCollection.php | 4 +- src/FacebookAds/Object/Application.php | 61 ++++++--------- src/FacebookAds/Object/Business.php | 4 +- .../Object/CatalogItemRejectionReasons.php | 2 - src/FacebookAds/Object/CustomAudience.php | 4 + src/FacebookAds/Object/ExtendedCredit.php | 49 ++++++++++++ .../Object/Fields/ALMAdAccountInfoFields.php | 2 + .../AdAccountLiveVideoAdvertiserFields.php | 36 +++++++++ .../AdCreativeBrandedContentAdsFields.php | 4 + ...reativeBrandedContentAdsPartnersFields.php | 2 + .../Fields/AdCreativeFeaturesSpecFields.php | 20 +++++ .../Object/Fields/AdCreativeFields.php | 2 + .../AdCreativeObjectStorySpecFields.php | 6 +- ...ds.php => AdCreativeProductDataFields.php} | 12 ++- src/FacebookAds/Object/Fields/AdFields.php | 2 + .../Object/Fields/AdPromotedObjectFields.php | 6 ++ .../Object/Fields/AdRuleFields.php | 2 + src/FacebookAds/Object/Fields/AdSetFields.php | 4 + .../Object/Fields/AdsInsightsFields.php | 10 +-- ...portFields.php => AdsQuickViewsFields.php} | 30 ++++---- .../Object/Fields/AdsUserSettingsFields.php | 4 + .../Fields/CTWAWhatsAppNumbersInfoFields.php | 2 + .../CatalogItemRejectionReasonsFields.php | 2 +- .../Object/Fields/CustomAudienceFields.php | 8 ++ ...ExternalEventSourceDAStatsResultFields.php | 42 ---------- src/FacebookAds/Object/Fields/HotelFields.php | 10 +++ .../MessengerBusinessTemplateFields.php | 52 +++++++++++++ .../PartnershipAdContentSearchMediaFields.php | 6 ++ .../Object/Fields/PlacementFields.php | 66 ++++++++++++++++ .../ProductCatalogDiagnosticGroupFields.php | 2 +- .../Object/Fields/ProductItemFields.php | 2 +- .../Fields/SavedMessageResponseFields.php | 2 - .../Object/Fields/VehicleFields.php | 10 +++ .../Object/Fields/VehicleOfferFields.php | 10 +++ src/FacebookAds/Object/Group.php | 45 +---------- src/FacebookAds/Object/IGMedia.php | 2 + .../Object/IGMediaForIGOnlyAPI.php | 32 ++++++++ src/FacebookAds/Object/IGUserForIGOnlyAPI.php | 32 ++++++++ src/FacebookAds/Object/InsightsResult.php | 6 +- ...ings.php => MessengerBusinessTemplate.php} | 12 +-- src/FacebookAds/Object/Page.php | 33 ++++++-- src/FacebookAds/Object/Placement.php | 46 +++++++++++ src/FacebookAds/Object/ProductCatalog.php | 24 ++++++ .../Object/ProductCatalogDiagnosticGroup.php | 2 +- src/FacebookAds/Object/ProductItem.php | 2 + src/FacebookAds/Object/User.php | 14 ++-- .../AdAccountAdRulesHistoryActionValues.php | 4 + ...ccountAdVolumeRecommendationTypeValues.php | 21 +++++ .../Object/Values/AdAccountSubtypeValues.php | 1 + ...getingUnifiedRegulatedCategoriesValues.php | 1 + .../Values/AdActivityEventTypeValues.php | 3 + .../Object/Values/AdPreviewAdFormatValues.php | 1 + .../Values/AdRuleHistoryActionValues.php | 4 + ...AdSetRegionalRegulatedCategoriesValues.php | 1 + .../Values/AdSetTuneForCategoryValues.php | 1 + .../Values/AdsInsightsBreakdownsValues.php | 2 + .../CampaignSpecialAdCategoriesValues.php | 1 + .../CampaignSpecialAdCategoryValues.php | 1 + ... CustomAudienceSubscriptionInfoValues.php} | 9 +-- .../Values/CustomAudienceSubtypeValues.php | 1 + ...=> CustomAudienceUseForProductsValues.php} | 12 +-- .../Values/InsightsResultBreakdownValues.php | 29 +++++++ .../Values/InsightsResultMetricValues.php | 31 ++++++-- .../InstagramInsightsResultMetricValues.php | 1 + ...php => PlacementDevicePlatformsValues.php} | 8 +- ...lacementEffectiveDevicePlatformsValues.php | 27 +++++++ .../Values/ProductFeedFeedTypeValues.php | 1 + ...ductItemCapabilityToReviewStatusValues.php | 30 ++++++++ .../Values/ProductItemErrorTypeValues.php | 1 + ...tsAppBusinessAccountProviderNameValues.php | 1 + .../Object/WhatsAppBusinessAccount.php | 54 +++++++++++++ 188 files changed, 860 insertions(+), 5727 deletions(-) delete mode 100644 examples/AdAccountAdCreativesEdge.php delete mode 100644 examples/AdAccountAdCreativesPost.php delete mode 100644 examples/AdAccountAdCreativesPostCreateAdCreative.php delete mode 100644 examples/AdAccountAdCreativesPostCreateAdCreativeCanvas.php delete mode 100644 examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.php delete mode 100644 examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.php delete mode 100644 examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.php delete mode 100644 examples/AdAccountAdSetsPost2CreateMAIA.php delete mode 100644 examples/AdAccountAdSetsPostAdSetCreateCpa.php delete mode 100644 examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php delete mode 100644 examples/AdAccountAdSetsPostBehaviorTargeting.php delete mode 100644 examples/AdAccountAdSetsPostBidMultiplier.php delete mode 100644 examples/AdAccountAdSetsPostCreateAdSet.php delete mode 100644 examples/AdAccountAdSetsPostCreateAudienceNetwork.php delete mode 100644 examples/AdAccountAdSetsPostDailyBudget20.php delete mode 100644 examples/AdAccountAdSetsPostDemographicTargeting.php delete mode 100644 examples/AdAccountAdSetsPostInterestTargeting.php delete mode 100644 examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php delete mode 100644 examples/AdAccountAdSetsPostOptimizePostEngagement.php delete mode 100644 examples/AdAccountAdSetsPostPageLikes.php delete mode 100644 examples/AdAccountAdSetsPostPlacementTargeting.php delete mode 100644 examples/AdAccountAdSetsPostReach.php delete mode 100644 examples/AdAccountAdVideosPost.php delete mode 100644 examples/AdAccountAdsPixelEdgeGetPixelCode.php delete mode 100644 examples/AdAccountAdsPixelsPost.php delete mode 100644 examples/AdAccountAdsPost.php delete mode 100644 examples/AdAccountAdsPostAdsRedownload.php delete mode 100644 examples/AdAccountAdsPostTrackingPostEngagement.php delete mode 100644 examples/AdAccountCampaignsEdge.php delete mode 100644 examples/AdAccountCampaignsPostLinkClicks.php delete mode 100644 examples/AdAccountCustomAudiencesEdge.php delete mode 100644 examples/AdAccountCustomAudiencesEdgeDataSourceSubtype.php delete mode 100644 examples/AdAccountCustomAudiencesPostCreateCustomAudience.php delete mode 100644 examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.php delete mode 100644 examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.php delete mode 100644 examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.php delete mode 100644 examples/AdAccountCustomAudiencesPostPlatformECAExclusions.php delete mode 100644 examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.php delete mode 100644 examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.php delete mode 100644 examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.php delete mode 100644 examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.php delete mode 100644 examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.php delete mode 100644 examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.php delete mode 100644 examples/AdAccountGeneratePreviewsEdge.php delete mode 100644 examples/AdAccountGeneratePreviewsEdgeDesktopWithStoryId.php delete mode 100644 examples/AdAccountGeneratePreviewsEdgeInstagramStandards.php delete mode 100644 examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.php delete mode 100644 examples/AdAccountNode.php delete mode 100644 examples/AdAccountProductAudiencesPostIphoneViewNoPurchase.php delete mode 100644 examples/AdAccountProductAudiencesPostNoPurchase.php delete mode 100644 examples/AdAccountReachEstimate.php delete mode 100644 examples/AdCampaignGroupAdsEdge.php delete mode 100644 examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.php delete mode 100644 examples/AdCampaignGroupAdsetsEdge.php delete mode 100644 examples/AdCampaignNode.php delete mode 100644 examples/AdCampaignPost.php delete mode 100644 examples/AdCampaignPostAdsetUpdateCpa.php delete mode 100644 examples/AdCreativeNode.php delete mode 100644 examples/AdCreativeNodeRead.php delete mode 100644 examples/AdCreativeNodeReadInstagramPermalinkUrl.php delete mode 100644 examples/AdCreativePreviewsEdge.php delete mode 100644 examples/AdCreativePreviewsEdgePreview.php delete mode 100644 examples/AdCreativePreviewsEdgePreviewDynamicAds.php delete mode 100644 examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.php delete mode 100644 examples/AdgroupLeadsEdgeAdgroupLeads.php delete mode 100644 examples/AdgroupLeadsEdgeAdgroupLeadsDPA.php delete mode 100644 examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php delete mode 100644 examples/AdgroupPost.php delete mode 100644 examples/AdgroupPostUpdateStatus.php delete mode 100644 examples/AdsInsightsEdgeAdCampaignInsights.php delete mode 100644 examples/AdsPixelEventsPost.php delete mode 100644 examples/AdsPixelEventsPostCustom.php delete mode 100644 examples/AdsPixelSharedAccountsEdge.php delete mode 100644 examples/AdsPixelSharedAccountsPost.php delete mode 100644 examples/AdsPixelSharedAgenciesEdge.php delete mode 100644 examples/CustomAudienceDelete.php delete mode 100644 examples/CustomAudienceNode.php delete mode 100644 examples/CustomAudienceNodeReadRule.php delete mode 100644 examples/CustomAudiencePost.php delete mode 100644 examples/CustomAudienceUsersPost.php delete mode 100644 examples/CustomAudienceUsersPostCrossPlatform.php delete mode 100644 examples/OfflineConversionsCreateOfflineSet.php delete mode 100644 examples/PageFeedEdge.php delete mode 100644 examples/PageFeedPost.php delete mode 100644 examples/PageFeedPostFeedImageDeepLink.php delete mode 100644 examples/PageNode.php delete mode 100644 examples/PageNodePageSearch.php delete mode 100644 examples/PagePageWhatsAppNumberVerificationPost.php delete mode 100644 examples/PagePhotosEdge.php delete mode 100644 examples/PagePhotosPost.php delete mode 100644 examples/PagePictureEdge.php delete mode 100644 examples/PagePostCommentsPost.php delete mode 100644 examples/PagePostDelete.php delete mode 100644 examples/PagePostNode.php delete mode 100644 examples/PagePostPost.php delete mode 100644 examples/PagePostsEdge.php delete mode 100644 examples/PagePostsEdgePagePostCreateCarousel.php delete mode 100644 examples/PageRolesEdge.php delete mode 100644 examples/PageSubscribedAppsPost.php delete mode 100644 examples/ProductCatalogEventStatsEdge.php delete mode 100644 examples/ProductCatalogHotelsPost.php delete mode 100644 examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.php delete mode 100644 examples/ProductCatalogProductFeedsPostProductFeed.php delete mode 100644 examples/ProductCatalogProductSetsPostHotelSet.php delete mode 100644 examples/ProductCatalogProductSetsPostProductSet.php delete mode 100644 examples/UserAccountsEdge.php delete mode 100644 examples/UserAdAccountsEdge.php delete mode 100644 examples/UserLeadGenInfoNode.php delete mode 100644 examples/UserNode.php delete mode 100644 examples/VideoThumbnailsEdge.php rename src/FacebookAds/Object/{ExternalEventSourceDAStatsResult.php => AdAccountLiveVideoAdvertiser.php} (75%) create mode 100644 src/FacebookAds/Object/AdCreativeProductData.php rename src/FacebookAds/Object/{PanelAPIReport.php => AdsQuickViews.php} (82%) create mode 100644 src/FacebookAds/Object/Fields/AdAccountLiveVideoAdvertiserFields.php rename src/FacebookAds/Object/Fields/{DogNotificationSettingsFields.php => AdCreativeProductDataFields.php} (64%) rename src/FacebookAds/Object/Fields/{PanelAPIReportFields.php => AdsQuickViewsFields.php} (53%) delete mode 100644 src/FacebookAds/Object/Fields/ExternalEventSourceDAStatsResultFields.php create mode 100644 src/FacebookAds/Object/Fields/MessengerBusinessTemplateFields.php create mode 100644 src/FacebookAds/Object/Fields/PlacementFields.php rename src/FacebookAds/Object/{DogNotificationSettings.php => MessengerBusinessTemplate.php} (79%) create mode 100644 src/FacebookAds/Object/Placement.php rename src/FacebookAds/Object/Values/{ApplicationLoggingTargetValues.php => CustomAudienceSubscriptionInfoValues.php} (72%) rename src/FacebookAds/Object/Values/{CatalogItemRejectionReasonsCapabilityValues.php => CustomAudienceUseForProductsValues.php} (54%) create mode 100644 src/FacebookAds/Object/Values/InsightsResultBreakdownValues.php rename src/FacebookAds/Object/Values/{ApplicationLoggingSourceValues.php => PlacementDevicePlatformsValues.php} (73%) create mode 100644 src/FacebookAds/Object/Values/PlacementEffectiveDevicePlatformsValues.php create mode 100644 src/FacebookAds/Object/Values/ProductItemCapabilityToReviewStatusValues.php 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 a891e2ba0..baf4a88dc 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.3'; + const APIVersion = '21.0'; + const SDKVersion = '21.0.0'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 301ab166c..bfccd12c6 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -99,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; @@ -1012,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', @@ -1246,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', @@ -1259,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', @@ -2012,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', @@ -2030,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', @@ -2039,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( @@ -3257,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( @@ -3269,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(), @@ -3280,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( ); @@ -3292,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/ExternalEventSourceDAStatsResult.php b/src/FacebookAds/Object/AdAccountLiveVideoAdvertiser.php similarity index 75% rename from src/FacebookAds/Object/ExternalEventSourceDAStatsResult.php rename to src/FacebookAds/Object/AdAccountLiveVideoAdvertiser.php index 926d62905..7b051ab8d 100644 --- a/src/FacebookAds/Object/ExternalEventSourceDAStatsResult.php +++ b/src/FacebookAds/Object/AdAccountLiveVideoAdvertiser.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\ExternalEventSourceDAStatsResultFields; +use FacebookAds\Object\Fields\AdAccountLiveVideoAdvertiserFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class ExternalEventSourceDAStatsResult extends AbstractObject { +class AdAccountLiveVideoAdvertiser extends AbstractObject { /** - * @return ExternalEventSourceDAStatsResultFields + * @return AdAccountLiveVideoAdvertiserFields */ public static function getFieldsEnum() { - return ExternalEventSourceDAStatsResultFields::getInstance(); + return AdAccountLiveVideoAdvertiserFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/AdCreativeProductData.php b/src/FacebookAds/Object/AdCreativeProductData.php new file mode 100644 index 000000000..de18faa8b --- /dev/null +++ b/src/FacebookAds/Object/AdCreativeProductData.php @@ -0,0 +1,42 @@ + '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 e1280f3c1..ea2dd8f92 100644 --- a/src/FacebookAds/Object/AdVideo.php +++ b/src/FacebookAds/Object/AdVideo.php @@ -592,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/PanelAPIReport.php b/src/FacebookAds/Object/AdsQuickViews.php similarity index 82% rename from src/FacebookAds/Object/PanelAPIReport.php rename to src/FacebookAds/Object/AdsQuickViews.php index cbd550059..222188964 100644 --- a/src/FacebookAds/Object/PanelAPIReport.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\PanelAPIReportFields; +use FacebookAds\Object\Fields\AdsQuickViewsFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class PanelAPIReport extends AbstractCrudObject { +class AdsQuickViews extends AbstractCrudObject { /** - * @return PanelAPIReportFields + * @return AdsQuickViewsFields */ public static function getFieldsEnum() { - return PanelAPIReportFields::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 PanelAPIReport(), + new AdsQuickViews(), 'NODE', - PanelAPIReport::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 6dae59d2c..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(); diff --git a/src/FacebookAds/Object/Business.php b/src/FacebookAds/Object/Business.php index a73fde1f7..b12fcbddb 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -3292,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', @@ -3304,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/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/CustomAudience.php b/src/FacebookAds/Object/CustomAudience.php index cc29148f6..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; } diff --git a/src/FacebookAds/Object/ExtendedCredit.php b/src/FacebookAds/Object/ExtendedCredit.php index 1342093be..0861d7678 100644 --- a/src/FacebookAds/Object/ExtendedCredit.php +++ b/src/FacebookAds/Object/ExtendedCredit.php @@ -145,6 +145,55 @@ public function createOwningCreditAllocationConfig(array $fields = array(), arra return $pending ? $request : $request->execute(); } + 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(); diff --git a/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php b/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php index 7788c6e40..78afb6c1d 100644 --- a/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php +++ b/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php @@ -25,6 +25,7 @@ class ALMAdAccountInfoFields extends AbstractEnum { const AD_ACCOUNT_ID = 'ad_account_id'; const ID = 'id'; const MANAGED_BY = 'managed_by'; + const OWNED_BY = 'owned_by'; const PARENT_ADVERTISER_ID = 'parent_advertiser_id'; const SUB_VERTICAL = 'sub_vertical'; const TAG = 'tag'; @@ -36,6 +37,7 @@ public function getFieldTypes() { 'ad_account_id' => 'string', 'id' => 'string', 'managed_by' => 'string', + 'owned_by' => 'string', 'parent_advertiser_id' => 'string', 'sub_vertical' => 'string', 'tag' => 'list', diff --git a/src/FacebookAds/Object/Fields/AdAccountLiveVideoAdvertiserFields.php b/src/FacebookAds/Object/Fields/AdAccountLiveVideoAdvertiserFields.php new file mode 100644 index 000000000..68edd0a4b --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountLiveVideoAdvertiserFields.php @@ -0,0 +1,36 @@ + 'bool', + 'lva_default_budget' => 'int', + 'should_show_lva_toggle' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php index 6c8a5805e..f12ee8044 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php @@ -28,6 +28,8 @@ 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'; @@ -42,6 +44,8 @@ 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', 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/AdCreativeFeaturesSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php index 165071d27..aa9d7617e 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php @@ -34,9 +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'; @@ -49,6 +57,7 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { 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'; @@ -61,6 +70,7 @@ 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( @@ -76,9 +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', @@ -91,6 +109,7 @@ public function getFieldTypes() { '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', @@ -103,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/AdCreativeObjectStorySpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php index db8cbbd57..f3992f6d7 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php @@ -26,9 +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_ACTOR_ID = 'threads_actor_id'; + const THREADS_USER_ID = 'threads_user_id'; const VIDEO_DATA = 'video_data'; public function getFieldTypes() { @@ -37,9 +38,10 @@ public function getFieldTypes() { 'link_data' => 'AdCreativeLinkData', 'page_id' => 'string', 'photo_data' => 'AdCreativePhotoData', + 'product_data' => 'list', 'template_data' => 'AdCreativeLinkData', 'text_data' => 'AdCreativeTextData', - 'threads_actor_id' => 'string', + 'threads_user_id' => 'string', 'video_data' => 'AdCreativeVideoData', ); } diff --git a/src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php b/src/FacebookAds/Object/Fields/AdCreativeProductDataFields.php similarity index 64% rename from src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php rename to src/FacebookAds/Object/Fields/AdCreativeProductDataFields.php index 69b3f55ca..71553c9d8 100644 --- a/src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeProductDataFields.php @@ -20,17 +20,15 @@ * */ -class DogNotificationSettingsFields extends AbstractEnum { +class AdCreativeProductDataFields extends AbstractEnum { - const DOG_CHECK_KEY = 'dog_check_key'; - const ID = 'id'; - const SUBSCRIPTION_STATUS_PER_CHANNEL = 'subscription_status_per_channel'; + const PRODUCT_ID = 'product_id'; + const PRODUCT_SOURCE = 'product_source'; public function getFieldTypes() { return array( - 'dog_check_key' => 'string', - 'id' => 'string', - 'subscription_status_per_channel' => 'list>', + 'product_id' => 'string', + 'product_source' => '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 7736c4e6b..6bd1ea03e 100644 --- a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php +++ b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php @@ -30,6 +30,7 @@ class AdPromotedObjectFields extends AbstractEnum { 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'; @@ -47,6 +48,8 @@ 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() { @@ -59,6 +62,7 @@ public function getFieldTypes() { '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', @@ -76,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 0b62733e0..813725249 100644 --- a/src/FacebookAds/Object/Fields/AdSetFields.php +++ b/src/FacebookAds/Object/Fields/AdSetFields.php @@ -63,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'; @@ -139,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/AdsInsightsFields.php b/src/FacebookAds/Object/Fields/AdsInsightsFields.php index 1efc13382..7df7a3e38 100644 --- a/src/FacebookAds/Object/Fields/AdsInsightsFields.php +++ b/src/FacebookAds/Object/Fields/AdsInsightsFields.php @@ -40,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'; @@ -104,9 +105,6 @@ class AdsInsightsFields extends AbstractEnum { const INSTANT_EXPERIENCE_OUTBOUND_CLICKS = 'instant_experience_outbound_clicks'; const INTERACTIVE_COMPONENT_TAP = 'interactive_component_tap'; const LABELS = 'labels'; - const LANDING_PAGE_VIEW_ACTIONS_PER_LINK_CLICK = 'landing_page_view_actions_per_link_click'; - const LANDING_PAGE_VIEW_PER_PURCHASE_RATE = 'landing_page_view_per_purchase_rate'; - const LINK_CLICKS_PER_RESULTS = 'link_clicks_per_results'; const LOCATION = 'location'; const MARKETING_MESSAGES_COST_PER_DELIVERED = 'marketing_messages_cost_per_delivered'; const MARKETING_MESSAGES_COST_PER_LINK_BTN_CLICK = 'marketing_messages_cost_per_link_btn_click'; @@ -120,7 +118,6 @@ class AdsInsightsFields extends AbstractEnum { const OUTBOUND_CLICKS_CTR = 'outbound_clicks_ctr'; const PLACE_PAGE_NAME = 'place_page_name'; const PURCHASE_ROAS = 'purchase_roas'; - const PURCHASES_PER_LINK_CLICK = 'purchases_per_link_click'; const QUALIFYING_QUESTION_QUALIFY_ANSWER_RATE = 'qualifying_question_qualify_answer_rate'; const QUALITY_RANKING = 'quality_ranking'; const REACH = 'reach'; @@ -182,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', @@ -246,9 +244,6 @@ public function getFieldTypes() { 'instant_experience_outbound_clicks' => 'list', 'interactive_component_tap' => 'list', 'labels' => 'string', - 'landing_page_view_actions_per_link_click' => 'list', - 'landing_page_view_per_purchase_rate' => 'list', - 'link_clicks_per_results' => 'list', 'location' => 'string', 'marketing_messages_cost_per_delivered' => 'string', 'marketing_messages_cost_per_link_btn_click' => 'string', @@ -262,7 +257,6 @@ public function getFieldTypes() { 'outbound_clicks_ctr' => 'list', 'place_page_name' => 'string', 'purchase_roas' => 'list', - 'purchases_per_link_click' => 'list', 'qualifying_question_qualify_answer_rate' => 'string', 'quality_ranking' => 'string', 'reach' => 'string', diff --git a/src/FacebookAds/Object/Fields/PanelAPIReportFields.php b/src/FacebookAds/Object/Fields/AdsQuickViewsFields.php similarity index 53% rename from src/FacebookAds/Object/Fields/PanelAPIReportFields.php rename to src/FacebookAds/Object/Fields/AdsQuickViewsFields.php index 4bf9e6f5b..ed2d8138f 100644 --- a/src/FacebookAds/Object/Fields/PanelAPIReportFields.php +++ b/src/FacebookAds/Object/Fields/AdsQuickViewsFields.php @@ -20,31 +20,27 @@ * */ -class PanelAPIReportFields extends AbstractEnum { +class AdsQuickViewsFields extends AbstractEnum { - const CHECKSUM = 'checksum'; - const DOWNLOAD_URL = 'download_url'; - const END_DATE = 'end_date'; - const EXPORT_FILE_TYPE = 'export_file_type'; + const ATTRIBUTION_WINDOWS = 'attribution_windows'; + const BREAKDOWNS = 'breakdowns'; + const COLUMN_FIELDS = 'column_fields'; + const DESCRIPTION = 'description'; const ID = 'id'; - const INDEX = 'index'; const NAME = 'name'; - const NUMBER_OF_CHUNKS = 'number_of_chunks'; - const START_DATE = 'start_date'; - const UPLOAD_DATE = 'upload_date'; + const PERMISSION = 'permission'; + const SORT = 'sort'; public function getFieldTypes() { return array( - 'checksum' => 'string', - 'download_url' => 'string', - 'end_date' => 'datetime', - 'export_file_type' => 'string', + 'attribution_windows' => 'list', + 'breakdowns' => 'list', + 'column_fields' => 'list', + 'description' => 'string', 'id' => 'string', - 'index' => 'int', 'name' => 'string', - 'number_of_chunks' => 'int', - 'start_date' => 'datetime', - 'upload_date' => 'datetime', + 'permission' => 'string', + 'sort' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php b/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php index bef3c74bb..e4edb8670 100644 --- a/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php +++ b/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php @@ -23,6 +23,7 @@ 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'; @@ -44,6 +45,7 @@ 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'; @@ -83,6 +85,7 @@ 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', @@ -104,6 +107,7 @@ 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', diff --git a/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php b/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php index 4f858653e..8d0601f9d 100644 --- a/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php +++ b/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php @@ -25,6 +25,7 @@ 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'; @@ -35,6 +36,7 @@ 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', 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/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/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/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/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/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/ProductItemFields.php b/src/FacebookAds/Object/Fields/ProductItemFields.php index 607a600a9..c7280258a 100644 --- a/src/FacebookAds/Object/Fields/ProductItemFields.php +++ b/src/FacebookAds/Object/Fields/ProductItemFields.php @@ -137,7 +137,7 @@ public function getFieldTypes() { 'brand' => 'string', 'bundle_items' => 'list', 'bundle_retailer_ids' => 'list', - 'capability_to_review_status' => 'list>', + 'capability_to_review_status' => 'list>', 'category' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'color' => 'string', 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/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/Group.php b/src/FacebookAds/Object/Group.php index 6beb807e3..2b7d04f0d 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -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(); @@ -262,7 +227,7 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'android_key_hash' => 'string', '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', @@ -293,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', @@ -317,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', @@ -780,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', @@ -794,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/IGMedia.php b/src/FacebookAds/Object/IGMedia.php index 05fd04d11..f309193ce 100644 --- a/src/FacebookAds/Object/IGMedia.php +++ b/src/FacebookAds/Object/IGMedia.php @@ -333,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 bb73af00c..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. @@ -109,6 +112,35 @@ public function createComment(array $fields = array(), array $params = array(), 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(); diff --git a/src/FacebookAds/Object/IGUserForIGOnlyAPI.php b/src/FacebookAds/Object/IGUserForIGOnlyAPI.php index 8f10b9a8e..9c993e513 100644 --- a/src/FacebookAds/Object/IGUserForIGOnlyAPI.php +++ b/src/FacebookAds/Object/IGUserForIGOnlyAPI.php @@ -541,6 +541,38 @@ public function getWelcomeMessageFlows(array $fields = array(), array $params = 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/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/Page.php b/src/FacebookAds/Object/Page.php index d34d3d496..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(); @@ -1284,7 +1307,7 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'android_key_hash' => 'string', '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', @@ -3503,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', @@ -3519,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', diff --git a/src/FacebookAds/Object/Placement.php b/src/FacebookAds/Object/Placement.php new file mode 100644 index 000000000..d93138735 --- /dev/null +++ b/src/FacebookAds/Object/Placement.php @@ -0,0 +1,46 @@ +getValues(); + $ref_enums['EffectiveDevicePlatforms'] = PlacementEffectiveDevicePlatformsValues::getInstance()->getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/ProductCatalog.php b/src/FacebookAds/Object/ProductCatalog.php index 2fda868c5..4df55cc94 100644 --- a/src/FacebookAds/Object/ProductCatalog.php +++ b/src/FacebookAds/Object/ProductCatalog.php @@ -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(); 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/ProductItem.php b/src/FacebookAds/Object/ProductItem.php index 53a5d9feb..a07f7f647 100644 --- a/src/FacebookAds/Object/ProductItem.php +++ b/src/FacebookAds/Object/ProductItem.php @@ -17,6 +17,7 @@ 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; @@ -60,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(); diff --git a/src/FacebookAds/Object/User.php b/src/FacebookAds/Object/User.php index 692325fd0..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( @@ -732,7 +732,7 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'android_key_hash' => 'string', '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', @@ -1581,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', @@ -1596,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 80271b08e..ded1fef30 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -38,6 +38,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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'; @@ -50,8 +51,10 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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'; @@ -72,6 +75,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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'; @@ -83,6 +87,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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'; @@ -118,6 +123,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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'; @@ -129,6 +135,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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'; @@ -141,34 +148,44 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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'; @@ -190,12 +207,14 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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'; @@ -219,9 +238,11 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { 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'; diff --git a/src/FacebookAds/Object/Values/AdAccountSubtypeValues.php b/src/FacebookAds/Object/Values/AdAccountSubtypeValues.php index 5f2335022..5b700a0e1 100644 --- a/src/FacebookAds/Object/Values/AdAccountSubtypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountSubtypeValues.php @@ -33,6 +33,7 @@ class AdAccountSubtypeValues extends AbstractEnum { const LOOKALIKE = 'LOOKALIKE'; const MANAGED = 'MANAGED'; const MEASUREMENT = 'MEASUREMENT'; + const MESSENGER_SUBSCRIBER_LIST = 'MESSENGER_SUBSCRIBER_LIST'; const OFFLINE_CONVERSION = 'OFFLINE_CONVERSION'; const PARTNER = 'PARTNER'; const PRIMARY = 'PRIMARY'; diff --git a/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedRegulatedCategoriesValues.php b/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedRegulatedCategoriesValues.php index 5047c3cc9..335b07a5d 100644 --- a/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedRegulatedCategoriesValues.php +++ b/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedRegulatedCategoriesValues.php @@ -24,6 +24,7 @@ class AdAccountTargetingUnifiedRegulatedCategoriesValues extends AbstractEnum { const CREDIT = 'CREDIT'; const EMPLOYMENT = 'EMPLOYMENT'; + const FINANCIAL_PRODUCTS_SERVICES = 'FINANCIAL_PRODUCTS_SERVICES'; const HOUSING = 'HOUSING'; const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS'; const NONE = 'NONE'; diff --git a/src/FacebookAds/Object/Values/AdActivityEventTypeValues.php b/src/FacebookAds/Object/Values/AdActivityEventTypeValues.php index 2cc0777db..0c670a4b2 100644 --- a/src/FacebookAds/Object/Values/AdActivityEventTypeValues.php +++ b/src/FacebookAds/Object/Values/AdActivityEventTypeValues.php @@ -34,10 +34,12 @@ class AdActivityEventTypeValues extends AbstractEnum { const AD_ACCOUNT_REMOVE_USER_FROM_ROLE = 'ad_account_remove_user_from_role'; const AD_ACCOUNT_RESET_SPEND_LIMIT = 'ad_account_reset_spend_limit'; const AD_ACCOUNT_SET_BUSINESS_INFORMATION = 'ad_account_set_business_information'; + const AD_ACCOUNT_UPDATE_AUDIENCE_TYPE_URL_PARAMETER = 'ad_account_update_audience_type_url_parameter'; const AD_ACCOUNT_UPDATE_SPEND_LIMIT = 'ad_account_update_spend_limit'; const AD_ACCOUNT_UPDATE_STATUS = 'ad_account_update_status'; const AD_REVIEW_APPROVED = 'ad_review_approved'; const AD_REVIEW_DECLINED = 'ad_review_declined'; + const ADACCOUNT_UPDATE_AUDIENCE_SEGMENT = 'adaccount_update_audience_segment'; const ADD_FUNDING_SOURCE = 'add_funding_source'; const ADD_IMAGES = 'add_images'; const BILLING_EVENT = 'billing_event'; @@ -93,6 +95,7 @@ class AdActivityEventTypeValues extends AbstractEnum { const UPDATE_CAMPAIGN_BUDGET_OPTIMIZATION_TOGGLING_STATUS = 'update_campaign_budget_optimization_toggling_status'; const UPDATE_CAMPAIGN_BUDGET_SCHEDULING_STATE = 'update_campaign_budget_scheduling_state'; const UPDATE_CAMPAIGN_CONVERSION_GOAL = 'update_campaign_conversion_goal'; + const UPDATE_CAMPAIGN_DELIVERY_DESTINATION = 'update_campaign_delivery_destination'; const UPDATE_CAMPAIGN_DELIVERY_TYPE = 'update_campaign_delivery_type'; const UPDATE_CAMPAIGN_GROUP_AD_SCHEDULING = 'update_campaign_group_ad_scheduling'; const UPDATE_CAMPAIGN_GROUP_BUDGET_SCHEDULING_STATE = 'update_campaign_group_budget_scheduling_state'; diff --git a/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php b/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php index 8035d2786..da4a65523 100644 --- a/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php +++ b/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php @@ -62,6 +62,7 @@ class AdPreviewAdFormatValues extends AbstractEnum { const INSTREAM_BANNER_IMMERSIVE_MOBILE = 'INSTREAM_BANNER_IMMERSIVE_MOBILE'; const INSTREAM_BANNER_MOBILE = 'INSTREAM_BANNER_MOBILE'; const INSTREAM_VIDEO_DESKTOP = 'INSTREAM_VIDEO_DESKTOP'; + const INSTREAM_VIDEO_FULLSCREEN_IOS = 'INSTREAM_VIDEO_FULLSCREEN_IOS'; const INSTREAM_VIDEO_FULLSCREEN_MOBILE = 'INSTREAM_VIDEO_FULLSCREEN_MOBILE'; const INSTREAM_VIDEO_IMAGE = 'INSTREAM_VIDEO_IMAGE'; const INSTREAM_VIDEO_IMMERSIVE_MOBILE = 'INSTREAM_VIDEO_IMMERSIVE_MOBILE'; diff --git a/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php b/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php index c1f37f8cd..04738ffed 100644 --- a/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php +++ b/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php @@ -25,13 +25,17 @@ class AdRuleHistoryActionValues 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/AdSetRegionalRegulatedCategoriesValues.php b/src/FacebookAds/Object/Values/AdSetRegionalRegulatedCategoriesValues.php index 4319dc024..937295535 100644 --- a/src/FacebookAds/Object/Values/AdSetRegionalRegulatedCategoriesValues.php +++ b/src/FacebookAds/Object/Values/AdSetRegionalRegulatedCategoriesValues.php @@ -24,4 +24,5 @@ class AdSetRegionalRegulatedCategoriesValues extends AbstractEnum { const VALUE_0 = '0'; const VALUE_1 = '1'; + const VALUE_2 = '2'; } diff --git a/src/FacebookAds/Object/Values/AdSetTuneForCategoryValues.php b/src/FacebookAds/Object/Values/AdSetTuneForCategoryValues.php index 58ea53f7f..ea06f4807 100644 --- a/src/FacebookAds/Object/Values/AdSetTuneForCategoryValues.php +++ b/src/FacebookAds/Object/Values/AdSetTuneForCategoryValues.php @@ -24,6 +24,7 @@ class AdSetTuneForCategoryValues extends AbstractEnum { const CREDIT = 'CREDIT'; const EMPLOYMENT = 'EMPLOYMENT'; + const FINANCIAL_PRODUCTS_SERVICES = 'FINANCIAL_PRODUCTS_SERVICES'; const HOUSING = 'HOUSING'; const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS'; const NONE = 'NONE'; diff --git a/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php b/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php index 662a3520a..58a702835 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php @@ -26,6 +26,7 @@ class AdsInsightsBreakdownsValues extends AbstractEnum { const AGE = 'age'; const APP_ID = 'app_id'; const BODY_ASSET = 'body_asset'; + const BREAKDOWN_REPORTING_AD_ID = 'breakdown_reporting_ad_id'; const CALL_TO_ACTION_ASSET = 'call_to_action_asset'; const COARSE_CONVERSION_VALUE = 'coarse_conversion_value'; const CONVERSION_DESTINATION = 'conversion_destination'; @@ -53,6 +54,7 @@ class AdsInsightsBreakdownsValues extends AbstractEnum { const MEDIA_FORMAT = 'media_format'; const MEDIA_ORIGIN_URL = 'media_origin_url'; const MEDIA_TEXT_CONTENT = 'media_text_content'; + const MEDIA_TYPE = 'media_type'; const MMM = 'mmm'; const PLACE_PAGE_ID = 'place_page_id'; const PLATFORM_POSITION = 'platform_position'; diff --git a/src/FacebookAds/Object/Values/CampaignSpecialAdCategoriesValues.php b/src/FacebookAds/Object/Values/CampaignSpecialAdCategoriesValues.php index ac8d690ed..f2b14b2cd 100644 --- a/src/FacebookAds/Object/Values/CampaignSpecialAdCategoriesValues.php +++ b/src/FacebookAds/Object/Values/CampaignSpecialAdCategoriesValues.php @@ -24,6 +24,7 @@ class CampaignSpecialAdCategoriesValues extends AbstractEnum { const CREDIT = 'CREDIT'; const EMPLOYMENT = 'EMPLOYMENT'; + const FINANCIAL_PRODUCTS_SERVICES = 'FINANCIAL_PRODUCTS_SERVICES'; const HOUSING = 'HOUSING'; const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS'; const NONE = 'NONE'; diff --git a/src/FacebookAds/Object/Values/CampaignSpecialAdCategoryValues.php b/src/FacebookAds/Object/Values/CampaignSpecialAdCategoryValues.php index 10597639a..557c42d74 100644 --- a/src/FacebookAds/Object/Values/CampaignSpecialAdCategoryValues.php +++ b/src/FacebookAds/Object/Values/CampaignSpecialAdCategoryValues.php @@ -24,6 +24,7 @@ class CampaignSpecialAdCategoryValues extends AbstractEnum { const CREDIT = 'CREDIT'; const EMPLOYMENT = 'EMPLOYMENT'; + const FINANCIAL_PRODUCTS_SERVICES = 'FINANCIAL_PRODUCTS_SERVICES'; const HOUSING = 'HOUSING'; const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS'; const NONE = 'NONE'; diff --git a/src/FacebookAds/Object/Values/ApplicationLoggingTargetValues.php b/src/FacebookAds/Object/Values/CustomAudienceSubscriptionInfoValues.php similarity index 72% rename from src/FacebookAds/Object/Values/ApplicationLoggingTargetValues.php rename to src/FacebookAds/Object/Values/CustomAudienceSubscriptionInfoValues.php index 34d480b99..baeb3b18c 100644 --- a/src/FacebookAds/Object/Values/ApplicationLoggingTargetValues.php +++ b/src/FacebookAds/Object/Values/CustomAudienceSubscriptionInfoValues.php @@ -18,11 +18,10 @@ * on github and we'll fix in our codegen framework. We'll not be able to accept * pull request for this class. * - * @method static ApplicationLoggingTargetValues getInstance() + * @method static CustomAudienceSubscriptionInfoValues getInstance() */ -class ApplicationLoggingTargetValues extends AbstractEnum { +class CustomAudienceSubscriptionInfoValues extends AbstractEnum { - const APP = 'APP'; - const APP_AND_PAGE = 'APP_AND_PAGE'; - const PAGE = 'PAGE'; + const MESSENGER = 'MESSENGER'; + const WHATSAPP = 'WHATSAPP'; } diff --git a/src/FacebookAds/Object/Values/CustomAudienceSubtypeValues.php b/src/FacebookAds/Object/Values/CustomAudienceSubtypeValues.php index c56141512..33b4039f5 100644 --- a/src/FacebookAds/Object/Values/CustomAudienceSubtypeValues.php +++ b/src/FacebookAds/Object/Values/CustomAudienceSubtypeValues.php @@ -33,6 +33,7 @@ class CustomAudienceSubtypeValues extends AbstractEnum { const LOOKALIKE = 'LOOKALIKE'; const MANAGED = 'MANAGED'; const MEASUREMENT = 'MEASUREMENT'; + const MESSENGER_SUBSCRIBER_LIST = 'MESSENGER_SUBSCRIBER_LIST'; const OFFLINE_CONVERSION = 'OFFLINE_CONVERSION'; const PARTNER = 'PARTNER'; const PRIMARY = 'PRIMARY'; diff --git a/src/FacebookAds/Object/Values/CatalogItemRejectionReasonsCapabilityValues.php b/src/FacebookAds/Object/Values/CustomAudienceUseForProductsValues.php similarity index 54% rename from src/FacebookAds/Object/Values/CatalogItemRejectionReasonsCapabilityValues.php rename to src/FacebookAds/Object/Values/CustomAudienceUseForProductsValues.php index 818232656..3ffc930bf 100644 --- a/src/FacebookAds/Object/Values/CatalogItemRejectionReasonsCapabilityValues.php +++ b/src/FacebookAds/Object/Values/CustomAudienceUseForProductsValues.php @@ -18,14 +18,10 @@ * on github and we'll fix in our codegen framework. We'll not be able to accept * pull request for this class. * - * @method static CatalogItemRejectionReasonsCapabilityValues getInstance() + * @method static CustomAudienceUseForProductsValues getInstance() */ -class CatalogItemRejectionReasonsCapabilityValues extends AbstractEnum { +class CustomAudienceUseForProductsValues extends AbstractEnum { - const BUSINESS_INBOX_IN_MESSENGER = 'business_inbox_in_messenger'; - const SHOPS = 'shops'; - const TEST_CAPABILITY = 'test_capability'; - const UNIVERSAL_CHECKOUT = 'universal_checkout'; - const US_MARKETPLACE = 'us_marketplace'; - const WHATSAPP_MARKETING_MESSAGE = 'whatsapp_marketing_message'; + const ADS = 'ADS'; + const MARKETING_MESSAGES = 'MARKETING_MESSAGES'; } diff --git a/src/FacebookAds/Object/Values/InsightsResultBreakdownValues.php b/src/FacebookAds/Object/Values/InsightsResultBreakdownValues.php new file mode 100644 index 000000000..e82914424 --- /dev/null +++ b/src/FacebookAds/Object/Values/InsightsResultBreakdownValues.php @@ -0,0 +1,29 @@ +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(); @@ -538,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',