From 7df79347120112b21b632e7d080406ea628b1758 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Tue, 8 Aug 2023 09:33:40 -0700 Subject: [PATCH 01/34] Add DSA Support on AdAccount Summary: [BizSDK][API-Spec] Add DSA Support on AdAccount Add default_dsa_beneficiary and default_dsa_payor two fields in adaccount.json file. Reviewed By: scutexasece Differential Revision: D48134776 fbshipit-source-id: b672146998f4eac5d20ac2e04624c4b41dceafd1 --- src/FacebookAds/ApiConfig.php | 2 +- src/FacebookAds/Object/AdAccount.php | 2 ++ src/FacebookAds/Object/Fields/AdAccountFields.php | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 7e6c454db..3ccfae96c 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -24,6 +24,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '17.0'; - const SDKVersion = '17.0.1'; + const SDKVersion = '17.0.2'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 0d188089b..a1d3b571d 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -3142,6 +3142,8 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'business_info' => 'map', 'currency' => 'currency_enum', 'custom_audience_info' => 'map', + 'default_dsa_beneficiary' => 'string', + 'default_dsa_payor' => 'string', 'end_advertiser' => 'string', 'existing_customers' => 'list', 'is_notifications_enabled' => 'bool', diff --git a/src/FacebookAds/Object/Fields/AdAccountFields.php b/src/FacebookAds/Object/Fields/AdAccountFields.php index c370d0ce1..a98053574 100644 --- a/src/FacebookAds/Object/Fields/AdAccountFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountFields.php @@ -57,6 +57,8 @@ class AdAccountFields extends AbstractEnum { const CREATED_TIME = 'created_time'; const CURRENCY = 'currency'; const CUSTOM_AUDIENCE_INFO = 'custom_audience_info'; + const DEFAULT_DSA_BENEFICIARY = 'default_dsa_beneficiary'; + const DEFAULT_DSA_PAYOR = 'default_dsa_payor'; const DISABLE_REASON = 'disable_reason'; const END_ADVERTISER = 'end_advertiser'; const END_ADVERTISER_NAME = 'end_advertiser_name'; @@ -125,6 +127,8 @@ public function getFieldTypes() { 'created_time' => 'datetime', 'currency' => 'string', 'custom_audience_info' => 'CustomAudienceGroup', + 'default_dsa_beneficiary' => 'string', + 'default_dsa_payor' => 'string', 'disable_reason' => 'unsigned int', 'end_advertiser' => 'string', 'end_advertiser_name' => 'string', From ba180c874beebb0a744ab4cdbec71b462c4f15a7 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Wed, 13 Sep 2023 10:43:31 -0700 Subject: [PATCH 02/34] Update LICENSE and Header Summary: [BizSDK][PHP] Update LICENSE and Header Reviewed By: mengxuanzhangz Differential Revision: D49199828 fbshipit-source-id: ae5a1851e5c82f6fe5584f678d8953a371c81b6f --- LICENSE | 29 +++++++++---------- src/FacebookAds/AnonymousSession.php | 25 ++++------------ src/FacebookAds/Api.php | 25 ++++------------ src/FacebookAds/ApiConfig.php | 26 ++++------------- src/FacebookAds/ApiRequest.php | 25 ++++------------ src/FacebookAds/CrashReporter.php | 25 ++++------------ src/FacebookAds/Cursor.php | 25 ++++------------ .../Object/AREffectsBatchStatus.php | 25 ++++------------ .../Object/AbstractArchivableCrudObject.php | 25 ++++------------ src/FacebookAds/Object/AbstractCrudObject.php | 26 ++++------------- src/FacebookAds/Object/AbstractObject.php | 26 ++++------------- src/FacebookAds/Object/Ad.php | 27 ++++------------- src/FacebookAds/Object/AdAccount.php | 27 ++++------------- .../Object/AdAccountAdRulesHistory.php | 25 ++++------------ src/FacebookAds/Object/AdAccountAdVolume.php | 25 ++++------------ .../Object/AdAccountBusinessConstraints.php | 25 ++++------------ .../Object/AdAccountDefaultDestination.php | 25 ++++------------ .../Object/AdAccountDefaultObjective.php | 25 ++++------------ .../Object/AdAccountDeliveryEstimate.php | 25 ++++------------ .../AdAccountIosFourteenCampaignLimits.php | 25 ++++------------ ...countMatchedSearchApplicationsEdgeData.php | 25 ++++------------ src/FacebookAds/Object/AdAccountMaxBid.php | 25 ++++------------ .../Object/AdAccountPromotableObjects.php | 25 ++++------------ .../Object/AdAccountReachEstimate.php | 25 ++++------------ .../AdAccountRecommendedCamapaignBudget.php | 25 ++++------------ .../Object/AdAccountSubscribedApps.php | 25 ++++------------ .../Object/AdAccountTargetingUnified.php | 25 ++++------------ .../Object/AdAccountTrackingData.php | 25 ++++------------ src/FacebookAds/Object/AdAccountUser.php | 25 ++++------------ src/FacebookAds/Object/AdActivity.php | 25 ++++------------ src/FacebookAds/Object/AdAssetFeedSpec.php | 25 ++++------------ .../Object/AdAssetFeedSpecAssetLabel.php | 25 ++++------------ .../Object/AdAssetFeedSpecBody.php | 25 ++++------------ .../Object/AdAssetFeedSpecCaption.php | 25 ++++------------ .../Object/AdAssetFeedSpecDescription.php | 25 ++++------------ .../Object/AdAssetFeedSpecGroupRule.php | 25 ++++------------ .../Object/AdAssetFeedSpecImage.php | 25 ++++------------ .../Object/AdAssetFeedSpecLinkURL.php | 25 ++++------------ .../Object/AdAssetFeedSpecTitle.php | 25 ++++------------ .../Object/AdAssetFeedSpecVideo.php | 25 ++++------------ src/FacebookAds/Object/AdAsyncRequest.php | 25 ++++------------ src/FacebookAds/Object/AdAsyncRequestSet.php | 25 ++++------------ .../AdAsyncRequestSetNotificationResult.php | 25 ++++------------ src/FacebookAds/Object/AdBidAdjustments.php | 25 ++++------------ .../Object/AdCampaignBidConstraint.php | 25 ++++------------ .../Object/AdCampaignDeliveryEstimate.php | 25 ++++------------ ...ampaignDeliveryStatsUnsupportedReasons.php | 25 ++++------------ .../AdCampaignFrequencyControlSpecs.php | 25 ++++------------ .../Object/AdCampaignIssuesInfo.php | 25 ++++------------ .../Object/AdCampaignLearningStageInfo.php | 25 ++++------------ .../Object/AdCampaignOptimizationEvent.php | 25 ++++------------ .../Object/AdCampaignPacedBidInfo.php | 25 ++++------------ src/FacebookAds/Object/AdCreative.php | 27 ++++------------- .../Object/AdCreativeAdDisclaimer.php | 25 ++++------------ .../Object/AdCreativeBrandedContentAds.php | 25 ++++------------ .../AdCreativeCollectionThumbnailInfo.php | 25 ++++------------ .../Object/AdCreativeDegreesOfFreedomSpec.php | 25 ++++------------ .../AdCreativeFacebookBrandedContent.php | 25 ++++------------ src/FacebookAds/Object/AdCreativeInsights.php | 25 ++++------------ .../AdCreativeInstagramBrandedContent.php | 25 ++++------------ .../AdCreativeInteractiveComponentsSpec.php | 25 ++++------------ src/FacebookAds/Object/AdCreativeLinkData.php | 25 ++++------------ .../Object/AdCreativeLinkDataAppLinkSpec.php | 25 ++++------------ .../Object/AdCreativeLinkDataCallToAction.php | 25 ++++------------ .../AdCreativeLinkDataCallToActionValue.php | 25 ++++------------ .../AdCreativeLinkDataChildAttachment.php | 25 ++++------------ .../AdCreativeLinkDataImageLayerSpec.php | 25 ++++------------ .../AdCreativeLinkDataImageOverlaySpec.php | 25 ++++------------ .../AdCreativeLinkDataSponsorshipInfoSpec.php | 25 ++++------------ .../AdCreativeLinkDataTemplateVideoSpec.php | 25 ++++------------ .../Object/AdCreativeObjectStorySpec.php | 25 ++++------------ .../Object/AdCreativeOmnichannelLinkSpec.php | 25 ++++------------ .../Object/AdCreativePhotoData.php | 25 ++++------------ .../AdCreativePhotoDataMediaElements.php | 25 ++++------------ .../Object/AdCreativePlaceData.php | 25 ++++------------ .../AdCreativePlatformCustomization.php | 25 ++++------------ .../AdCreativePortraitCustomizations.php | 25 ++++------------ .../AdCreativePostClickConfiguration.php | 25 ++++------------ .../Object/AdCreativeRecommenderSettings.php | 25 ++++------------ .../Object/AdCreativeStaticFallbackSpec.php | 25 ++++------------ .../Object/AdCreativeTemplateURLSpec.php | 25 ++++------------ src/FacebookAds/Object/AdCreativeTextData.php | 25 ++++------------ .../Object/AdCreativeVideoData.php | 25 ++++------------ .../Object/AdCustomizationRuleSpec.php | 25 ++++------------ src/FacebookAds/Object/AdDynamicCreative.php | 25 ++++------------ .../Object/AdEntityTargetSpend.php | 25 ++++------------ src/FacebookAds/Object/AdImage.php | 25 ++++------------ src/FacebookAds/Object/AdKeywords.php | 25 ++++------------ src/FacebookAds/Object/AdLabel.php | 25 ++++------------ .../Object/AdMonetizationProperty.php | 25 ++++------------ .../AdNetworkAnalyticsAsyncQueryResult.php | 25 ++++------------ .../AdNetworkAnalyticsSyncQueryResult.php | 25 ++++------------ src/FacebookAds/Object/AdPlacePageSet.php | 25 ++++------------ .../Object/AdPlacePageSetMetadata.php | 25 ++++------------ src/FacebookAds/Object/AdPlacement.php | 25 ++++------------ src/FacebookAds/Object/AdPreview.php | 25 ++++------------ src/FacebookAds/Object/AdPromotedObject.php | 25 ++++------------ src/FacebookAds/Object/AdRecommendation.php | 25 ++++------------ .../Object/AdRecommendationData.php | 25 ++++------------ src/FacebookAds/Object/AdReportRun.php | 25 ++++------------ src/FacebookAds/Object/AdRule.php | 25 ++++------------ .../Object/AdRuleEvaluationSpec.php | 25 ++++------------ .../Object/AdRuleExecutionOptions.php | 25 ++++------------ .../Object/AdRuleExecutionSpec.php | 25 ++++------------ src/FacebookAds/Object/AdRuleFilters.php | 25 ++++------------ src/FacebookAds/Object/AdRuleHistory.php | 25 ++++------------ .../Object/AdRuleHistoryResult.php | 25 ++++------------ .../Object/AdRuleHistoryResultAction.php | 25 ++++------------ src/FacebookAds/Object/AdRuleSchedule.php | 25 ++++------------ src/FacebookAds/Object/AdRuleScheduleSpec.php | 25 ++++------------ src/FacebookAds/Object/AdRuleTrigger.php | 25 ++++------------ src/FacebookAds/Object/AdSet.php | 25 ++++------------ src/FacebookAds/Object/AdStudy.php | 25 ++++------------ src/FacebookAds/Object/AdStudyCell.php | 25 ++++------------ src/FacebookAds/Object/AdStudyObjective.php | 25 ++++------------ src/FacebookAds/Object/AdStudyObjectiveID.php | 25 ++++------------ .../AdStudyObjectiveOffsiteDatasets.php | 25 ++++------------ src/FacebookAds/Object/AdVideo.php | 25 ++++------------ src/FacebookAds/Object/AdgroupIssuesInfo.php | 25 ++++------------ src/FacebookAds/Object/AdgroupMetadata.php | 25 ++++------------ ...AdgroupPlacementSpecificReviewFeedback.php | 25 ++++------------ .../Object/AdgroupReviewFeedback.php | 25 ++++------------ src/FacebookAds/Object/AdsActionStats.php | 25 ++++------------ src/FacebookAds/Object/AdsImageCrops.php | 25 ++++------------ src/FacebookAds/Object/AdsInsights.php | 25 ++++------------ .../AdsOptimalDeliveryGrowthOpportunity.php | 25 ++++------------ src/FacebookAds/Object/AdsPixel.php | 25 ++++------------ src/FacebookAds/Object/AdsPixelStats.php | 25 ++++------------ .../Object/AdsPixelStatsResult.php | 25 ++++------------ src/FacebookAds/Object/AgeRange.php | 25 ++++------------ .../Object/AgencyClientDeclaration.php | 25 ++++------------ src/FacebookAds/Object/Album.php | 25 ++++------------ src/FacebookAds/Object/AndroidAppLink.php | 25 ++++------------ src/FacebookAds/Object/AppRequest.php | 25 ++++------------ .../Object/AppRequestFormerRecipient.php | 25 ++++------------ src/FacebookAds/Object/Application.php | 25 ++++------------ src/FacebookAds/Object/AssignedUser.php | 25 ++++------------ src/FacebookAds/Object/AsyncRequest.php | 25 ++++------------ src/FacebookAds/Object/AsyncSession.php | 25 ++++------------ src/FacebookAds/Object/AttributionSpec.php | 25 ++++------------ .../Object/AudiencePermissionForActions.php | 25 ++++------------ src/FacebookAds/Object/AudioCopyright.php | 25 ++++------------ src/FacebookAds/Object/AutomotiveModel.php | 25 ++++------------ src/FacebookAds/Object/BrandRequest.php | 25 ++++------------ .../Object/BrandSafetyBlockListUsage.php | 25 ++++------------ .../Object/BroadTargetingCategories.php | 25 ++++------------ src/FacebookAds/Object/Business.php | 25 ++++------------ .../Object/BusinessAdAccountRequest.php | 25 ++++------------ .../Object/BusinessApplicationRequest.php | 25 ++++------------ src/FacebookAds/Object/BusinessAssetGroup.php | 25 ++++------------ .../Object/BusinessAssetSharingAgreement.php | 25 ++++------------ src/FacebookAds/Object/BusinessImage.php | 25 ++++------------ .../BusinessManagedPartnerEligibility.php | 25 ++++------------ .../BusinessOwnedObjectOnBehalfOfRequest.php | 25 ++++------------ .../Object/BusinessPageRequest.php | 25 ++++------------ .../Object/BusinessPartnerPremiumOptions.php | 25 ++++------------ .../Object/BusinessRoleRequest.php | 25 ++++------------ src/FacebookAds/Object/BusinessUser.php | 25 ++++------------ ...PASAdvertiserPartnershipRecommendation.php | 25 ++++------------ .../Object/CPASBusinessSetupConfig.php | 25 ++++------------ .../Object/CPASCollaborationRequest.php | 25 ++++------------ src/FacebookAds/Object/CPASMerchantConfig.php | 25 ++++------------ src/FacebookAds/Object/CRMAddress.php | 25 ++++------------ src/FacebookAds/Object/Campaign.php | 25 ++++------------ .../CampaignGroupBrandConfiguration.php | 25 ++++------------ ...mpaignGroupCollaborativeAdsPartnerInfo.php | 25 ++++------------ .../Object/CanRedownloadInterface.php | 25 ++++------------ src/FacebookAds/Object/Canvas.php | 27 ++++------------- src/FacebookAds/Object/CanvasAdSettings.php | 25 ++++------------ src/FacebookAds/Object/CanvasBodyElement.php | 25 ++++------------ .../Object/CanvasCollectionThumbnail.php | 25 ++++------------ .../Object/CanvasDynamicSetting.php | 25 ++++------------ .../Object/CatalogBasedTargeting.php | 25 ++++------------ .../Object/CatalogItemAppLinks.php | 25 ++++------------ .../Object/CatalogItemAppealStatus.php | 25 ++++------------ .../CatalogItemChannelsToIntegrityStatus.php | 25 ++++------------ .../CatalogSegmentAllMatchCountLaser.php | 25 ++++------------ .../Object/CatalogSubVerticalList.php | 25 ++++------------ src/FacebookAds/Object/ChatPlugin.php | 25 ++++------------ .../Object/CheckBatchRequestStatus.php | 25 ++++------------ src/FacebookAds/Object/ChildEvent.php | 25 ++++------------ src/FacebookAds/Object/ClickTrackingTag.php | 25 ++++------------ src/FacebookAds/Object/CloudGame.php | 25 ++++------------ .../CollaborativeAdsPartnerInfoListItem.php | 25 ++++------------ .../Object/CollaborativeAdsShareSettings.php | 25 ++++------------ src/FacebookAds/Object/Comment.php | 25 ++++------------ .../Object/CommerceMerchantSettings.php | 25 ++++------------ .../CommerceMerchantSettingsSetupStatus.php | 25 ++++------------ src/FacebookAds/Object/CommerceOrder.php | 25 ++++------------ .../Object/CommerceOrderTransactionDetail.php | 25 ++++------------ src/FacebookAds/Object/CommercePayout.php | 25 ++++------------ src/FacebookAds/Object/CommerceSettings.php | 25 ++++------------ .../Object/ConnectionsTargeting.php | 25 ++++------------ .../Object/ContextualBundlingSpec.php | 25 ++++------------ .../Object/ConversionActionQuery.php | 25 ++++------------ .../Object/CopyrightReferenceContainer.php | 25 ++++------------ src/FacebookAds/Object/CoverPhoto.php | 25 ++++------------ src/FacebookAds/Object/CreativeHistory.php | 25 ++++------------ src/FacebookAds/Object/CreditCard.php | 25 ++++------------ .../Object/CreditPartitionActionOptions.php | 25 ++++------------ src/FacebookAds/Object/Currency.php | 25 ++++------------ src/FacebookAds/Object/CurrencyAmount.php | 25 ++++------------ src/FacebookAds/Object/CustomAudience.php | 25 ++++------------ .../Object/CustomAudienceAdAccount.php | 25 ++++------------ .../Object/CustomAudienceDataSource.php | 25 ++++------------ .../Object/CustomAudienceGroup.php | 25 ++++------------ .../Object/CustomAudienceMultiKey.php | 25 ++++------------ .../BirthYearNormalizer.php | 25 ++++------------ .../CityNormalizer.php | 25 ++++------------ .../CountryNormalizer.php | 25 ++++------------ .../DateNormalizer.php | 25 ++++------------ .../EmailNormalizer.php | 25 ++++------------ .../FirstNameInitialNormalizer.php | 25 ++++------------ .../FirstNameNormalizer.php | 25 ++++------------ .../GenderNormalizer.php | 25 ++++------------ .../HashNormalizer.php | 25 ++++------------ .../LastNameNormalizer.php | 25 ++++------------ .../MadidNormalizer.php | 25 ++++------------ .../PhoneNormalizer.php | 25 ++++------------ .../StateNormalizer.php | 25 ++++------------ .../ValueNormalizerInterface.php | 25 ++++------------ .../ZipNormalizer.php | 25 ++++------------ .../Object/CustomAudienceSession.php | 25 ++++------------ .../Object/CustomAudienceSharingStatus.php | 25 ++++------------ .../Object/CustomAudienceStatus.php | 25 ++++------------ src/FacebookAds/Object/CustomAudiencesTOS.php | 25 ++++------------ .../CustomAudiencesharedAccountInfo.php | 25 ++++------------ src/FacebookAds/Object/CustomConversion.php | 25 ++++------------ .../Object/CustomConversionStatsResult.php | 25 ++++------------ src/FacebookAds/Object/CustomUserSettings.php | 25 ++++------------ src/FacebookAds/Object/DACheck.php | 25 ++++------------ src/FacebookAds/Object/DayPart.php | 25 ++++------------ src/FacebookAds/Object/DeliveryCheck.php | 25 ++++------------ .../Object/DeliveryCheckExtraInfo.php | 25 ++++------------ src/FacebookAds/Object/DeliveryWindow.php | 25 ++++------------ src/FacebookAds/Object/Destination.php | 25 ++++------------ .../Object/DestinationCatalogSettings.php | 25 ++++------------ .../Object/DynamicPostChildAttachment.php | 25 ++++------------ .../Object/DynamicPriceConfigByDate.php | 25 ++++------------ src/FacebookAds/Object/Engagement.php | 25 ++++------------ src/FacebookAds/Object/EntityAtTextRange.php | 25 ++++------------ src/FacebookAds/Object/Event.php | 25 ++++------------ src/FacebookAds/Object/EventSourceGroup.php | 25 ++++------------ src/FacebookAds/Object/Experience.php | 25 ++++------------ src/FacebookAds/Object/ExtendedCredit.php | 25 ++++------------ .../Object/ExtendedCreditAllocationConfig.php | 25 ++++------------ .../Object/ExtendedCreditInvoiceGroup.php | 25 ++++------------ .../Object/ExternalEventSource.php | 25 ++++------------ src/FacebookAds/Object/FAMEExportConfig.php | 25 ++++------------ .../Fields/AREffectsBatchStatusFields.php | 25 ++++------------ .../AbstractArchivableCrudObjectFields.php | 25 ++++------------ .../Fields/AdAccountAdRulesHistoryFields.php | 25 ++++------------ .../Object/Fields/AdAccountAdVolumeFields.php | 25 ++++------------ .../AdAccountBusinessConstraintsFields.php | 25 ++++------------ .../AdAccountDefaultDestinationFields.php | 25 ++++------------ .../AdAccountDefaultObjectiveFields.php | 25 ++++------------ .../AdAccountDeliveryEstimateFields.php | 25 ++++------------ .../Object/Fields/AdAccountFields.php | 25 ++++------------ ...AccountIosFourteenCampaignLimitsFields.php | 25 ++++------------ ...atchedSearchApplicationsEdgeDataFields.php | 25 ++++------------ .../Object/Fields/AdAccountMaxBidFields.php | 25 ++++------------ .../AdAccountPromotableObjectsFields.php | 25 ++++------------ .../Fields/AdAccountReachEstimateFields.php | 25 ++++------------ ...ccountRecommendedCamapaignBudgetFields.php | 25 ++++------------ .../Fields/AdAccountSubscribedAppsFields.php | 25 ++++------------ .../AdAccountTargetingUnifiedFields.php | 25 ++++------------ .../Fields/AdAccountTrackingDataFields.php | 25 ++++------------ .../Object/Fields/AdAccountUserFields.php | 25 ++++------------ .../Object/Fields/AdActivityFields.php | 25 ++++------------ .../AdAssetFeedSpecAssetLabelFields.php | 25 ++++------------ .../Fields/AdAssetFeedSpecBodyFields.php | 25 ++++------------ .../Fields/AdAssetFeedSpecCaptionFields.php | 25 ++++------------ .../AdAssetFeedSpecDescriptionFields.php | 25 ++++------------ .../Object/Fields/AdAssetFeedSpecFields.php | 25 ++++------------ .../Fields/AdAssetFeedSpecGroupRuleFields.php | 25 ++++------------ .../Fields/AdAssetFeedSpecImageFields.php | 25 ++++------------ .../Fields/AdAssetFeedSpecLinkURLFields.php | 25 ++++------------ .../Fields/AdAssetFeedSpecTitleFields.php | 25 ++++------------ .../Fields/AdAssetFeedSpecVideoFields.php | 25 ++++------------ .../Object/Fields/AdAsyncRequestFields.php | 25 ++++------------ .../Object/Fields/AdAsyncRequestSetFields.php | 25 ++++------------ ...syncRequestSetNotificationResultFields.php | 25 ++++------------ .../Object/Fields/AdBidAdjustmentsFields.php | 25 ++++------------ .../Fields/AdCampaignBidConstraintFields.php | 25 ++++------------ .../AdCampaignDeliveryEstimateFields.php | 25 ++++------------ ...nDeliveryStatsUnsupportedReasonsFields.php | 25 ++++------------ .../AdCampaignFrequencyControlSpecsFields.php | 25 ++++------------ .../Fields/AdCampaignIssuesInfoFields.php | 25 ++++------------ .../AdCampaignLearningStageInfoFields.php | 25 ++++------------ .../AdCampaignOptimizationEventFields.php | 25 ++++------------ .../Fields/AdCampaignPacedBidInfoFields.php | 25 ++++------------ .../Fields/AdCreativeAdDisclaimerFields.php | 25 ++++------------ .../AdCreativeBrandedContentAdsFields.php | 25 ++++------------ ...dCreativeCollectionThumbnailInfoFields.php | 25 ++++------------ .../AdCreativeDegreesOfFreedomSpecFields.php | 25 ++++------------ ...AdCreativeFacebookBrandedContentFields.php | 25 ++++------------ .../Object/Fields/AdCreativeFields.php | 25 ++++------------ .../Fields/AdCreativeInsightsFields.php | 25 ++++------------ ...dCreativeInstagramBrandedContentFields.php | 25 ++++------------ ...reativeInteractiveComponentsSpecFields.php | 25 ++++------------ .../AdCreativeLinkDataAppLinkSpecFields.php | 25 ++++------------ .../AdCreativeLinkDataCallToActionFields.php | 25 ++++------------ ...reativeLinkDataCallToActionValueFields.php | 25 ++++------------ ...dCreativeLinkDataChildAttachmentFields.php | 25 ++++------------ .../Fields/AdCreativeLinkDataFields.php | 25 ++++------------ ...AdCreativeLinkDataImageLayerSpecFields.php | 25 ++++------------ ...CreativeLinkDataImageOverlaySpecFields.php | 25 ++++------------ ...ativeLinkDataSponsorshipInfoSpecFields.php | 25 ++++------------ ...reativeLinkDataTemplateVideoSpecFields.php | 25 ++++------------ .../AdCreativeObjectStorySpecFields.php | 25 ++++------------ .../AdCreativeOmnichannelLinkSpecFields.php | 25 ++++------------ .../Fields/AdCreativePhotoDataFields.php | 25 ++++------------ ...AdCreativePhotoDataMediaElementsFields.php | 25 ++++------------ .../Fields/AdCreativePlaceDataFields.php | 25 ++++------------ .../AdCreativePlatformCustomizationFields.php | 25 ++++------------ ...AdCreativePortraitCustomizationsFields.php | 25 ++++------------ ...AdCreativePostClickConfigurationFields.php | 25 ++++------------ .../AdCreativeRecommenderSettingsFields.php | 25 ++++------------ .../AdCreativeStaticFallbackSpecFields.php | 25 ++++------------ .../AdCreativeTemplateURLSpecFields.php | 25 ++++------------ .../Fields/AdCreativeTextDataFields.php | 25 ++++------------ .../Fields/AdCreativeVideoDataFields.php | 25 ++++------------ .../Fields/AdCustomizationRuleSpecFields.php | 25 ++++------------ .../Object/Fields/AdDynamicCreativeFields.php | 25 ++++------------ .../Fields/AdEntityTargetSpendFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/AdFields.php | 25 ++++------------ .../Object/Fields/AdImageFields.php | 25 ++++------------ .../Object/Fields/AdKeywordsFields.php | 25 ++++------------ .../Object/Fields/AdLabelFields.php | 25 ++++------------ .../Fields/AdMonetizationPropertyFields.php | 25 ++++------------ ...NetworkAnalyticsAsyncQueryResultFields.php | 25 ++++------------ ...dNetworkAnalyticsSyncQueryResultFields.php | 25 ++++------------ .../Object/Fields/AdPlacePageSetFields.php | 25 ++++------------ .../Fields/AdPlacePageSetMetadataFields.php | 25 ++++------------ .../Object/Fields/AdPlacementFields.php | 25 ++++------------ .../Object/Fields/AdPreviewFields.php | 25 ++++------------ .../Object/Fields/AdPromotedObjectFields.php | 25 ++++------------ .../Fields/AdRecommendationDataFields.php | 25 ++++------------ .../Object/Fields/AdRecommendationFields.php | 25 ++++------------ .../Object/Fields/AdReportRunFields.php | 25 ++++------------ .../Fields/AdRuleEvaluationSpecFields.php | 25 ++++------------ .../Fields/AdRuleExecutionOptionsFields.php | 25 ++++------------ .../Fields/AdRuleExecutionSpecFields.php | 25 ++++------------ .../Object/Fields/AdRuleFields.php | 25 ++++------------ .../Object/Fields/AdRuleFiltersFields.php | 25 ++++------------ .../Object/Fields/AdRuleHistoryFields.php | 25 ++++------------ .../AdRuleHistoryResultActionFields.php | 25 ++++------------ .../Fields/AdRuleHistoryResultFields.php | 25 ++++------------ .../Object/Fields/AdRuleScheduleFields.php | 25 ++++------------ .../Fields/AdRuleScheduleSpecFields.php | 25 ++++------------ .../Object/Fields/AdRuleTriggerFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/AdSetFields.php | 25 ++++------------ .../Object/Fields/AdStudyCellFields.php | 25 ++++------------ .../Object/Fields/AdStudyFields.php | 25 ++++------------ .../Object/Fields/AdStudyObjectiveFields.php | 25 ++++------------ .../Fields/AdStudyObjectiveIDFields.php | 25 ++++------------ .../AdStudyObjectiveOffsiteDatasetsFields.php | 25 ++++------------ .../Object/Fields/AdVideoFields.php | 25 ++++------------ .../Object/Fields/AdgroupIssuesInfoFields.php | 25 ++++------------ .../Object/Fields/AdgroupMetadataFields.php | 25 ++++------------ ...pPlacementSpecificReviewFeedbackFields.php | 25 ++++------------ .../Fields/AdgroupReviewFeedbackFields.php | 25 ++++------------ .../Object/Fields/AdsActionStatsFields.php | 25 ++++------------ .../Object/Fields/AdsImageCropsFields.php | 25 ++++------------ .../Object/Fields/AdsInsightsFields.php | 25 ++++------------ ...OptimalDeliveryGrowthOpportunityFields.php | 25 ++++------------ .../Object/Fields/AdsPixelFields.php | 25 ++++------------ .../Object/Fields/AdsPixelStatsFields.php | 25 ++++------------ .../Fields/AdsPixelStatsResultFields.php | 25 ++++------------ .../Object/Fields/AgeRangeFields.php | 25 ++++------------ .../Fields/AgencyClientDeclarationFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/AlbumFields.php | 25 ++++------------ .../Object/Fields/AndroidAppLinkFields.php | 25 ++++------------ .../Object/Fields/AppRequestFields.php | 25 ++++------------ .../AppRequestFormerRecipientFields.php | 25 ++++------------ .../Object/Fields/ApplicationFields.php | 25 ++++------------ .../Object/Fields/AssignedUserFields.php | 25 ++++------------ .../Object/Fields/AsyncRequestFields.php | 25 ++++------------ .../Object/Fields/AsyncSessionFields.php | 25 ++++------------ .../Object/Fields/AttributionSpecFields.php | 25 ++++------------ .../AudiencePermissionForActionsFields.php | 25 ++++------------ .../Object/Fields/AudioCopyrightFields.php | 25 ++++------------ .../Object/Fields/AutomotiveModelFields.php | 25 ++++------------ .../Object/Fields/BrandRequestFields.php | 25 ++++------------ .../BrandSafetyBlockListUsageFields.php | 25 ++++------------ .../Fields/BroadTargetingCategoriesFields.php | 25 ++++------------ .../Fields/BusinessAdAccountRequestFields.php | 25 ++++------------ .../BusinessApplicationRequestFields.php | 25 ++++------------ .../Fields/BusinessAssetGroupFields.php | 25 ++++------------ .../BusinessAssetSharingAgreementFields.php | 25 ++++------------ .../Object/Fields/BusinessFields.php | 25 ++++------------ .../Object/Fields/BusinessImageFields.php | 25 ++++------------ ...usinessManagedPartnerEligibilityFields.php | 25 ++++------------ ...nessOwnedObjectOnBehalfOfRequestFields.php | 25 ++++------------ .../Fields/BusinessPageRequestFields.php | 25 ++++------------ .../BusinessPartnerPremiumOptionsFields.php | 25 ++++------------ .../Fields/BusinessRoleRequestFields.php | 25 ++++------------ .../Object/Fields/BusinessUserFields.php | 25 ++++------------ ...ertiserPartnershipRecommendationFields.php | 25 ++++------------ .../Fields/CPASBusinessSetupConfigFields.php | 25 ++++------------ .../Fields/CPASCollaborationRequestFields.php | 25 ++++------------ .../Fields/CPASMerchantConfigFields.php | 25 ++++------------ .../Object/Fields/CRMAddressFields.php | 25 ++++------------ .../Object/Fields/CampaignFields.php | 25 ++++------------ .../CampaignGroupBrandConfigurationFields.php | 25 ++++------------ ...GroupCollaborativeAdsPartnerInfoFields.php | 25 ++++------------ .../Object/Fields/CanvasAdSettingsFields.php | 25 ++++------------ .../Object/Fields/CanvasBodyElementFields.php | 25 ++++------------ .../CanvasCollectionThumbnailFields.php | 25 ++++------------ .../Fields/CanvasDynamicSettingFields.php | 25 ++++------------ .../Object/Fields/CanvasFields.php | 25 ++++------------ .../Fields/CatalogBasedTargetingFields.php | 25 ++++------------ .../Fields/CatalogItemAppLinksFields.php | 25 ++++------------ .../Fields/CatalogItemAppealStatusFields.php | 25 ++++------------ ...logItemChannelsToIntegrityStatusFields.php | 25 ++++------------ ...CatalogSegmentAllMatchCountLaserFields.php | 25 ++++------------ .../Fields/CatalogSubVerticalListFields.php | 25 ++++------------ .../Object/Fields/ChatPluginFields.php | 25 ++++------------ .../Fields/CheckBatchRequestStatusFields.php | 25 ++++------------ .../Object/Fields/ChildEventFields.php | 25 ++++------------ .../Object/Fields/ClickTrackingTagFields.php | 25 ++++------------ .../Object/Fields/CloudGameFields.php | 25 ++++------------ ...laborativeAdsPartnerInfoListItemFields.php | 25 ++++------------ .../CollaborativeAdsShareSettingsFields.php | 25 ++++------------ .../Object/Fields/CommentFields.php | 25 ++++------------ .../Fields/CommerceMerchantSettingsFields.php | 25 ++++------------ ...merceMerchantSettingsSetupStatusFields.php | 25 ++++------------ .../Object/Fields/CommerceOrderFields.php | 25 ++++------------ .../CommerceOrderTransactionDetailFields.php | 25 ++++------------ .../Object/Fields/CommercePayoutFields.php | 25 ++++------------ .../Object/Fields/CommerceSettingsFields.php | 25 ++++------------ .../Fields/ConnectionsTargetingFields.php | 25 ++++------------ .../Fields/ContextualBundlingSpecFields.php | 25 ++++------------ .../Fields/ConversionActionQueryFields.php | 25 ++++------------ .../CopyrightReferenceContainerFields.php | 25 ++++------------ .../Object/Fields/CoverPhotoFields.php | 25 ++++------------ .../Object/Fields/CreativeHistoryFields.php | 25 ++++------------ .../Object/Fields/CreditCardFields.php | 25 ++++------------ .../CreditPartitionActionOptionsFields.php | 25 ++++------------ .../Object/Fields/CurrencyAmountFields.php | 25 ++++------------ .../Object/Fields/CurrencyFields.php | 25 ++++------------ .../Fields/CustomAudienceAdAccountFields.php | 25 ++++------------ .../Fields/CustomAudienceDataSourceFields.php | 25 ++++------------ .../Object/Fields/CustomAudienceFields.php | 25 ++++------------ .../Fields/CustomAudienceGroupFields.php | 25 ++++------------ .../CustomAudienceMultikeySchemaFields.php | 25 ++++------------ .../Fields/CustomAudienceSessionFields.php | 25 ++++------------ .../CustomAudienceSharingStatusFields.php | 25 ++++------------ .../Fields/CustomAudienceStatusFields.php | 25 ++++------------ .../Fields/CustomAudiencesTOSFields.php | 25 ++++------------ .../CustomAudiencesharedAccountInfoFields.php | 25 ++++------------ .../Object/Fields/CustomConversionFields.php | 25 ++++------------ .../CustomConversionStatsResultFields.php | 25 ++++------------ .../Fields/CustomUserSettingsFields.php | 25 ++++------------ .../Object/Fields/DACheckFields.php | 25 ++++------------ .../Object/Fields/DayPartFields.php | 25 ++++------------ .../Fields/DeliveryCheckExtraInfoFields.php | 25 ++++------------ .../Object/Fields/DeliveryCheckFields.php | 25 ++++------------ .../Object/Fields/DeliveryWindowFields.php | 25 ++++------------ .../DestinationCatalogSettingsFields.php | 25 ++++------------ .../Object/Fields/DestinationFields.php | 25 ++++------------ .../DynamicPostChildAttachmentFields.php | 25 ++++------------ .../Fields/DynamicPriceConfigByDateFields.php | 25 ++++------------ .../Object/Fields/EngagementFields.php | 25 ++++------------ .../Object/Fields/EntityAtTextRangeFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/EventFields.php | 25 ++++------------ .../Object/Fields/EventSourceGroupFields.php | 25 ++++------------ .../Object/Fields/ExperienceFields.php | 25 ++++------------ .../ExtendedCreditAllocationConfigFields.php | 25 ++++------------ .../Object/Fields/ExtendedCreditFields.php | 25 ++++------------ .../ExtendedCreditInvoiceGroupFields.php | 25 ++++------------ .../Fields/ExternalEventSourceFields.php | 25 ++++------------ .../Object/Fields/FAMEExportConfigFields.php | 25 ++++------------ .../Object/Fields/FlexibleTargetingFields.php | 25 ++++------------ .../Object/Fields/FlightFields.php | 25 ++++------------ .../FundingSourceDetailsCouponFields.php | 25 ++++------------ .../Fields/FundingSourceDetailsFields.php | 25 ++++------------ .../FundraiserPersonToCharityFields.php | 25 ++++------------ .../Object/Fields/GameItemFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/GroupFields.php | 25 ++++------------ .../Object/Fields/HomeListingFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/HotelFields.php | 25 ++++------------ .../Object/Fields/HotelRoomFields.php | 25 ++++------------ .../Object/Fields/IDNameFields.php | 25 ++++------------ .../Object/Fields/IGBCAdsPermissionFields.php | 25 ++++------------ .../Object/Fields/IGCommentFields.php | 25 ++++------------ .../Object/Fields/IGMediaFields.php | 25 ++++------------ .../Object/Fields/IGUserFields.php | 25 ++++------------ .../Object/Fields/ImageCopyrightFields.php | 25 ++++------------ .../Object/Fields/InsightsResultFields.php | 25 ++++------------ .../Fields/InstagramInsightsResultFields.php | 25 ++++------------ .../Fields/InstagramInsightsValueFields.php | 25 ++++------------ .../Object/Fields/InstagramUserFields.php | 25 ++++------------ .../Fields/InstantArticlesStatsFields.php | 25 ++++------------ .../Object/Fields/IosAppLinkFields.php | 25 ++++------------ .../Object/Fields/JobOpeningFields.php | 25 ++++------------ .../Object/Fields/KeyValueFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/LeadFields.php | 25 ++++------------ .../LeadGenAppointmentBookingInfoFields.php | 25 ++++------------ ...ConditionalQuestionsGroupChoicesFields.php | 25 ++++------------ ...nditionalQuestionsGroupQuestionsFields.php | 25 ++++------------ .../Fields/LeadGenDraftQuestionFields.php | 25 ++++------------ ...LeadGenPostSubmissionCheckResultFields.php | 25 ++++------------ .../Object/Fields/LeadGenQuestionFields.php | 25 ++++------------ .../Fields/LeadGenQuestionOptionFields.php | 25 ++++------------ .../Object/Fields/LeadgenFormFields.php | 25 ++++------------ .../Object/Fields/LifeEventFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/LinkFields.php | 25 ++++------------ .../Fields/LiveVideoAdBreakConfigFields.php | 25 ++++------------ .../Object/Fields/LiveVideoErrorFields.php | 25 ++++------------ .../Object/Fields/LiveVideoFields.php | 25 ++++------------ .../Fields/LiveVideoInputStreamFields.php | 25 ++++------------ ...eVideoRecommendedEncoderSettingsFields.php | 25 ++++------------ .../Fields/LiveVideoTargetingFields.php | 25 ++++------------ .../Fields/LocalServiceBusinessFields.php | 25 ++++------------ .../Object/Fields/LocationFields.php | 25 ++++------------ .../Object/Fields/LookalikeSpecFields.php | 25 ++++------------ .../Object/Fields/MailingAddressFields.php | 25 ++++------------ .../Fields/ManagedPartnerBusinessFields.php | 25 ++++------------ .../Object/Fields/MediaFingerprintFields.php | 25 ++++------------ .../Object/Fields/MediaTitleFields.php | 25 ++++------------ .../Fields/MessagingFeatureReviewFields.php | 25 ++++------------ .../Fields/MessagingFeatureStatusFields.php | 25 ++++------------ ...gerDestinationPageWelcomeMessageFields.php | 25 ++++------------ .../Object/Fields/MessengerProfileFields.php | 25 ++++------------ .../Object/Fields/MinimumBudgetFields.php | 25 ++++------------ .../Fields/MusicVideoCopyrightFields.php | 25 ++++------------ .../Object/Fields/NullNodeFields.php | 25 ++++------------ .../Fields/OfflineConversionDataSetFields.php | 25 ++++------------ ...lineConversionDataSetPermissionsFields.php | 25 ++++------------ .../OfflineConversionDataSetUploadFields.php | 25 ++++------------ .../OfflineConversionDataSetUsageFields.php | 25 ++++------------ .../Object/Fields/OffsitePixelFields.php | 25 ++++------------ .../Object/Fields/OmegaCustomerTrxFields.php | 25 ++++------------ .../Fields/OpenBridgeConfigurationFields.php | 25 ++++------------ .../Object/Fields/OpenGraphContextFields.php | 25 ++++------------ .../Fields/OutcomePredictionPointFields.php | 25 ++++------------ .../Object/Fields/PageCallToActionFields.php | 25 ++++------------ .../Object/Fields/PageCategoryFields.php | 25 ++++------------ .../Fields/PageChangeProposalFields.php | 25 ++++------------ .../Fields/PageCommerceEligibilityFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/PageFields.php | 25 ++++------------ .../Object/Fields/PageParkingFields.php | 25 ++++------------ .../Fields/PagePaymentOptionsFields.php | 25 ++++------------ .../Fields/PagePostExperimentFields.php | 25 ++++------------ .../Object/Fields/PagePostFields.php | 25 ++++------------ .../Fields/PageRestaurantServicesFields.php | 25 ++++------------ .../PageRestaurantSpecialtiesFields.php | 25 ++++------------ .../Object/Fields/PageSavedFilterFields.php | 25 ++++------------ .../Object/Fields/PageSettingsFields.php | 25 ++++------------ .../Object/Fields/PageStartInfoFields.php | 25 ++++------------ .../Object/Fields/PageThreadOwnerFields.php | 25 ++++------------ .../Fields/PageUpcomingChangeFields.php | 25 ++++------------ .../PageUserMessageThreadLabelFields.php | 25 ++++------------ .../Object/Fields/PartnerStudyFields.php | 25 ++++------------ .../Fields/PaymentEnginePaymentFields.php | 25 ++++------------ .../Fields/PaymentPricepointsFields.php | 25 ++++------------ .../Fields/PaymentSubscriptionFields.php | 25 ++++------------ .../Object/Fields/PermissionFields.php | 25 ++++------------ .../Object/Fields/PersonaFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/PhotoFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/PlaceFields.php | 25 ++++------------ .../Object/Fields/PlaceTopicFields.php | 25 ++++------------ .../Fields/PlatformImageSourceFields.php | 25 ++++------------ .../Object/Fields/PlayableContentFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/PostFields.php | 25 ++++------------ .../Object/Fields/PrivacyFields.php | 25 ++++------------ .../Fields/PrivateLiftStudyInstanceFields.php | 25 ++++------------ .../Object/Fields/ProductAudienceFields.php | 25 ++++------------ .../Fields/ProductCatalogCategoryFields.php | 25 ++++------------ .../Fields/ProductCatalogDataSourceFields.php | 25 ++++------------ .../ProductCatalogDiagnosticGroupFields.php | 25 ++++------------ .../Object/Fields/ProductCatalogFields.php | 25 ++++------------ .../ProductCatalogHotelRoomsBatchFields.php | 25 ++++------------ .../ProductCatalogImageSettingsFields.php | 25 ++++------------ ...uctCatalogImageSettingsOperationFields.php | 25 ++++------------ ...ductCatalogPricingVariablesBatchFields.php | 25 ++++------------ .../ProductCatalogProductSetsBatchFields.php | 25 ++++------------ .../Object/Fields/ProductEventStatFields.php | 25 ++++------------ .../Object/Fields/ProductFeedFields.php | 25 ++++------------ ...ctFeedMissingFeedItemReplacementFields.php | 25 ++++------------ .../Object/Fields/ProductFeedRuleFields.php | 25 ++++------------ .../ProductFeedRuleSuggestionFields.php | 25 ++++------------ .../Fields/ProductFeedScheduleFields.php | 25 ++++------------ .../Fields/ProductFeedUploadErrorFields.php | 25 ++++------------ .../ProductFeedUploadErrorReportFields.php | 25 ++++------------ .../ProductFeedUploadErrorSampleFields.php | 25 ++++------------ .../Object/Fields/ProductFeedUploadFields.php | 25 ++++------------ .../Object/Fields/ProductGroupFields.php | 25 ++++------------ .../Object/Fields/ProductImageFields.php | 25 ++++------------ .../Object/Fields/ProductItemARDataFields.php | 25 ++++------------ .../ProductItemCommerceInsightsFields.php | 25 ++++------------ .../Object/Fields/ProductItemErrorFields.php | 25 ++++------------ .../Object/Fields/ProductItemFields.php | 25 ++++------------ .../ProductItemImporterAddressFields.php | 25 ++++------------ .../Object/Fields/ProductSetFields.php | 25 ++++------------ .../Fields/ProductSetMetadataFields.php | 25 ++++------------ .../Object/Fields/ProductVariantFields.php | 25 ++++------------ .../Object/Fields/ProfileFields.php | 25 ++++------------ .../Fields/ProfilePictureSourceFields.php | 25 ++++------------ .../Fields/PublisherBlockListFields.php | 25 ++++------------ .../Object/Fields/RTBDynamicPostFields.php | 25 ++++------------ .../Object/Fields/RawCustomAudienceFields.php | 25 ++++------------ .../Fields/ReachFrequencyActivityFields.php | 25 ++++------------ .../Fields/ReachFrequencyAdFormatFields.php | 25 ++++------------ ...equencyCurveLowerConfidenceRangeFields.php | 25 ++++------------ ...equencyCurveUpperConfidenceRangeFields.php | 25 ++++------------ .../Fields/ReachFrequencyDayPartFields.php | 25 ++++------------ .../ReachFrequencyEstimatesCurveFields.php | 25 ++++------------ ...uencyEstimatesPlacementBreakdownFields.php | 25 ++++------------ .../Fields/ReachFrequencyPredictionFields.php | 25 ++++------------ .../Fields/ReachFrequencySpecFields.php | 25 ++++------------ .../Object/Fields/RecommendationFields.php | 25 ++++------------ .../Object/Fields/RevSharePolicyFields.php | 25 ++++------------ .../Object/Fields/RichMediaElementFields.php | 25 ++++------------ .../Object/Fields/SavedAudienceFields.php | 25 ++++------------ .../Fields/SavedMessageResponseFields.php | 25 ++++------------ .../Object/Fields/SecuritySettingsFields.php | 25 ++++------------ .../Fields/ShadowIGMediaProductTagsFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/ShopFields.php | 25 ++++------------ .../Object/Fields/ShopOrderFields.php | 25 ++++------------ .../Object/Fields/SplitTestWinnerFields.php | 25 ++++------------ .../Fields/StoreCatalogSettingsFields.php | 25 ++++------------ .../Object/Fields/SystemUserFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/TabFields.php | 25 ++++------------ .../Fields/TargetingDynamicRuleFields.php | 25 ++++------------ .../Object/Fields/TargetingFields.php | 25 ++++------------ .../Fields/TargetingGeoLocationCityFields.php | 25 ++++------------ ...rgetingGeoLocationCustomLocationFields.php | 25 ++++------------ ...tingGeoLocationElectoralDistrictFields.php | 25 ++++------------ .../Fields/TargetingGeoLocationFields.php | 25 ++++------------ .../TargetingGeoLocationGeoEntitiesFields.php | 25 ++++------------ ...getingGeoLocationLocationClusterFields.php | 25 ++++------------ ...tingGeoLocationLocationExpansionFields.php | 25 ++++------------ .../TargetingGeoLocationMarketFields.php | 25 ++++------------ .../TargetingGeoLocationPlaceFields.php | 25 ++++------------ ...tingGeoLocationPoliticalDistrictFields.php | 25 ++++------------ .../TargetingGeoLocationRegionFields.php | 25 ++++------------ .../Fields/TargetingGeoLocationZipFields.php | 25 ++++------------ .../TargetingProductAudienceSpecFields.php | 25 ++++------------ .../TargetingProductAudienceSubSpecFields.php | 25 ++++------------ .../TargetingProspectingAudienceFields.php | 25 ++++------------ .../Fields/TargetingRelaxationFields.php | 25 ++++------------ .../Fields/TargetingSentenceLineFields.php | 25 ++++------------ .../Object/Fields/TextWithEntitiesFields.php | 25 ++++------------ ...rackingAndConversionWithDefaultsFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/URLFields.php | 25 ++++------------ .../Object/Fields/UnifiedThreadFields.php | 25 ++++------------ .../Object/Fields/UserCoverPhotoFields.php | 25 ++++------------ .../Object/Fields/UserDeviceFields.php | 25 ++++------------ src/FacebookAds/Object/Fields/UserFields.php | 25 ++++------------ .../Object/Fields/UserIDForAppFields.php | 25 ++++------------ .../Object/Fields/UserIDForPageFields.php | 25 ++++------------ .../UserLeadGenDisclaimerResponseFields.php | 25 ++++------------ .../Fields/UserLeadGenFieldDataFields.php | 25 ++++------------ ...serPageOneTimeOptInTokenSettingsFields.php | 25 ++++------------ .../UserPaymentMobilePricepointsFields.php | 25 ++++------------ .../Fields/ValueBasedEligibleSourceFields.php | 25 ++++------------ .../Object/Fields/VehicleFields.php | 25 ++++------------ .../Object/Fields/VehicleOfferFields.php | 25 ++++------------ .../VideoCopyrightConditionGroupFields.php | 25 ++++------------ .../Object/Fields/VideoCopyrightFields.php | 25 ++++------------ .../Fields/VideoCopyrightGeoGateFields.php | 25 ++++------------ .../Fields/VideoCopyrightRuleFields.php | 25 ++++------------ .../Fields/VideoCopyrightSegmentFields.php | 25 ++++------------ .../Object/Fields/VideoListFields.php | 25 ++++------------ .../Object/Fields/VideoPollFields.php | 25 ++++------------ .../Object/Fields/VideoThumbnailFields.php | 25 ++++------------ .../Object/Fields/VideoUploadLimitsFields.php | 25 ++++------------ .../Object/Fields/VoipInfoFields.php | 25 ++++------------ .../Object/Fields/WebAppLinkFields.php | 25 ++++------------ .../Fields/WhatsAppBusinessAccountFields.php | 25 ++++------------ ...ppBusinessPreVerifiedPhoneNumberFields.php | 25 ++++------------ .../Fields/WhatsAppBusinessProfileFields.php | 25 ++++------------ .../Object/Fields/WindowsAppLinkFields.php | 25 ++++------------ .../Fields/WindowsPhoneAppLinkFields.php | 25 ++++------------ .../WoodhengePurchasedPAYGReceiptFields.php | 25 ++++------------ .../Object/Fields/WorkUserFrontlineFields.php | 25 ++++------------ src/FacebookAds/Object/FlexibleTargeting.php | 25 ++++------------ src/FacebookAds/Object/Flight.php | 25 ++++------------ .../Object/FundingSourceDetails.php | 25 ++++------------ .../Object/FundingSourceDetailsCoupon.php | 25 ++++------------ .../Object/FundraiserPersonToCharity.php | 25 ++++------------ src/FacebookAds/Object/GameItem.php | 25 ++++------------ src/FacebookAds/Object/Group.php | 25 ++++------------ src/FacebookAds/Object/HomeListing.php | 25 ++++------------ src/FacebookAds/Object/Hotel.php | 25 ++++------------ src/FacebookAds/Object/HotelRoom.php | 25 ++++------------ src/FacebookAds/Object/IDName.php | 25 ++++------------ src/FacebookAds/Object/IGBCAdsPermission.php | 25 ++++------------ src/FacebookAds/Object/IGComment.php | 25 ++++------------ src/FacebookAds/Object/IGMedia.php | 25 ++++------------ src/FacebookAds/Object/IGUser.php | 25 ++++------------ src/FacebookAds/Object/ImageCopyright.php | 25 ++++------------ src/FacebookAds/Object/InsightsResult.php | 25 ++++------------ .../Object/InstagramInsightsResult.php | 25 ++++------------ .../Object/InstagramInsightsValue.php | 25 ++++------------ src/FacebookAds/Object/InstagramUser.php | 25 ++++------------ .../Object/InstantArticlesStats.php | 25 ++++------------ src/FacebookAds/Object/IosAppLink.php | 25 ++++------------ src/FacebookAds/Object/JobOpening.php | 25 ++++------------ src/FacebookAds/Object/KeyValue.php | 25 ++++------------ src/FacebookAds/Object/Lead.php | 25 ++++------------ .../Object/LeadGenAppointmentBookingInfo.php | 25 ++++------------ ...eadGenConditionalQuestionsGroupChoices.php | 25 ++++------------ ...dGenConditionalQuestionsGroupQuestions.php | 25 ++++------------ .../Object/LeadGenDraftQuestion.php | 25 ++++------------ .../LeadGenPostSubmissionCheckResult.php | 25 ++++------------ src/FacebookAds/Object/LeadGenQuestion.php | 25 ++++------------ .../Object/LeadGenQuestionOption.php | 25 ++++------------ src/FacebookAds/Object/LeadgenForm.php | 25 ++++------------ src/FacebookAds/Object/LifeEvent.php | 25 ++++------------ src/FacebookAds/Object/Link.php | 25 ++++------------ src/FacebookAds/Object/LiveVideo.php | 25 ++++------------ .../Object/LiveVideoAdBreakConfig.php | 25 ++++------------ src/FacebookAds/Object/LiveVideoError.php | 25 ++++------------ .../Object/LiveVideoInputStream.php | 25 ++++------------ .../LiveVideoRecommendedEncoderSettings.php | 25 ++++------------ src/FacebookAds/Object/LiveVideoTargeting.php | 25 ++++------------ .../Object/LocalServiceBusiness.php | 25 ++++------------ src/FacebookAds/Object/Location.php | 25 ++++------------ src/FacebookAds/Object/LookalikeSpec.php | 25 ++++------------ src/FacebookAds/Object/MailingAddress.php | 25 ++++------------ .../Object/ManagedPartnerBusiness.php | 25 ++++------------ src/FacebookAds/Object/MediaFingerprint.php | 25 ++++------------ src/FacebookAds/Object/MediaTitle.php | 25 ++++------------ .../Object/MessagingFeatureReview.php | 25 ++++------------ .../Object/MessagingFeatureStatus.php | 25 ++++------------ ...MessengerDestinationPageWelcomeMessage.php | 25 ++++------------ src/FacebookAds/Object/MessengerProfile.php | 25 ++++------------ src/FacebookAds/Object/MinimumBudget.php | 25 ++++------------ .../Object/MusicVideoCopyright.php | 25 ++++------------ src/FacebookAds/Object/NullNode.php | 25 ++++------------ src/FacebookAds/Object/ObjectStorySpec.php | 25 ++++------------ .../Object/OfflineConversionDataSet.php | 25 ++++------------ .../OfflineConversionDataSetPermissions.php | 25 ++++------------ .../Object/OfflineConversionDataSetUpload.php | 25 ++++------------ .../Object/OfflineConversionDataSetUsage.php | 25 ++++------------ src/FacebookAds/Object/OffsitePixel.php | 25 ++++------------ src/FacebookAds/Object/OmegaCustomerTrx.php | 25 ++++------------ .../Object/OpenBridgeConfiguration.php | 25 ++++------------ src/FacebookAds/Object/OpenGraphContext.php | 25 ++++------------ .../Object/OutcomePredictionPoint.php | 25 ++++------------ src/FacebookAds/Object/Page.php | 25 ++++------------ src/FacebookAds/Object/PageCallToAction.php | 25 ++++------------ src/FacebookAds/Object/PageCategory.php | 25 ++++------------ src/FacebookAds/Object/PageChangeProposal.php | 25 ++++------------ .../Object/PageCommerceEligibility.php | 25 ++++------------ src/FacebookAds/Object/PageParking.php | 25 ++++------------ src/FacebookAds/Object/PagePaymentOptions.php | 25 ++++------------ src/FacebookAds/Object/PagePost.php | 25 ++++------------ src/FacebookAds/Object/PagePostExperiment.php | 25 ++++------------ .../Object/PageRestaurantServices.php | 25 ++++------------ .../Object/PageRestaurantSpecialties.php | 25 ++++------------ src/FacebookAds/Object/PageSavedFilter.php | 25 ++++------------ src/FacebookAds/Object/PageSettings.php | 25 ++++------------ src/FacebookAds/Object/PageStartInfo.php | 25 ++++------------ src/FacebookAds/Object/PageThreadOwner.php | 25 ++++------------ src/FacebookAds/Object/PageUpcomingChange.php | 25 ++++------------ .../Object/PageUserMessageThreadLabel.php | 25 ++++------------ src/FacebookAds/Object/PartnerStudy.php | 25 ++++------------ .../Object/PaymentEnginePayment.php | 25 ++++------------ src/FacebookAds/Object/PaymentPricepoints.php | 25 ++++------------ .../Object/PaymentSubscription.php | 25 ++++------------ src/FacebookAds/Object/Permission.php | 25 ++++------------ src/FacebookAds/Object/Persona.php | 25 ++++------------ src/FacebookAds/Object/Photo.php | 25 ++++------------ src/FacebookAds/Object/Place.php | 25 ++++------------ src/FacebookAds/Object/PlaceTopic.php | 25 ++++------------ .../Object/PlatformImageSource.php | 25 ++++------------ src/FacebookAds/Object/PlayableContent.php | 25 ++++------------ src/FacebookAds/Object/Post.php | 25 ++++------------ src/FacebookAds/Object/Privacy.php | 25 ++++------------ .../Object/PrivateLiftStudyInstance.php | 25 ++++------------ src/FacebookAds/Object/ProductAudience.php | 25 ++++------------ src/FacebookAds/Object/ProductCatalog.php | 25 ++++------------ .../Object/ProductCatalogCategory.php | 25 ++++------------ .../Object/ProductCatalogDataSource.php | 25 ++++------------ .../Object/ProductCatalogDiagnosticGroup.php | 25 ++++------------ .../Object/ProductCatalogHotelRoomsBatch.php | 25 ++++------------ .../Object/ProductCatalogImageSettings.php | 25 ++++------------ .../ProductCatalogImageSettingsOperation.php | 25 ++++------------ .../ProductCatalogPricingVariablesBatch.php | 25 ++++------------ .../Object/ProductCatalogProductSetsBatch.php | 25 ++++------------ src/FacebookAds/Object/ProductEventStat.php | 25 ++++------------ src/FacebookAds/Object/ProductFeed.php | 25 ++++------------ .../ProductFeedMissingFeedItemReplacement.php | 25 ++++------------ src/FacebookAds/Object/ProductFeedRule.php | 25 ++++------------ .../Object/ProductFeedRuleSuggestion.php | 25 ++++------------ .../Object/ProductFeedSchedule.php | 25 ++++------------ src/FacebookAds/Object/ProductFeedUpload.php | 25 ++++------------ .../Object/ProductFeedUploadError.php | 25 ++++------------ .../Object/ProductFeedUploadErrorReport.php | 25 ++++------------ .../Object/ProductFeedUploadErrorSample.php | 25 ++++------------ src/FacebookAds/Object/ProductGroup.php | 25 ++++------------ src/FacebookAds/Object/ProductImage.php | 25 ++++------------ src/FacebookAds/Object/ProductItem.php | 25 ++++------------ src/FacebookAds/Object/ProductItemARData.php | 25 ++++------------ .../Object/ProductItemCommerceInsights.php | 25 ++++------------ src/FacebookAds/Object/ProductItemError.php | 25 ++++------------ .../Object/ProductItemImporterAddress.php | 25 ++++------------ src/FacebookAds/Object/ProductSet.php | 25 ++++------------ src/FacebookAds/Object/ProductSetMetadata.php | 25 ++++------------ src/FacebookAds/Object/ProductVariant.php | 25 ++++------------ src/FacebookAds/Object/Profile.php | 25 ++++------------ .../Object/ProfilePictureSource.php | 25 ++++------------ src/FacebookAds/Object/PublisherBlockList.php | 25 ++++------------ src/FacebookAds/Object/RTBDynamicPost.php | 25 ++++------------ src/FacebookAds/Object/RawCustomAudience.php | 25 ++++------------ .../Object/ReachFrequencyActivity.php | 25 ++++------------ .../Object/ReachFrequencyAdFormat.php | 25 ++++------------ ...eachFrequencyCurveLowerConfidenceRange.php | 25 ++++------------ ...eachFrequencyCurveUpperConfidenceRange.php | 25 ++++------------ .../Object/ReachFrequencyDayPart.php | 25 ++++------------ .../Object/ReachFrequencyEstimatesCurve.php | 25 ++++------------ ...chFrequencyEstimatesPlacementBreakdown.php | 25 ++++------------ .../Object/ReachFrequencyPrediction.php | 25 ++++------------ src/FacebookAds/Object/ReachFrequencySpec.php | 25 ++++------------ src/FacebookAds/Object/Recommendation.php | 25 ++++------------ src/FacebookAds/Object/RevSharePolicy.php | 25 ++++------------ src/FacebookAds/Object/RichMediaElement.php | 25 ++++------------ src/FacebookAds/Object/SavedAudience.php | 25 ++++------------ .../Object/SavedMessageResponse.php | 25 ++++------------ .../Search/DemographicSearchClasses.php | 25 ++++------------ .../Object/Search/TargetingSearchTypes.php | 25 ++++------------ src/FacebookAds/Object/SecuritySettings.php | 25 ++++------------ .../Object/ShadowIGMediaProductTags.php | 25 ++++------------ src/FacebookAds/Object/Shop.php | 25 ++++------------ src/FacebookAds/Object/ShopOrder.php | 25 ++++------------ src/FacebookAds/Object/SplitTestWinner.php | 25 ++++------------ .../Object/StoreCatalogSettings.php | 25 ++++------------ src/FacebookAds/Object/SystemUser.php | 25 ++++------------ src/FacebookAds/Object/Tab.php | 25 ++++------------ src/FacebookAds/Object/Targeting.php | 25 ++++------------ .../Object/TargetingDynamicRule.php | 25 ++++------------ .../Object/TargetingGeoLocation.php | 25 ++++------------ .../Object/TargetingGeoLocationCity.php | 25 ++++------------ .../TargetingGeoLocationCustomLocation.php | 25 ++++------------ .../TargetingGeoLocationElectoralDistrict.php | 25 ++++------------ .../TargetingGeoLocationGeoEntities.php | 25 ++++------------ .../TargetingGeoLocationLocationCluster.php | 25 ++++------------ .../TargetingGeoLocationLocationExpansion.php | 25 ++++------------ .../Object/TargetingGeoLocationMarket.php | 25 ++++------------ .../Object/TargetingGeoLocationPlace.php | 25 ++++------------ .../TargetingGeoLocationPoliticalDistrict.php | 25 ++++------------ .../Object/TargetingGeoLocationRegion.php | 25 ++++------------ .../Object/TargetingGeoLocationZip.php | 25 ++++------------ .../Object/TargetingProductAudienceSpec.php | 25 ++++------------ .../TargetingProductAudienceSubSpec.php | 25 ++++------------ .../Object/TargetingProspectingAudience.php | 25 ++++------------ .../Object/TargetingRelaxation.php | 25 ++++------------ src/FacebookAds/Object/TargetingSearch.php | 25 ++++------------ .../Object/TargetingSentenceLine.php | 25 ++++------------ src/FacebookAds/Object/TextWithEntities.php | 25 ++++------------ .../TrackingAndConversionWithDefaults.php | 25 ++++------------ .../Traits/AdLabelAwareCrudObjectTrait.php | 25 ++++------------ .../Object/Traits/FieldValidation.php | 25 ++++------------ .../Object/Traits/ObjectValidation.php | 25 ++++------------ src/FacebookAds/Object/URL.php | 25 ++++------------ src/FacebookAds/Object/UnifiedThread.php | 25 ++++------------ src/FacebookAds/Object/User.php | 25 ++++------------ src/FacebookAds/Object/UserCoverPhoto.php | 25 ++++------------ src/FacebookAds/Object/UserDevice.php | 25 ++++------------ src/FacebookAds/Object/UserIDForApp.php | 25 ++++------------ src/FacebookAds/Object/UserIDForPage.php | 25 ++++------------ .../Object/UserLeadGenDisclaimerResponse.php | 25 ++++------------ .../Object/UserLeadGenFieldData.php | 25 ++++------------ .../UserPageOneTimeOptInTokenSettings.php | 25 ++++------------ .../Object/UserPaymentMobilePricepoints.php | 25 ++++------------ .../Object/ValueBasedEligibleSource.php | 25 ++++------------ .../Values/AdAccountActionSourceValues.php | 25 ++++------------ .../AdAccountAdRulesHistoryActionValues.php | 25 ++++------------ ...ountAdRulesHistoryEvaluationTypeValues.php | 25 ++++------------ ...ccountAdVolumeRecommendationTypeValues.php | 25 ++++------------ .../Values/AdAccountClaimObjectiveValues.php | 25 ++++------------ .../Values/AdAccountContentTypeValues.php | 25 ++++------------ .../Object/Values/AdAccountCurrencyValues.php | 25 ++++------------ ...ObjectiveDefaultObjectiveForUserValues.php | 25 ++++------------ ...efaultObjectiveObjectiveForLevelValues.php | 25 ++++------------ ...DeliveryEstimateOptimizationGoalValues.php | 25 ++++------------ ...archApplicationsEdgeDataAppStoreValues.php | 25 ++++------------ .../Object/Values/AdAccountSubtypeValues.php | 25 ++++------------ ...dAccountTargetingUnifiedAppStoreValues.php | 25 ++++------------ ...AccountTargetingUnifiedLimitTypeValues.php | 25 ++++------------ .../AdAccountTargetingUnifiedModeValues.php | 25 ++++------------ ...AccountTargetingUnifiedObjectiveValues.php | 25 ++++------------ ...getingUnifiedRegulatedCategoriesValues.php | 25 ++++------------ ...rgetingUnifiedRegulatedCountriesValues.php | 25 ++++------------ ...TargetingUnifiedWhitelistedTypesValues.php | 25 ++++------------ .../Object/Values/AdAccountTasksValues.php | 25 ++++------------ .../Values/AdActivityCategoryValues.php | 25 ++++------------ .../Values/AdActivityDataSourceValues.php | 25 ++++------------ .../Values/AdActivityEventTypeValues.php | 25 ++++------------ ...AdAssetFeedSpecCallToActionTypesValues.php | 25 ++++------------ ...dAsyncRequestSetNotificationModeValues.php | 25 ++++------------ .../Values/AdAsyncRequestStatusesValues.php | 25 ++++------------ .../Object/Values/AdBidTypeValues.php | 25 ++++------------ ...DeliveryEstimateOptimizationGoalValues.php | 25 ++++------------ .../Values/AdConfiguredStatusValues.php | 25 ++++------------ .../AdCreativeApplinkTreatmentValues.php | 25 ++++------------ .../AdCreativeAuthorizationCategoryValues.php | 25 ++++------------ .../AdCreativeCallToActionTypeValues.php | 25 ++++------------ ...AdCreativeCategorizationCriteriaValues.php | 25 ++++------------ .../AdCreativeCategoryMediaSourceValues.php | 25 ++++------------ .../Values/AdCreativeDynamicAdVoiceValues.php | 25 ++++------------ ...dCreativeLinkDataAttachmentStyleValues.php | 25 ++++------------ ...CreativeLinkDataCallToActionTypeValues.php | 25 ++++------------ .../AdCreativeLinkDataFormatOptionValues.php | 25 ++++------------ ...nkDataImageLayerSpecBlendingModeValues.php | 25 ++++------------ ...inkDataImageLayerSpecFrameSourceValues.php | 25 ++++------------ ...inkDataImageLayerSpecImageSourceValues.php | 25 ++++------------ ...eLinkDataImageLayerSpecLayerTypeValues.php | 25 ++++------------ ...ataImageLayerSpecOverlayPositionValues.php | 25 ++++------------ ...nkDataImageLayerSpecOverlayShapeValues.php | 25 ++++------------ ...veLinkDataImageLayerSpecTextFontValues.php | 25 ++++------------ ...taImageOverlaySpecCustomTextTypeValues.php | 25 ++++------------ ...aImageOverlaySpecOverlayTemplateValues.php | 25 ++++------------ ...LinkDataImageOverlaySpecPositionValues.php | 25 ++++------------ ...LinkDataImageOverlaySpecTextFontValues.php | 25 ++++------------ ...LinkDataImageOverlaySpecTextTypeValues.php | 25 ++++------------ ...nkDataImageOverlaySpecThemeColorValues.php | 25 ++++------------ .../Values/AdCreativeObjectTypeValues.php | 25 ++++------------ .../Values/AdCreativeOperatorValues.php | 25 ++++------------ .../Object/Values/AdCreativeStatusValues.php | 25 ++++------------ .../Object/Values/AdDatePresetValues.php | 25 ++++------------ .../Object/Values/AdEffectiveStatusValues.php | 25 ++++------------ .../Values/AdExecutionOptionsValues.php | 25 ++++------------ .../Object/Values/AdImageStatusValues.php | 25 ++++------------ .../AdMetaRewardAdgroupStatusValues.php | 25 ++++------------ ...SyncQueryResultAggregationPeriodValues.php | 25 ++++------------ ...alyticsSyncQueryResultBreakdownsValues.php | 25 ++++------------ ...kAnalyticsSyncQueryResultMetricsValues.php | 25 ++++------------ ...icsSyncQueryResultOrderingColumnValues.php | 25 ++++------------ ...yticsSyncQueryResultOrderingTypeValues.php | 25 ++++------------ .../Object/Values/AdOperatorValues.php | 25 ++++------------ .../AdPlacePageSetLocationTypesValues.php | 25 ++++------------ .../AdPlacePageSetTargetedAreaTypeValues.php | 25 ++++------------ .../Object/Values/AdPreviewAdFormatValues.php | 25 ++++------------ .../Values/AdPreviewCreativeFeatureValues.php | 25 ++++------------ .../Values/AdPreviewRenderTypeValues.php | 25 ++++------------ .../AdPromotedObjectCustomEventTypeValues.php | 25 ++++------------ .../AdRecommendationConfidenceValues.php | 25 ++++------------ .../AdRecommendationImportanceValues.php | 25 ++++------------ ...RuleEvaluationSpecEvaluationTypeValues.php | 25 ++++------------ .../AdRuleExecutionOptionsOperatorValues.php | 25 ++++------------ ...AdRuleExecutionSpecExecutionTypeValues.php | 25 ++++------------ .../Values/AdRuleFiltersOperatorValues.php | 25 ++++------------ .../Values/AdRuleHistoryActionValues.php | 25 ++++------------ .../AdRuleHistoryResultObjectTypeValues.php | 25 ++++------------ .../Object/Values/AdRuleStatusValues.php | 25 ++++------------ .../Values/AdRuleTriggerOperatorValues.php | 25 ++++------------ .../Object/Values/AdRuleTriggerTypeValues.php | 25 ++++------------ .../Values/AdRuleUiCreationSourceValues.php | 25 ++++------------ .../Object/Values/AdSetBidStrategyValues.php | 25 ++++------------ .../Object/Values/AdSetBillingEventValues.php | 25 ++++------------ .../Values/AdSetConfiguredStatusValues.php | 25 ++++------------ .../Object/Values/AdSetDatePresetValues.php | 25 ++++------------ .../Values/AdSetDestinationTypeValues.php | 25 ++++------------ .../Values/AdSetEffectiveStatusValues.php | 25 ++++------------ .../Values/AdSetExecutionOptionsValues.php | 25 ++++------------ .../AdSetFullFunnelExplorationModeValues.php | 25 ++++------------ ...AdSetMultiOptimizationGoalWeightValues.php | 25 ++++------------ .../Object/Values/AdSetOperatorValues.php | 25 ++++------------ .../Values/AdSetOptimizationGoalValues.php | 25 ++++------------ .../AdSetOptimizationSubEventValues.php | 25 ++++------------ .../Object/Values/AdSetStatusOptionValues.php | 25 ++++------------ .../Object/Values/AdSetStatusValues.php | 25 ++++------------ .../Values/AdSetTuneForCategoryValues.php | 25 ++++------------ .../Object/Values/AdStatusOptionValues.php | 25 ++++------------ .../Object/Values/AdStatusValues.php | 25 ++++------------ .../AdStudyCellCreationTemplateValues.php | 25 ++++------------ .../Values/AdStudyObjectiveTypeValues.php | 25 ++++------------ .../Object/Values/AdStudyTypeValues.php | 25 ++++------------ .../AdVideoBackdatedTimeGranularityValues.php | 25 ++++------------ .../Values/AdVideoContainerTypeValues.php | 25 ++++------------ .../Values/AdVideoContentCategoryValues.php | 25 ++++------------ .../Object/Values/AdVideoFormattingValues.php | 25 ++++------------ .../AdVideoOriginalProjectionTypeValues.php | 25 ++++------------ .../Object/Values/AdVideoSwapModeValues.php | 25 ++++------------ .../Object/Values/AdVideoTypeValues.php | 25 ++++------------ .../AdVideoUnpublishedContentTypeValues.php | 25 ++++------------ .../Values/AdVideoUploadPhaseValues.php | 25 ++++------------ .../Object/Values/AdVideoVideoStateValues.php | 25 ++++------------ ...InsightsActionAttributionWindowsValues.php | 25 ++++------------ .../AdsInsightsActionBreakdownsValues.php | 25 ++++------------ .../AdsInsightsActionReportTimeValues.php | 25 ++++------------ .../Values/AdsInsightsBreakdownsValues.php | 25 ++++------------ .../Values/AdsInsightsDatePresetValues.php | 25 ++++------------ .../Object/Values/AdsInsightsLevelValues.php | 25 ++++------------ ...sInsightsSummaryActionBreakdownsValues.php | 25 ++++------------ .../AdsPixelAutomaticMatchingFieldsValues.php | 25 ++++------------ .../Values/AdsPixelDataUseSettingValues.php | 25 ++++------------ .../AdsPixelFirstPartyCookieStatusValues.php | 25 ++++------------ .../Object/Values/AdsPixelSortByValues.php | 25 ++++------------ .../AdsPixelStatsResultAggregationValues.php | 25 ++++------------ .../Object/Values/AdsPixelTasksValues.php | 25 ++++------------ src/FacebookAds/Object/Values/AppRoles.php | 25 ++++------------ .../Values/ApplicationAnPlatformsValues.php | 25 ++++------------ .../Values/ApplicationLoggingSourceValues.php | 25 ++++------------ .../Values/ApplicationLoggingTargetValues.php | 25 ++++------------ .../ApplicationMutationMethodValues.php | 25 ++++------------ .../Values/ApplicationPlatformValues.php | 25 ++++------------ .../Values/ApplicationPostMethodValues.php | 25 ++++------------ .../Values/ApplicationRequestTypeValues.php | 25 ++++------------ .../ApplicationSupportedPlatformsValues.php | 25 ++++------------ .../ArchivableCrudObjectEffectiveStatuses.php | 25 ++++------------ .../Values/AsyncRequestStatusValues.php | 25 ++++------------ .../Object/Values/AsyncRequestTypeValues.php | 25 ++++------------ .../AutomotiveModelImageFetchStatusValues.php | 25 ++++------------ .../AutomotiveModelVisibilityValues.php | 25 ++++------------ .../Object/Values/BillingEvents.php | 25 ++++------------ .../Values/BusinessActionSourceValues.php | 25 ++++------------ ...BusinessAssetGroupAdaccountTasksValues.php | 25 ++++------------ ...oupOfflineConversionDataSetTasksValues.php | 25 ++++------------ .../BusinessAssetGroupPageTasksValues.php | 25 ++++------------ .../BusinessAssetGroupPixelTasksValues.php | 25 ++++------------ ...setSharingAgreementRequestStatusValues.php | 25 ++++------------ ...nedObjectOnBehalfOfRequestStatusValues.php | 25 ++++------------ .../BusinessPagePermittedTasksValues.php | 25 ++++------------ .../Values/BusinessPermittedTasksValues.php | 25 ++++------------ .../Values/BusinessRoleRequestRoleValues.php | 25 ++++------------ .../Object/Values/BusinessRoles.php | 25 ++++------------ .../Values/BusinessSubverticalV2Values.php | 25 ++++------------ .../BusinessSurveyBusinessTypeValues.php | 25 ++++------------ .../Values/BusinessTwoFactorTypeValues.php | 25 ++++------------ .../Object/Values/BusinessUserRoleValues.php | 25 ++++------------ .../Values/BusinessVerticalV2Values.php | 25 ++++------------ .../Object/Values/BusinessVerticalValues.php | 25 ++++------------ ...ionRequestRequesterAgencyOrBrandValues.php | 25 ++++------------ .../Values/CampaignBidStrategyValues.php | 25 ++++------------ .../Values/CampaignBuyingTypeValues.php | 25 ++++------------ .../Values/CampaignConfiguredStatusValues.php | 25 ++++------------ .../Values/CampaignDatePresetValues.php | 25 ++++------------ .../Values/CampaignEffectiveStatusValues.php | 25 ++++------------ .../Values/CampaignExecutionOptionsValues.php | 25 ++++------------ .../Object/Values/CampaignObjectiveValues.php | 25 ++++------------ .../Object/Values/CampaignOperatorValues.php | 25 ++++------------ .../CampaignSmartPromotionTypeValues.php | 25 ++++------------ .../CampaignSpecialAdCategoriesValues.php | 25 ++++------------ ...CampaignSpecialAdCategoryCountryValues.php | 25 ++++------------ .../CampaignSpecialAdCategoryValues.php | 25 ++++------------ .../Values/CampaignStatusOptionValues.php | 25 ++++------------ .../Object/Values/CampaignStatusValues.php | 25 ++++------------ .../CatalogItemAppealStatusStatusValues.php | 25 ++++------------ ...kBatchRequestStatusErrorPriorityValues.php | 25 ++++------------ .../CommentCommentPrivacyValueValues.php | 25 ++++------------ .../Object/Values/CommentFilterValues.php | 25 ++++------------ .../Object/Values/CommentLiveFilterValues.php | 25 ++++------------ .../Object/Values/CommentOrderValues.php | 25 ++++------------ .../Values/CommerceOrderFiltersValues.php | 25 ++++------------ .../Values/CommerceOrderReasonCodeValues.php | 25 ++++------------ .../Values/CommerceOrderStateValues.php | 25 ++++------------ .../Object/Values/ConnectionObjectTypes.php | 25 ++++------------ .../CustomAudienceActionSourceValues.php | 25 ++++------------ .../CustomAudienceClaimObjectiveValues.php | 25 ++++------------ .../CustomAudienceContentTypeValues.php | 25 ++++------------ ...CustomAudienceCustomerFileSourceValues.php | 25 ++++------------ .../CustomAudienceDataSourceSubTypeValues.php | 25 ++++------------ .../CustomAudienceDataSourceTypeValues.php | 25 ++++------------ .../Values/CustomAudienceSubtypeValues.php | 25 ++++------------ .../Object/Values/CustomAudienceSubtypes.php | 25 ++++------------ .../Object/Values/CustomAudienceTypes.php | 25 ++++------------ .../CustomConversionCustomEventTypeValues.php | 25 ++++------------ ...ConversionStatsResultAggregationValues.php | 25 ++++------------ .../Values/DACheckConnectionMethodValues.php | 25 ++++------------ .../DestinationImageFetchStatusValues.php | 25 ++++------------ .../Values/DestinationVisibilityValues.php | 25 ++++------------ .../Values/EntityAtTextRangeTypeValues.php | 25 ++++------------ .../Object/Values/EventCategoryValues.php | 25 ++++------------ .../Values/EventEventStateFilterValues.php | 25 ++++------------ .../Values/EventOnlineEventFormatValues.php | 25 ++++------------ .../Object/Values/EventTimeFilterValues.php | 25 ++++------------ .../Object/Values/EventTypeValues.php | 25 ++++------------ ...ditAllocationConfigLiabilityTypeValues.php | 25 ++++------------ ...ditAllocationConfigPartitionTypeValues.php | 25 ++++------------ ...CreditAllocationConfigSendBillToValues.php | 25 ++++------------ .../Object/Values/FeedEncoding.php | 25 ++++------------ .../Values/FlightImageFetchStatusValues.php | 25 ++++------------ .../Object/Values/FlightVisibilityValues.php | 25 ++++------------ ...serPersonToCharityFundraiserTypeValues.php | 25 ++++------------ .../Object/Values/GameItemActionValues.php | 25 ++++------------ .../Object/Values/GroupGroupTypeValues.php | 25 ++++------------ .../Object/Values/GroupJoinSettingValues.php | 25 ++++------------ .../Values/GroupPostPermissionsValues.php | 25 ++++------------ .../Object/Values/GroupPurposeValues.php | 25 ++++------------ .../HomeListingImageFetchStatusValues.php | 25 ++++------------ .../Values/HomeListingVisibilityValues.php | 25 ++++------------ .../Values/HotelImageFetchStatusValues.php | 25 ++++------------ .../Object/Values/HotelVisibilityValues.php | 25 ++++------------ .../ImageCopyrightGeoOwnershipValues.php | 25 ++++------------ .../Object/Values/InsightsIncrements.php | 25 ++++------------ .../Object/Values/InsightsOperators.php | 25 ++++------------ .../Values/InsightsResultDatePresetValues.php | 25 ++++------------ .../Values/InsightsResultPeriodValues.php | 25 ++++------------ ...InstagramInsightsResultBreakdownValues.php | 25 ++++------------ ...nstagramInsightsResultMetricTypeValues.php | 25 ++++------------ .../InstagramInsightsResultMetricValues.php | 25 ++++------------ .../InstagramInsightsResultPeriodValues.php | 25 ++++------------ ...InstagramInsightsResultTimeframeValues.php | 25 ++++------------ .../Values/JobOpeningJobStatusValues.php | 25 ++++------------ .../JobOpeningPlatformReviewStatusValues.php | 25 ++++------------ ...JobOpeningReviewRejectionReasonsValues.php | 25 ++++------------ .../Object/Values/JobOpeningTypeValues.php | 25 ++++------------ .../Object/Values/LeadgenFormLocaleValues.php | 25 ++++------------ .../Object/Values/LeadgenFormStatusValues.php | 25 ++++------------ .../Values/LiveVideoBroadcastStatusValues.php | 25 ++++------------ ...ideoLiveCommentModerationSettingValues.php | 25 ++++------------ ...veVideoPersistentStreamKeyStatusValues.php | 25 ++++------------ .../Values/LiveVideoProjectionValues.php | 25 ++++------------ .../Object/Values/LiveVideoSourceValues.php | 25 ++++------------ .../LiveVideoSpatialAudioFormatValues.php | 25 ++++------------ .../Object/Values/LiveVideoStatusValues.php | 25 ++++------------ .../LiveVideoStereoscopicModeValues.php | 25 ++++------------ .../Values/LiveVideoStreamTypeValues.php | 25 ++++------------ ...LocalServiceBusinessAvailabilityValues.php | 25 ++++------------ .../LocalServiceBusinessConditionValues.php | 25 ++++------------ ...lServiceBusinessImageFetchStatusValues.php | 25 ++++------------ .../LocalServiceBusinessVisibilityValues.php | 25 ++++------------ ...ingerprintFingerprintContentTypeValues.php | 25 ++++------------ .../MediaTitleContentCategoryValues.php | 25 ++++------------ .../MediaTitleImageFetchStatusValues.php | 25 ++++------------ .../Values/MediaTitleVisibilityValues.php | 25 ++++------------ ...eConversionDataSetPermittedRolesValues.php | 25 ++++------------ ...onversionDataSetRelationshipTypeValues.php | 25 ++++------------ ...lineConversionDataSetUploadOrderValues.php | 25 ++++------------ ...ineConversionDataSetUploadSortByValues.php | 25 ++++------------ .../Values/OmegaCustomerTrxTypeValues.php | 25 ++++------------ .../Object/Values/PageAlignmentValues.php | 25 ++++------------ .../Object/Values/PageAttireValues.php | 25 ++++------------ .../PageBackdatedTimeGranularityValues.php | 25 ++++------------ ...llToActionAndroidDestinationTypeValues.php | 25 ++++------------ ...allToActionIphoneDestinationTypeValues.php | 25 ++++------------ .../Values/PageCallToActionTypeValues.php | 25 ++++------------ ...geCallToActionWebDestinationTypeValues.php | 25 ++++------------ .../Values/PageCheckinEntryPointValues.php | 25 ++++------------ .../Values/PageDeveloperActionValues.php | 25 ++++------------ .../Values/PageEntryPointIconValues.php | 25 ++++------------ .../Values/PageEntryPointLabelValues.php | 25 ++++------------ .../Object/Values/PageFoodStylesValues.php | 25 ++++------------ .../Object/Values/PageFormattingValues.php | 25 ++++------------ .../PageGreetingDialogDisplayValues.php | 25 ++++------------ .../Object/Values/PageGuestChatModeValues.php | 25 ++++------------ .../Object/Values/PageMessagingTypeValues.php | 25 ++++------------ .../Values/PageMobileChatDisplayValues.php | 25 ++++------------ .../Object/Values/PageModelValues.php | 25 ++++------------ .../Values/PageNotificationTypeValues.php | 25 ++++------------ .../Values/PagePermittedTasksValues.php | 25 ++++------------ .../Object/Values/PagePickupOptionsValues.php | 25 ++++------------ .../PagePlaceAttachmentSettingValues.php | 25 ++++------------ .../Object/Values/PagePlatformValues.php | 25 ++++------------ ...PagePostBackdatedTimeGranularityValues.php | 25 ++++------------ .../PagePostFeedStoryVisibilityValues.php | 25 ++++------------ .../PagePostSurfacesBlacklistValues.php | 25 ++++------------ .../PagePostTimelineVisibilityValues.php | 25 ++++------------ .../Object/Values/PagePostWithValues.php | 25 ++++------------ .../Values/PagePostingToRedspaceValues.php | 25 ++++------------ src/FacebookAds/Object/Values/PageRoles.php | 25 ++++------------ .../Object/Values/PageSenderActionValues.php | 25 ++++------------ .../Values/PageSubscribedFieldsValues.php | 25 ++++------------ .../Values/PageSuggestionActionValues.php | 25 ++++------------ .../Object/Values/PageTargetSurfaceValues.php | 25 ++++------------ .../Object/Values/PageTasksValues.php | 25 ++++------------ .../Values/PageTemporaryStatusValues.php | 25 ++++------------ src/FacebookAds/Object/Values/PageTypes.php | 25 ++++------------ .../PageUnpublishedContentTypeValues.php | 25 ++++------------ .../PaymentEnginePaymentReasonValues.php | 25 ++++------------ .../Object/Values/PermissionStatusValues.php | 25 ++++------------ .../PhotoBackdatedTimeGranularityValues.php | 25 ++++------------ .../Object/Values/PhotoTypeValues.php | 25 ++++------------ .../PhotoUnpublishedContentTypeValues.php | 25 ++++------------ .../PostBackdatedTimeGranularityValues.php | 25 ++++------------ .../Values/PostCheckinEntryPointValues.php | 25 ++++------------ .../Values/PostFeedStoryVisibilityValues.php | 25 ++++------------ .../Object/Values/PostFormattingValues.php | 25 ++++------------ .../PostPlaceAttachmentSettingValues.php | 25 ++++------------ .../PostPostSurfacesBlacklistValues.php | 25 ++++------------ .../Values/PostPostingToRedspaceValues.php | 25 ++++------------ .../Object/Values/PostTargetSurfaceValues.php | 25 ++++------------ .../Values/PostTimelineVisibilityValues.php | 25 ++++------------ .../PostUnpublishedContentTypeValues.php | 25 ++++------------ ...rivateLiftStudyInstanceOperationValues.php | 25 ++++------------ ...ogCategoryCategorizationCriteriaValues.php | 25 ++++------------ ...logDataSourceIngestionSourceTypeValues.php | 25 ++++------------ ...gDiagnosticGroupAffectedChannelsValues.php | 25 ++++------------ ...gDiagnosticGroupAffectedEntitiesValues.php | 25 ++++------------ ...logDiagnosticGroupAffectedEntityValues.php | 25 ++++------------ ...gDiagnosticGroupAffectedFeaturesValues.php | 25 ++++------------ ...CatalogDiagnosticGroupSeveritiesValues.php | 25 ++++------------ ...ctCatalogDiagnosticGroupSeverityValues.php | 25 ++++------------ ...roductCatalogDiagnosticGroupTypeValues.php | 25 ++++------------ ...oductCatalogDiagnosticGroupTypesValues.php | 25 ++++------------ .../ProductCatalogItemSubTypeValues.php | 25 ++++------------ .../ProductCatalogPermittedRolesValues.php | 25 ++++------------ .../ProductCatalogPermittedTasksValues.php | 25 ++++------------ .../Values/ProductCatalogStandardValues.php | 25 ++++------------ .../Values/ProductCatalogTasksValues.php | 25 ++++------------ .../Values/ProductCatalogVerticalValues.php | 25 ++++------------ .../ProductEventStatBreakdownsValues.php | 25 ++++------------ .../ProductEventStatDeviceTypeValues.php | 25 ++++------------ .../Values/ProductEventStatEventValues.php | 25 ++++------------ .../Values/ProductFeedDelimiterValues.php | 25 ++++------------ .../Values/ProductFeedEncodingValues.php | 25 ++++------------ .../Values/ProductFeedFeedTypeValues.php | 25 ++++------------ .../ProductFeedIngestionSourceTypeValues.php | 25 ++++------------ .../Values/ProductFeedItemSubTypeValues.php | 25 ++++------------ .../Values/ProductFeedOverrideTypeValues.php | 25 ++++------------ .../ProductFeedQuotedFieldsModeValues.php | 25 ++++------------ .../Values/ProductFeedRuleRuleTypeValues.php | 25 ++++------------ .../ProductFeedScheduleIntervalValues.php | 25 ++++------------ ...tFeedUploadErrorAffectedSurfacesValues.php | 25 ++++------------ ...ductFeedUploadErrorErrorPriorityValues.php | 25 ++++------------ .../ProductFeedUploadErrorSeverityValues.php | 25 ++++------------ .../ProductFeedUploadInputMethodValues.php | 25 ++++------------ .../ProductItemARDataSurfacesValues.php | 25 ++++------------ .../Values/ProductItemAgeGroupValues.php | 25 ++++------------ .../Values/ProductItemAvailabilityValues.php | 25 ++++------------ .../ProductItemCommerceTaxCategoryValues.php | 25 ++++------------ .../Values/ProductItemConditionValues.php | 25 ++++------------ .../Values/ProductItemErrorPriorityValues.php | 25 ++++------------ .../Values/ProductItemErrorTypeValues.php | 25 ++++------------ .../Object/Values/ProductItemGenderValues.php | 25 ++++------------ .../ProductItemImageFetchStatusValues.php | 25 ++++------------ ...roductItemMarkedForProductLaunchValues.php | 25 ++++------------ .../Values/ProductItemOriginCountryValues.php | 25 ++++------------ .../Values/ProductItemReviewStatusValues.php | 25 ++++------------ .../ProductItemShippingWeightUnitValues.php | 25 ++++------------ .../Values/ProductItemVisibilityValues.php | 25 ++++------------ .../ProductItemWaComplianceCategoryValues.php | 25 ++++------------ ...ofilePictureSourceBreakingChangeValues.php | 25 ++++------------ .../Values/ProfilePictureSourceTypeValues.php | 25 ++++------------ .../Values/ProfileProfileTypeValues.php | 25 ++++------------ .../Object/Values/ProfileTypeValues.php | 25 ++++------------ .../ReachFrequencyPredictionActionValues.php | 25 ++++------------ ...achFrequencyPredictionBuyingTypeValues.php | 25 ++++------------ ...quencyPredictionInstreamPackagesValues.php | 25 ++++------------ .../ReachFrequencyPredictionStatuses.php | 25 ++++------------ .../Object/Values/SystemUserRoleValues.php | 25 ++++------------ .../Values/TargetingDevicePlatformsValues.php | 25 ++++------------ ...argetingEffectiveDevicePlatformsValues.php | 25 ++++------------ .../Object/Values/TermsOfService.php | 25 ++++------------ .../Object/Values/URLScopesValues.php | 25 ++++------------ .../Values/UnifiedThreadPlatformValues.php | 25 ++++------------ .../Object/Values/UserFilteringValues.php | 25 ++++------------ ...rLocalNewsMegaphoneDismissStatusValues.php | 25 ++++------------ .../UserLocalNewsSubscriptionStatusValues.php | 25 ++++------------ .../Object/Values/UserPermissionRoles.php | 25 ++++------------ .../Object/Values/UserTypeValues.php | 25 ++++------------ .../Values/VehicleAvailabilityValues.php | 25 ++++------------ .../Object/Values/VehicleBodyStyleValues.php | 25 ++++------------ .../Object/Values/VehicleConditionValues.php | 25 ++++------------ .../Object/Values/VehicleDrivetrainValues.php | 25 ++++------------ .../Object/Values/VehicleFuelTypeValues.php | 25 ++++------------ .../Values/VehicleImageFetchStatusValues.php | 25 ++++------------ .../VehicleOfferImageFetchStatusValues.php | 25 ++++------------ .../Values/VehicleOfferVisibilityValues.php | 25 ++++------------ .../Values/VehicleStateOfVehicleValues.php | 25 ++++------------ .../Values/VehicleTransmissionValues.php | 25 ++++------------ .../Values/VehicleVehicleTypeValues.php | 25 ++++------------ .../Object/Values/VehicleVisibilityValues.php | 25 ++++------------ .../VideoCopyrightContentCategoryValues.php | 25 ++++------------ .../VideoCopyrightMonitoringTypeValues.php | 25 ++++------------ .../Values/VideoCopyrightRuleSourceValues.php | 25 ++++------------ .../Object/Values/VideoPollActionValues.php | 25 ++++------------ .../Object/Values/VideoPollStatusValues.php | 25 ++++------------ .../WhatsAppBusinessAccountCategoryValues.php | 25 ++++------------ .../WhatsAppBusinessAccountTasksValues.php | 25 ++++------------ ...honeNumberCodeVerificationStatusValues.php | 25 ++++------------ src/FacebookAds/Object/Vehicle.php | 25 ++++------------ src/FacebookAds/Object/VehicleOffer.php | 25 ++++------------ src/FacebookAds/Object/VideoCopyright.php | 25 ++++------------ .../Object/VideoCopyrightConditionGroup.php | 25 ++++------------ .../Object/VideoCopyrightGeoGate.php | 25 ++++------------ src/FacebookAds/Object/VideoCopyrightRule.php | 25 ++++------------ .../Object/VideoCopyrightSegment.php | 25 ++++------------ src/FacebookAds/Object/VideoList.php | 25 ++++------------ src/FacebookAds/Object/VideoPoll.php | 25 ++++------------ src/FacebookAds/Object/VideoThumbnail.php | 25 ++++------------ src/FacebookAds/Object/VideoUploadLimits.php | 25 ++++------------ src/FacebookAds/Object/VoipInfo.php | 25 ++++------------ src/FacebookAds/Object/WebAppLink.php | 25 ++++------------ .../Object/WhatsAppBusinessAccount.php | 25 ++++------------ ...WhatsAppBusinessPreVerifiedPhoneNumber.php | 25 ++++------------ .../Object/WhatsAppBusinessProfile.php | 25 ++++------------ src/FacebookAds/Object/WindowsAppLink.php | 25 ++++------------ .../Object/WindowsPhoneAppLink.php | 25 ++++------------ .../Object/WoodhengePurchasedPAYGReceipt.php | 25 ++++------------ src/FacebookAds/Object/WorkUserFrontline.php | 25 ++++------------ src/FacebookAds/Session.php | 25 ++++------------ src/FacebookAds/SessionInterface.php | 25 ++++------------ src/FacebookAds/TypeChecker.php | 25 ++++------------ 1290 files changed, 6466 insertions(+), 25799 deletions(-) diff --git a/LICENSE b/LICENSE index 42f447b2a..75d6dcd08 100644 --- a/LICENSE +++ b/LICENSE @@ -1,19 +1,18 @@ -Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +Copyright (c) Meta Platforms, Inc. and affiliates. +All rights reserved. -You are hereby granted a non-exclusive, worldwide, royalty-free license to -use, copy, modify, and distribute this software in source code or binary -form for use in connection with the web services and APIs provided by -Facebook. +You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +copy, modify, and distribute this software in source code or binary form for use +in connection with the web services and APIs provided by Facebook. -As with any software that integrates with the Facebook platform, your use -of this software is subject to the Facebook Developer Principles and -Policies [http://developers.facebook.com/policy/]. This copyright notice -shall be included in all copies or substantial portions of the software. +As with any software that integrates with the Facebook platform, your use of +this software is subject to the Facebook Platform Policy +[http://developers.facebook.com/policy/]. This copyright notice shall be +included in all copies or substantial portions of the software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/src/FacebookAds/AnonymousSession.php b/src/FacebookAds/AnonymousSession.php index 0fd0bfe68..dc5a42a6a 100644 --- a/src/FacebookAds/AnonymousSession.php +++ b/src/FacebookAds/AnonymousSession.php @@ -1,25 +1,10 @@ execute(); } - public function getPreViews(array $fields = array(), array $params = array(), $pending = false) { + public function getPreviews(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index a1d3b571d..db4532171 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -1,25 +1,10 @@ execute(); } - public function getGeneratePreViews(array $fields = array(), array $params = array(), $pending = false) { + public function getGeneratePreviews(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/AdAccountAdRulesHistory.php b/src/FacebookAds/Object/AdAccountAdRulesHistory.php index 178fab975..cd767dcbe 100644 --- a/src/FacebookAds/Object/AdAccountAdRulesHistory.php +++ b/src/FacebookAds/Object/AdAccountAdRulesHistory.php @@ -1,25 +1,10 @@ execute(); } - public function getPreViews(array $fields = array(), array $params = array(), $pending = false) { + public function getPreviews(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/AdCreativeAdDisclaimer.php b/src/FacebookAds/Object/AdCreativeAdDisclaimer.php index 02e985c0a..f963c3e04 100644 --- a/src/FacebookAds/Object/AdCreativeAdDisclaimer.php +++ b/src/FacebookAds/Object/AdCreativeAdDisclaimer.php @@ -1,25 +1,10 @@ assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/CanvasAdSettings.php b/src/FacebookAds/Object/CanvasAdSettings.php index 63df28477..4a8726549 100644 --- a/src/FacebookAds/Object/CanvasAdSettings.php +++ b/src/FacebookAds/Object/CanvasAdSettings.php @@ -1,25 +1,10 @@ Date: Thu, 14 Sep 2023 15:07:46 -0700 Subject: [PATCH 03/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D49294407 fbshipit-source-id: 647f1e0f6c8172e985cbb46c0845ebb62860fad3 --- src/FacebookAds/ApiConfig.php | 4 +- src/FacebookAds/Object/Ad.php | 14 +- src/FacebookAds/Object/AdAccount.php | 145 ++++++++- ...ta.php => AdAccountDsaRecommendations.php} | 10 +- ...ssetCustomizationRuleCustomizationSpec.php | 44 +++ .../AdAssetFeedSpecAssetCustomizationRule.php | 42 +++ .../Object/AdAssetMessageExtensions.php | 42 +++ .../Object/AdAssetTargetRuleTargeting.php | 44 +++ src/FacebookAds/Object/AdCreativeLinkData.php | 2 - src/FacebookAds/Object/AdSet.php | 15 +- src/FacebookAds/Object/AdVideo.php | 2 + ...sBatchStatus.php => AdsHistogramStats.php} | 8 +- src/FacebookAds/Object/Application.php | 49 ++++ src/FacebookAds/Object/Avatar.php | 94 ++++++ .../Object/AvatarProfilePicture.php | 65 +++++ src/FacebookAds/Object/Business.php | 276 ++++++++++++++++++ .../Object/BusinessCreativeFolder.php | 72 +++++ src/FacebookAds/Object/BusinessImage.php | 9 + .../{ShopOrder.php => BusinessVideo.php} | 12 +- src/FacebookAds/Object/Campaign.php | 16 +- src/FacebookAds/Object/Dataset.php | 42 +++ .../AdAccountBusinessConstraintsFields.php | 2 + ... => AdAccountDsaRecommendationsFields.php} | 10 +- .../Object/Fields/AdAccountFields.php | 4 + ...stomizationRuleCustomizationSpecFields.php | 50 ++++ ...etFeedSpecAssetCustomizationRuleFields.php | 56 ++++ .../Object/Fields/AdAssetFeedSpecFields.php | 4 +- .../Fields/AdAssetMessageExtensionsFields.php | 32 ++ .../AdAssetTargetRuleTargetingFields.php | 46 +++ .../Fields/AdCreativeLinkDataFields.php | 2 +- src/FacebookAds/Object/Fields/AdFields.php | 6 + .../Object/Fields/AdImageFields.php | 2 +- .../Object/Fields/AdPromotedObjectFields.php | 2 + .../Object/Fields/AdReportRunFields.php | 4 +- src/FacebookAds/Object/Fields/AdSetFields.php | 4 + .../Object/Fields/AdsActionStatsFields.php | 2 + .../Object/Fields/AdsHistogramStatsFields.php | 94 ++++++ .../Object/Fields/AdsInsightsFields.php | 22 +- .../Object/Fields/AdsPixelFields.php | 2 + src/FacebookAds/Object/Fields/AlbumFields.php | 4 +- .../Object/Fields/ApplicationFields.php | 2 + .../{ShopOrderFields.php => AvatarFields.php} | 4 +- .../Fields/AvatarProfilePictureFields.php | 34 +++ .../Fields/BusinessCreativeFolderFields.php | 48 +++ .../Object/Fields/BusinessFields.php | 2 + .../Object/Fields/BusinessImageFields.php | 8 + .../Object/Fields/BusinessVideoFields.php | 40 +++ .../Object/Fields/CampaignFields.php | 2 + .../Object/Fields/CommentFields.php | 2 +- .../Object/Fields/DatasetFields.php | 32 ++ .../Object/Fields/HighDemandPeriodFields.php | 46 +++ ...eriodTimeSuggestionWeeklySegmentFields.php | 38 +++ .../Fields/IGShoppingReviewStatusFields.php | 36 +++ ...ingReviewStatusOnsiteEligibilityFields.php | 34 +++ ...eviewStatusReasonWithHelpMessageFields.php | 36 +++ .../Object/Fields/InstagramCarouselFields.php | 50 ++++ .../Object/Fields/InstagramCommentFields.php | 44 +++ .../Object/Fields/InstagramMediaFields.php | 60 ++++ .../Fields/InstagramVideoMetadataFields.php | 36 +++ .../LeadGenAppointmentBookingInfoFields.php | 2 +- .../LeadGenAppointmentSlotsByDayFields.php | 34 +++ .../LeadGenAppointmentTimeSlotFields.php | 34 +++ ...ields.php => LeadGenContextCardFields.php} | 28 +- .../LeadGenCustomDisclaimerBodyFields.php | 34 +++ .../Fields/LeadGenCustomDisclaimerFields.php | 36 +++ .../LeadGenLegalContentCheckboxFields.php | 40 +++ .../Fields/LeadGenLegalContentFields.php | 36 +++ .../Fields/LeadGenPrivacyPolicyFields.php | 34 +++ .../Fields/LeadGenThankYouPageFields.php | 52 ++++ .../Fields/LeadGenURLEntityAtRangesFields.php | 36 +++ .../Object/Fields/LeadgenFormFields.php | 6 +- .../Object/Fields/LiveVideoFields.php | 2 +- .../Fields/LocalServiceBusinessFields.php | 4 + .../Fields/MessagingFeatureStatusFields.php | 4 + ...engerAdsPartialAutomatedStepListFields.php | 44 +++ ...utStoryComposedBlockEntityRangesFields.php | 36 +++ .../PageAboutStoryComposedBlockFields.php | 40 +++ ...outStoryComposedBlockInlineStyleFields.php | 36 +++ .../Object/Fields/PageAboutStoryFields.php | 44 +++ src/FacebookAds/Object/Fields/PageFields.php | 6 + .../Fields/PagePostExperimentFields.php | 6 + .../Object/Fields/PagePostFields.php | 2 +- src/FacebookAds/Object/Fields/PostFields.php | 4 +- .../Object/Fields/ProductCatalogFields.php | 2 + .../Object/Fields/ProductImageFields.php | 4 + .../Object/Fields/ProductItemFields.php | 4 +- .../Fields/ProductItemLocalInfoFields.php | 48 +++ ...ProductItemLocalInfoLatLongShapeFields.php | 34 +++ .../Fields/ReachFrequencyPredictionFields.php | 6 + .../Object/Fields/StoriesFields.php | 40 +++ src/FacebookAds/Object/Fields/UserFields.php | 6 +- .../Fields/WhatsAppBusinessAccountFields.php | 2 + ...ppBusinessPreVerifiedPhoneNumberFields.php | 2 + src/FacebookAds/Object/Group.php | 8 +- src/FacebookAds/Object/HighDemandPeriod.php | 118 ++++++++ ...emandPeriodTimeSuggestionWeeklySegment.php | 42 +++ .../Object/IGShoppingReviewStatus.php | 42 +++ ...GShoppingReviewStatusOnsiteEligibility.php | 42 +++ ...ppingReviewStatusReasonWithHelpMessage.php | 42 +++ src/FacebookAds/Object/IGUser.php | 24 ++ src/FacebookAds/Object/InstagramCarousel.php | 113 +++++++ src/FacebookAds/Object/InstagramComment.php | 162 ++++++++++ src/FacebookAds/Object/InstagramMedia.php | 113 +++++++ src/FacebookAds/Object/InstagramUser.php | 23 ++ .../Object/InstagramVideoMetadata.php | 42 +++ .../Object/LeadGenAppointmentSlotsByDay.php | 42 +++ .../Object/LeadGenAppointmentTimeSlot.php | 42 +++ src/FacebookAds/Object/LeadGenContextCard.php | 42 +++ .../Object/LeadGenCustomDisclaimer.php | 42 +++ .../Object/LeadGenCustomDisclaimerBody.php | 42 +++ .../Object/LeadGenLegalContent.php | 42 +++ .../Object/LeadGenLegalContentCheckbox.php | 42 +++ .../Object/LeadGenPrivacyPolicy.php | 42 +++ .../Object/LeadGenThankYouPage.php | 42 +++ .../Object/LeadGenURLEntityAtRanges.php | 42 +++ src/FacebookAds/Object/LiveVideo.php | 2 +- .../MessengerAdsPartialAutomatedStepList.php | 88 ++++++ src/FacebookAds/Object/Page.php | 232 +++++++++++++-- src/FacebookAds/Object/PageAboutStory.php | 65 +++++ .../Object/PageAboutStoryComposedBlock.php | 42 +++ ...ageAboutStoryComposedBlockEntityRanges.php | 42 +++ ...PageAboutStoryComposedBlockInlineStyle.php | 42 +++ src/FacebookAds/Object/PagePostExperiment.php | 23 ++ src/FacebookAds/Object/Post.php | 2 - src/FacebookAds/Object/ProductCatalog.php | 24 -- .../Object/ProductItemLocalInfo.php | 65 +++++ .../ProductItemLocalInfoLatLongShape.php | 42 +++ src/FacebookAds/Object/Stories.php | 42 +++ src/FacebookAds/Object/URL.php | 2 +- src/FacebookAds/Object/User.php | 10 +- .../AdAccountAdRulesHistoryActionValues.php | 1 + ...ccountAdVolumeRecommendationTypeValues.php | 20 ++ ...DeliveryEstimateOptimizationGoalValues.php | 1 + ...archApplicationsEdgeDataAppStoreValues.php | 1 + .../Object/Values/AdAccountSubtypeValues.php | 1 + ...dAccountTargetingUnifiedAppStoreValues.php | 1 + ...TargetingUnifiedWhitelistedTypesValues.php | 3 + ...ustomizationSpecDevicePlatformsValues.php} | 10 +- ...AdAssetFeedSpecCallToActionTypesValues.php | 1 + ...getRuleTargetingDevicePlatformsValues.php} | 10 +- ...DeliveryEstimateOptimizationGoalValues.php | 1 + .../AdCreativeCallToActionTypeValues.php | 1 + ...CreativeLinkDataCallToActionTypeValues.php | 1 + ...LinkDataImageOverlaySpecTextTypeValues.php | 1 + .../Object/Values/AdPreviewAdFormatValues.php | 5 +- .../Values/AdPreviewCreativeFeatureValues.php | 1 + .../Values/AdRuleHistoryActionValues.php | 1 + .../Values/AdSetOptimizationGoalValues.php | 1 + .../Values/AdVideoContainerTypeValues.php | 5 +- .../AdVideoValidationAdPlacementsValues.php | 48 +++ ...InsightsActionAttributionWindowsValues.php | 1 + .../AdsInsightsActionBreakdownsValues.php | 1 + .../Values/AdsInsightsBreakdownsValues.php | 3 + ...sInsightsSummaryActionBreakdownsValues.php | 1 + ...inessImageValidationAdPlacementsValues.php | 48 +++ .../CatalogItemAppealStatusStatusValues.php | 4 +- .../Values/CustomAudienceSubtypeValues.php | 1 + ...ditAllocationConfigPartitionTypeValues.php | 1 + ...HighDemandPeriodBudgetValueTypeValues.php} | 8 +- .../InstagramInsightsResultMetricValues.php | 2 + ...LocalServiceBusinessAvailabilityValues.php | 1 + .../Values/PageDeveloperActionValues.php | 1 - .../Values/PageSubscribedFieldsValues.php | 4 +- .../ProductCatalogPermittedTasksValues.php | 1 + .../Values/ProductCatalogTasksValues.php | 1 + .../ProductItemARDataSurfacesValues.php | 39 --- .../Values/ProductItemAvailabilityValues.php | 1 + .../Values/ProductItemErrorTypeValues.php | 18 ++ .../WhatsAppBusinessAccountTasksValues.php | 6 - .../Object/WhatsAppBusinessAccount.php | 176 +++++++++++ ...WhatsAppBusinessPreVerifiedPhoneNumber.php | 25 +- 171 files changed, 4783 insertions(+), 245 deletions(-) rename src/FacebookAds/Object/{ProductItemARData.php => AdAccountDsaRecommendations.php} (69%) create mode 100644 src/FacebookAds/Object/AdAssetCustomizationRuleCustomizationSpec.php create mode 100644 src/FacebookAds/Object/AdAssetFeedSpecAssetCustomizationRule.php create mode 100644 src/FacebookAds/Object/AdAssetMessageExtensions.php create mode 100644 src/FacebookAds/Object/AdAssetTargetRuleTargeting.php rename src/FacebookAds/Object/{AREffectsBatchStatus.php => AdsHistogramStats.php} (79%) create mode 100644 src/FacebookAds/Object/Avatar.php create mode 100644 src/FacebookAds/Object/AvatarProfilePicture.php create mode 100644 src/FacebookAds/Object/BusinessCreativeFolder.php rename src/FacebookAds/Object/{ShopOrder.php => BusinessVideo.php} (83%) create mode 100644 src/FacebookAds/Object/Dataset.php rename src/FacebookAds/Object/Fields/{AREffectsBatchStatusFields.php => AdAccountDsaRecommendationsFields.php} (70%) create mode 100644 src/FacebookAds/Object/Fields/AdAssetCustomizationRuleCustomizationSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetFeedSpecAssetCustomizationRuleFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetMessageExtensionsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetTargetRuleTargetingFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php rename src/FacebookAds/Object/Fields/{ShopOrderFields.php => AvatarFields.php} (83%) create mode 100644 src/FacebookAds/Object/Fields/AvatarProfilePictureFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessCreativeFolderFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessVideoFields.php create mode 100644 src/FacebookAds/Object/Fields/DatasetFields.php create mode 100644 src/FacebookAds/Object/Fields/HighDemandPeriodFields.php create mode 100644 src/FacebookAds/Object/Fields/HighDemandPeriodTimeSuggestionWeeklySegmentFields.php create mode 100644 src/FacebookAds/Object/Fields/IGShoppingReviewStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/IGShoppingReviewStatusOnsiteEligibilityFields.php create mode 100644 src/FacebookAds/Object/Fields/IGShoppingReviewStatusReasonWithHelpMessageFields.php create mode 100644 src/FacebookAds/Object/Fields/InstagramCarouselFields.php create mode 100644 src/FacebookAds/Object/Fields/InstagramCommentFields.php create mode 100644 src/FacebookAds/Object/Fields/InstagramMediaFields.php create mode 100644 src/FacebookAds/Object/Fields/InstagramVideoMetadataFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenAppointmentSlotsByDayFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenAppointmentTimeSlotFields.php rename src/FacebookAds/Object/Fields/{ProductItemARDataFields.php => LeadGenContextCardFields.php} (51%) create mode 100644 src/FacebookAds/Object/Fields/LeadGenCustomDisclaimerBodyFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenCustomDisclaimerFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenLegalContentCheckboxFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenLegalContentFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenPrivacyPolicyFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenThankYouPageFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenURLEntityAtRangesFields.php create mode 100644 src/FacebookAds/Object/Fields/MessengerAdsPartialAutomatedStepListFields.php create mode 100644 src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockEntityRangesFields.php create mode 100644 src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockFields.php create mode 100644 src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockInlineStyleFields.php create mode 100644 src/FacebookAds/Object/Fields/PageAboutStoryFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductItemLocalInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductItemLocalInfoLatLongShapeFields.php create mode 100644 src/FacebookAds/Object/Fields/StoriesFields.php create mode 100644 src/FacebookAds/Object/HighDemandPeriod.php create mode 100644 src/FacebookAds/Object/HighDemandPeriodTimeSuggestionWeeklySegment.php create mode 100644 src/FacebookAds/Object/IGShoppingReviewStatus.php create mode 100644 src/FacebookAds/Object/IGShoppingReviewStatusOnsiteEligibility.php create mode 100644 src/FacebookAds/Object/IGShoppingReviewStatusReasonWithHelpMessage.php create mode 100644 src/FacebookAds/Object/InstagramCarousel.php create mode 100644 src/FacebookAds/Object/InstagramComment.php create mode 100644 src/FacebookAds/Object/InstagramMedia.php create mode 100644 src/FacebookAds/Object/InstagramVideoMetadata.php create mode 100644 src/FacebookAds/Object/LeadGenAppointmentSlotsByDay.php create mode 100644 src/FacebookAds/Object/LeadGenAppointmentTimeSlot.php create mode 100644 src/FacebookAds/Object/LeadGenContextCard.php create mode 100644 src/FacebookAds/Object/LeadGenCustomDisclaimer.php create mode 100644 src/FacebookAds/Object/LeadGenCustomDisclaimerBody.php create mode 100644 src/FacebookAds/Object/LeadGenLegalContent.php create mode 100644 src/FacebookAds/Object/LeadGenLegalContentCheckbox.php create mode 100644 src/FacebookAds/Object/LeadGenPrivacyPolicy.php create mode 100644 src/FacebookAds/Object/LeadGenThankYouPage.php create mode 100644 src/FacebookAds/Object/LeadGenURLEntityAtRanges.php create mode 100644 src/FacebookAds/Object/MessengerAdsPartialAutomatedStepList.php create mode 100644 src/FacebookAds/Object/PageAboutStory.php create mode 100644 src/FacebookAds/Object/PageAboutStoryComposedBlock.php create mode 100644 src/FacebookAds/Object/PageAboutStoryComposedBlockEntityRanges.php create mode 100644 src/FacebookAds/Object/PageAboutStoryComposedBlockInlineStyle.php create mode 100644 src/FacebookAds/Object/ProductItemLocalInfo.php create mode 100644 src/FacebookAds/Object/ProductItemLocalInfoLatLongShape.php create mode 100644 src/FacebookAds/Object/Stories.php rename src/FacebookAds/Object/Values/{PageCheckinEntryPointValues.php => AdAssetCustomizationRuleCustomizationSpecDevicePlatformsValues.php} (64%) rename src/FacebookAds/Object/Values/{PostCheckinEntryPointValues.php => AdAssetTargetRuleTargetingDevicePlatformsValues.php} (64%) create mode 100644 src/FacebookAds/Object/Values/AdVideoValidationAdPlacementsValues.php create mode 100644 src/FacebookAds/Object/Values/BusinessImageValidationAdPlacementsValues.php rename src/FacebookAds/Object/Values/{AdCreativeLinkDataAttachmentStyleValues.php => HighDemandPeriodBudgetValueTypeValues.php} (72%) delete mode 100644 src/FacebookAds/Object/Values/ProductItemARDataSurfacesValues.php diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 6a2596e45..0a45e1854 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -9,7 +9,7 @@ namespace FacebookAds; class ApiConfig { - const APIVersion = '17.0'; - const SDKVersion = '17.0.2'; + const APIVersion = '18.0'; + const SDKVersion = '18.0.0'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/Ad.php b/src/FacebookAds/Object/Ad.php index 83d90c064..15b8f57e8 100644 --- a/src/FacebookAds/Object/Ad.php +++ b/src/FacebookAds/Object/Ad.php @@ -157,7 +157,7 @@ public function getCopies(array $fields = array(), array $params = array(), $pen $param_types = array( 'date_preset' => 'date_preset_enum', 'effective_status' => 'list', - 'time_range' => 'Object', + 'time_range' => 'map', 'updated_since' => 'int', ); $enums = array( @@ -227,8 +227,8 @@ public function getInsights(array $fields = array(), array $params = array(), $p 'summary' => 'list', 'summary_action_breakdowns' => 'list', 'time_increment' => 'string', - 'time_range' => 'Object', - 'time_ranges' => 'list', + 'time_range' => 'map', + 'time_ranges' => 'list', 'use_account_attribution_setting' => 'bool', 'use_unified_attribution_setting' => 'bool', ); @@ -278,8 +278,8 @@ public function getInsightsAsync(array $fields = array(), array $params = array( 'summary' => 'list', 'summary_action_breakdowns' => 'list', 'time_increment' => 'string', - 'time_range' => 'Object', - 'time_ranges' => 'list', + 'time_range' => 'map', + 'time_ranges' => 'list', 'use_account_attribution_setting' => 'bool', 'use_unified_attribution_setting' => 'bool', ); @@ -425,7 +425,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'date_preset' => 'date_preset_enum', 'from_adtable' => 'bool', 'review_feedback_breakdown' => 'bool', - 'time_range' => 'Object', + 'time_range' => 'map', ); $enums = array( 'date_preset_enum' => array( @@ -471,6 +471,8 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( + 'ad_schedule_end_time' => 'datetime', + 'ad_schedule_start_time' => 'datetime', 'adlabels' => 'list', 'adset_spec' => 'AdSet', 'audience_id' => 'string', diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index db4532171..ef06be711 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -168,6 +168,7 @@ public function createAccountControl(array $fields = array(), array $params = ar $param_types = array( 'audience_controls' => 'Object', + 'placement_controls' => 'Object', ); $enums = array( ); @@ -446,7 +447,7 @@ public function createAdCreative(array $fields = array(), array $params = array( 'recommender_settings' => 'map', 'source_instagram_media_id' => 'string', 'template_url' => 'string', - 'template_url_spec' => 'Object', + 'template_url_spec' => 'string', 'thumbnail_url' => 'string', 'title' => 'string', 'url_tags' => 'string', @@ -559,7 +560,7 @@ public function createAdImage(array $fields = array(), array $params = array(), $this->assureId(); $param_types = array( - 'bytes' => 'Object', + 'bytes' => 'string', 'copy_from' => 'Object', 'filename' => 'file' ); @@ -771,7 +772,7 @@ public function getAds(array $fields = array(), array $params = array(), $pendin $param_types = array( 'date_preset' => 'date_preset_enum', 'effective_status' => 'list', - 'time_range' => 'Object', + 'time_range' => 'map', 'updated_since' => 'int', ); $enums = array( @@ -797,6 +798,8 @@ public function createAd(array $fields = array(), array $params = array(), $pend $this->assureId(); $param_types = array( + 'ad_schedule_end_time' => 'datetime', + 'ad_schedule_start_time' => 'datetime', 'adlabels' => 'list', 'adset_id' => 'unsigned int', 'adset_spec' => 'AdSet', @@ -843,11 +846,82 @@ public function createAdsConversionGoal(array $fields = array(), array $params = $this->assureId(); $param_types = array( + 'conversion_event_value_source' => 'conversion_event_value_source_enum', 'description' => 'string', + 'goal_creation_method' => 'goal_creation_method_enum', 'goal_name' => 'string', + 'performance_goal' => 'performance_goal_enum', 'single_channel_conversion_events' => 'list', + 'value_adjustment_rule' => 'map', ); $enums = array( + 'conversion_event_value_source_enum' => array( + 'DATA_SOURCE', + 'VALUE_RULE', + ), + 'goal_creation_method_enum' => array( + 'ADVERTISER_CREATED_UI', + 'AUTO_MIGRATION', + 'L2_ENHANCE_API_MIGRATION', + ), + 'performance_goal_enum' => array( + 'AD_OPTIMIZATION_GOAL_AD_RECALL_LIFT', + 'AD_OPTIMIZATION_GOAL_APP_DOWNLOADS', + 'AD_OPTIMIZATION_GOAL_APP_INSTALLS', + 'AD_OPTIMIZATION_GOAL_APP_INSTALLS_AND_OFFSITE_CONVERSIONS', + 'AD_OPTIMIZATION_GOAL_BRAND_AWARENESS', + 'AD_OPTIMIZATION_GOAL_CLICKS', + 'AD_OPTIMIZATION_GOAL_COMPLETED_VIDEO_VIEWS', + 'AD_OPTIMIZATION_GOAL_CONVERSATIONS', + 'AD_OPTIMIZATION_GOAL_DERIVED_EVENTS', + 'AD_OPTIMIZATION_GOAL_DWELLS', + 'AD_OPTIMIZATION_GOAL_ENGAGED_REACH', + 'AD_OPTIMIZATION_GOAL_ENGAGED_USERS', + 'AD_OPTIMIZATION_GOAL_EVENT_RESPONSES', + 'AD_OPTIMIZATION_GOAL_EXTERNAL', + 'AD_OPTIMIZATION_GOAL_IMPRESSIONS', + 'AD_OPTIMIZATION_GOAL_INCREMENTAL_OFFSITE_CONVERSIONS', + 'AD_OPTIMIZATION_GOAL_IN_APP_VALUE', + 'AD_OPTIMIZATION_GOAL_JOB_APPLICATIONS', + 'AD_OPTIMIZATION_GOAL_LANDING_PAGE_VIEWS', + 'AD_OPTIMIZATION_GOAL_LEAD_GENERATION', + 'AD_OPTIMIZATION_GOAL_MEDIA_DOWNLOADS', + 'AD_OPTIMIZATION_GOAL_MESSAGING_APPOINTMENT_CONVERSION', + 'AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_FOLLOW', + 'AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_REPLY', + 'AD_OPTIMIZATION_GOAL_MESSAGING_PURCHASE_CONVERSION', + 'AD_OPTIMIZATION_GOAL_MID_FUNNEL_EVENT', + 'AD_OPTIMIZATION_GOAL_MRC_VIDEO_VIEWS', + 'AD_OPTIMIZATION_GOAL_MULTI_CONVERSIONS', + 'AD_OPTIMIZATION_GOAL_NONE', + 'AD_OPTIMIZATION_GOAL_OFFER_CLAIMS', + 'AD_OPTIMIZATION_GOAL_OFFLINE_CONVERSIONS', + 'AD_OPTIMIZATION_GOAL_OFFSITE_CLICKS', + 'AD_OPTIMIZATION_GOAL_OFFSITE_CONVERSIONS', + 'AD_OPTIMIZATION_GOAL_ONSITE_CONVERSIONS', + 'AD_OPTIMIZATION_GOAL_PAGE_ENGAGEMENT', + 'AD_OPTIMIZATION_GOAL_PAGE_FOLLOWS', + 'AD_OPTIMIZATION_GOAL_PAGE_LIKES', + 'AD_OPTIMIZATION_GOAL_POST_ENGAGEMENT', + 'AD_OPTIMIZATION_GOAL_QUALITY_CALL', + 'AD_OPTIMIZATION_GOAL_QUALITY_LEAD', + 'AD_OPTIMIZATION_GOAL_REACH', + 'AD_OPTIMIZATION_GOAL_REMINDERS_SET', + 'AD_OPTIMIZATION_GOAL_REPLIES', + 'AD_OPTIMIZATION_GOAL_RESEARCH_POLL_RESPONSES', + 'AD_OPTIMIZATION_GOAL_RETENTION', + 'AD_OPTIMIZATION_GOAL_RETURN_ON_AD_SPEND', + 'AD_OPTIMIZATION_GOAL_SOCIAL_IMPRESSIONS', + 'AD_OPTIMIZATION_GOAL_STORE_VISITS', + 'AD_OPTIMIZATION_GOAL_SUBSCRIBERS', + 'AD_OPTIMIZATION_GOAL_TICKET_PURCHASE', + 'AD_OPTIMIZATION_GOAL_VALUE', + 'AD_OPTIMIZATION_GOAL_VIDEO_LONG_VIEWS', + 'AD_OPTIMIZATION_GOAL_VIDEO_VIEWS', + 'AD_OPTIMIZATION_GOAL_VIDEO_VIEWS_15S', + 'AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE', + 'AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE_AND_PROFILE_ACTIONS', + ), ); $request = new ApiRequest( @@ -972,7 +1046,7 @@ public function getAdSets(array $fields = array(), array $params = array(), $pen 'date_preset' => 'date_preset_enum', 'effective_status' => 'list', 'is_completed' => 'bool', - 'time_range' => 'Object', + 'time_range' => 'map', 'updated_since' => 'int', ); $enums = array( @@ -1007,6 +1081,7 @@ public function createAdSet(array $fields = array(), array $params = array(), $p 'bid_constraints' => 'map', 'bid_strategy' => 'bid_strategy_enum', 'billing_event' => 'billing_event_enum', + 'campaign_attribution' => 'Object', 'campaign_id' => 'string', 'campaign_spec' => 'Object', 'creative_sequence' => 'list', @@ -1718,7 +1793,7 @@ public function getCampaigns(array $fields = array(), array $params = array(), $ 'date_preset' => 'date_preset_enum', 'effective_status' => 'list', 'is_completed' => 'bool', - 'time_range' => 'Object', + 'time_range' => 'map', ); $enums = array( 'date_preset_enum' => CampaignDatePresetValues::getInstance()->getValues(), @@ -2105,6 +2180,29 @@ public function getDeprecatedTargetingAdSets(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getDsaRecommendations(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, + '/dsa_recommendations', + new AdAccountDsaRecommendations(), + 'EDGE', + AdAccountDsaRecommendations::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getGeneratePreviews(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2190,8 +2288,8 @@ public function getInsights(array $fields = array(), array $params = array(), $p 'summary' => 'list', 'summary_action_breakdowns' => 'list', 'time_increment' => 'string', - 'time_range' => 'Object', - 'time_ranges' => 'list', + 'time_range' => 'map', + 'time_ranges' => 'list', 'use_account_attribution_setting' => 'bool', 'use_unified_attribution_setting' => 'bool', ); @@ -2241,8 +2339,8 @@ public function getInsightsAsync(array $fields = array(), array $params = array( 'summary' => 'list', 'summary_action_breakdowns' => 'list', 'time_increment' => 'string', - 'time_range' => 'Object', - 'time_ranges' => 'list', + 'time_range' => 'map', + 'time_ranges' => 'list', 'use_account_attribution_setting' => 'bool', 'use_unified_attribution_setting' => 'bool', ); @@ -2326,6 +2424,9 @@ public function createManagedPartnerAd(array $fields = array(), array $params = 'campaign_group_status' => 'campaign_group_status_enum', 'conversion_domain' => 'string', 'custom_event_type' => 'custom_event_type_enum', + 'daily_budget' => 'unsigned int', + 'dsa_beneficiary' => 'string', + 'dsa_payor' => 'string', 'end_time' => 'unsigned int', 'lifetime_budget' => 'unsigned int', 'override_creative_text' => 'string', @@ -2689,6 +2790,7 @@ public function createReachFrequencyPrediction(array $fields = array(), array $p 'impression' => 'unsigned int', 'instream_packages' => 'list', 'interval_frequency_cap_reset_period' => 'unsigned int', + 'is_balanced_frequency' => 'bool', 'is_bonus_media' => 'bool', 'is_conversion_goal' => 'bool', 'is_full_view' => 'bool', @@ -2707,6 +2809,8 @@ public function createReachFrequencyPrediction(array $fields = array(), array $p 'stop_time' => 'unsigned int', 'story_event_type' => 'unsigned int', 'target_cpm' => 'unsigned int', + 'target_frequency' => 'unsigned int', + 'target_frequency_reset_period' => 'unsigned int', 'target_spec' => 'Targeting', 'video_view_length_constraint' => 'unsigned int', ); @@ -3095,6 +3199,29 @@ public function deleteUsersOfAnyAudience(array $fields = array(), array $params return $pending ? $request : $request->execute(); } + public function getValueAdjustmentRules(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/value_adjustment_rules', + 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/ProductItemARData.php b/src/FacebookAds/Object/AdAccountDsaRecommendations.php similarity index 69% rename from src/FacebookAds/Object/ProductItemARData.php rename to src/FacebookAds/Object/AdAccountDsaRecommendations.php index 380d0e23d..b27a7c157 100644 --- a/src/FacebookAds/Object/ProductItemARData.php +++ b/src/FacebookAds/Object/AdAccountDsaRecommendations.php @@ -13,8 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\ProductItemARDataFields; -use FacebookAds\Object\Values\ProductItemARDataSurfacesValues; +use FacebookAds\Object\Fields\AdAccountDsaRecommendationsFields; /** * This class is auto-generated. @@ -25,18 +24,17 @@ * */ -class ProductItemARData extends AbstractObject { +class AdAccountDsaRecommendations extends AbstractObject { /** - * @return ProductItemARDataFields + * @return AdAccountDsaRecommendationsFields */ public static function getFieldsEnum() { - return ProductItemARDataFields::getInstance(); + return AdAccountDsaRecommendationsFields::getInstance(); } protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['Surfaces'] = ProductItemARDataSurfacesValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/AdAssetCustomizationRuleCustomizationSpec.php b/src/FacebookAds/Object/AdAssetCustomizationRuleCustomizationSpec.php new file mode 100644 index 000000000..47d060b49 --- /dev/null +++ b/src/FacebookAds/Object/AdAssetCustomizationRuleCustomizationSpec.php @@ -0,0 +1,44 @@ +getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/AdAssetFeedSpecAssetCustomizationRule.php b/src/FacebookAds/Object/AdAssetFeedSpecAssetCustomizationRule.php new file mode 100644 index 000000000..39e7d60fc --- /dev/null +++ b/src/FacebookAds/Object/AdAssetFeedSpecAssetCustomizationRule.php @@ -0,0 +1,42 @@ +getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/AdCreativeLinkData.php b/src/FacebookAds/Object/AdCreativeLinkData.php index c2082ae84..222e10713 100644 --- a/src/FacebookAds/Object/AdCreativeLinkData.php +++ b/src/FacebookAds/Object/AdCreativeLinkData.php @@ -14,7 +14,6 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\AdCreativeLinkDataFields; -use FacebookAds\Object\Values\AdCreativeLinkDataAttachmentStyleValues; use FacebookAds\Object\Values\AdCreativeLinkDataFormatOptionValues; /** @@ -37,7 +36,6 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['AttachmentStyle'] = AdCreativeLinkDataAttachmentStyleValues::getInstance()->getValues(); $ref_enums['FormatOption'] = AdCreativeLinkDataFormatOptionValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/AdSet.php b/src/FacebookAds/Object/AdSet.php index 7c8a68faf..daf930a49 100644 --- a/src/FacebookAds/Object/AdSet.php +++ b/src/FacebookAds/Object/AdSet.php @@ -252,7 +252,7 @@ public function getAds(array $fields = array(), array $params = array(), $pendin $param_types = array( 'date_preset' => 'date_preset_enum', 'effective_status' => 'list', - 'time_range' => 'Object', + 'time_range' => 'map', 'updated_since' => 'int', ); $enums = array( @@ -306,7 +306,7 @@ public function getCopies(array $fields = array(), array $params = array(), $pen 'date_preset' => 'date_preset_enum', 'effective_status' => 'list', 'is_completed' => 'bool', - 'time_range' => 'Object', + 'time_range' => 'map', ); $enums = array( 'date_preset_enum' => AdSetDatePresetValues::getInstance()->getValues(), @@ -407,8 +407,8 @@ public function getInsights(array $fields = array(), array $params = array(), $p 'summary' => 'list', 'summary_action_breakdowns' => 'list', 'time_increment' => 'string', - 'time_range' => 'Object', - 'time_ranges' => 'list', + 'time_range' => 'map', + 'time_ranges' => 'list', 'use_account_attribution_setting' => 'bool', 'use_unified_attribution_setting' => 'bool', ); @@ -458,8 +458,8 @@ public function getInsightsAsync(array $fields = array(), array $params = array( 'summary' => 'list', 'summary_action_breakdowns' => 'list', 'time_increment' => 'string', - 'time_range' => 'Object', - 'time_ranges' => 'list', + 'time_range' => 'map', + 'time_ranges' => 'list', 'use_account_attribution_setting' => 'bool', 'use_unified_attribution_setting' => 'bool', ); @@ -541,7 +541,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'am_call_tags' => 'map', 'date_preset' => 'date_preset_enum', 'from_adtable' => 'bool', - 'time_range' => 'Object', + 'time_range' => 'map', ); $enums = array( 'date_preset_enum' => array( @@ -596,6 +596,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'bid_constraints' => 'map', 'bid_strategy' => 'bid_strategy_enum', 'billing_event' => 'billing_event_enum', + 'campaign_attribution' => 'Object', 'campaign_spec' => 'Object', 'creative_sequence' => 'list', 'daily_budget' => 'unsigned int', diff --git a/src/FacebookAds/Object/AdVideo.php b/src/FacebookAds/Object/AdVideo.php index 442a130ee..7c5066100 100644 --- a/src/FacebookAds/Object/AdVideo.php +++ b/src/FacebookAds/Object/AdVideo.php @@ -23,6 +23,7 @@ use FacebookAds\Object\Values\AdVideoTypeValues; use FacebookAds\Object\Values\AdVideoUnpublishedContentTypeValues; use FacebookAds\Object\Values\AdVideoUploadPhaseValues; +use FacebookAds\Object\Values\AdVideoValidationAdPlacementsValues; use FacebookAds\Object\Values\AdVideoVideoStateValues; use FacebookAds\Object\Values\CommentCommentPrivacyValueValues; use FacebookAds\Object\Values\CommentFilterValues; @@ -67,6 +68,7 @@ protected static function getReferencedEnums() { $ref_enums['SwapMode'] = AdVideoSwapModeValues::getInstance()->getValues(); $ref_enums['UnpublishedContentType'] = AdVideoUnpublishedContentTypeValues::getInstance()->getValues(); $ref_enums['UploadPhase'] = AdVideoUploadPhaseValues::getInstance()->getValues(); + $ref_enums['ValidationAdPlacements'] = AdVideoValidationAdPlacementsValues::getInstance()->getValues(); $ref_enums['Type'] = AdVideoTypeValues::getInstance()->getValues(); $ref_enums['VideoState'] = AdVideoVideoStateValues::getInstance()->getValues(); $ref_enums['BackdatedTimeGranularity'] = AdVideoBackdatedTimeGranularityValues::getInstance()->getValues(); diff --git a/src/FacebookAds/Object/AREffectsBatchStatus.php b/src/FacebookAds/Object/AdsHistogramStats.php similarity index 79% rename from src/FacebookAds/Object/AREffectsBatchStatus.php rename to src/FacebookAds/Object/AdsHistogramStats.php index c28e324f5..6035a5acd 100644 --- a/src/FacebookAds/Object/AREffectsBatchStatus.php +++ b/src/FacebookAds/Object/AdsHistogramStats.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\AREffectsBatchStatusFields; +use FacebookAds\Object\Fields\AdsHistogramStatsFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class AREffectsBatchStatus extends AbstractObject { +class AdsHistogramStats extends AbstractObject { /** - * @return AREffectsBatchStatusFields + * @return AdsHistogramStatsFields */ public static function getFieldsEnum() { - return AREffectsBatchStatusFields::getInstance(); + return AdsHistogramStatsFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/Application.php b/src/FacebookAds/Object/Application.php index 0d8ca36fb..891ec7407 100644 --- a/src/FacebookAds/Object/Application.php +++ b/src/FacebookAds/Object/Application.php @@ -196,6 +196,7 @@ public function createActivity(array $fields = array(), array $params = array(), 'url_schemes' => 'list', 'user_id' => 'string', 'user_id_type' => 'user_id_type_enum', + 'vendor_id' => 'string', 'windows_attribution_id' => 'string', ); $enums = array( @@ -473,6 +474,7 @@ public function createAemSkanReadiness(array $fields = array(), array $params = $param_types = array( 'app_id' => 'int', 'is_aem_ready' => 'bool', + 'is_app_aem_install_ready' => 'bool', 'is_app_aem_ready' => 'bool', 'is_skan_ready' => 'bool', 'message' => 'string', @@ -794,6 +796,30 @@ public function getAuthorizedAdAccounts(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } + public function getBanned(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'uid' => 'int', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/banned', + new User(), + 'EDGE', + User::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getButtonAutoDetectionDeviceSelection(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1316,6 +1342,29 @@ public function getRoles(array $fields = array(), array $params = array(), $pend return $pending ? $request : $request->execute(); } + public function getServerDomainInfos(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, + '/server_domain_infos', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSubscribedDomains(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Avatar.php b/src/FacebookAds/Object/Avatar.php new file mode 100644 index 000000000..18200b59f --- /dev/null +++ b/src/FacebookAds/Object/Avatar.php @@ -0,0 +1,94 @@ +assureId(); + + $param_types = array( + 'client_name' => 'string', + 'client_version' => 'string', + 'force_generate' => 'bool', + 'platform' => 'string', + 'profile' => 'string', + 'sdk_version' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/models', + 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(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new Avatar(), + 'NODE', + Avatar::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AvatarProfilePicture.php b/src/FacebookAds/Object/AvatarProfilePicture.php new file mode 100644 index 000000000..bbf4e4ea7 --- /dev/null +++ b/src/FacebookAds/Object/AvatarProfilePicture.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AvatarProfilePicture(), + 'NODE', + AvatarProfilePicture::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Business.php b/src/FacebookAds/Object/Business.php index 1bae76a24..41fa821f1 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -20,9 +20,18 @@ use FacebookAds\Object\Values\AdNetworkAnalyticsSyncQueryResultOrderingColumnValues; use FacebookAds\Object\Values\AdNetworkAnalyticsSyncQueryResultOrderingTypeValues; use FacebookAds\Object\Values\AdStudyTypeValues; +use FacebookAds\Object\Values\AdVideoContainerTypeValues; +use FacebookAds\Object\Values\AdVideoContentCategoryValues; +use FacebookAds\Object\Values\AdVideoFormattingValues; +use FacebookAds\Object\Values\AdVideoOriginalProjectionTypeValues; +use FacebookAds\Object\Values\AdVideoSwapModeValues; +use FacebookAds\Object\Values\AdVideoUnpublishedContentTypeValues; +use FacebookAds\Object\Values\AdVideoUploadPhaseValues; +use FacebookAds\Object\Values\AdVideoValidationAdPlacementsValues; use FacebookAds\Object\Values\AdsPixelSortByValues; use FacebookAds\Object\Values\BusinessActionSourceValues; use FacebookAds\Object\Values\BusinessAssetSharingAgreementRequestStatusValues; +use FacebookAds\Object\Values\BusinessImageValidationAdPlacementsValues; use FacebookAds\Object\Values\BusinessPagePermittedTasksValues; use FacebookAds\Object\Values\BusinessPermittedTasksValues; use FacebookAds\Object\Values\BusinessSubverticalV2Values; @@ -1141,6 +1150,32 @@ public function getCpasMerchantConfig(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } + public function createCreativeFolder(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'description' => 'string', + 'name' => 'string', + 'parent_folder_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/creative_folders', + new BusinessCreativeFolder(), + 'EDGE', + BusinessCreativeFolder::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getCreditCards(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1315,6 +1350,35 @@ public function getExtendedCredits(array $fields = array(), array $params = arra return $pending ? $request : $request->execute(); } + public function createImage(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_placements_validation_only' => 'bool', + 'bytes' => 'string', + 'creative_folder_id' => 'string', + 'name' => 'string', + 'validation_ad_placements' => 'list', + ); + $enums = array( + 'validation_ad_placements_enum' => BusinessImageValidationAdPlacementsValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/images', + new BusinessImage(), + 'EDGE', + BusinessImage::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getInitiatedAudienceSharingRequests(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1537,6 +1601,7 @@ public function createManagedPartnerBusiness(array $fields = array(), array $par 'no_ad_account' => 'bool', 'page_name' => 'string', 'page_profile_image_url' => 'string', + 'partition_type' => 'partition_type_enum', 'partner_facebook_page_url' => 'string', 'partner_registration_countries' => 'list', 'sales_rep_email' => 'string', @@ -1549,6 +1614,11 @@ public function createManagedPartnerBusiness(array $fields = array(), array $par 'vertical' => 'vertical_enum', ); $enums = array( + 'partition_type_enum' => array( + 'AUTH', + 'FIXED', + 'FIXED_WITHOUT_PARTITION', + ), 'survey_business_type_enum' => array( 'ADVERTISER', 'AGENCY', @@ -2123,6 +2193,29 @@ public function deletePages(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function getPartnerAccountLinking(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, + '/partner_account_linking', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createPartnerPremiumOption(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2449,6 +2542,84 @@ public function createSetupManagedPartnerAdAccount(array $fields = array(), arra return $pending ? $request : $request->execute(); } + public function deleteSharePreVerifiedNumbers(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'partner_business_id' => 'string', + 'preverified_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/share_preverified_numbers', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createSharePreVerifiedNumber(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'partner_business_id' => 'string', + 'preverified_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/share_preverified_numbers', + new Business(), + 'EDGE', + Business::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createSystemUserAccessToken(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'asset' => 'list', + 'fetch_only' => 'bool', + 'scope' => 'list', + 'set_token_expires_in_60_days' => 'bool', + 'system_user_id' => 'unsigned int', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/system_user_access_tokens', + new Business(), + 'EDGE', + Business::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSystemUsers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2522,6 +2693,111 @@ public function getThirdPartyMeasurementReportDataset(array $fields = array(), a return $pending ? $request : $request->execute(); } + public function createVideo(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_placements_validation_only' => 'bool', + 'adaptive_type' => 'string', + 'animated_effect_id' => 'unsigned int', + 'application_id' => 'string', + 'asked_fun_fact_prompt_id' => 'unsigned int', + 'audio_story_wave_animation_handle' => 'string', + 'chunk_session_id' => 'string', + 'composer_entry_picker' => 'string', + 'composer_entry_point' => 'string', + 'composer_entry_time' => 'unsigned int', + 'composer_session_events_log' => 'string', + 'composer_session_id' => 'string', + 'composer_source_surface' => 'string', + 'composer_type' => 'string', + 'container_type' => 'container_type_enum', + 'content_category' => 'content_category_enum', + 'creative_folder_id' => 'string', + 'creative_tools' => 'string', + 'description' => 'string', + 'embeddable' => 'bool', + 'end_offset' => 'unsigned int', + 'fbuploader_video_file_chunk' => 'string', + 'file_size' => 'unsigned int', + 'file_url' => 'string', + 'fisheye_video_cropped' => 'bool', + 'formatting' => 'formatting_enum', + 'fov' => 'unsigned int', + 'front_z_rotation' => 'float', + 'fun_fact_prompt_id' => 'unsigned int', + 'fun_fact_toastee_id' => 'unsigned int', + 'guide' => 'list>', + 'guide_enabled' => 'bool', + 'has_nickname' => 'bool', + 'holiday_card' => 'string', + 'initial_heading' => 'unsigned int', + 'initial_pitch' => 'unsigned int', + 'instant_game_entry_point_data' => 'string', + 'is_boost_intended' => 'bool', + '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', + 'og_phrase' => 'string', + 'og_suggestion_mechanism' => 'string', + 'original_fov' => 'unsigned int', + 'original_projection_type' => 'original_projection_type_enum', + 'publish_event_id' => 'unsigned int', + 'react_mode_metadata' => 'string', + 'referenced_sticker_id' => 'string', + 'replace_video_id' => 'string', + 'slideshow_spec' => 'map', + 'source' => 'string', + 'source_instagram_media_id' => 'string', + 'spherical' => 'bool', + 'start_offset' => 'unsigned int', + 'swap_mode' => 'swap_mode_enum', + 'text_format_metadata' => 'string', + 'throwback_camera_roll_media' => 'string', + 'thumb' => 'file', + 'time_since_original_post' => 'unsigned int', + 'title' => 'string', + 'transcode_setting_properties' => 'string', + 'unpublished_content_type' => 'unpublished_content_type_enum', + 'upload_phase' => 'upload_phase_enum', + 'upload_session_id' => 'string', + 'upload_setting_properties' => 'string', + 'validation_ad_placements' => 'list', + 'video_file_chunk' => 'string', + 'video_id_original' => 'string', + 'video_start_time_ms' => 'unsigned int', + 'waterfall_id' => 'string', + ); + $enums = array( + 'container_type_enum' => AdVideoContainerTypeValues::getInstance()->getValues(), + 'content_category_enum' => AdVideoContentCategoryValues::getInstance()->getValues(), + 'formatting_enum' => AdVideoFormattingValues::getInstance()->getValues(), + 'original_projection_type_enum' => AdVideoOriginalProjectionTypeValues::getInstance()->getValues(), + 'swap_mode_enum' => AdVideoSwapModeValues::getInstance()->getValues(), + 'unpublished_content_type_enum' => AdVideoUnpublishedContentTypeValues::getInstance()->getValues(), + 'upload_phase_enum' => AdVideoUploadPhaseValues::getInstance()->getValues(), + 'validation_ad_placements_enum' => AdVideoValidationAdPlacementsValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/videos', + new AdVideo(), + 'EDGE', + AdVideo::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/BusinessCreativeFolder.php b/src/FacebookAds/Object/BusinessCreativeFolder.php new file mode 100644 index 000000000..8d23cb034 --- /dev/null +++ b/src/FacebookAds/Object/BusinessCreativeFolder.php @@ -0,0 +1,72 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BusinessCreativeFolder(), + 'NODE', + BusinessCreativeFolder::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BusinessImage.php b/src/FacebookAds/Object/BusinessImage.php index 8242f4c14..0fb6db530 100644 --- a/src/FacebookAds/Object/BusinessImage.php +++ b/src/FacebookAds/Object/BusinessImage.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\BusinessImageFields; +use FacebookAds\Object\Values\BusinessImageValidationAdPlacementsValues; /** * This class is auto-generated. @@ -26,6 +27,13 @@ class BusinessImage extends AbstractCrudObject { + /** + * @deprecated getEndpoint function is deprecated + */ + protected function getEndpoint() { + return 'images'; + } + /** * @return BusinessImageFields */ @@ -35,6 +43,7 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['ValidationAdPlacements'] = BusinessImageValidationAdPlacementsValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/ShopOrder.php b/src/FacebookAds/Object/BusinessVideo.php similarity index 83% rename from src/FacebookAds/Object/ShopOrder.php rename to src/FacebookAds/Object/BusinessVideo.php index fa56ac07d..41f6f3e22 100644 --- a/src/FacebookAds/Object/ShopOrder.php +++ b/src/FacebookAds/Object/BusinessVideo.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\ShopOrderFields; +use FacebookAds\Object\Fields\BusinessVideoFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class ShopOrder extends AbstractCrudObject { +class BusinessVideo extends AbstractCrudObject { /** - * @return ShopOrderFields + * @return BusinessVideoFields */ public static function getFieldsEnum() { - return ShopOrderFields::getInstance(); + return BusinessVideoFields::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 ShopOrder(), + new BusinessVideo(), 'NODE', - ShopOrder::getFieldsEnum()->getValues(), + BusinessVideo::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Campaign.php b/src/FacebookAds/Object/Campaign.php index 9da1ad95a..b6ba1d1c2 100644 --- a/src/FacebookAds/Object/Campaign.php +++ b/src/FacebookAds/Object/Campaign.php @@ -166,7 +166,7 @@ public function getAds(array $fields = array(), array $params = array(), $pendin $param_types = array( 'date_preset' => 'date_preset_enum', 'effective_status' => 'list', - 'time_range' => 'Object', + 'time_range' => 'map', 'updated_since' => 'int', ); $enums = array( @@ -195,7 +195,7 @@ public function getAdSets(array $fields = array(), array $params = array(), $pen 'date_preset' => 'date_preset_enum', 'effective_status' => 'list', 'is_completed' => 'bool', - 'time_range' => 'Object', + 'time_range' => 'map', ); $enums = array( 'date_preset_enum' => AdSetDatePresetValues::getInstance()->getValues(), @@ -224,7 +224,7 @@ public function getCopies(array $fields = array(), array $params = array(), $pen 'date_preset' => 'date_preset_enum', 'effective_status' => 'list', 'is_completed' => 'bool', - 'time_range' => 'Object', + 'time_range' => 'map', ); $enums = array( 'date_preset_enum' => CampaignDatePresetValues::getInstance()->getValues(), @@ -296,8 +296,8 @@ public function getInsights(array $fields = array(), array $params = array(), $p 'summary' => 'list', 'summary_action_breakdowns' => 'list', 'time_increment' => 'string', - 'time_range' => 'Object', - 'time_ranges' => 'list', + 'time_range' => 'map', + 'time_ranges' => 'list', 'use_account_attribution_setting' => 'bool', 'use_unified_attribution_setting' => 'bool', ); @@ -347,8 +347,8 @@ public function getInsightsAsync(array $fields = array(), array $params = array( 'summary' => 'list', 'summary_action_breakdowns' => 'list', 'time_increment' => 'string', - 'time_range' => 'Object', - 'time_ranges' => 'list', + 'time_range' => 'map', + 'time_ranges' => 'list', 'use_account_attribution_setting' => 'bool', 'use_unified_attribution_setting' => 'bool', ); @@ -407,7 +407,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'am_call_tags' => 'map', 'date_preset' => 'date_preset_enum', 'from_adtable' => 'bool', - 'time_range' => 'Object', + 'time_range' => 'map', ); $enums = array( 'date_preset_enum' => array( diff --git a/src/FacebookAds/Object/Dataset.php b/src/FacebookAds/Object/Dataset.php new file mode 100644 index 000000000..c5afd793e --- /dev/null +++ b/src/FacebookAds/Object/Dataset.php @@ -0,0 +1,42 @@ + 'Object', + 'placement_controls' => 'Object', ); } } diff --git a/src/FacebookAds/Object/Fields/AREffectsBatchStatusFields.php b/src/FacebookAds/Object/Fields/AdAccountDsaRecommendationsFields.php similarity index 70% rename from src/FacebookAds/Object/Fields/AREffectsBatchStatusFields.php rename to src/FacebookAds/Object/Fields/AdAccountDsaRecommendationsFields.php index 980ceef41..2e39aa851 100644 --- a/src/FacebookAds/Object/Fields/AREffectsBatchStatusFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountDsaRecommendationsFields.php @@ -20,17 +20,13 @@ * */ -class AREffectsBatchStatusFields extends AbstractEnum { +class AdAccountDsaRecommendationsFields extends AbstractEnum { - const ERRORS = 'errors'; - const PRODUCT_GROUPS = 'product_groups'; - const STATUS = 'status'; + const RECOMMENDATIONS = 'recommendations'; public function getFieldTypes() { return array( - 'errors' => 'list', - 'product_groups' => 'list', - 'status' => 'string', + 'recommendations' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/AdAccountFields.php b/src/FacebookAds/Object/Fields/AdAccountFields.php index 8b4b4b967..5f7002875 100644 --- a/src/FacebookAds/Object/Fields/AdAccountFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountFields.php @@ -27,6 +27,7 @@ class AdAccountFields extends AbstractEnum { const AD_ACCOUNT_PROMOTABLE_OBJECTS = 'ad_account_promotable_objects'; const AGE = 'age'; const AGENCY_CLIENT_DECLARATION = 'agency_client_declaration'; + const ALL_CAPABILITIES = 'all_capabilities'; const AMOUNT_SPENT = 'amount_spent'; const ATTRIBUTION_SPEC = 'attribution_spec'; const BALANCE = 'balance'; @@ -86,6 +87,7 @@ class AdAccountFields extends AbstractEnum { const TIMEZONE_NAME = 'timezone_name'; const TIMEZONE_OFFSET_HOURS_UTC = 'timezone_offset_hours_utc'; const TOS_ACCEPTED = 'tos_accepted'; + const USER_ACCESS_EXPIRE_TIME = 'user_access_expire_time'; const USER_TASKS = 'user_tasks'; const USER_TOS_ACCEPTED = 'user_tos_accepted'; const VIEWABLE_BUSINESS = 'viewable_business'; @@ -97,6 +99,7 @@ public function getFieldTypes() { 'ad_account_promotable_objects' => 'AdAccountPromotableObjects', 'age' => 'float', 'agency_client_declaration' => 'AgencyClientDeclaration', + 'all_capabilities' => 'list', 'amount_spent' => 'string', 'attribution_spec' => 'list', 'balance' => 'string', @@ -156,6 +159,7 @@ public function getFieldTypes() { 'timezone_name' => 'string', 'timezone_offset_hours_utc' => 'float', 'tos_accepted' => 'map', + 'user_access_expire_time' => 'datetime', 'user_tasks' => 'list', 'user_tos_accepted' => 'map', 'viewable_business' => 'Business', diff --git a/src/FacebookAds/Object/Fields/AdAssetCustomizationRuleCustomizationSpecFields.php b/src/FacebookAds/Object/Fields/AdAssetCustomizationRuleCustomizationSpecFields.php new file mode 100644 index 000000000..27d5b6868 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetCustomizationRuleCustomizationSpecFields.php @@ -0,0 +1,50 @@ + 'unsigned int', + 'age_min' => 'unsigned int', + 'audience_network_positions' => 'list', + 'device_platforms' => 'list', + 'facebook_positions' => 'list', + 'geo_locations' => 'TargetingGeoLocation', + 'instagram_positions' => 'list', + 'locales' => 'list', + 'messenger_positions' => 'list', + 'publisher_platforms' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecAssetCustomizationRuleFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecAssetCustomizationRuleFields.php new file mode 100644 index 000000000..3a76899f9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecAssetCustomizationRuleFields.php @@ -0,0 +1,56 @@ + 'AdAssetFeedSpecAssetLabel', + 'call_to_action_label' => 'AdAssetFeedSpecAssetLabel', + 'call_to_action_type_label' => 'AdAssetFeedSpecAssetLabel', + 'caption_label' => 'AdAssetFeedSpecAssetLabel', + 'carousel_label' => 'AdAssetFeedSpecAssetLabel', + 'customization_spec' => 'AdAssetCustomizationRuleCustomizationSpec', + 'description_label' => 'AdAssetFeedSpecAssetLabel', + 'image_label' => 'AdAssetFeedSpecAssetLabel', + 'is_default' => 'bool', + 'link_url_label' => 'AdAssetFeedSpecAssetLabel', + 'priority' => 'int', + 'title_label' => 'AdAssetFeedSpecAssetLabel', + 'video_label' => 'AdAssetFeedSpecAssetLabel', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php index e1c9dc01d..27b05b15d 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php @@ -37,6 +37,7 @@ class AdAssetFeedSpecFields extends AbstractEnum { const GROUPS = 'groups'; const IMAGES = 'images'; const LINK_URLS = 'link_urls'; + const MESSAGE_EXTENSIONS = 'message_extensions'; const OPTIMIZATION_TYPE = 'optimization_type'; const TITLES = 'titles'; const VIDEOS = 'videos'; @@ -46,7 +47,7 @@ public function getFieldTypes() { 'ad_formats' => 'list', 'additional_data' => 'Object', 'app_product_page_id' => 'string', - 'asset_customization_rules' => 'list', + 'asset_customization_rules' => 'list', 'autotranslate' => 'list', 'bodies' => 'list', 'call_to_action_types' => 'list', @@ -58,6 +59,7 @@ public function getFieldTypes() { 'groups' => 'list', 'images' => 'list', 'link_urls' => 'list', + 'message_extensions' => 'list', 'optimization_type' => 'string', 'titles' => 'list', 'videos' => 'list', diff --git a/src/FacebookAds/Object/Fields/AdAssetMessageExtensionsFields.php b/src/FacebookAds/Object/Fields/AdAssetMessageExtensionsFields.php new file mode 100644 index 000000000..4952db5e2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetMessageExtensionsFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetTargetRuleTargetingFields.php b/src/FacebookAds/Object/Fields/AdAssetTargetRuleTargetingFields.php new file mode 100644 index 000000000..88b4f1f2f --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetTargetRuleTargetingFields.php @@ -0,0 +1,46 @@ + 'unsigned int', + 'age_min' => 'unsigned int', + 'audience_network_positions' => 'list', + 'device_platforms' => 'list', + 'facebook_positions' => 'list', + 'geo_locations' => 'TargetingGeoLocation', + 'instagram_positions' => 'list', + 'publisher_platforms' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php index 077a5ba11..35797dd76 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php @@ -61,7 +61,7 @@ public function getFieldTypes() { 'ad_context' => 'string', 'additional_image_index' => 'int', 'app_link_spec' => 'AdCreativeLinkDataAppLinkSpec', - 'attachment_style' => 'AttachmentStyle', + 'attachment_style' => 'string', 'branded_content_shared_to_sponsor_status' => 'string', 'branded_content_sponsor_page_id' => 'string', 'call_to_action' => 'AdCreativeLinkDataCallToAction', diff --git a/src/FacebookAds/Object/Fields/AdFields.php b/src/FacebookAds/Object/Fields/AdFields.php index b8cab8613..4e665cccb 100644 --- a/src/FacebookAds/Object/Fields/AdFields.php +++ b/src/FacebookAds/Object/Fields/AdFields.php @@ -23,7 +23,10 @@ class AdFields extends AbstractEnum { const ACCOUNT_ID = 'account_id'; + const AD_ACTIVE_TIME = 'ad_active_time'; const AD_REVIEW_FEEDBACK = 'ad_review_feedback'; + const AD_SCHEDULE_END_TIME = 'ad_schedule_end_time'; + const AD_SCHEDULE_START_TIME = 'ad_schedule_start_time'; const ADLABELS = 'adlabels'; const ADSET = 'adset'; const ADSET_ID = 'adset_id'; @@ -68,7 +71,10 @@ class AdFields extends AbstractEnum { public function getFieldTypes() { return array( 'account_id' => 'string', + 'ad_active_time' => 'string', 'ad_review_feedback' => 'AdgroupReviewFeedback', + 'ad_schedule_end_time' => 'datetime', + 'ad_schedule_start_time' => 'datetime', 'adlabels' => 'list', 'adset' => 'AdSet', 'adset_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdImageFields.php b/src/FacebookAds/Object/Fields/AdImageFields.php index 7de21806d..9e2cbcf27 100644 --- a/src/FacebookAds/Object/Fields/AdImageFields.php +++ b/src/FacebookAds/Object/Fields/AdImageFields.php @@ -62,7 +62,7 @@ public function getFieldTypes() { 'url' => 'string', 'url_128' => 'string', 'width' => 'unsigned int', - 'bytes' => 'Object', + 'bytes' => 'string', 'copy_from' => 'Object', 'filename' => 'file', ); diff --git a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php index d02e39fe8..d8b5f4ad2 100644 --- a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php +++ b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php @@ -33,6 +33,7 @@ class AdPromotedObjectFields extends AbstractEnum { const OBJECT_STORE_URL = 'object_store_url'; const OFFER_ID = 'offer_id'; const OFFLINE_CONVERSION_DATA_SET_ID = 'offline_conversion_data_set_id'; + const OFFSITE_CONVERSION_EVENT_ID = 'offsite_conversion_event_id'; const OMNICHANNEL_OBJECT = 'omnichannel_object'; const PAGE_ID = 'page_id'; const PIXEL_AGGREGATION_RULE = 'pixel_aggregation_rule'; @@ -58,6 +59,7 @@ public function getFieldTypes() { 'object_store_url' => 'string', 'offer_id' => 'string', 'offline_conversion_data_set_id' => 'string', + 'offsite_conversion_event_id' => 'string', 'omnichannel_object' => 'Object', 'page_id' => 'string', 'pixel_aggregation_rule' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdReportRunFields.php b/src/FacebookAds/Object/Fields/AdReportRunFields.php index e80bea85f..1b16e4ee3 100644 --- a/src/FacebookAds/Object/Fields/AdReportRunFields.php +++ b/src/FacebookAds/Object/Fields/AdReportRunFields.php @@ -89,8 +89,8 @@ public function getFieldTypes() { 'summary' => 'list', 'summary_action_breakdowns' => 'list', 'time_increment' => 'string', - 'time_range' => 'Object', - 'time_ranges' => 'list', + 'time_range' => 'map', + 'time_ranges' => 'list', 'use_account_attribution_setting' => 'bool', 'use_unified_attribution_setting' => 'bool', ); diff --git a/src/FacebookAds/Object/Fields/AdSetFields.php b/src/FacebookAds/Object/Fields/AdSetFields.php index 5e42943fe..3310972b0 100644 --- a/src/FacebookAds/Object/Fields/AdSetFields.php +++ b/src/FacebookAds/Object/Fields/AdSetFields.php @@ -35,6 +35,7 @@ class AdSetFields extends AbstractEnum { const BILLING_EVENT = 'billing_event'; const BUDGET_REMAINING = 'budget_remaining'; const CAMPAIGN = 'campaign'; + const CAMPAIGN_ACTIVE_TIME = 'campaign_active_time'; const CAMPAIGN_ATTRIBUTION = 'campaign_attribution'; const CAMPAIGN_ID = 'campaign_id'; const CONFIGURED_STATUS = 'configured_status'; @@ -53,6 +54,7 @@ class AdSetFields extends AbstractEnum { const FULL_FUNNEL_EXPLORATION_MODE = 'full_funnel_exploration_mode'; const ID = 'id'; const INSTAGRAM_ACTOR_ID = 'instagram_actor_id'; + const IS_BUDGET_SCHEDULE_ENABLED = 'is_budget_schedule_enabled'; const IS_DYNAMIC_CREATIVE = 'is_dynamic_creative'; const ISSUES_INFO = 'issues_info'; const LEARNING_STAGE_INFO = 'learning_stage_info'; @@ -106,6 +108,7 @@ public function getFieldTypes() { 'billing_event' => 'BillingEvent', 'budget_remaining' => 'string', 'campaign' => 'Campaign', + 'campaign_active_time' => 'string', 'campaign_attribution' => 'string', 'campaign_id' => 'string', 'configured_status' => 'ConfiguredStatus', @@ -124,6 +127,7 @@ public function getFieldTypes() { 'full_funnel_exploration_mode' => 'string', 'id' => 'string', 'instagram_actor_id' => 'string', + 'is_budget_schedule_enabled' => 'bool', 'is_dynamic_creative' => 'bool', 'issues_info' => 'list', 'learning_stage_info' => 'AdCampaignLearningStageInfo', diff --git a/src/FacebookAds/Object/Fields/AdsActionStatsFields.php b/src/FacebookAds/Object/Fields/AdsActionStatsFields.php index 361986399..0d942de62 100644 --- a/src/FacebookAds/Object/Fields/AdsActionStatsFields.php +++ b/src/FacebookAds/Object/Fields/AdsActionStatsFields.php @@ -23,6 +23,7 @@ class AdsActionStatsFields extends AbstractEnum { const FIELD_1D_CLICK = '1d_click'; + const FIELD_1D_EV = '1d_ev'; const FIELD_1D_VIEW = '1d_view'; const FIELD_28D_CLICK = '28d_click'; const FIELD_28D_VIEW = '28d_view'; @@ -57,6 +58,7 @@ class AdsActionStatsFields extends AbstractEnum { public function getFieldTypes() { return array( '1d_click' => 'string', + '1d_ev' => 'string', '1d_view' => 'string', '28d_click' => 'string', '28d_view' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php b/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php new file mode 100644 index 000000000..64240adf7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php @@ -0,0 +1,94 @@ + 'list', + '1d_ev' => 'list', + '1d_view' => 'list', + '28d_click' => 'list', + '28d_view' => 'list', + '7d_click' => 'list', + '7d_view' => 'list', + 'action_brand' => 'string', + 'action_canvas_component_id' => 'string', + 'action_canvas_component_name' => 'string', + 'action_carousel_card_id' => 'string', + 'action_carousel_card_name' => 'string', + 'action_category' => 'string', + 'action_converted_product_id' => 'string', + 'action_destination' => 'string', + 'action_device' => 'string', + 'action_event_channel' => 'string', + 'action_link_click_destination' => 'string', + 'action_location_code' => 'string', + 'action_reaction' => 'string', + 'action_target_id' => 'string', + 'action_type' => 'string', + 'action_video_asset_id' => 'string', + 'action_video_sound' => 'string', + 'action_video_type' => 'string', + 'dda' => 'list', + 'inline' => 'list', + 'interactive_component_sticker_id' => 'string', + 'interactive_component_sticker_response' => 'string', + 'skan_click' => 'list', + 'skan_view' => 'list', + 'value' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsInsightsFields.php b/src/FacebookAds/Object/Fields/AdsInsightsFields.php index 0e902b4fe..e318f4df4 100644 --- a/src/FacebookAds/Object/Fields/AdsInsightsFields.php +++ b/src/FacebookAds/Object/Fields/AdsInsightsFields.php @@ -105,6 +105,9 @@ class AdsInsightsFields extends AbstractEnum { const INTERACTIVE_COMPONENT_TAP = 'interactive_component_tap'; const LABELS = 'labels'; 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'; + const MARKETING_MESSAGES_SPEND = 'marketing_messages_spend'; const MOBILE_APP_PURCHASE_ROAS = 'mobile_app_purchase_roas'; const OBJECTIVE = 'objective'; const OPTIMIZATION_GOAL = 'optimization_goal'; @@ -114,9 +117,6 @@ class AdsInsightsFields extends AbstractEnum { const PURCHASE_ROAS = 'purchase_roas'; const QUALIFYING_QUESTION_QUALIFY_ANSWER_RATE = 'qualifying_question_qualify_answer_rate'; const QUALITY_RANKING = 'quality_ranking'; - const QUALITY_SCORE_ECTR = 'quality_score_ectr'; - const QUALITY_SCORE_ECVR = 'quality_score_ecvr'; - const QUALITY_SCORE_ORGANIC = 'quality_score_organic'; const REACH = 'reach'; const SOCIAL_SPEND = 'social_spend'; const SPEND = 'spend'; @@ -240,6 +240,9 @@ public function getFieldTypes() { 'interactive_component_tap' => 'list', 'labels' => 'string', 'location' => 'string', + 'marketing_messages_cost_per_delivered' => 'string', + 'marketing_messages_cost_per_link_btn_click' => 'string', + 'marketing_messages_spend' => 'string', 'mobile_app_purchase_roas' => 'list', 'objective' => 'string', 'optimization_goal' => 'string', @@ -249,15 +252,12 @@ public function getFieldTypes() { 'purchase_roas' => 'list', 'qualifying_question_qualify_answer_rate' => 'string', 'quality_ranking' => 'string', - 'quality_score_ectr' => 'string', - 'quality_score_ecvr' => 'string', - 'quality_score_organic' => 'string', 'reach' => 'string', 'social_spend' => 'string', 'spend' => 'string', 'total_postbacks' => 'string', 'total_postbacks_detailed' => 'list', - 'total_postbacks_detailed_v4' => 'string', + 'total_postbacks_detailed_v4' => 'list', 'unique_actions' => 'list', 'unique_clicks' => 'string', 'unique_conversions' => 'list', @@ -280,10 +280,10 @@ public function getFieldTypes() { 'video_p75_watched_actions' => 'list', 'video_p95_watched_actions' => 'list', 'video_play_actions' => 'list', - 'video_play_curve_actions' => 'list', - 'video_play_retention_0_to_15s_actions' => 'list', - 'video_play_retention_20_to_60s_actions' => 'list', - 'video_play_retention_graph_actions' => 'list', + 'video_play_curve_actions' => 'list', + 'video_play_retention_0_to_15s_actions' => 'list', + 'video_play_retention_20_to_60s_actions' => 'list', + 'video_play_retention_graph_actions' => 'list', 'video_thruplay_watched_actions' => 'list', 'video_time_watched_actions' => 'list', 'website_ctr' => 'list', diff --git a/src/FacebookAds/Object/Fields/AdsPixelFields.php b/src/FacebookAds/Object/Fields/AdsPixelFields.php index 42135c338..b09ff1d09 100644 --- a/src/FacebookAds/Object/Fields/AdsPixelFields.php +++ b/src/FacebookAds/Object/Fields/AdsPixelFields.php @@ -53,6 +53,7 @@ class AdsPixelFields extends AbstractEnum { const OWNER_AD_ACCOUNT = 'owner_ad_account'; const OWNER_BUSINESS = 'owner_business'; const USAGE = 'usage'; + const USER_ACCESS_EXPIRE_TIME = 'user_access_expire_time'; const VALID_ENTRIES = 'valid_entries'; public function getFieldTypes() { @@ -88,6 +89,7 @@ public function getFieldTypes() { 'owner_ad_account' => 'AdAccount', 'owner_business' => 'Business', 'usage' => 'OfflineConversionDataSetUsage', + 'user_access_expire_time' => 'datetime', 'valid_entries' => 'int', ); } diff --git a/src/FacebookAds/Object/Fields/AlbumFields.php b/src/FacebookAds/Object/Fields/AlbumFields.php index c9711d59c..fd87b59e8 100644 --- a/src/FacebookAds/Object/Fields/AlbumFields.php +++ b/src/FacebookAds/Object/Fields/AlbumFields.php @@ -56,12 +56,12 @@ public function getFieldTypes() { 'cover_photo' => 'Photo', 'created_time' => 'datetime', 'description' => 'string', - 'edit_link' => 'Object', + 'edit_link' => 'string', 'event' => 'Event', 'from' => 'Object', 'id' => 'string', 'is_user_facing' => 'bool', - 'link' => 'Object', + 'link' => 'string', 'location' => 'string', 'modified_major' => 'datetime', 'name' => 'string', diff --git a/src/FacebookAds/Object/Fields/ApplicationFields.php b/src/FacebookAds/Object/Fields/ApplicationFields.php index 423c9c513..c9d0b7bce 100644 --- a/src/FacebookAds/Object/Fields/ApplicationFields.php +++ b/src/FacebookAds/Object/Fields/ApplicationFields.php @@ -99,6 +99,7 @@ class ApplicationFields extends AbstractEnum { const PRIVACY_POLICY_URL = 'privacy_policy_url'; const PROFILE_SECTION_URL = 'profile_section_url'; const PROPERTY_ID = 'property_id'; + const PROTECTED_MODE_RULES = 'protected_mode_rules'; const REAL_TIME_MODE_DEVICES = 'real_time_mode_devices'; const RESTRICTIONS = 'restrictions'; const RESTRICTIVE_DATA_FILTER_PARAMS = 'restrictive_data_filter_params'; @@ -204,6 +205,7 @@ public function getFieldTypes() { 'privacy_policy_url' => 'string', 'profile_section_url' => 'string', 'property_id' => 'string', + 'protected_mode_rules' => 'Object', 'real_time_mode_devices' => 'list', 'restrictions' => 'Object', 'restrictive_data_filter_params' => 'string', diff --git a/src/FacebookAds/Object/Fields/ShopOrderFields.php b/src/FacebookAds/Object/Fields/AvatarFields.php similarity index 83% rename from src/FacebookAds/Object/Fields/ShopOrderFields.php rename to src/FacebookAds/Object/Fields/AvatarFields.php index 8a48f21fc..108a5824f 100644 --- a/src/FacebookAds/Object/Fields/ShopOrderFields.php +++ b/src/FacebookAds/Object/Fields/AvatarFields.php @@ -20,14 +20,12 @@ * */ -class ShopOrderFields extends AbstractEnum { +class AvatarFields extends AbstractEnum { - const CREATION_TIME = 'creation_time'; const ID = 'id'; public function getFieldTypes() { return array( - 'creation_time' => 'datetime', 'id' => 'string', ); } diff --git a/src/FacebookAds/Object/Fields/AvatarProfilePictureFields.php b/src/FacebookAds/Object/Fields/AvatarProfilePictureFields.php new file mode 100644 index 000000000..93e8b5386 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AvatarProfilePictureFields.php @@ -0,0 +1,34 @@ + 'string', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessCreativeFolderFields.php b/src/FacebookAds/Object/Fields/BusinessCreativeFolderFields.php new file mode 100644 index 000000000..19c746259 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessCreativeFolderFields.php @@ -0,0 +1,48 @@ + 'Business', + 'creation_time' => 'datetime', + 'creative_insight_permissions' => 'list>', + 'description' => 'string', + 'id' => 'string', + 'media_library_url' => 'string', + 'name' => 'string', + 'owner_business' => 'Business', + 'parent_folder_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessFields.php b/src/FacebookAds/Object/Fields/BusinessFields.php index 56418d944..e96394c21 100644 --- a/src/FacebookAds/Object/Fields/BusinessFields.php +++ b/src/FacebookAds/Object/Fields/BusinessFields.php @@ -39,6 +39,7 @@ class BusinessFields extends AbstractEnum { const TWO_FACTOR_TYPE = 'two_factor_type'; const UPDATED_BY = 'updated_by'; const UPDATED_TIME = 'updated_time'; + const USER_ACCESS_EXPIRE_TIME = 'user_access_expire_time'; const VERIFICATION_STATUS = 'verification_status'; const VERTICAL = 'vertical'; const VERTICAL_ID = 'vertical_id'; @@ -62,6 +63,7 @@ public function getFieldTypes() { 'two_factor_type' => 'string', 'updated_by' => 'Object', 'updated_time' => 'datetime', + 'user_access_expire_time' => 'datetime', 'verification_status' => 'string', 'vertical' => 'string', 'vertical_id' => 'unsigned int', diff --git a/src/FacebookAds/Object/Fields/BusinessImageFields.php b/src/FacebookAds/Object/Fields/BusinessImageFields.php index b999172ec..5ba97742c 100644 --- a/src/FacebookAds/Object/Fields/BusinessImageFields.php +++ b/src/FacebookAds/Object/Fields/BusinessImageFields.php @@ -32,6 +32,10 @@ class BusinessImageFields extends AbstractEnum { const URL = 'url'; const URL_128 = 'url_128'; const WIDTH = 'width'; + const AD_PLACEMENTS_VALIDATION_ONLY = 'ad_placements_validation_only'; + const BYTES = 'bytes'; + const CREATIVE_FOLDER_ID = 'creative_folder_id'; + const VALIDATION_AD_PLACEMENTS = 'validation_ad_placements'; public function getFieldTypes() { return array( @@ -45,6 +49,10 @@ public function getFieldTypes() { 'url' => 'string', 'url_128' => 'string', 'width' => 'int', + 'ad_placements_validation_only' => 'bool', + 'bytes' => 'string', + 'creative_folder_id' => 'string', + 'validation_ad_placements' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/BusinessVideoFields.php b/src/FacebookAds/Object/Fields/BusinessVideoFields.php new file mode 100644 index 000000000..be8836191 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessVideoFields.php @@ -0,0 +1,40 @@ + 'Business', + 'id' => 'string', + 'media_library_url' => 'string', + 'name' => 'string', + 'video' => 'AdVideo', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CampaignFields.php b/src/FacebookAds/Object/Fields/CampaignFields.php index 602793e5c..7fec48e56 100644 --- a/src/FacebookAds/Object/Fields/CampaignFields.php +++ b/src/FacebookAds/Object/Fields/CampaignFields.php @@ -38,6 +38,7 @@ class CampaignFields extends AbstractEnum { const EFFECTIVE_STATUS = 'effective_status'; const HAS_SECONDARY_SKADNETWORK_REPORTING = 'has_secondary_skadnetwork_reporting'; const ID = 'id'; + const IS_BUDGET_SCHEDULE_ENABLED = 'is_budget_schedule_enabled'; const IS_SKADNETWORK_ATTRIBUTION = 'is_skadnetwork_attribution'; const ISSUES_INFO = 'issues_info'; const LAST_BUDGET_TOGGLING_TIME = 'last_budget_toggling_time'; @@ -82,6 +83,7 @@ public function getFieldTypes() { 'effective_status' => 'EffectiveStatus', 'has_secondary_skadnetwork_reporting' => 'bool', 'id' => 'string', + 'is_budget_schedule_enabled' => 'bool', 'is_skadnetwork_attribution' => 'bool', 'issues_info' => 'list', 'last_budget_toggling_time' => 'datetime', diff --git a/src/FacebookAds/Object/Fields/CommentFields.php b/src/FacebookAds/Object/Fields/CommentFields.php index 745457f59..dae245cec 100644 --- a/src/FacebookAds/Object/Fields/CommentFields.php +++ b/src/FacebookAds/Object/Fields/CommentFields.php @@ -68,7 +68,7 @@ public function getFieldTypes() { 'message_tags' => 'list', 'object' => 'Object', 'parent' => 'Comment', - 'permalink_url' => 'Object', + 'permalink_url' => 'string', 'private_reply_conversation' => 'Object', 'user_likes' => 'bool', ); diff --git a/src/FacebookAds/Object/Fields/DatasetFields.php b/src/FacebookAds/Object/Fields/DatasetFields.php new file mode 100644 index 000000000..e41cbdfb4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/DatasetFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/HighDemandPeriodFields.php b/src/FacebookAds/Object/Fields/HighDemandPeriodFields.php new file mode 100644 index 000000000..ef22b38d6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/HighDemandPeriodFields.php @@ -0,0 +1,46 @@ + 'string', + 'budget_value' => 'int', + 'budget_value_type' => 'string', + 'id' => 'string', + 'recurrence_type' => 'string', + 'time_end' => 'datetime', + 'time_start' => 'datetime', + 'weekly_schedule' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/HighDemandPeriodTimeSuggestionWeeklySegmentFields.php b/src/FacebookAds/Object/Fields/HighDemandPeriodTimeSuggestionWeeklySegmentFields.php new file mode 100644 index 000000000..adfd89ca9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/HighDemandPeriodTimeSuggestionWeeklySegmentFields.php @@ -0,0 +1,38 @@ + 'list', + 'end_minute' => 'int', + 'start_minute' => 'int', + 'timezone_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGShoppingReviewStatusFields.php b/src/FacebookAds/Object/Fields/IGShoppingReviewStatusFields.php new file mode 100644 index 000000000..d200bcb8b --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGShoppingReviewStatusFields.php @@ -0,0 +1,36 @@ + 'IGShoppingReviewStatusOnsiteEligibility', + 'reasons' => 'list', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGShoppingReviewStatusOnsiteEligibilityFields.php b/src/FacebookAds/Object/Fields/IGShoppingReviewStatusOnsiteEligibilityFields.php new file mode 100644 index 000000000..84749ea6a --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGShoppingReviewStatusOnsiteEligibilityFields.php @@ -0,0 +1,34 @@ + 'bool', + 'reasons' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGShoppingReviewStatusReasonWithHelpMessageFields.php b/src/FacebookAds/Object/Fields/IGShoppingReviewStatusReasonWithHelpMessageFields.php new file mode 100644 index 000000000..cf5bcdde6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGShoppingReviewStatusReasonWithHelpMessageFields.php @@ -0,0 +1,36 @@ + 'string', + 'help_url' => 'string', + 'message' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstagramCarouselFields.php b/src/FacebookAds/Object/Fields/InstagramCarouselFields.php new file mode 100644 index 000000000..595f12d9d --- /dev/null +++ b/src/FacebookAds/Object/Fields/InstagramCarouselFields.php @@ -0,0 +1,50 @@ + 'string', + 'comment_count' => 'int', + 'content_type' => 'int', + 'display_url' => 'string', + 'id' => 'string', + 'like_count' => 'int', + 'owner_instagram_user' => 'InstagramUser', + 'permalink' => 'string', + 'taken_at' => 'datetime', + 'video_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstagramCommentFields.php b/src/FacebookAds/Object/Fields/InstagramCommentFields.php new file mode 100644 index 000000000..e58fd30bd --- /dev/null +++ b/src/FacebookAds/Object/Fields/InstagramCommentFields.php @@ -0,0 +1,44 @@ + 'string', + 'created_at' => 'datetime', + 'id' => 'string', + 'instagram_comment_id' => 'string', + 'instagram_user' => 'InstagramUser', + 'mentioned_instagram_users' => 'list', + 'message' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstagramMediaFields.php b/src/FacebookAds/Object/Fields/InstagramMediaFields.php new file mode 100644 index 000000000..d48dfbdc3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/InstagramMediaFields.php @@ -0,0 +1,60 @@ + 'string', + 'comment_count' => 'int', + 'content_type' => 'int', + 'display_url' => 'string', + 'filter_name' => 'string', + 'id' => 'string', + 'latitude' => 'float', + 'like_count' => 'int', + 'location' => 'Location', + 'location_name' => 'string', + 'longitude' => 'float', + 'owner_instagram_user' => 'InstagramUser', + 'permalink' => 'string', + 'taken_at' => 'datetime', + 'video_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstagramVideoMetadataFields.php b/src/FacebookAds/Object/Fields/InstagramVideoMetadataFields.php new file mode 100644 index 000000000..d3585ac4f --- /dev/null +++ b/src/FacebookAds/Object/Fields/InstagramVideoMetadataFields.php @@ -0,0 +1,36 @@ + 'float', + 'height' => 'float', + 'width' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenAppointmentBookingInfoFields.php b/src/FacebookAds/Object/Fields/LeadGenAppointmentBookingInfoFields.php index 9ad1840cd..7bdfe5115 100644 --- a/src/FacebookAds/Object/Fields/LeadGenAppointmentBookingInfoFields.php +++ b/src/FacebookAds/Object/Fields/LeadGenAppointmentBookingInfoFields.php @@ -30,7 +30,7 @@ public function getFieldTypes() { return array( 'advertiser_timezone_offset' => 'string', 'appointment_durations' => 'list', - 'appointment_slots_by_day' => 'list', + 'appointment_slots_by_day' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/LeadGenAppointmentSlotsByDayFields.php b/src/FacebookAds/Object/Fields/LeadGenAppointmentSlotsByDayFields.php new file mode 100644 index 000000000..ee01e8a9b --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenAppointmentSlotsByDayFields.php @@ -0,0 +1,34 @@ + 'list', + 'day' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenAppointmentTimeSlotFields.php b/src/FacebookAds/Object/Fields/LeadGenAppointmentTimeSlotFields.php new file mode 100644 index 000000000..f2be1fef5 --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenAppointmentTimeSlotFields.php @@ -0,0 +1,34 @@ + 'unsigned int', + 'start_time' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductItemARDataFields.php b/src/FacebookAds/Object/Fields/LeadGenContextCardFields.php similarity index 51% rename from src/FacebookAds/Object/Fields/ProductItemARDataFields.php rename to src/FacebookAds/Object/Fields/LeadGenContextCardFields.php index 7dd5c6eca..908579dd2 100644 --- a/src/FacebookAds/Object/Fields/ProductItemARDataFields.php +++ b/src/FacebookAds/Object/Fields/LeadGenContextCardFields.php @@ -20,25 +20,23 @@ * */ -class ProductItemARDataFields extends AbstractEnum { +class LeadGenContextCardFields extends AbstractEnum { - const CONTAINER_EFFECT = 'container_effect'; - const EFFECT_ICON = 'effect_icon'; - const EFFECT_PARAMETERS = 'effect_parameters'; - const PICKER_ICON = 'picker_icon'; - const PRODUCT_AR_LINK = 'product_ar_link'; - const STATE = 'state'; - const SURFACES = 'surfaces'; + const BUTTON_TEXT = 'button_text'; + const CONTENT = 'content'; + const COVER_PHOTO = 'cover_photo'; + const ID = 'id'; + const STYLE = 'style'; + const TITLE = 'title'; public function getFieldTypes() { return array( - 'container_effect' => 'string', - 'effect_icon' => 'string', - 'effect_parameters' => 'Object', - 'picker_icon' => 'string', - 'product_ar_link' => 'Object', - 'state' => 'string', - 'surfaces' => 'list', + 'button_text' => 'string', + 'content' => 'list', + 'cover_photo' => 'Photo', + 'id' => 'string', + 'style' => 'string', + 'title' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/LeadGenCustomDisclaimerBodyFields.php b/src/FacebookAds/Object/Fields/LeadGenCustomDisclaimerBodyFields.php new file mode 100644 index 000000000..dccf5e59e --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenCustomDisclaimerBodyFields.php @@ -0,0 +1,34 @@ + 'string', + 'url_entities' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenCustomDisclaimerFields.php b/src/FacebookAds/Object/Fields/LeadGenCustomDisclaimerFields.php new file mode 100644 index 000000000..4523305ea --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenCustomDisclaimerFields.php @@ -0,0 +1,36 @@ + 'LeadGenCustomDisclaimerBody', + 'checkboxes' => 'list', + 'title' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenLegalContentCheckboxFields.php b/src/FacebookAds/Object/Fields/LeadGenLegalContentCheckboxFields.php new file mode 100644 index 000000000..378077d75 --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenLegalContentCheckboxFields.php @@ -0,0 +1,40 @@ + 'string', + 'is_checked_by_default' => 'bool', + 'is_required' => 'bool', + 'key' => 'string', + 'text' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenLegalContentFields.php b/src/FacebookAds/Object/Fields/LeadGenLegalContentFields.php new file mode 100644 index 000000000..d2ecf471b --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenLegalContentFields.php @@ -0,0 +1,36 @@ + 'LeadGenCustomDisclaimer', + 'id' => 'string', + 'privacy_policy' => 'LeadGenPrivacyPolicy', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenPrivacyPolicyFields.php b/src/FacebookAds/Object/Fields/LeadGenPrivacyPolicyFields.php new file mode 100644 index 000000000..ca33c5629 --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenPrivacyPolicyFields.php @@ -0,0 +1,34 @@ + 'string', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenThankYouPageFields.php b/src/FacebookAds/Object/Fields/LeadGenThankYouPageFields.php new file mode 100644 index 000000000..34052107b --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenThankYouPageFields.php @@ -0,0 +1,52 @@ + 'string', + 'business_phone_number' => 'string', + 'button_text' => 'string', + 'button_type' => 'string', + 'country_code' => 'string', + 'enable_messenger' => 'bool', + 'id' => 'string', + 'lead_gen_use_case' => 'string', + 'status' => 'string', + 'title' => 'string', + 'website_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenURLEntityAtRangesFields.php b/src/FacebookAds/Object/Fields/LeadGenURLEntityAtRangesFields.php new file mode 100644 index 000000000..251853798 --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenURLEntityAtRangesFields.php @@ -0,0 +1,36 @@ + 'unsigned int', + 'offset' => 'unsigned int', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadgenFormFields.php b/src/FacebookAds/Object/Fields/LeadgenFormFields.php index 5229d39db..5ca2eb55c 100644 --- a/src/FacebookAds/Object/Fields/LeadgenFormFields.php +++ b/src/FacebookAds/Object/Fields/LeadgenFormFields.php @@ -50,7 +50,7 @@ public function getFieldTypes() { return array( 'allow_organic_lead' => 'bool', 'block_display_for_non_targeted_viewer' => 'bool', - 'context_card' => 'Object', + 'context_card' => 'LeadGenContextCard', 'created_time' => 'datetime', 'creator' => 'User', 'expired_leads_count' => 'unsigned int', @@ -59,7 +59,7 @@ public function getFieldTypes() { 'id' => 'string', 'is_optimized_for_quality' => 'bool', 'leads_count' => 'unsigned int', - 'legal_content' => 'Object', + 'legal_content' => 'LeadGenLegalContent', 'locale' => 'string', 'name' => 'string', 'organic_leads_count' => 'unsigned int', @@ -69,7 +69,7 @@ public function getFieldTypes() { 'question_page_custom_headline' => 'string', 'questions' => 'list', 'status' => 'string', - 'thank_you_page' => 'Object', + 'thank_you_page' => 'LeadGenThankYouPage', 'tracking_parameters' => 'list>', ); } diff --git a/src/FacebookAds/Object/Fields/LiveVideoFields.php b/src/FacebookAds/Object/Fields/LiveVideoFields.php index 103b7b60a..cb4523791 100644 --- a/src/FacebookAds/Object/Fields/LiveVideoFields.php +++ b/src/FacebookAds/Object/Fields/LiveVideoFields.php @@ -68,7 +68,7 @@ public function getFieldTypes() { 'is_reference_only' => 'bool', 'live_views' => 'unsigned int', 'overlay_url' => 'string', - 'permalink_url' => 'Object', + 'permalink_url' => 'string', 'planned_start_time' => 'datetime', 'recommended_encoder_settings' => 'LiveVideoRecommendedEncoderSettings', 'seconds_left' => 'int', diff --git a/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php b/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php index b8a222f6f..b4971cfa3 100644 --- a/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php +++ b/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php @@ -47,7 +47,9 @@ class LocalServiceBusinessFields extends AbstractEnum { const ID = 'id'; const IMAGE_FETCH_STATUS = 'image_fetch_status'; const IMAGES = 'images'; + const LOCAL_INFO = 'local_info'; const LOCAL_SERVICE_BUSINESS_ID = 'local_service_business_id'; + const MAIN_LOCAL_INFO = 'main_local_info'; const PHONE = 'phone'; const PRICE = 'price'; const PRICE_RANGE = 'price_range'; @@ -87,7 +89,9 @@ public function getFieldTypes() { 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list', + 'local_info' => 'ProductItemLocalInfo', 'local_service_business_id' => 'string', + 'main_local_info' => 'ProductItemLocalInfo', 'phone' => 'string', 'price' => 'string', 'price_range' => 'string', diff --git a/src/FacebookAds/Object/Fields/MessagingFeatureStatusFields.php b/src/FacebookAds/Object/Fields/MessagingFeatureStatusFields.php index 0b35ac790..6d81f70c5 100644 --- a/src/FacebookAds/Object/Fields/MessagingFeatureStatusFields.php +++ b/src/FacebookAds/Object/Fields/MessagingFeatureStatusFields.php @@ -23,10 +23,14 @@ class MessagingFeatureStatusFields extends AbstractEnum { const HOP_V2 = 'hop_v2'; + const IG_MULTI_APP = 'ig_multi_app'; + const MSGR_MULTI_APP = 'msgr_multi_app'; public function getFieldTypes() { return array( 'hop_v2' => 'bool', + 'ig_multi_app' => 'bool', + 'msgr_multi_app' => 'bool', ); } } diff --git a/src/FacebookAds/Object/Fields/MessengerAdsPartialAutomatedStepListFields.php b/src/FacebookAds/Object/Fields/MessengerAdsPartialAutomatedStepListFields.php new file mode 100644 index 000000000..7fb6f6e7b --- /dev/null +++ b/src/FacebookAds/Object/Fields/MessengerAdsPartialAutomatedStepListFields.php @@ -0,0 +1,44 @@ + 'LeadgenForm', + 'first_step_id' => 'string', + 'id' => 'string', + 'page' => 'Page', + 'privacy_url' => 'string', + 'reminder_text' => 'string', + 'stop_question_message' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockEntityRangesFields.php b/src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockEntityRangesFields.php new file mode 100644 index 000000000..93cb601fd --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockEntityRangesFields.php @@ -0,0 +1,36 @@ + 'string', + 'length' => 'int', + 'offset' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockFields.php b/src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockFields.php new file mode 100644 index 000000000..a4db212df --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockFields.php @@ -0,0 +1,40 @@ + 'int', + 'entity_ranges' => 'list', + 'inline_style_ranges' => 'list', + 'text' => 'string', + 'type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockInlineStyleFields.php b/src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockInlineStyleFields.php new file mode 100644 index 000000000..146ba5300 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageAboutStoryComposedBlockInlineStyleFields.php @@ -0,0 +1,36 @@ + 'int', + 'offset' => 'int', + 'style' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageAboutStoryFields.php b/src/FacebookAds/Object/Fields/PageAboutStoryFields.php new file mode 100644 index 000000000..e91478a89 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageAboutStoryFields.php @@ -0,0 +1,44 @@ + 'list', + 'cover_photo' => 'Photo', + 'entity_map' => 'list', + 'id' => 'string', + 'is_published' => 'bool', + 'page_id' => 'string', + 'title' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index f5e818cf4..a51dbcc22 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -75,6 +75,7 @@ class PageFields extends AbstractEnum { const HAS_ADDED_APP = 'has_added_app'; const HAS_TRANSITIONED_TO_NEW_PAGE_EXPERIENCE = 'has_transitioned_to_new_page_experience'; const HAS_WHATSAPP_BUSINESS_NUMBER = 'has_whatsapp_business_number'; + const HAS_WHATSAPP_ENTERPRISE_NUMBER_USING_CLOUD_API = 'has_whatsapp_enterprise_number_using_cloud_api'; const HAS_WHATSAPP_NUMBER = 'has_whatsapp_number'; const HOMETOWN = 'hometown'; const HOURS = 'hours'; @@ -118,6 +119,7 @@ class PageFields extends AbstractEnum { const OFFER_ELIGIBLE = 'offer_eligible'; const OVERALL_STAR_RATING = 'overall_star_rating'; const OWNER_BUSINESS = 'owner_business'; + const PAGE_ABOUT_STORY = 'page_about_story'; const PAGE_TOKEN = 'page_token'; const PARENT_PAGE = 'parent_page'; const PARKING = 'parking'; @@ -160,6 +162,7 @@ class PageFields extends AbstractEnum { const UNREAD_MESSAGE_COUNT = 'unread_message_count'; const UNREAD_NOTIF_COUNT = 'unread_notif_count'; const UNSEEN_MESSAGE_COUNT = 'unseen_message_count'; + const USER_ACCESS_EXPIRE_TIME = 'user_access_expire_time'; const USERNAME = 'username'; const VERIFICATION_STATUS = 'verification_status'; const VOIP_INFO = 'voip_info'; @@ -223,6 +226,7 @@ public function getFieldTypes() { 'has_added_app' => 'bool', 'has_transitioned_to_new_page_experience' => 'bool', 'has_whatsapp_business_number' => 'bool', + 'has_whatsapp_enterprise_number_using_cloud_api' => 'bool', 'has_whatsapp_number' => 'bool', 'hometown' => 'string', 'hours' => 'map', @@ -266,6 +270,7 @@ public function getFieldTypes() { 'offer_eligible' => 'bool', 'overall_star_rating' => 'float', 'owner_business' => 'Business', + 'page_about_story' => 'PageAboutStory', 'page_token' => 'string', 'parent_page' => 'Page', 'parking' => 'PageParking', @@ -308,6 +313,7 @@ public function getFieldTypes() { 'unread_message_count' => 'unsigned int', 'unread_notif_count' => 'unsigned int', 'unseen_message_count' => 'unsigned int', + 'user_access_expire_time' => 'datetime', 'username' => 'string', 'verification_status' => 'string', 'voip_info' => 'VoipInfo', diff --git a/src/FacebookAds/Object/Fields/PagePostExperimentFields.php b/src/FacebookAds/Object/Fields/PagePostExperimentFields.php index 9030070d5..51df8377d 100644 --- a/src/FacebookAds/Object/Fields/PagePostExperimentFields.php +++ b/src/FacebookAds/Object/Fields/PagePostExperimentFields.php @@ -23,10 +23,13 @@ class PagePostExperimentFields extends AbstractEnum { const AUTO_RESOLVE_SETTINGS = 'auto_resolve_settings'; + const CONTROL_VIDEO_ID = 'control_video_id'; const CREATION_TIME = 'creation_time'; const CREATOR = 'creator'; const DECLARED_WINNING_TIME = 'declared_winning_time'; + const DECLARED_WINNING_VIDEO_ID = 'declared_winning_video_id'; const DESCRIPTION = 'description'; + const EXPERIMENT_VIDEO_IDS = 'experiment_video_ids'; const ID = 'id'; const INSIGHT_SNAPSHOTS = 'insight_snapshots'; const NAME = 'name'; @@ -39,10 +42,13 @@ class PagePostExperimentFields extends AbstractEnum { public function getFieldTypes() { return array( 'auto_resolve_settings' => 'Object', + 'control_video_id' => 'string', 'creation_time' => 'datetime', 'creator' => 'User', 'declared_winning_time' => 'datetime', + 'declared_winning_video_id' => 'string', 'description' => 'string', + 'experiment_video_ids' => 'list', 'id' => 'string', 'insight_snapshots' => 'list>>>', 'name' => 'string', diff --git a/src/FacebookAds/Object/Fields/PagePostFields.php b/src/FacebookAds/Object/Fields/PagePostFields.php index 812108a71..c78024db3 100644 --- a/src/FacebookAds/Object/Fields/PagePostFields.php +++ b/src/FacebookAds/Object/Fields/PagePostFields.php @@ -115,7 +115,7 @@ public function getFieldTypes() { 'multi_share_end_card' => 'bool', 'multi_share_optimized' => 'bool', 'parent_id' => 'string', - 'permalink_url' => 'Object', + 'permalink_url' => 'string', 'picture' => 'string', 'place' => 'Place', 'privacy' => 'Privacy', diff --git a/src/FacebookAds/Object/Fields/PostFields.php b/src/FacebookAds/Object/Fields/PostFields.php index 91829d84e..1cf19fbcf 100644 --- a/src/FacebookAds/Object/Fields/PostFields.php +++ b/src/FacebookAds/Object/Fields/PostFields.php @@ -119,7 +119,7 @@ public function getFieldTypes() { 'is_popular' => 'bool', 'is_published' => 'bool', 'is_spherical' => 'bool', - 'link' => 'Object', + 'link' => 'string', 'message' => 'string', 'message_tags' => 'list', 'multi_share_end_card' => 'bool', @@ -127,7 +127,7 @@ public function getFieldTypes() { 'name' => 'string', 'object_id' => 'string', 'parent_id' => 'string', - 'permalink_url' => 'Object', + 'permalink_url' => 'string', 'picture' => 'string', 'place' => 'Place', 'privacy' => 'Privacy', diff --git a/src/FacebookAds/Object/Fields/ProductCatalogFields.php b/src/FacebookAds/Object/Fields/ProductCatalogFields.php index 5284c10d1..50e7a93de 100644 --- a/src/FacebookAds/Object/Fields/ProductCatalogFields.php +++ b/src/FacebookAds/Object/Fields/ProductCatalogFields.php @@ -38,6 +38,7 @@ class ProductCatalogFields extends AbstractEnum { const OWNER_BUSINESS = 'owner_business'; const PRODUCT_COUNT = 'product_count'; const STORE_CATALOG_SETTINGS = 'store_catalog_settings'; + const USER_ACCESS_EXPIRE_TIME = 'user_access_expire_time'; const VERTICAL = 'vertical'; const CATALOG_SEGMENT_FILTER = 'catalog_segment_filter'; const CATALOG_SEGMENT_PRODUCT_SET_ID = 'catalog_segment_product_set_id'; @@ -64,6 +65,7 @@ public function getFieldTypes() { 'owner_business' => 'Business', 'product_count' => 'int', 'store_catalog_settings' => 'StoreCatalogSettings', + 'user_access_expire_time' => 'datetime', 'vertical' => 'string', 'catalog_segment_filter' => 'Object', 'catalog_segment_product_set_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/ProductImageFields.php b/src/FacebookAds/Object/Fields/ProductImageFields.php index a9f54b79d..39d706463 100644 --- a/src/FacebookAds/Object/Fields/ProductImageFields.php +++ b/src/FacebookAds/Object/Fields/ProductImageFields.php @@ -22,13 +22,17 @@ class ProductImageFields extends AbstractEnum { + const HEIGHT = 'height'; const ID = 'id'; const IMAGE_URL = 'image_url'; + const WIDTH = 'width'; public function getFieldTypes() { return array( + 'height' => 'int', 'id' => 'string', 'image_url' => 'string', + 'width' => 'int', ); } } diff --git a/src/FacebookAds/Object/Fields/ProductItemFields.php b/src/FacebookAds/Object/Fields/ProductItemFields.php index efb1728ac..76a17b45c 100644 --- a/src/FacebookAds/Object/Fields/ProductItemFields.php +++ b/src/FacebookAds/Object/Fields/ProductItemFields.php @@ -27,7 +27,6 @@ class ProductItemFields extends AbstractEnum { const ADDITIONAL_VARIANT_ATTRIBUTES = 'additional_variant_attributes'; const AGE_GROUP = 'age_group'; const APPLINKS = 'applinks'; - const AR_DATA = 'ar_data'; const AVAILABILITY = 'availability'; const BRAND = 'brand'; const CAPABILITY_TO_REVIEW_STATUS = 'capability_to_review_status'; @@ -78,6 +77,7 @@ class ProductItemFields extends AbstractEnum { const PRODUCT_CATALOG = 'product_catalog'; const PRODUCT_FEED = 'product_feed'; const PRODUCT_GROUP = 'product_group'; + const PRODUCT_LOCAL_INFO = 'product_local_info'; const PRODUCT_TYPE = 'product_type'; const QUANTITY_TO_SELL_ON_FACEBOOK = 'quantity_to_sell_on_facebook'; const RETAILER_ID = 'retailer_id'; @@ -127,7 +127,6 @@ public function getFieldTypes() { 'additional_variant_attributes' => 'list>', 'age_group' => 'AgeGroup', 'applinks' => 'CatalogItemAppLinks', - 'ar_data' => 'ProductItemARData', 'availability' => 'Availability', 'brand' => 'string', 'capability_to_review_status' => 'list>', @@ -178,6 +177,7 @@ public function getFieldTypes() { 'product_catalog' => 'ProductCatalog', 'product_feed' => 'ProductFeed', 'product_group' => 'ProductGroup', + 'product_local_info' => 'ProductItemLocalInfo', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'int', 'retailer_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/ProductItemLocalInfoFields.php b/src/FacebookAds/Object/Fields/ProductItemLocalInfoFields.php new file mode 100644 index 000000000..7fbcd13ea --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductItemLocalInfoFields.php @@ -0,0 +1,48 @@ + 'ProductItemLocalInfoLatLongShape', + 'availability_circle_radius' => 'float', + 'availability_circle_radius_unit' => 'string', + 'availability_polygon_coordinates' => 'list', + 'availability_postal_codes' => 'list', + 'availability_source' => 'string', + 'id' => 'string', + 'inferred_circle_origin' => 'ProductItemLocalInfoLatLongShape', + 'inferred_circle_radius' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductItemLocalInfoLatLongShapeFields.php b/src/FacebookAds/Object/Fields/ProductItemLocalInfoLatLongShapeFields.php new file mode 100644 index 000000000..9f7196f62 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductItemLocalInfoLatLongShapeFields.php @@ -0,0 +1,34 @@ + 'float', + 'longitude' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ReachFrequencyPredictionFields.php b/src/FacebookAds/Object/Fields/ReachFrequencyPredictionFields.php index 404331a8f..97305c152 100644 --- a/src/FacebookAds/Object/Fields/ReachFrequencyPredictionFields.php +++ b/src/FacebookAds/Object/Fields/ReachFrequencyPredictionFields.php @@ -116,6 +116,7 @@ class ReachFrequencyPredictionFields extends AbstractEnum { const EXISTING_CAMPAIGN_ID = 'existing_campaign_id'; const GRP_BUYING = 'grp_buying'; const IMPRESSION = 'impression'; + const IS_BALANCED_FREQUENCY = 'is_balanced_frequency'; const IS_FULL_VIEW = 'is_full_view'; const IS_REACH_AND_FREQUENCY_IO_BUYING = 'is_reach_and_frequency_io_buying'; const NUM_CURVE_POINTS = 'num_curve_points'; @@ -124,6 +125,8 @@ class ReachFrequencyPredictionFields extends AbstractEnum { const RF_PREDICTION_ID_TO_RELEASE = 'rf_prediction_id_to_release'; const RF_PREDICTION_ID_TO_SHARE = 'rf_prediction_id_to_share'; const STOP_TIME = 'stop_time'; + const TARGET_FREQUENCY = 'target_frequency'; + const TARGET_FREQUENCY_RESET_PERIOD = 'target_frequency_reset_period'; public function getFieldTypes() { return array( @@ -221,6 +224,7 @@ public function getFieldTypes() { 'existing_campaign_id' => 'string', 'grp_buying' => 'bool', 'impression' => 'unsigned int', + 'is_balanced_frequency' => 'bool', 'is_full_view' => 'bool', 'is_reach_and_frequency_io_buying' => 'bool', 'num_curve_points' => 'unsigned int', @@ -229,6 +233,8 @@ public function getFieldTypes() { 'rf_prediction_id_to_release' => 'string', 'rf_prediction_id_to_share' => 'string', 'stop_time' => 'unsigned int', + 'target_frequency' => 'unsigned int', + 'target_frequency_reset_period' => 'unsigned int', ); } } diff --git a/src/FacebookAds/Object/Fields/StoriesFields.php b/src/FacebookAds/Object/Fields/StoriesFields.php new file mode 100644 index 000000000..ccf2b31ee --- /dev/null +++ b/src/FacebookAds/Object/Fields/StoriesFields.php @@ -0,0 +1,40 @@ + 'string', + 'media_type' => 'string', + 'post_id' => 'string', + 'status' => 'string', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/UserFields.php b/src/FacebookAds/Object/Fields/UserFields.php index c956a575a..59a042f91 100644 --- a/src/FacebookAds/Object/Fields/UserFields.php +++ b/src/FacebookAds/Object/Fields/UserFields.php @@ -24,6 +24,7 @@ class UserFields extends AbstractEnum { const ABOUT = 'about'; const AGE_RANGE = 'age_range'; + const AVATAR_2D_PROFILE_PICTURE = 'avatar_2d_profile_picture'; const BIRTHDAY = 'birthday'; const COMMUNITY = 'community'; const COVER = 'cover'; @@ -41,6 +42,7 @@ class UserFields extends AbstractEnum { const INSTALL_TYPE = 'install_type'; const INSTALLED = 'installed'; const IS_GUEST_USER = 'is_guest_user'; + const IS_WORK_ACCOUNT = 'is_work_account'; const LANGUAGES = 'languages'; const LAST_NAME = 'last_name'; const LINK = 'link'; @@ -74,6 +76,7 @@ public function getFieldTypes() { return array( 'about' => 'string', 'age_range' => 'AgeRange', + 'avatar_2d_profile_picture' => 'AvatarProfilePicture', 'birthday' => 'string', 'community' => 'Group', 'cover' => 'UserCoverPhoto', @@ -91,6 +94,7 @@ public function getFieldTypes() { 'install_type' => 'string', 'installed' => 'bool', 'is_guest_user' => 'bool', + 'is_work_account' => 'bool', 'languages' => 'list', 'last_name' => 'string', 'link' => 'string', @@ -107,7 +111,7 @@ public function getFieldTypes() { 'profile_pic' => 'string', 'quotes' => 'string', 'relationship_status' => 'string', - 'shared_login_upgrade_required_by' => 'Object', + 'shared_login_upgrade_required_by' => 'datetime', 'short_name' => 'string', 'significant_other' => 'User', 'sports' => 'list', diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php index ea91da4c4..72640a12e 100644 --- a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php @@ -29,6 +29,7 @@ class WhatsAppBusinessAccountFields extends AbstractEnum { const CREATION_TIME = 'creation_time'; const CURRENCY = 'currency'; const ID = 'id'; + const IS_ENABLED_FOR_INSIGHTS = 'is_enabled_for_insights'; const MESSAGE_TEMPLATE_NAMESPACE = 'message_template_namespace'; const NAME = 'name'; const ON_BEHALF_OF_BUSINESS_INFO = 'on_behalf_of_business_info'; @@ -49,6 +50,7 @@ public function getFieldTypes() { 'creation_time' => 'int', 'currency' => 'string', 'id' => 'string', + 'is_enabled_for_insights' => 'bool', 'message_template_namespace' => 'string', 'name' => 'string', 'on_behalf_of_business_info' => 'Object', diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessPreVerifiedPhoneNumberFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessPreVerifiedPhoneNumberFields.php index f5762483f..a69407464 100644 --- a/src/FacebookAds/Object/Fields/WhatsAppBusinessPreVerifiedPhoneNumberFields.php +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessPreVerifiedPhoneNumberFields.php @@ -25,6 +25,7 @@ class WhatsAppBusinessPreVerifiedPhoneNumberFields extends AbstractEnum { const CODE_VERIFICATION_STATUS = 'code_verification_status'; const CODE_VERIFICATION_TIME = 'code_verification_time'; const ID = 'id'; + const OWNER_BUSINESS = 'owner_business'; const PHONE_NUMBER = 'phone_number'; const VERIFICATION_EXPIRY_TIME = 'verification_expiry_time'; @@ -33,6 +34,7 @@ public function getFieldTypes() { 'code_verification_status' => 'string', 'code_verification_time' => 'datetime', 'id' => 'string', + 'owner_business' => 'Business', 'phone_number' => 'string', 'verification_expiry_time' => 'datetime', ); diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index 20aff5a14..994dc1f6a 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -36,7 +36,6 @@ use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues; use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues; use FacebookAds\Object\Values\PostBackdatedTimeGranularityValues; -use FacebookAds\Object\Values\PostCheckinEntryPointValues; use FacebookAds\Object\Values\PostFormattingValues; use FacebookAds\Object\Values\PostPlaceAttachmentSettingValues; use FacebookAds\Object\Values\PostPostSurfacesBlacklistValues; @@ -158,6 +157,7 @@ public function createAlbum(array $fields = array(), array $params = array(), $p 'name' => 'string', 'place' => 'Object', 'privacy' => 'string', + 'session_id' => 'string', 'tags' => 'list', 'visible' => 'string', ); @@ -321,7 +321,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'backdated_time_granularity' => 'backdated_time_granularity_enum', 'call_to_action' => 'Object', 'caption' => 'string', - 'checkin_entry_point' => 'checkin_entry_point_enum', 'child_attachments' => 'list', 'client_mutation_id' => 'string', 'composer_entry_picker' => 'string', @@ -419,7 +418,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe ); $enums = array( 'backdated_time_granularity_enum' => PostBackdatedTimeGranularityValues::getInstance()->getValues(), - 'checkin_entry_point_enum' => PostCheckinEntryPointValues::getInstance()->getValues(), 'formatting_enum' => PostFormattingValues::getInstance()->getValues(), 'place_attachment_setting_enum' => PostPlaceAttachmentSettingValues::getInstance()->getValues(), 'post_surfaces_blacklist_enum' => PostPostSurfacesBlacklistValues::getInstance()->getValues(), @@ -495,11 +493,11 @@ public function createGroup(array $fields = array(), array $params = array(), $p $param_types = array( 'admin' => 'int', 'description' => 'string', - 'group_icon_id' => 'Object', + 'group_icon_id' => 'string', 'group_type' => 'group_type_enum', 'join_setting' => 'join_setting_enum', 'name' => 'string', - 'parent_id' => 'Object', + 'parent_id' => 'string', 'post_permissions' => 'post_permissions_enum', 'post_requires_admin_approval' => 'bool', 'privacy' => 'string', diff --git a/src/FacebookAds/Object/HighDemandPeriod.php b/src/FacebookAds/Object/HighDemandPeriod.php new file mode 100644 index 000000000..bf347af56 --- /dev/null +++ b/src/FacebookAds/Object/HighDemandPeriod.php @@ -0,0 +1,118 @@ +getValues(); + return $ref_enums; + } + + + public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/', + new AbstractCrudObject(), + 'NODE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new HighDemandPeriod(), + 'NODE', + HighDemandPeriod::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'budget_value' => 'unsigned int', + 'budget_value_type' => 'budget_value_type_enum', + 'time_end' => 'unsigned int', + 'time_start' => 'unsigned int', + ); + $enums = array( + 'budget_value_type_enum' => HighDemandPeriodBudgetValueTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/', + new HighDemandPeriod(), + 'NODE', + HighDemandPeriod::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/HighDemandPeriodTimeSuggestionWeeklySegment.php b/src/FacebookAds/Object/HighDemandPeriodTimeSuggestionWeeklySegment.php new file mode 100644 index 000000000..cf445a20e --- /dev/null +++ b/src/FacebookAds/Object/HighDemandPeriodTimeSuggestionWeeklySegment.php @@ -0,0 +1,42 @@ +execute(); } + public function getDataset(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/dataset', + new Dataset(), + 'EDGE', + Dataset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getInsights(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -208,6 +231,7 @@ public function createMedia(array $fields = array(), array $params = array(), $p 'audio_name' => 'string', 'caption' => 'string', 'children' => 'list', + 'collaborators' => 'list', 'cover_url' => 'string', 'image_url' => 'string', 'is_carousel_item' => 'bool', diff --git a/src/FacebookAds/Object/InstagramCarousel.php b/src/FacebookAds/Object/InstagramCarousel.php new file mode 100644 index 000000000..1b2c0142e --- /dev/null +++ b/src/FacebookAds/Object/InstagramCarousel.php @@ -0,0 +1,113 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/comments', + new InstagramComment(), + 'EDGE', + InstagramComment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createComment(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_id' => 'string', + 'message' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/comments', + new InstagramComment(), + 'EDGE', + InstagramComment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new InstagramCarousel(), + 'NODE', + InstagramCarousel::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/InstagramComment.php b/src/FacebookAds/Object/InstagramComment.php new file mode 100644 index 000000000..aeef4d2f9 --- /dev/null +++ b/src/FacebookAds/Object/InstagramComment.php @@ -0,0 +1,162 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/replies', + new InstagramComment(), + 'EDGE', + InstagramComment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createReply(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_id' => 'string', + 'message' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/replies', + new InstagramComment(), + 'EDGE', + InstagramComment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/', + new AbstractCrudObject(), + 'NODE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new InstagramComment(), + 'NODE', + InstagramComment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_id' => 'string', + 'hide' => 'bool', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/', + new InstagramComment(), + 'NODE', + InstagramComment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/InstagramMedia.php b/src/FacebookAds/Object/InstagramMedia.php new file mode 100644 index 000000000..c6522eaae --- /dev/null +++ b/src/FacebookAds/Object/InstagramMedia.php @@ -0,0 +1,113 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/comments', + new InstagramComment(), + 'EDGE', + InstagramComment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createComment(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_id' => 'string', + 'message' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/comments', + new InstagramComment(), + 'EDGE', + InstagramComment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new InstagramMedia(), + 'NODE', + InstagramMedia::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/InstagramUser.php b/src/FacebookAds/Object/InstagramUser.php index de4ba6e56..5b70fd134 100644 --- a/src/FacebookAds/Object/InstagramUser.php +++ b/src/FacebookAds/Object/InstagramUser.php @@ -62,6 +62,29 @@ public function getAgencies(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function getArEffects(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, + '/ar_effects', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getAuthorizedAdAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/InstagramVideoMetadata.php b/src/FacebookAds/Object/InstagramVideoMetadata.php new file mode 100644 index 000000000..9b493460f --- /dev/null +++ b/src/FacebookAds/Object/InstagramVideoMetadata.php @@ -0,0 +1,42 @@ +assureId(); $param_types = array( - 'uid' => 'Object', + 'uid' => 'string', ); $enums = array( ); diff --git a/src/FacebookAds/Object/MessengerAdsPartialAutomatedStepList.php b/src/FacebookAds/Object/MessengerAdsPartialAutomatedStepList.php new file mode 100644 index 000000000..afe49eccd --- /dev/null +++ b/src/FacebookAds/Object/MessengerAdsPartialAutomatedStepList.php @@ -0,0 +1,88 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/steps', + 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(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new MessengerAdsPartialAutomatedStepList(), + 'NODE', + MessengerAdsPartialAutomatedStepList::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Page.php b/src/FacebookAds/Object/Page.php index 04c891a14..82f690b82 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -44,7 +44,6 @@ use FacebookAds\Object\Values\PageAlignmentValues; use FacebookAds\Object\Values\PageAttireValues; use FacebookAds\Object\Values\PageBackdatedTimeGranularityValues; -use FacebookAds\Object\Values\PageCheckinEntryPointValues; use FacebookAds\Object\Values\PageDeveloperActionValues; use FacebookAds\Object\Values\PageEntryPointIconValues; use FacebookAds\Object\Values\PageEntryPointLabelValues; @@ -120,7 +119,6 @@ protected static function getReferencedEnums() { $ref_enums['GuestChatMode'] = PageGuestChatModeValues::getInstance()->getValues(); $ref_enums['MobileChatDisplay'] = PageMobileChatDisplayValues::getInstance()->getValues(); $ref_enums['BackdatedTimeGranularity'] = PageBackdatedTimeGranularityValues::getInstance()->getValues(); - $ref_enums['CheckinEntryPoint'] = PageCheckinEntryPointValues::getInstance()->getValues(); $ref_enums['Formatting'] = PageFormattingValues::getInstance()->getValues(); $ref_enums['PlaceAttachmentSetting'] = PagePlaceAttachmentSettingValues::getInstance()->getValues(); $ref_enums['PostSurfacesBlacklist'] = PagePostSurfacesBlacklistValues::getInstance()->getValues(); @@ -139,6 +137,29 @@ protected static function getReferencedEnums() { } + public function getAbTests(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, + '/ab_tests', + new PagePostExperiment(), + 'EDGE', + PagePostExperiment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createAcknowledgeOrder(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -440,10 +461,10 @@ public function createBlocked(array $fields = array(), array $params = array(), $this->assureId(); $param_types = array( - 'asid' => 'list', + 'asid' => 'list', 'psid' => 'list', - 'uid' => 'list', - 'user' => 'list', + 'uid' => 'list', + 'user' => 'list', ); $enums = array( ); @@ -877,6 +898,7 @@ public function createCopyrightManualClaim(array $fields = array(), array $param 'match_content_type' => 'match_content_type_enum', 'matched_asset_id' => 'string', 'reference_asset_id' => 'string', + 'selected_segments' => 'list', ); $enums = array( 'action_enum' => array( @@ -1066,6 +1088,29 @@ public function createCustomUserSetting(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } + public function getDataset(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/dataset', + new Dataset(), + 'EDGE', + Dataset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getEvents(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1192,7 +1237,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'backdated_time_granularity' => 'backdated_time_granularity_enum', 'call_to_action' => 'Object', 'caption' => 'string', - 'checkin_entry_point' => 'checkin_entry_point_enum', 'child_attachments' => 'list', 'client_mutation_id' => 'string', 'composer_entry_picker' => 'string', @@ -1291,7 +1335,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe ); $enums = array( 'backdated_time_granularity_enum' => PageBackdatedTimeGranularityValues::getInstance()->getValues(), - 'checkin_entry_point_enum' => PageCheckinEntryPointValues::getInstance()->getValues(), 'formatting_enum' => PageFormattingValues::getInstance()->getValues(), 'place_attachment_setting_enum' => PagePlaceAttachmentSettingValues::getInstance()->getValues(), 'post_surfaces_blacklist_enum' => PagePostSurfacesBlacklistValues::getInstance()->getValues(), @@ -1391,6 +1434,7 @@ public function createImageCopyright(array $fields = array(), array $params = ar $param_types = array( 'artist' => 'string', + 'attribution_link' => 'string', 'creator' => 'string', 'custom_id' => 'string', 'description' => 'string', @@ -1524,29 +1568,6 @@ public function getInstantArticlesStats(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getInvoiceAccessBankAccount(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, - '/invoice_access_bank_account', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getLeadGenForms(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1947,6 +1968,63 @@ public function getMessagingFeatureReview(array $fields = array(), array $params return $pending ? $request : $request->execute(); } + public function getMessengerLeadForms(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/messenger_lead_forms', + new MessengerAdsPartialAutomatedStepList(), + 'EDGE', + MessengerAdsPartialAutomatedStepList::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMessengerLeadForm(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'account_id' => 'unsigned int', + 'block_send_api' => 'bool', + 'exit_keyphrases' => 'string', + 'handover_app_id' => 'unsigned int', + 'handover_summary' => 'bool', + 'privacy_url' => 'string', + 'reminder_text' => 'string', + 'step_list' => 'list', + 'stop_question_message' => 'string', + 'template_name' => 'string', + 'tracking_parameters' => 'map', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/messenger_lead_forms', + new Page(), + 'EDGE', + Page::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteMessengerProfile(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2295,6 +2373,30 @@ public function createPersona(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } + public function createPhotoStory(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'photo_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/photo_stories', + new Page(), + 'EDGE', + Page::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getPhotos(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2799,6 +2901,29 @@ public function getShopSetupStatus(array $fields = array(), array $params = arra return $pending ? $request : $request->execute(); } + public function getStories(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, + '/stories', + new Stories(), + 'EDGE', + Stories::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2971,10 +3096,12 @@ public function getThreads(array $fields = array(), array $params = array(), $pe $param_types = array( 'folder' => 'string', + 'platform' => 'platform_enum', 'tags' => 'list', 'user_id' => 'string', ); $enums = array( + 'platform_enum' => UnifiedThreadPlatformValues::getInstance()->getValues(), ); $request = new ApiRequest( @@ -3159,11 +3286,12 @@ public function createVideoReel(array $fields = array(), array $params = array() $param_types = array( 'description' => 'string', 'feed_targeting' => 'Object', + 'place' => 'string', 'scheduled_publish_time' => 'datetime', 'targeting' => 'Object', 'title' => 'string', 'upload_phase' => 'upload_phase_enum', - 'video_id' => 'Object', + 'video_id' => 'string', 'video_state' => 'video_state_enum', ); $enums = array( @@ -3186,6 +3314,47 @@ public function createVideoReel(array $fields = array(), array $params = array() return $pending ? $request : $request->execute(); } + public function createVideoStory(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'description' => 'string', + 'feed_targeting' => 'Object', + 'place' => 'string', + 'scheduled_publish_time' => 'datetime', + 'targeting' => 'Object', + 'title' => 'string', + 'upload_phase' => 'upload_phase_enum', + 'video_id' => 'string', + 'video_state' => 'video_state_enum', + ); + $enums = array( + 'upload_phase_enum' => array( + 'FINISH', + 'START', + ), + 'video_state_enum' => array( + 'DRAFT', + 'PUBLISHED', + 'SCHEDULED', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/video_stories', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getVideos(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -3367,6 +3536,7 @@ public function getWelcomeMessageFlows(array $fields = array(), array $params = $this->assureId(); $param_types = array( + 'app_id' => 'string', 'flow_id' => 'string', ); $enums = array( diff --git a/src/FacebookAds/Object/PageAboutStory.php b/src/FacebookAds/Object/PageAboutStory.php new file mode 100644 index 000000000..70d142433 --- /dev/null +++ b/src/FacebookAds/Object/PageAboutStory.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PageAboutStory(), + 'NODE', + PageAboutStory::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/PageAboutStoryComposedBlock.php b/src/FacebookAds/Object/PageAboutStoryComposedBlock.php new file mode 100644 index 000000000..b4bbb9e23 --- /dev/null +++ b/src/FacebookAds/Object/PageAboutStoryComposedBlock.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/video_insights', + 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/Post.php b/src/FacebookAds/Object/Post.php index 8f7a7ff56..cd0bed976 100644 --- a/src/FacebookAds/Object/Post.php +++ b/src/FacebookAds/Object/Post.php @@ -21,7 +21,6 @@ use FacebookAds\Object\Values\InsightsResultDatePresetValues; use FacebookAds\Object\Values\InsightsResultPeriodValues; use FacebookAds\Object\Values\PostBackdatedTimeGranularityValues; -use FacebookAds\Object\Values\PostCheckinEntryPointValues; use FacebookAds\Object\Values\PostFeedStoryVisibilityValues; use FacebookAds\Object\Values\PostFormattingValues; use FacebookAds\Object\Values\PostPlaceAttachmentSettingValues; @@ -53,7 +52,6 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['BackdatedTimeGranularity'] = PostBackdatedTimeGranularityValues::getInstance()->getValues(); - $ref_enums['CheckinEntryPoint'] = PostCheckinEntryPointValues::getInstance()->getValues(); $ref_enums['Formatting'] = PostFormattingValues::getInstance()->getValues(); $ref_enums['PlaceAttachmentSetting'] = PostPlaceAttachmentSettingValues::getInstance()->getValues(); $ref_enums['PostSurfacesBlacklist'] = PostPostSurfacesBlacklistValues::getInstance()->getValues(); diff --git a/src/FacebookAds/Object/ProductCatalog.php b/src/FacebookAds/Object/ProductCatalog.php index ad97e3542..fcc5b74c7 100644 --- a/src/FacebookAds/Object/ProductCatalog.php +++ b/src/FacebookAds/Object/ProductCatalog.php @@ -168,30 +168,6 @@ public function createAgency(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function getArEffectsBatchStatus(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'handle' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/ar_effects_batch_status', - new AREffectsBatchStatus(), - 'EDGE', - AREffectsBatchStatus::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function deleteAssignedUsers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/ProductItemLocalInfo.php b/src/FacebookAds/Object/ProductItemLocalInfo.php new file mode 100644 index 000000000..e9e00de30 --- /dev/null +++ b/src/FacebookAds/Object/ProductItemLocalInfo.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ProductItemLocalInfo(), + 'NODE', + ProductItemLocalInfo::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ProductItemLocalInfoLatLongShape.php b/src/FacebookAds/Object/ProductItemLocalInfoLatLongShape.php new file mode 100644 index 000000000..dc5fd141b --- /dev/null +++ b/src/FacebookAds/Object/ProductItemLocalInfoLatLongShape.php @@ -0,0 +1,42 @@ + 'bool', 'denylist' => 'bool', 'hmac' => 'string', - 'locale' => 'list', + 'locale' => 'list', 'scopes' => 'list', 'ts' => 'datetime', ); diff --git a/src/FacebookAds/Object/User.php b/src/FacebookAds/Object/User.php index 57fe21a09..e3149a5f0 100644 --- a/src/FacebookAds/Object/User.php +++ b/src/FacebookAds/Object/User.php @@ -40,7 +40,6 @@ use FacebookAds\Object\Values\PhotoTypeValues; use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues; use FacebookAds\Object\Values\PostBackdatedTimeGranularityValues; -use FacebookAds\Object\Values\PostCheckinEntryPointValues; use FacebookAds\Object\Values\PostFormattingValues; use FacebookAds\Object\Values\PostPlaceAttachmentSettingValues; use FacebookAds\Object\Values\PostPostSurfacesBlacklistValues; @@ -49,6 +48,7 @@ use FacebookAds\Object\Values\PostUnpublishedContentTypeValues; use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; +use FacebookAds\Object\Values\UnifiedThreadPlatformValues; use FacebookAds\Object\Values\UserFilteringValues; use FacebookAds\Object\Values\UserLocalNewsMegaphoneDismissStatusValues; use FacebookAds\Object\Values\UserLocalNewsSubscriptionStatusValues; @@ -478,9 +478,9 @@ public function getAvatars(array $fields = array(), array $params = array(), $pe $this->data['id'], RequestInterface::METHOD_GET, '/avatars', - new AbstractCrudObject(), + new Avatar(), 'EDGE', - array(), + Avatar::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -598,10 +598,12 @@ public function getConversations(array $fields = array(), array $params = array( $param_types = array( 'folder' => 'string', + 'platform' => 'platform_enum', 'tags' => 'list', 'user_id' => 'string', ); $enums = array( + 'platform_enum' => UnifiedThreadPlatformValues::getInstance()->getValues(), ); $request = new ApiRequest( @@ -717,7 +719,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'backdated_time_granularity' => 'backdated_time_granularity_enum', 'call_to_action' => 'Object', 'caption' => 'string', - 'checkin_entry_point' => 'checkin_entry_point_enum', 'child_attachments' => 'list', 'client_mutation_id' => 'string', 'composer_entry_picker' => 'string', @@ -815,7 +816,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe ); $enums = array( 'backdated_time_granularity_enum' => PostBackdatedTimeGranularityValues::getInstance()->getValues(), - 'checkin_entry_point_enum' => PostCheckinEntryPointValues::getInstance()->getValues(), 'formatting_enum' => PostFormattingValues::getInstance()->getValues(), 'place_attachment_setting_enum' => PostPlaceAttachmentSettingValues::getInstance()->getValues(), 'post_surfaces_blacklist_enum' => PostPostSurfacesBlacklistValues::getInstance()->getValues(), diff --git a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php index 16556221d..cabe2cf1f 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php @@ -26,6 +26,7 @@ class AdAccountAdRulesHistoryActionValues extends AbstractEnum { const CHANGED_BID = 'CHANGED_BID'; const CHANGED_BUDGET = 'CHANGED_BUDGET'; const EMAIL = 'EMAIL'; + const ENABLE_ADVANTAGE_PLUS_CREATIVE = 'ENABLE_ADVANTAGE_PLUS_CREATIVE'; const ENABLE_AUTOFLOW = 'ENABLE_AUTOFLOW'; const ENDPOINT_PINGED = 'ENDPOINT_PINGED'; const ERROR = 'ERROR'; diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index 2748132d7..f0cfd1033 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -25,7 +25,11 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AB_TEST = 'AB_TEST'; const ACO_TOGGLE = 'ACO_TOGGLE'; const ADS_REPORTING = 'ADS_REPORTING'; + const ADVANCED_CAMPAIGN_BUDGET = 'ADVANCED_CAMPAIGN_BUDGET'; const ADVANTAGE_PLUS_CREATIVE = 'ADVANTAGE_PLUS_CREATIVE'; + const ADVANTAGE_PLUS_CREATIVE_CATALOG = 'ADVANTAGE_PLUS_CREATIVE_CATALOG'; + const ADVANTAGE_SHOPPING_CAMPAIGN = 'ADVANTAGE_SHOPPING_CAMPAIGN'; + const ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION = 'ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION'; const AD_OBJECTIVE = 'AD_OBJECTIVE'; const AEM_V2_INELIGIBLE = 'AEM_V2_INELIGIBLE'; const AGGREGATED_BID_LIMITED = 'AGGREGATED_BID_LIMITED'; @@ -35,47 +39,63 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AUCTION_OVERLAP_CONSOLIDATION = 'AUCTION_OVERLAP_CONSOLIDATION'; const AUDIENCE_EXPANSION = 'AUDIENCE_EXPANSION'; const AUTOFLOW_OPT_IN = 'AUTOFLOW_OPT_IN'; + const AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW = 'AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW'; const AUTOMATIC_PLACEMENTS = 'AUTOMATIC_PLACEMENTS'; const AUTO_BID = 'AUTO_BID'; const BROAD_TARGETING = 'BROAD_TARGETING'; const CAPI = 'CAPI'; + const CAPI_PERFORMANCE_MATCH_KEY = 'CAPI_PERFORMANCE_MATCH_KEY'; + const CASH_REWARDS_OPT_IN = 'CASH_REWARDS_OPT_IN'; const CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM = 'CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM'; const CONNECT_FACEBOOK_PAGE_TO_WHATSAPP = 'CONNECT_FACEBOOK_PAGE_TO_WHATSAPP'; const COST_GOAL = 'COST_GOAL'; const COST_GOAL_BUDGET_LIMITED = 'COST_GOAL_BUDGET_LIMITED'; const COST_GOAL_CPA_LIMITED = 'COST_GOAL_CPA_LIMITED'; + const COST_PER_RESULT = 'COST_PER_RESULT'; + const CREATION_PACKAGE_UPGRADE_TO_ASC = 'CREATION_PACKAGE_UPGRADE_TO_ASC'; const CREATIVE_BADGE = 'CREATIVE_BADGE'; const CREATIVE_FATIGUE = 'CREATIVE_FATIGUE'; const CREATIVE_FATIGUE_HOURLY = 'CREATIVE_FATIGUE_HOURLY'; const CREATIVE_LIMITED = 'CREATIVE_LIMITED'; const CREATIVE_LIMITED_HOURLY = 'CREATIVE_LIMITED_HOURLY'; + const CREATOR_ADS_PA_CONVERSION = 'CREATOR_ADS_PA_CONVERSION'; + const CTA = 'CTA'; const DEAD_LINK = 'DEAD_LINK'; + const DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET = 'DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET'; const ECOSYSTEM_BID_REDUCE_L1_CARDINALITY = 'ECOSYSTEM_BID_REDUCE_L1_CARDINALITY'; const FRAGMENTATION = 'FRAGMENTATION'; const GES_TEST = 'GES_TEST'; + const GUIDANCE_CENTER_CODE_GEN = 'GUIDANCE_CENTER_CODE_GEN'; const LEARNING_LIMITED = 'LEARNING_LIMITED'; const LOW_OUTCOME = 'LOW_OUTCOME'; + const MERLIN_GUIDANCE = 'MERLIN_GUIDANCE'; const MMT_CAROUSEL_TO_VIDEO = 'MMT_CAROUSEL_TO_VIDEO'; const MOBILE_FIRST_VIDEO = 'MOBILE_FIRST_VIDEO'; + const MR_AEMV2SUB_KCONSOLIDATION = 'MR_AEMV2SUB_KCONSOLIDATION'; const MULTI_TEXT = 'MULTI_TEXT'; const MUSIC = 'MUSIC'; const OPTIMAL_SPEND = 'OPTIMAL_SPEND'; 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 PREDICTIVE_CREATIVE_LIMITED = 'PREDICTIVE_CREATIVE_LIMITED'; const PREDICTIVE_CREATIVE_LIMITED_HOURLY = 'PREDICTIVE_CREATIVE_LIMITED_HOURLY'; + const RAPID_LEARNING_LIMITED = 'RAPID_LEARNING_LIMITED'; const REVERT = 'REVERT'; const SCALE_GOOD_CAMPAIGN = 'SCALE_GOOD_CAMPAIGN'; const SEMANTIC_BASED_AUDIENCE_EXPANSION = 'SEMANTIC_BASED_AUDIENCE_EXPANSION'; const SETUP_PIXEL = 'SETUP_PIXEL'; const SHOPS_ADS = 'SHOPS_ADS'; const SIGNALS_GROWTH_CAPI = 'SIGNALS_GROWTH_CAPI'; + const SIGNALS_GROWTH_CAPI_TABLE = 'SIGNALS_GROWTH_CAPI_TABLE'; const SIX_PLUS_MANUAL_PLACEMENTS = 'SIX_PLUS_MANUAL_PLACEMENTS'; const SPEND_LIMIT = 'SPEND_LIMIT'; const SYD_TEST_MODE = 'SYD_TEST_MODE'; const TOP_ADSETS_WITH_ADS_UNDER_CAP = 'TOP_ADSETS_WITH_ADS_UNDER_CAP'; const TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP = 'TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP'; + const UNCROP_IMAGE = 'UNCROP_IMAGE'; const UNECONOMICAL_ADS_THROTTLING = 'UNECONOMICAL_ADS_THROTTLING'; const UNUSED_BUDGET = 'UNUSED_BUDGET'; + const VIDEO_LENGTH = 'VIDEO_LENGTH'; const ZERO_IMPRESSION = 'ZERO_IMPRESSION'; } diff --git a/src/FacebookAds/Object/Values/AdAccountDeliveryEstimateOptimizationGoalValues.php b/src/FacebookAds/Object/Values/AdAccountDeliveryEstimateOptimizationGoalValues.php index 79d28f1ea..1a01837f2 100644 --- a/src/FacebookAds/Object/Values/AdAccountDeliveryEstimateOptimizationGoalValues.php +++ b/src/FacebookAds/Object/Values/AdAccountDeliveryEstimateOptimizationGoalValues.php @@ -43,6 +43,7 @@ class AdAccountDeliveryEstimateOptimizationGoalValues extends AbstractEnum { const QUALITY_CALL = 'QUALITY_CALL'; const QUALITY_LEAD = 'QUALITY_LEAD'; const REACH = 'REACH'; + const REMINDERS_SET = 'REMINDERS_SET'; const SUBSCRIBERS = 'SUBSCRIBERS'; const THRUPLAY = 'THRUPLAY'; const VALUE = 'VALUE'; diff --git a/src/FacebookAds/Object/Values/AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues.php b/src/FacebookAds/Object/Values/AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues.php index ad5ea88e8..d58a2e79f 100644 --- a/src/FacebookAds/Object/Values/AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues.php +++ b/src/FacebookAds/Object/Values/AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues.php @@ -28,6 +28,7 @@ class AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues extends AbstractE const APK_PURE = 'APK_PURE'; const APTOIDE_A1_STORE = 'APTOIDE_A1_STORE'; const BEMOBI_MOBILE_STORE = 'BEMOBI_MOBILE_STORE'; + const DIGITAL_TURBINE_STORE = 'DIGITAL_TURBINE_STORE'; const DOES_NOT_EXIST = 'DOES_NOT_EXIST'; const FB_ANDROID_STORE = 'FB_ANDROID_STORE'; const FB_CANVAS = 'FB_CANVAS'; diff --git a/src/FacebookAds/Object/Values/AdAccountSubtypeValues.php b/src/FacebookAds/Object/Values/AdAccountSubtypeValues.php index 48deec409..c0071abab 100644 --- a/src/FacebookAds/Object/Values/AdAccountSubtypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountSubtypeValues.php @@ -37,6 +37,7 @@ class AdAccountSubtypeValues extends AbstractEnum { const PRIMARY = 'PRIMARY'; const REGULATED_CATEGORIES_AUDIENCE = 'REGULATED_CATEGORIES_AUDIENCE'; const STUDY_RULE_AUDIENCE = 'STUDY_RULE_AUDIENCE'; + const SUBSCRIBER_SEGMENT = 'SUBSCRIBER_SEGMENT'; const VIDEO = 'VIDEO'; const WEBSITE = 'WEBSITE'; } diff --git a/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedAppStoreValues.php b/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedAppStoreValues.php index a67b4ed80..662fa803a 100644 --- a/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedAppStoreValues.php +++ b/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedAppStoreValues.php @@ -28,6 +28,7 @@ class AdAccountTargetingUnifiedAppStoreValues extends AbstractEnum { const APK_PURE = 'apk_pure'; const APTOIDE_A1_STORE = 'aptoide_a1_store'; const BEMOBI_MOBILE_STORE = 'bemobi_mobile_store'; + const DIGITAL_TURBINE_STORE = 'digital_turbine_store'; const DOES_NOT_EXIST = 'does_not_exist'; const FB_ANDROID_STORE = 'fb_android_store'; const FB_CANVAS = 'fb_canvas'; diff --git a/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedWhitelistedTypesValues.php b/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedWhitelistedTypesValues.php index 961553017..ff3fb78e8 100644 --- a/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedWhitelistedTypesValues.php +++ b/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedWhitelistedTypesValues.php @@ -76,6 +76,7 @@ class AdAccountTargetingUnifiedWhitelistedTypesValues extends AbstractEnum { const EXCLUDED_USER_ADCLUSTERS = 'excluded_user_adclusters'; const EXCLUDED_USER_DEVICE = 'excluded_user_device'; const EXCLUSIONS = 'exclusions'; + const EXPANDED_IMPLICIT_CUSTOM_AUDIENCES = 'expanded_implicit_custom_audiences'; const FACEBOOK_POSITIONS = 'facebook_positions'; const FAMILY_STATUSES = 'family_statuses'; const FB_DEAL_ID = 'fb_deal_id'; @@ -110,6 +111,7 @@ class AdAccountTargetingUnifiedWhitelistedTypesValues extends AbstractEnum { const LOCATION_CATEGORIES = 'location_categories'; const LOCATION_CLUSTER_IDS = 'location_cluster_ids'; const LOCATION_EXPANSION = 'location_expansion'; + const MARKETING_MESSAGE_TARGETING = 'marketing_message_targeting'; const MARKETPLACE_PRODUCT_CATEGORIES = 'marketplace_product_categories'; const MESSENGER_POSITIONS = 'messenger_positions'; const MOBILE_DEVICE_MODEL = 'mobile_device_model'; @@ -130,6 +132,7 @@ class AdAccountTargetingUnifiedWhitelistedTypesValues extends AbstractEnum { const RELATIONSHIP_STATUSES = 'relationship_statuses'; const RTB_FLAG = 'rtb_flag'; const SITE_CATEGORY = 'site_category'; + const TAFE_CA_MITIGATION_STRATEGY = 'tafe_ca_mitigation_strategy'; const TARGETING_AUTOMATION = 'targeting_automation'; const TARGETING_OPTIMIZATION = 'targeting_optimization'; const TARGETING_RELAXATION_TYPES = 'targeting_relaxation_types'; diff --git a/src/FacebookAds/Object/Values/PageCheckinEntryPointValues.php b/src/FacebookAds/Object/Values/AdAssetCustomizationRuleCustomizationSpecDevicePlatformsValues.php similarity index 64% rename from src/FacebookAds/Object/Values/PageCheckinEntryPointValues.php rename to src/FacebookAds/Object/Values/AdAssetCustomizationRuleCustomizationSpecDevicePlatformsValues.php index d11892e4a..4acfe7b2e 100644 --- a/src/FacebookAds/Object/Values/PageCheckinEntryPointValues.php +++ b/src/FacebookAds/Object/Values/AdAssetCustomizationRuleCustomizationSpecDevicePlatformsValues.php @@ -18,12 +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 PageCheckinEntryPointValues getInstance() + * @method static AdAssetCustomizationRuleCustomizationSpecDevicePlatformsValues getInstance() */ -class PageCheckinEntryPointValues extends AbstractEnum { +class AdAssetCustomizationRuleCustomizationSpecDevicePlatformsValues extends AbstractEnum { - const BRANDING_CHECKIN = 'BRANDING_CHECKIN'; - const BRANDING_OTHER = 'BRANDING_OTHER'; - const BRANDING_PHOTO = 'BRANDING_PHOTO'; - const BRANDING_STATUS = 'BRANDING_STATUS'; + const DESKTOP = 'desktop'; + const MOBILE = 'mobile'; } diff --git a/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php b/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php index d0f1e1008..bc93dbe99 100644 --- a/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php +++ b/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php @@ -25,6 +25,7 @@ class AdAssetFeedSpecCallToActionTypesValues extends AbstractEnum { const ADD_TO_CART = 'ADD_TO_CART'; const APPLY_NOW = 'APPLY_NOW'; const AUDIO_CALL = 'AUDIO_CALL'; + const BOOK_NOW = 'BOOK_NOW'; const BOOK_TRAVEL = 'BOOK_TRAVEL'; const BUY = 'BUY'; const BUY_NOW = 'BUY_NOW'; diff --git a/src/FacebookAds/Object/Values/PostCheckinEntryPointValues.php b/src/FacebookAds/Object/Values/AdAssetTargetRuleTargetingDevicePlatformsValues.php similarity index 64% rename from src/FacebookAds/Object/Values/PostCheckinEntryPointValues.php rename to src/FacebookAds/Object/Values/AdAssetTargetRuleTargetingDevicePlatformsValues.php index 38f978d09..6f9004fe6 100644 --- a/src/FacebookAds/Object/Values/PostCheckinEntryPointValues.php +++ b/src/FacebookAds/Object/Values/AdAssetTargetRuleTargetingDevicePlatformsValues.php @@ -18,12 +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 PostCheckinEntryPointValues getInstance() + * @method static AdAssetTargetRuleTargetingDevicePlatformsValues getInstance() */ -class PostCheckinEntryPointValues extends AbstractEnum { +class AdAssetTargetRuleTargetingDevicePlatformsValues extends AbstractEnum { - const BRANDING_CHECKIN = 'BRANDING_CHECKIN'; - const BRANDING_OTHER = 'BRANDING_OTHER'; - const BRANDING_PHOTO = 'BRANDING_PHOTO'; - const BRANDING_STATUS = 'BRANDING_STATUS'; + const DESKTOP = 'desktop'; + const MOBILE = 'mobile'; } diff --git a/src/FacebookAds/Object/Values/AdCampaignDeliveryEstimateOptimizationGoalValues.php b/src/FacebookAds/Object/Values/AdCampaignDeliveryEstimateOptimizationGoalValues.php index 70d991e03..169db0fe5 100644 --- a/src/FacebookAds/Object/Values/AdCampaignDeliveryEstimateOptimizationGoalValues.php +++ b/src/FacebookAds/Object/Values/AdCampaignDeliveryEstimateOptimizationGoalValues.php @@ -43,6 +43,7 @@ class AdCampaignDeliveryEstimateOptimizationGoalValues extends AbstractEnum { const QUALITY_CALL = 'QUALITY_CALL'; const QUALITY_LEAD = 'QUALITY_LEAD'; const REACH = 'REACH'; + const REMINDERS_SET = 'REMINDERS_SET'; const SUBSCRIBERS = 'SUBSCRIBERS'; const THRUPLAY = 'THRUPLAY'; const VALUE = 'VALUE'; diff --git a/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php b/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php index 8e40a9e9c..6f61dc829 100644 --- a/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php +++ b/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php @@ -25,6 +25,7 @@ class AdCreativeCallToActionTypeValues extends AbstractEnum { const ADD_TO_CART = 'ADD_TO_CART'; const APPLY_NOW = 'APPLY_NOW'; const AUDIO_CALL = 'AUDIO_CALL'; + const BOOK_NOW = 'BOOK_NOW'; const BOOK_TRAVEL = 'BOOK_TRAVEL'; const BUY = 'BUY'; const BUY_NOW = 'BUY_NOW'; diff --git a/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php b/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php index effb6344b..19f193f67 100644 --- a/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php +++ b/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php @@ -25,6 +25,7 @@ class AdCreativeLinkDataCallToActionTypeValues extends AbstractEnum { const ADD_TO_CART = 'ADD_TO_CART'; const APPLY_NOW = 'APPLY_NOW'; const AUDIO_CALL = 'AUDIO_CALL'; + const BOOK_NOW = 'BOOK_NOW'; const BOOK_TRAVEL = 'BOOK_TRAVEL'; const BUY = 'BUY'; const BUY_NOW = 'BUY_NOW'; diff --git a/src/FacebookAds/Object/Values/AdCreativeLinkDataImageOverlaySpecTextTypeValues.php b/src/FacebookAds/Object/Values/AdCreativeLinkDataImageOverlaySpecTextTypeValues.php index 336d91762..fd38bcd9d 100644 --- a/src/FacebookAds/Object/Values/AdCreativeLinkDataImageOverlaySpecTextTypeValues.php +++ b/src/FacebookAds/Object/Values/AdCreativeLinkDataImageOverlaySpecTextTypeValues.php @@ -31,4 +31,5 @@ class AdCreativeLinkDataImageOverlaySpecTextTypeValues extends AbstractEnum { const PRICE = 'price'; const STAR_RATING = 'star_rating'; const STRIKETHROUGH_PRICE = 'strikethrough_price'; + const SUSTAINABLE = 'sustainable'; } diff --git a/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php b/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php index 86d554f1b..d2f11d542 100644 --- a/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php +++ b/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php @@ -28,6 +28,8 @@ class AdPreviewAdFormatValues extends AbstractEnum { const AUDIENCE_NETWORK_REWARDED_VIDEO = 'AUDIENCE_NETWORK_REWARDED_VIDEO'; const BIZ_DISCO_FEED_MOBILE = 'BIZ_DISCO_FEED_MOBILE'; const DESKTOP_FEED_STANDARD = 'DESKTOP_FEED_STANDARD'; + const FACEBOOK_PROFILE_FEED_DESKTOP = 'FACEBOOK_PROFILE_FEED_DESKTOP'; + const FACEBOOK_PROFILE_FEED_MOBILE = 'FACEBOOK_PROFILE_FEED_MOBILE'; const FACEBOOK_REELS_BANNER = 'FACEBOOK_REELS_BANNER'; const FACEBOOK_REELS_BANNER_DESKTOP = 'FACEBOOK_REELS_BANNER_DESKTOP'; const FACEBOOK_REELS_MOBILE = 'FACEBOOK_REELS_MOBILE'; @@ -41,13 +43,14 @@ class AdPreviewAdFormatValues extends AbstractEnum { const INSTAGRAM_FEED_WEB = 'INSTAGRAM_FEED_WEB'; const INSTAGRAM_FEED_WEB_M_SITE = 'INSTAGRAM_FEED_WEB_M_SITE'; const INSTAGRAM_PROFILE_FEED = 'INSTAGRAM_PROFILE_FEED'; + const INSTAGRAM_PROFILE_REELS = 'INSTAGRAM_PROFILE_REELS'; const INSTAGRAM_REELS = 'INSTAGRAM_REELS'; const INSTAGRAM_REELS_OVERLAY = 'INSTAGRAM_REELS_OVERLAY'; const INSTAGRAM_SEARCH_CHAIN = 'INSTAGRAM_SEARCH_CHAIN'; const INSTAGRAM_SEARCH_GRID = 'INSTAGRAM_SEARCH_GRID'; const INSTAGRAM_STANDARD = 'INSTAGRAM_STANDARD'; const INSTAGRAM_STORY = 'INSTAGRAM_STORY'; - const INSTAGRAM_STORY_CAMERA_TRAY = 'INSTAGRAM_STORY_CAMERA_TRAY'; + const INSTAGRAM_STORY_EFFECT_TRAY = 'INSTAGRAM_STORY_EFFECT_TRAY'; const INSTAGRAM_STORY_WEB = 'INSTAGRAM_STORY_WEB'; const INSTAGRAM_STORY_WEB_M_SITE = 'INSTAGRAM_STORY_WEB_M_SITE'; const INSTANT_ARTICLE_RECIRCULATION_AD = 'INSTANT_ARTICLE_RECIRCULATION_AD'; diff --git a/src/FacebookAds/Object/Values/AdPreviewCreativeFeatureValues.php b/src/FacebookAds/Object/Values/AdPreviewCreativeFeatureValues.php index 67821bb00..b54c82b66 100644 --- a/src/FacebookAds/Object/Values/AdPreviewCreativeFeatureValues.php +++ b/src/FacebookAds/Object/Values/AdPreviewCreativeFeatureValues.php @@ -23,4 +23,5 @@ class AdPreviewCreativeFeatureValues extends AbstractEnum { const PROFILE_CARD = 'profile_card'; + const STANDARD_ENHANCEMENTS_CATALOG = 'standard_enhancements_catalog'; } diff --git a/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php b/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php index 0cc84f0fd..387e91db8 100644 --- a/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php +++ b/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php @@ -26,6 +26,7 @@ class AdRuleHistoryActionValues extends AbstractEnum { const CHANGED_BID = 'CHANGED_BID'; const CHANGED_BUDGET = 'CHANGED_BUDGET'; const EMAIL = 'EMAIL'; + const ENABLE_ADVANTAGE_PLUS_CREATIVE = 'ENABLE_ADVANTAGE_PLUS_CREATIVE'; const ENABLE_AUTOFLOW = 'ENABLE_AUTOFLOW'; const ENDPOINT_PINGED = 'ENDPOINT_PINGED'; const ERROR = 'ERROR'; diff --git a/src/FacebookAds/Object/Values/AdSetOptimizationGoalValues.php b/src/FacebookAds/Object/Values/AdSetOptimizationGoalValues.php index da45beabf..2ad283019 100644 --- a/src/FacebookAds/Object/Values/AdSetOptimizationGoalValues.php +++ b/src/FacebookAds/Object/Values/AdSetOptimizationGoalValues.php @@ -43,6 +43,7 @@ class AdSetOptimizationGoalValues extends AbstractEnum { const QUALITY_CALL = 'QUALITY_CALL'; const QUALITY_LEAD = 'QUALITY_LEAD'; const REACH = 'REACH'; + const REMINDERS_SET = 'REMINDERS_SET'; const SUBSCRIBERS = 'SUBSCRIBERS'; const THRUPLAY = 'THRUPLAY'; const VALUE = 'VALUE'; diff --git a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php index b866bd7fc..c04467de1 100644 --- a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +++ b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php @@ -41,7 +41,6 @@ class AdVideoContainerTypeValues extends AbstractEnum { const AUDIO_COMMENT = 'AUDIO_COMMENT'; const BROADCAST = 'BROADCAST'; const BULLETIN_ARTICLE_AUDIO = 'BULLETIN_ARTICLE_AUDIO'; - const CANDIDATE_VIDEOS_DELETED = 'CANDIDATE_VIDEOS_DELETED'; const CANVAS = 'CANVAS'; const CFC_VIDEO = 'CFC_VIDEO'; const CMS_MEDIA_MANAGER = 'CMS_MEDIA_MANAGER'; @@ -88,7 +87,6 @@ class AdVideoContainerTypeValues extends AbstractEnum { const GROUP_POST = 'GROUP_POST'; const HACK_TV = 'HACK_TV'; const HEURISTIC_CLUSTER_VIDEO = 'HEURISTIC_CLUSTER_VIDEO'; - const HEURISTIC_PREVIEW = 'HEURISTIC_PREVIEW'; const HIGHLIGHT_CLIP_VIDEO = 'HIGHLIGHT_CLIP_VIDEO'; const HUDDLE_BROADCAST = 'HUDDLE_BROADCAST'; const IG_REELS_XPV = 'IG_REELS_XPV'; @@ -104,7 +102,6 @@ class AdVideoContainerTypeValues extends AbstractEnum { const JOBS_VISUAL_INTRO_ENTRY = 'JOBS_VISUAL_INTRO_ENTRY'; const JOB_APPLICATION_VIDEO = 'JOB_APPLICATION_VIDEO'; const JOB_OPENING_VIDEO = 'JOB_OPENING_VIDEO'; - const KOTOTORO = 'KOTOTORO'; const LEARN = 'LEARN'; const LEGACY = 'LEGACY'; const LEGACY_CONTAINED_POST_BROADCAST = 'LEGACY_CONTAINED_POST_BROADCAST'; @@ -160,6 +157,7 @@ class AdVideoContainerTypeValues extends AbstractEnum { const PROFILE_INTRO_CARD = 'PROFILE_INTRO_CARD'; const PROFILE_VIDEO = 'PROFILE_VIDEO'; const PROTON = 'PROTON'; + const QUICK_CLIP_WORKPLACE_POST = 'QUICK_CLIP_WORKPLACE_POST'; const QUICK_PROMOTION = 'QUICK_PROMOTION'; const REPLACE_VIDEO = 'REPLACE_VIDEO'; const SALES_CLIENT_INTERACTION = 'SALES_CLIENT_INTERACTION'; @@ -168,7 +166,6 @@ class AdVideoContainerTypeValues extends AbstractEnum { const SLIDESHOW_ANIMOTO = 'SLIDESHOW_ANIMOTO'; const SLIDESHOW_SHAKR = 'SLIDESHOW_SHAKR'; const SLIDESHOW_VARIATION_VIDEO = 'SLIDESHOW_VARIATION_VIDEO'; - const SOTTO_CONTENT = 'SOTTO_CONTENT'; const SOUNDBITES_VIDEO = 'SOUNDBITES_VIDEO'; const SOUND_PLATFORM_STREAM = 'SOUND_PLATFORM_STREAM'; const SRT_ATTACHMENT = 'SRT_ATTACHMENT'; diff --git a/src/FacebookAds/Object/Values/AdVideoValidationAdPlacementsValues.php b/src/FacebookAds/Object/Values/AdVideoValidationAdPlacementsValues.php new file mode 100644 index 000000000..b37d6d821 --- /dev/null +++ b/src/FacebookAds/Object/Values/AdVideoValidationAdPlacementsValues.php @@ -0,0 +1,48 @@ + array( 'AUTHENTICATION', 'MARKETING', + 'MARKETING_OPTIMIZED_DELIVERY', 'SERVICE', 'UNKNOWN', 'UTILITY', @@ -232,6 +233,29 @@ public function getExtensions(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } + public function getFlows(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, + '/flows', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getMessageCampaigns(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -255,6 +279,40 @@ public function getMessageCampaigns(array $fields = array(), array $params = arr return $pending ? $request : $request->execute(); } + public function getMessageTemplatePreviews(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'add_security_recommendation' => 'bool', + 'button_types' => 'list', + 'category' => 'category_enum', + 'code_expiration_minutes' => 'unsigned int', + 'languages' => 'list', + ); + $enums = array( + 'button_types_enum' => array( + 'OTP', + ), + 'category_enum' => array( + 'AUTHENTICATION', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/message_template_previews', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteMessageTemplates(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -337,7 +395,9 @@ public function createMessageTemplate(array $fields = array(), array $params = a 'components' => 'list', 'cta_url_link_tracking_opted_out' => 'bool', 'language' => 'string', + 'message_send_ttl_seconds' => 'unsigned int', 'name' => 'string', + 'sub_category' => 'Object', ); $enums = array( 'category_enum' => WhatsAppBusinessAccountCategoryValues::getInstance()->getValues(), @@ -358,6 +418,31 @@ public function createMessageTemplate(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } + public function createMigrateMessageTemplate(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'page_number' => 'unsigned int', + 'source_waba_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/migrate_message_templates', + new WhatsAppBusinessAccount(), + 'EDGE', + WhatsAppBusinessAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getPhoneNumbers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -388,6 +473,7 @@ public function createPhoneNumber(array $fields = array(), array $params = array 'cc' => 'string', 'migrate_phone_number' => 'bool', 'phone_number' => 'string', + 'preverified_id' => 'string', 'verified_name' => 'string', ); $enums = array( @@ -573,6 +659,43 @@ public function createSubscribedApp(array $fields = array(), array $params = arr return $pending ? $request : $request->execute(); } + public function getTemplateAnalytics(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'end' => 'datetime', + 'granularity' => 'granularity_enum', + 'metric_types' => 'list', + 'start' => 'datetime', + 'template_ids' => 'list', + ); + $enums = array( + 'granularity_enum' => array( + 'DAILY', + ), + 'metric_types_enum' => array( + 'CLICKED', + 'DELIVERED', + 'READ', + 'SENT', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/template_analytics', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getTemplatePerformanceMetrics(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -598,6 +721,35 @@ public function getTemplatePerformanceMetrics(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } + public function createUpsertMessageTemplate(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'category' => 'category_enum', + 'components' => 'list', + 'languages' => 'list', + 'message_send_ttl_seconds' => 'unsigned int', + 'name' => 'string', + ); + $enums = array( + 'category_enum' => WhatsAppBusinessAccountCategoryValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/upsert_message_templates', + new WhatsAppBusinessAccount(), + 'EDGE', + WhatsAppBusinessAccount::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(); @@ -621,4 +773,28 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi return $pending ? $request : $request->execute(); } + public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'is_enabled_for_insights' => 'bool', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/', + new WhatsAppBusinessAccount(), + 'NODE', + WhatsAppBusinessAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + } diff --git a/src/FacebookAds/Object/WhatsAppBusinessPreVerifiedPhoneNumber.php b/src/FacebookAds/Object/WhatsAppBusinessPreVerifiedPhoneNumber.php index d8077f956..d7ad85f88 100644 --- a/src/FacebookAds/Object/WhatsAppBusinessPreVerifiedPhoneNumber.php +++ b/src/FacebookAds/Object/WhatsAppBusinessPreVerifiedPhoneNumber.php @@ -41,12 +41,35 @@ protected static function getReferencedEnums() { } + public function getPartners(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, + '/partners', + new Business(), + 'EDGE', + Business::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createRequestCode(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( 'code_method' => 'code_method_enum', - 'language' => 'Object', + 'language' => 'string', ); $enums = array( 'code_method_enum' => array( From c1628cbdbb4e54ab8b25dbcb2d4adb5edfc568b3 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Tue, 26 Sep 2023 10:18:24 -0700 Subject: [PATCH 04/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D49642986 fbshipit-source-id: d2c0e5d96e977082b95ff449b8e4b35a58ff7ef1 --- src/FacebookAds/ApiConfig.php | 2 +- .../Object/AdCreativeFeatureDetails.php | 42 +++++++ .../Object/AdCreativeFeaturesSpec.php | 42 +++++++ .../Object/AdCreativeSourcingSpec.php | 42 +++++++ src/FacebookAds/Object/Application.php | 47 ++++++++ src/FacebookAds/Object/AutomotiveModel.php | 4 +- .../Object/ContentPublishingLimitResponse.php | 42 +++++++ src/FacebookAds/Object/Destination.php | 4 +- .../Object/DynamicVideoMetadata.php | 65 ++++++++++ .../AdCreativeDegreesOfFreedomSpecFields.php | 2 +- .../Fields/AdCreativeFeatureDetailsFields.php | 32 +++++ .../Fields/AdCreativeFeaturesSpecFields.php | 84 +++++++++++++ .../Object/Fields/AdCreativeFields.php | 2 + .../Fields/AdCreativeSourcingSpecFields.php | 32 +++++ .../Object/Fields/AdPromotedObjectFields.php | 2 + .../Object/Fields/CampaignFields.php | 2 + .../Fields/CommerceMerchantSettingsFields.php | 2 - .../ContentPublishingLimitResponseFields.php | 34 ++++++ .../Fields/DynamicVideoMetadataFields.php | 38 ++++++ .../Object/Fields/IGCommentFields.php | 2 +- .../Object/Fields/IGCommentFromUserFields.php | 34 ++++++ .../Fields/IGShoppingProductAppealFields.php | 40 +++++++ ...ramShoppingMerchantReviewMessageFields.php | 34 ++++++ .../Fields/PagePostExperimentFields.php | 2 + .../Object/Fields/ProductItemFields.php | 2 + .../Object/Fields/ShadowIGHashtagFields.php | 34 ++++++ .../Fields/ShadowIGMediaBuilderFields.php | 36 ++++++ ...ShadowIGUserCatalogProductSearchFields.php | 46 +++++++ ...hadowIGUserCatalogProductVariantFields.php | 34 ++++++ .../Object/Fields/StoriesFields.php | 2 + .../Fields/UserAvailableCatalogsFields.php | 38 ++++++ src/FacebookAds/Object/Flight.php | 4 +- src/FacebookAds/Object/HomeListing.php | 4 +- src/FacebookAds/Object/Hotel.php | 4 +- src/FacebookAds/Object/IGCommentFromUser.php | 42 +++++++ .../Object/IGShoppingProductAppeal.php | 42 +++++++ src/FacebookAds/Object/IGUser.php | 24 ++-- ...InstagramShoppingMerchantReviewMessage.php | 42 +++++++ src/FacebookAds/Object/MediaTitle.php | 4 +- src/FacebookAds/Object/Page.php | 5 + src/FacebookAds/Object/ProductItem.php | 6 +- src/FacebookAds/Object/ShadowIGHashtag.php | 113 ++++++++++++++++++ .../Object/ShadowIGMediaBuilder.php | 65 ++++++++++ .../ShadowIGUserCatalogProductSearch.php | 42 +++++++ .../ShadowIGUserCatalogProductVariant.php | 42 +++++++ src/FacebookAds/Object/Stories.php | 2 + .../Object/UserAvailableCatalogs.php | 42 +++++++ ...ccountAdVolumeRecommendationTypeValues.php | 1 + .../Values/AdActivityEventTypeValues.php | 4 + .../Values/AdPreviewCreativeFeatureValues.php | 1 + .../Values/AdRuleUiCreationSourceValues.php | 2 + .../Values/AdsInsightsBreakdownsValues.php | 6 + .../ProductItemVideoFetchStatusValues.php | 31 +++++ .../Object/Values/StoriesStatusValues.php | 27 +++++ ...atsAppBusinessAccountSubCategoryValues.php | 28 +++++ src/FacebookAds/Object/Vehicle.php | 4 +- src/FacebookAds/Object/VehicleOffer.php | 4 +- .../Object/WhatsAppBusinessAccount.php | 59 ++++++++- 58 files changed, 1438 insertions(+), 36 deletions(-) create mode 100644 src/FacebookAds/Object/AdCreativeFeatureDetails.php create mode 100644 src/FacebookAds/Object/AdCreativeFeaturesSpec.php create mode 100644 src/FacebookAds/Object/AdCreativeSourcingSpec.php create mode 100644 src/FacebookAds/Object/ContentPublishingLimitResponse.php create mode 100644 src/FacebookAds/Object/DynamicVideoMetadata.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/ContentPublishingLimitResponseFields.php create mode 100644 src/FacebookAds/Object/Fields/DynamicVideoMetadataFields.php create mode 100644 src/FacebookAds/Object/Fields/IGCommentFromUserFields.php create mode 100644 src/FacebookAds/Object/Fields/IGShoppingProductAppealFields.php create mode 100644 src/FacebookAds/Object/Fields/InstagramShoppingMerchantReviewMessageFields.php create mode 100644 src/FacebookAds/Object/Fields/ShadowIGHashtagFields.php create mode 100644 src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php create mode 100644 src/FacebookAds/Object/Fields/ShadowIGUserCatalogProductSearchFields.php create mode 100644 src/FacebookAds/Object/Fields/ShadowIGUserCatalogProductVariantFields.php create mode 100644 src/FacebookAds/Object/Fields/UserAvailableCatalogsFields.php create mode 100644 src/FacebookAds/Object/IGCommentFromUser.php create mode 100644 src/FacebookAds/Object/IGShoppingProductAppeal.php create mode 100644 src/FacebookAds/Object/InstagramShoppingMerchantReviewMessage.php create mode 100644 src/FacebookAds/Object/ShadowIGHashtag.php create mode 100644 src/FacebookAds/Object/ShadowIGMediaBuilder.php create mode 100644 src/FacebookAds/Object/ShadowIGUserCatalogProductSearch.php create mode 100644 src/FacebookAds/Object/ShadowIGUserCatalogProductVariant.php create mode 100644 src/FacebookAds/Object/UserAvailableCatalogs.php create mode 100644 src/FacebookAds/Object/Values/ProductItemVideoFetchStatusValues.php create mode 100644 src/FacebookAds/Object/Values/StoriesStatusValues.php create mode 100644 src/FacebookAds/Object/Values/WhatsAppBusinessAccountSubCategoryValues.php diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 0a45e1854..185e2ebcc 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '18.0'; - const SDKVersion = '18.0.0'; + const SDKVersion = '18.0.1'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AdCreativeFeatureDetails.php b/src/FacebookAds/Object/AdCreativeFeatureDetails.php new file mode 100644 index 000000000..de9563a88 --- /dev/null +++ b/src/FacebookAds/Object/AdCreativeFeatureDetails.php @@ -0,0 +1,42 @@ +execute(); } + public function getIapPurchases(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'order_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/iap_purchases', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getInsightsPushSchedule(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1159,6 +1183,29 @@ public function getObjectTypes(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } + public function getObjects(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, + '/objects', + new NullNode(), + 'EDGE', + NullNode::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createOccludesPopup(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AutomotiveModel.php b/src/FacebookAds/Object/AutomotiveModel.php index ea35add99..384734651 100644 --- a/src/FacebookAds/Object/AutomotiveModel.php +++ b/src/FacebookAds/Object/AutomotiveModel.php @@ -102,9 +102,9 @@ public function getVideosMetadata(array $fields = array(), array $params = array $this->data['id'], RequestInterface::METHOD_GET, '/videos_metadata', - new AbstractCrudObject(), + new DynamicVideoMetadata(), 'EDGE', - array(), + DynamicVideoMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/ContentPublishingLimitResponse.php b/src/FacebookAds/Object/ContentPublishingLimitResponse.php new file mode 100644 index 000000000..ae92f20d4 --- /dev/null +++ b/src/FacebookAds/Object/ContentPublishingLimitResponse.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/videos_metadata', - new AbstractCrudObject(), + new DynamicVideoMetadata(), 'EDGE', - array(), + DynamicVideoMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/DynamicVideoMetadata.php b/src/FacebookAds/Object/DynamicVideoMetadata.php new file mode 100644 index 000000000..c7393d102 --- /dev/null +++ b/src/FacebookAds/Object/DynamicVideoMetadata.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new DynamicVideoMetadata(), + 'NODE', + DynamicVideoMetadata::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeDegreesOfFreedomSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeDegreesOfFreedomSpecFields.php index f5309fd6c..8a11e5ace 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeDegreesOfFreedomSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeDegreesOfFreedomSpecFields.php @@ -34,7 +34,7 @@ class AdCreativeDegreesOfFreedomSpecFields extends AbstractEnum { public function getFieldTypes() { return array( 'ad_handle_type' => 'string', - 'creative_features_spec' => 'Object', + 'creative_features_spec' => 'AdCreativeFeaturesSpec', 'degrees_of_freedom_type' => 'string', 'image_transformation_types' => 'list', 'multi_media_transformation_type' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php new file mode 100644 index 000000000..8e3a03fe7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php new file mode 100644 index 000000000..1cba352fe --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php @@ -0,0 +1,84 @@ + 'AdCreativeFeatureDetails', + 'audio' => 'AdCreativeFeatureDetails', + 'carousel_to_video' => 'AdCreativeFeatureDetails', + 'cv_transformation' => 'AdCreativeFeatureDetails', + 'description_automation' => 'AdCreativeFeatureDetails', + 'dha_optimization' => 'AdCreativeFeatureDetails', + 'ig_glados_feed' => 'AdCreativeFeatureDetails', + 'image_auto_crop' => 'AdCreativeFeatureDetails', + 'image_background_gen' => 'AdCreativeFeatureDetails', + 'image_enhancement' => 'AdCreativeFeatureDetails', + 'image_templates' => 'AdCreativeFeatureDetails', + 'image_touchups' => 'AdCreativeFeatureDetails', + 'image_uncrop' => 'AdCreativeFeatureDetails', + 'inline_comment' => 'AdCreativeFeatureDetails', + 'media_liquidity_animated_image' => 'AdCreativeFeatureDetails', + 'media_order' => 'AdCreativeFeatureDetails', + 'media_type_automation' => 'AdCreativeFeatureDetails', + 'product_extensions' => 'AdCreativeFeatureDetails', + 'product_metadata_automation' => 'AdCreativeFeatureDetails', + 'product_tags' => 'AdCreativeFeatureDetails', + 'profile_card' => 'AdCreativeFeatureDetails', + 'standard_enhancements' => 'AdCreativeFeatureDetails', + 'standard_enhancements_catalog' => 'AdCreativeFeatureDetails', + 'text_generation' => 'AdCreativeFeatureDetails', + 'text_optimizations' => 'AdCreativeFeatureDetails', + 'video_auto_crop' => 'AdCreativeFeatureDetails', + 'video_highlight' => 'AdCreativeFeatureDetails', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeFields.php b/src/FacebookAds/Object/Fields/AdCreativeFields.php index 56304ee34..ba0bc4b34 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFields.php @@ -37,6 +37,7 @@ class AdCreativeFields extends AbstractEnum { const CATEGORIZATION_CRITERIA = 'categorization_criteria'; const CATEGORY_MEDIA_SOURCE = 'category_media_source'; const COLLABORATIVE_ADS_LSB_IMAGE_BANK_ID = 'collaborative_ads_lsb_image_bank_id'; + const CREATIVE_SOURCING_SPEC = 'creative_sourcing_spec'; const DEGREES_OF_FREEDOM_SPEC = 'degrees_of_freedom_spec'; const DESTINATION_SET_ID = 'destination_set_id'; const DYNAMIC_AD_VOICE = 'dynamic_ad_voice'; @@ -107,6 +108,7 @@ public function getFieldTypes() { 'categorization_criteria' => 'string', 'category_media_source' => 'string', 'collaborative_ads_lsb_image_bank_id' => 'string', + 'creative_sourcing_spec' => 'AdCreativeSourcingSpec', 'degrees_of_freedom_spec' => 'AdCreativeDegreesOfFreedomSpec', 'destination_set_id' => 'string', 'dynamic_ad_voice' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php new file mode 100644 index 000000000..331dd1e7e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php index d8b5f4ad2..af4c1f78c 100644 --- a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php +++ b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php @@ -45,6 +45,7 @@ class AdPromotedObjectFields extends AbstractEnum { const PRODUCT_ITEM_ID = 'product_item_id'; const PRODUCT_SET_ID = 'product_set_id'; const RETENTION_DAYS = 'retention_days'; + const WHATS_APP_BUSINESS_PHONE_NUMBER_ID = 'whats_app_business_phone_number_id'; public function getFieldTypes() { return array( @@ -71,6 +72,7 @@ public function getFieldTypes() { 'product_item_id' => 'string', 'product_set_id' => 'string', 'retention_days' => 'string', + 'whats_app_business_phone_number_id' => 'Object', ); } } diff --git a/src/FacebookAds/Object/Fields/CampaignFields.php b/src/FacebookAds/Object/Fields/CampaignFields.php index 7fec48e56..be092ab28 100644 --- a/src/FacebookAds/Object/Fields/CampaignFields.php +++ b/src/FacebookAds/Object/Fields/CampaignFields.php @@ -30,6 +30,7 @@ class CampaignFields extends AbstractEnum { const BUDGET_REBALANCE_FLAG = 'budget_rebalance_flag'; const BUDGET_REMAINING = 'budget_remaining'; const BUYING_TYPE = 'buying_type'; + const CAMPAIGN_GROUP_ACTIVE_TIME = 'campaign_group_active_time'; const CAN_CREATE_BRAND_LIFT_STUDY = 'can_create_brand_lift_study'; const CAN_USE_SPEND_CAP = 'can_use_spend_cap'; const CONFIGURED_STATUS = 'configured_status'; @@ -75,6 +76,7 @@ public function getFieldTypes() { 'budget_rebalance_flag' => 'bool', 'budget_remaining' => 'string', 'buying_type' => 'string', + 'campaign_group_active_time' => 'string', 'can_create_brand_lift_study' => 'bool', 'can_use_spend_cap' => 'bool', 'configured_status' => 'ConfiguredStatus', diff --git a/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php b/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php index 53840bc13..525c786d9 100644 --- a/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php +++ b/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php @@ -24,7 +24,6 @@ class CommerceMerchantSettingsFields extends AbstractEnum { const BRAINTREE_MERCHANT_ID = 'braintree_merchant_id'; const CHECKOUT_MESSAGE = 'checkout_message'; - const COMMERCE_STORE = 'commerce_store'; const CONTACT_EMAIL = 'contact_email'; const CTA = 'cta'; const DISABLE_CHECKOUT_URLS = 'disable_checkout_urls'; @@ -53,7 +52,6 @@ public function getFieldTypes() { return array( 'braintree_merchant_id' => 'string', 'checkout_message' => 'string', - 'commerce_store' => 'Object', 'contact_email' => 'string', 'cta' => 'string', 'disable_checkout_urls' => 'bool', diff --git a/src/FacebookAds/Object/Fields/ContentPublishingLimitResponseFields.php b/src/FacebookAds/Object/Fields/ContentPublishingLimitResponseFields.php new file mode 100644 index 000000000..8bfc3c5a8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ContentPublishingLimitResponseFields.php @@ -0,0 +1,34 @@ + 'Object', + 'quota_usage' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DynamicVideoMetadataFields.php b/src/FacebookAds/Object/Fields/DynamicVideoMetadataFields.php new file mode 100644 index 000000000..8bb0fd6a4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/DynamicVideoMetadataFields.php @@ -0,0 +1,38 @@ + 'string', + 'tags' => 'list', + 'url' => 'string', + 'video' => 'AdVideo', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGCommentFields.php b/src/FacebookAds/Object/Fields/IGCommentFields.php index 0ae9d93c1..6022b743d 100644 --- a/src/FacebookAds/Object/Fields/IGCommentFields.php +++ b/src/FacebookAds/Object/Fields/IGCommentFields.php @@ -35,7 +35,7 @@ class IGCommentFields extends AbstractEnum { public function getFieldTypes() { return array( - 'from' => 'Object', + 'from' => 'IGCommentFromUser', 'hidden' => 'bool', 'id' => 'string', 'like_count' => 'int', diff --git a/src/FacebookAds/Object/Fields/IGCommentFromUserFields.php b/src/FacebookAds/Object/Fields/IGCommentFromUserFields.php new file mode 100644 index 000000000..24cef2610 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGCommentFromUserFields.php @@ -0,0 +1,34 @@ + 'string', + 'username' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGShoppingProductAppealFields.php b/src/FacebookAds/Object/Fields/IGShoppingProductAppealFields.php new file mode 100644 index 000000000..c6445dc6e --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGShoppingProductAppealFields.php @@ -0,0 +1,40 @@ + 'bool', + 'product_appeal_status' => 'string', + 'product_id' => 'int', + 'rejection_reasons' => 'list', + 'review_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstagramShoppingMerchantReviewMessageFields.php b/src/FacebookAds/Object/Fields/InstagramShoppingMerchantReviewMessageFields.php new file mode 100644 index 000000000..3a05cc1a9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/InstagramShoppingMerchantReviewMessageFields.php @@ -0,0 +1,34 @@ + 'string', + 'message' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PagePostExperimentFields.php b/src/FacebookAds/Object/Fields/PagePostExperimentFields.php index 51df8377d..72359712a 100644 --- a/src/FacebookAds/Object/Fields/PagePostExperimentFields.php +++ b/src/FacebookAds/Object/Fields/PagePostExperimentFields.php @@ -34,6 +34,7 @@ class PagePostExperimentFields extends AbstractEnum { const INSIGHT_SNAPSHOTS = 'insight_snapshots'; const NAME = 'name'; const OPTIMIZATION_GOAL = 'optimization_goal'; + const POST_VARIANT_FIELDS = 'post_variant_fields'; const PUBLISH_STATUS = 'publish_status'; const PUBLISH_TIME = 'publish_time'; const SCHEDULED_EXPERIMENT_TIMESTAMP = 'scheduled_experiment_timestamp'; @@ -53,6 +54,7 @@ public function getFieldTypes() { 'insight_snapshots' => 'list>>>', 'name' => 'string', 'optimization_goal' => 'string', + 'post_variant_fields' => 'list', 'publish_status' => 'string', 'publish_time' => 'datetime', 'scheduled_experiment_timestamp' => 'datetime', diff --git a/src/FacebookAds/Object/Fields/ProductItemFields.php b/src/FacebookAds/Object/Fields/ProductItemFields.php index 76a17b45c..1a7ab6057 100644 --- a/src/FacebookAds/Object/Fields/ProductItemFields.php +++ b/src/FacebookAds/Object/Fields/ProductItemFields.php @@ -93,6 +93,7 @@ class ProductItemFields extends AbstractEnum { const SIZE = 'size'; const START_DATE = 'start_date'; const URL = 'url'; + const VIDEO_FETCH_STATUS = 'video_fetch_status'; const VISIBILITY = 'visibility'; const WA_COMPLIANCE_CATEGORY = 'wa_compliance_category'; const ADDITIONAL_UPLOADED_IMAGE_IDS = 'additional_uploaded_image_ids'; @@ -193,6 +194,7 @@ public function getFieldTypes() { 'size' => 'string', 'start_date' => 'string', 'url' => 'string', + 'video_fetch_status' => 'VideoFetchStatus', 'visibility' => 'Visibility', 'wa_compliance_category' => 'string', 'additional_uploaded_image_ids' => 'list', diff --git a/src/FacebookAds/Object/Fields/ShadowIGHashtagFields.php b/src/FacebookAds/Object/Fields/ShadowIGHashtagFields.php new file mode 100644 index 000000000..72df56a5c --- /dev/null +++ b/src/FacebookAds/Object/Fields/ShadowIGHashtagFields.php @@ -0,0 +1,34 @@ + 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php b/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php new file mode 100644 index 000000000..65b43731e --- /dev/null +++ b/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php @@ -0,0 +1,36 @@ + 'string', + 'status' => 'string', + 'status_code' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ShadowIGUserCatalogProductSearchFields.php b/src/FacebookAds/Object/Fields/ShadowIGUserCatalogProductSearchFields.php new file mode 100644 index 000000000..ff1d1ec42 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ShadowIGUserCatalogProductSearchFields.php @@ -0,0 +1,46 @@ + 'string', + 'is_checkout_flow' => 'bool', + 'merchant_id' => 'int', + 'product_id' => 'int', + 'product_name' => 'string', + 'product_variants' => 'list', + 'retailer_id' => 'string', + 'review_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ShadowIGUserCatalogProductVariantFields.php b/src/FacebookAds/Object/Fields/ShadowIGUserCatalogProductVariantFields.php new file mode 100644 index 000000000..65db72ec0 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ShadowIGUserCatalogProductVariantFields.php @@ -0,0 +1,34 @@ + 'int', + 'variant_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/StoriesFields.php b/src/FacebookAds/Object/Fields/StoriesFields.php index ccf2b31ee..485d67100 100644 --- a/src/FacebookAds/Object/Fields/StoriesFields.php +++ b/src/FacebookAds/Object/Fields/StoriesFields.php @@ -23,6 +23,7 @@ class StoriesFields extends AbstractEnum { const CREATION_TIME = 'creation_time'; + const MEDIA_ID = 'media_id'; const MEDIA_TYPE = 'media_type'; const POST_ID = 'post_id'; const STATUS = 'status'; @@ -31,6 +32,7 @@ class StoriesFields extends AbstractEnum { public function getFieldTypes() { return array( 'creation_time' => 'string', + 'media_id' => 'string', 'media_type' => 'string', 'post_id' => 'string', 'status' => 'string', diff --git a/src/FacebookAds/Object/Fields/UserAvailableCatalogsFields.php b/src/FacebookAds/Object/Fields/UserAvailableCatalogsFields.php new file mode 100644 index 000000000..cbb1b2858 --- /dev/null +++ b/src/FacebookAds/Object/Fields/UserAvailableCatalogsFields.php @@ -0,0 +1,38 @@ + 'string', + 'catalog_name' => 'string', + 'product_count' => 'int', + 'shop_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Flight.php b/src/FacebookAds/Object/Flight.php index 64f319a5f..0df71fc54 100644 --- a/src/FacebookAds/Object/Flight.php +++ b/src/FacebookAds/Object/Flight.php @@ -102,9 +102,9 @@ public function getVideosMetadata(array $fields = array(), array $params = array $this->data['id'], RequestInterface::METHOD_GET, '/videos_metadata', - new AbstractCrudObject(), + new DynamicVideoMetadata(), 'EDGE', - array(), + DynamicVideoMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/HomeListing.php b/src/FacebookAds/Object/HomeListing.php index 6f3b03e7b..01c8552d1 100644 --- a/src/FacebookAds/Object/HomeListing.php +++ b/src/FacebookAds/Object/HomeListing.php @@ -109,9 +109,9 @@ public function getVideosMetadata(array $fields = array(), array $params = array $this->data['id'], RequestInterface::METHOD_GET, '/videos_metadata', - new AbstractCrudObject(), + new DynamicVideoMetadata(), 'EDGE', - array(), + DynamicVideoMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Hotel.php b/src/FacebookAds/Object/Hotel.php index ccd34947f..8efa107a9 100644 --- a/src/FacebookAds/Object/Hotel.php +++ b/src/FacebookAds/Object/Hotel.php @@ -132,9 +132,9 @@ public function getVideosMetadata(array $fields = array(), array $params = array $this->data['id'], RequestInterface::METHOD_GET, '/videos_metadata', - new AbstractCrudObject(), + new DynamicVideoMetadata(), 'EDGE', - array(), + DynamicVideoMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/IGCommentFromUser.php b/src/FacebookAds/Object/IGCommentFromUser.php new file mode 100644 index 000000000..ab04357b4 --- /dev/null +++ b/src/FacebookAds/Object/IGCommentFromUser.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/available_catalogs', - new AbstractCrudObject(), + new UserAvailableCatalogs(), 'EDGE', - array(), + UserAvailableCatalogs::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -82,9 +82,9 @@ public function getCatalogProductSearch(array $fields = array(), array $params = $this->data['id'], RequestInterface::METHOD_GET, '/catalog_product_search', - new AbstractCrudObject(), + new ShadowIGUserCatalogProductSearch(), 'EDGE', - array(), + ShadowIGUserCatalogProductSearch::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -106,9 +106,9 @@ public function getContentPublishingLimit(array $fields = array(), array $params $this->data['id'], RequestInterface::METHOD_GET, '/content_publishing_limit', - new AbstractCrudObject(), + new ContentPublishingLimitResponse(), 'EDGE', - array(), + ContentPublishingLimitResponse::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -348,9 +348,9 @@ public function getProductAppeal(array $fields = array(), array $params = array( $this->data['id'], RequestInterface::METHOD_GET, '/product_appeal', - new AbstractCrudObject(), + new IGShoppingProductAppeal(), 'EDGE', - array(), + IGShoppingProductAppeal::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -373,9 +373,9 @@ public function createProductAppeal(array $fields = array(), array $params = arr $this->data['id'], RequestInterface::METHOD_POST, '/product_appeal', - new AbstractCrudObject(), + new IGShoppingProductAppeal(), 'EDGE', - array(), + IGShoppingProductAppeal::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -396,9 +396,9 @@ public function getRecentlySearchedHashtags(array $fields = array(), array $para $this->data['id'], RequestInterface::METHOD_GET, '/recently_searched_hashtags', - new AbstractCrudObject(), + new ShadowIGHashtag(), 'EDGE', - array(), + ShadowIGHashtag::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/InstagramShoppingMerchantReviewMessage.php b/src/FacebookAds/Object/InstagramShoppingMerchantReviewMessage.php new file mode 100644 index 000000000..9b8b08b90 --- /dev/null +++ b/src/FacebookAds/Object/InstagramShoppingMerchantReviewMessage.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/videos_metadata', - new AbstractCrudObject(), + new DynamicVideoMetadata(), 'EDGE', - array(), + DynamicVideoMetadata::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 82f690b82..41dde3dd1 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -74,6 +74,7 @@ use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues; use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; +use FacebookAds\Object\Values\StoriesStatusValues; use FacebookAds\Object\Values\UnifiedThreadPlatformValues; use FacebookAds\Object\Values\VideoCopyrightContentCategoryValues; use FacebookAds\Object\Values\VideoCopyrightMonitoringTypeValues; @@ -2905,8 +2906,12 @@ public function getStories(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( + 'since' => 'datetime', + 'status' => 'list', + 'until' => 'datetime', ); $enums = array( + 'status_enum' => StoriesStatusValues::getInstance()->getValues(), ); $request = new ApiRequest( diff --git a/src/FacebookAds/Object/ProductItem.php b/src/FacebookAds/Object/ProductItem.php index 7c46c7e4d..e0a927505 100644 --- a/src/FacebookAds/Object/ProductItem.php +++ b/src/FacebookAds/Object/ProductItem.php @@ -26,6 +26,7 @@ use FacebookAds\Object\Values\ProductItemOriginCountryValues; use FacebookAds\Object\Values\ProductItemReviewStatusValues; use FacebookAds\Object\Values\ProductItemShippingWeightUnitValues; +use FacebookAds\Object\Values\ProductItemVideoFetchStatusValues; use FacebookAds\Object\Values\ProductItemVisibilityValues; use FacebookAds\Object\Values\ProductItemWaComplianceCategoryValues; @@ -63,6 +64,7 @@ protected static function getReferencedEnums() { $ref_enums['ImageFetchStatus'] = ProductItemImageFetchStatusValues::getInstance()->getValues(); $ref_enums['ReviewStatus'] = ProductItemReviewStatusValues::getInstance()->getValues(); $ref_enums['ShippingWeightUnit'] = ProductItemShippingWeightUnitValues::getInstance()->getValues(); + $ref_enums['VideoFetchStatus'] = ProductItemVideoFetchStatusValues::getInstance()->getValues(); $ref_enums['Visibility'] = ProductItemVisibilityValues::getInstance()->getValues(); $ref_enums['CommerceTaxCategory'] = ProductItemCommerceTaxCategoryValues::getInstance()->getValues(); $ref_enums['ErrorPriority'] = ProductItemErrorPriorityValues::getInstance()->getValues(); @@ -133,9 +135,9 @@ public function getVideosMetadata(array $fields = array(), array $params = array $this->data['id'], RequestInterface::METHOD_GET, '/videos_metadata', - new AbstractCrudObject(), + new DynamicVideoMetadata(), 'EDGE', - array(), + DynamicVideoMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/ShadowIGHashtag.php b/src/FacebookAds/Object/ShadowIGHashtag.php new file mode 100644 index 000000000..b1236cd5d --- /dev/null +++ b/src/FacebookAds/Object/ShadowIGHashtag.php @@ -0,0 +1,113 @@ +assureId(); + + $param_types = array( + 'user_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/recent_media', + new IGMedia(), + 'EDGE', + IGMedia::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getTopMedia(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'user_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/top_media', + new IGMedia(), + 'EDGE', + IGMedia::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ShadowIGHashtag(), + 'NODE', + ShadowIGHashtag::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ShadowIGMediaBuilder.php b/src/FacebookAds/Object/ShadowIGMediaBuilder.php new file mode 100644 index 000000000..d2c10c844 --- /dev/null +++ b/src/FacebookAds/Object/ShadowIGMediaBuilder.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ShadowIGMediaBuilder(), + 'NODE', + ShadowIGMediaBuilder::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ShadowIGUserCatalogProductSearch.php b/src/FacebookAds/Object/ShadowIGUserCatalogProductSearch.php new file mode 100644 index 000000000..2cb6e6295 --- /dev/null +++ b/src/FacebookAds/Object/ShadowIGUserCatalogProductSearch.php @@ -0,0 +1,42 @@ +getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/UserAvailableCatalogs.php b/src/FacebookAds/Object/UserAvailableCatalogs.php new file mode 100644 index 000000000..dcb54762c --- /dev/null +++ b/src/FacebookAds/Object/UserAvailableCatalogs.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/videos_metadata', - new AbstractCrudObject(), + new DynamicVideoMetadata(), 'EDGE', - array(), + DynamicVideoMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/VehicleOffer.php b/src/FacebookAds/Object/VehicleOffer.php index 7bb9151ba..6b40c8658 100644 --- a/src/FacebookAds/Object/VehicleOffer.php +++ b/src/FacebookAds/Object/VehicleOffer.php @@ -102,9 +102,9 @@ public function getVideosMetadata(array $fields = array(), array $params = array $this->data['id'], RequestInterface::METHOD_GET, '/videos_metadata', - new AbstractCrudObject(), + new DynamicVideoMetadata(), 'EDGE', - array(), + DynamicVideoMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/WhatsAppBusinessAccount.php b/src/FacebookAds/Object/WhatsAppBusinessAccount.php index 0530397e3..25c555bfe 100644 --- a/src/FacebookAds/Object/WhatsAppBusinessAccount.php +++ b/src/FacebookAds/Object/WhatsAppBusinessAccount.php @@ -15,6 +15,7 @@ use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\WhatsAppBusinessAccountFields; use FacebookAds\Object\Values\WhatsAppBusinessAccountCategoryValues; +use FacebookAds\Object\Values\WhatsAppBusinessAccountSubCategoryValues; use FacebookAds\Object\Values\WhatsAppBusinessAccountTasksValues; /** @@ -39,6 +40,7 @@ protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['Tasks'] = WhatsAppBusinessAccountTasksValues::getInstance()->getValues(); $ref_enums['Category'] = WhatsAppBusinessAccountCategoryValues::getInstance()->getValues(); + $ref_enums['SubCategory'] = WhatsAppBusinessAccountSubCategoryValues::getInstance()->getValues(); return $ref_enums; } @@ -233,6 +235,33 @@ public function getExtensions(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } + public function createExtension(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'clone_extension_id' => 'string', + 'clone_template' => 'string', + 'data_channel_uri' => 'string', + 'name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/extensions', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getFlows(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -256,6 +285,33 @@ public function getFlows(array $fields = array(), array $params = array(), $pend return $pending ? $request : $request->execute(); } + public function createFlow(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'clone_flow_id' => 'string', + 'clone_template' => 'string', + 'data_channel_uri' => 'string', + 'name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/flows', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getMessageCampaigns(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -397,10 +453,11 @@ public function createMessageTemplate(array $fields = array(), array $params = a 'language' => 'string', 'message_send_ttl_seconds' => 'unsigned int', 'name' => 'string', - 'sub_category' => 'Object', + 'sub_category' => 'sub_category_enum', ); $enums = array( 'category_enum' => WhatsAppBusinessAccountCategoryValues::getInstance()->getValues(), + 'sub_category_enum' => WhatsAppBusinessAccountSubCategoryValues::getInstance()->getValues(), ); $request = new ApiRequest( From eb61b297f24593cc0aedbb63f77824e3a6835531 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Sat, 14 Oct 2023 13:53:11 -0700 Subject: [PATCH 05/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D50280588 fbshipit-source-id: 0c0ccac8ccb8c9c5af9a77a162e8f07565433526 --- src/FacebookAds/ApiConfig.php | 2 +- src/FacebookAds/Object/AdAccount.php | 97 ------------------- src/FacebookAds/Object/AdsPixel.php | 24 +++++ src/FacebookAds/Object/Business.php | 4 + .../Object/Fields/AdPromotedObjectFields.php | 2 - .../Object/Fields/IGMediaFields.php | 2 + ...CopyrightCheckMatchesInformationFields.php | 34 +++++++ .../IGVideoCopyrightCheckStatusFields.php | 34 +++++++ .../Object/Fields/InstagramCommentFields.php | 2 + .../Fields/OpenBridgeConfigurationFields.php | 4 + src/FacebookAds/Object/Fields/PageFields.php | 6 +- .../Fields/ShadowIGMediaBuilderFields.php | 2 + ...p => ShadowIGMediaCollaboratorsFields.php} | 16 +-- src/FacebookAds/Object/Group.php | 47 --------- src/FacebookAds/Object/IGMedia.php | 23 +++++ ...VideoCopyrightCheckMatchesInformation.php} | 8 +- .../Object/IGVideoCopyrightCheckStatus.php | 42 ++++++++ .../Object/OpenBridgeConfiguration.php | 2 + src/FacebookAds/Object/Page.php | 4 +- .../Object/ShadowIGMediaCollaborators.php | 42 ++++++++ ...ccountAdVolumeRecommendationTypeValues.php | 8 +- .../Values/AdActivityEventTypeValues.php | 1 + ...AdAssetFeedSpecCallToActionTypesValues.php | 1 + .../AdCreativeCallToActionTypeValues.php | 1 + ...CreativeLinkDataCallToActionTypeValues.php | 1 + .../Values/AdsInsightsBreakdownsValues.php | 1 + .../Values/ProductFeedOverrideTypeValues.php | 1 + .../WhatsAppBusinessAccountTasksValues.php | 4 + .../Object/WhatsAppBusinessAccount.php | 22 +++++ 29 files changed, 270 insertions(+), 167 deletions(-) create mode 100644 src/FacebookAds/Object/Fields/IGVideoCopyrightCheckMatchesInformationFields.php create mode 100644 src/FacebookAds/Object/Fields/IGVideoCopyrightCheckStatusFields.php rename src/FacebookAds/Object/Fields/{MessengerDestinationPageWelcomeMessageFields.php => ShadowIGMediaCollaboratorsFields.php} (54%) rename src/FacebookAds/Object/{MessengerDestinationPageWelcomeMessage.php => IGVideoCopyrightCheckMatchesInformation.php} (73%) create mode 100644 src/FacebookAds/Object/IGVideoCopyrightCheckStatus.php create mode 100644 src/FacebookAds/Object/ShadowIGMediaCollaborators.php diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 185e2ebcc..806fe96f1 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '18.0'; - const SDKVersion = '18.0.1'; + const SDKVersion = '18.0.2'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index ef06be711..59054ed05 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -842,103 +842,6 @@ public function createAd(array $fields = array(), array $params = array(), $pend return $pending ? $request : $request->execute(); } - public function createAdsConversionGoal(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'conversion_event_value_source' => 'conversion_event_value_source_enum', - 'description' => 'string', - 'goal_creation_method' => 'goal_creation_method_enum', - 'goal_name' => 'string', - 'performance_goal' => 'performance_goal_enum', - 'single_channel_conversion_events' => 'list', - 'value_adjustment_rule' => 'map', - ); - $enums = array( - 'conversion_event_value_source_enum' => array( - 'DATA_SOURCE', - 'VALUE_RULE', - ), - 'goal_creation_method_enum' => array( - 'ADVERTISER_CREATED_UI', - 'AUTO_MIGRATION', - 'L2_ENHANCE_API_MIGRATION', - ), - 'performance_goal_enum' => array( - 'AD_OPTIMIZATION_GOAL_AD_RECALL_LIFT', - 'AD_OPTIMIZATION_GOAL_APP_DOWNLOADS', - 'AD_OPTIMIZATION_GOAL_APP_INSTALLS', - 'AD_OPTIMIZATION_GOAL_APP_INSTALLS_AND_OFFSITE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_BRAND_AWARENESS', - 'AD_OPTIMIZATION_GOAL_CLICKS', - 'AD_OPTIMIZATION_GOAL_COMPLETED_VIDEO_VIEWS', - 'AD_OPTIMIZATION_GOAL_CONVERSATIONS', - 'AD_OPTIMIZATION_GOAL_DERIVED_EVENTS', - 'AD_OPTIMIZATION_GOAL_DWELLS', - 'AD_OPTIMIZATION_GOAL_ENGAGED_REACH', - 'AD_OPTIMIZATION_GOAL_ENGAGED_USERS', - 'AD_OPTIMIZATION_GOAL_EVENT_RESPONSES', - 'AD_OPTIMIZATION_GOAL_EXTERNAL', - 'AD_OPTIMIZATION_GOAL_IMPRESSIONS', - 'AD_OPTIMIZATION_GOAL_INCREMENTAL_OFFSITE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_IN_APP_VALUE', - 'AD_OPTIMIZATION_GOAL_JOB_APPLICATIONS', - 'AD_OPTIMIZATION_GOAL_LANDING_PAGE_VIEWS', - 'AD_OPTIMIZATION_GOAL_LEAD_GENERATION', - 'AD_OPTIMIZATION_GOAL_MEDIA_DOWNLOADS', - 'AD_OPTIMIZATION_GOAL_MESSAGING_APPOINTMENT_CONVERSION', - 'AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_FOLLOW', - 'AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_REPLY', - 'AD_OPTIMIZATION_GOAL_MESSAGING_PURCHASE_CONVERSION', - 'AD_OPTIMIZATION_GOAL_MID_FUNNEL_EVENT', - 'AD_OPTIMIZATION_GOAL_MRC_VIDEO_VIEWS', - 'AD_OPTIMIZATION_GOAL_MULTI_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_NONE', - 'AD_OPTIMIZATION_GOAL_OFFER_CLAIMS', - 'AD_OPTIMIZATION_GOAL_OFFLINE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_OFFSITE_CLICKS', - 'AD_OPTIMIZATION_GOAL_OFFSITE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_ONSITE_CONVERSIONS', - 'AD_OPTIMIZATION_GOAL_PAGE_ENGAGEMENT', - 'AD_OPTIMIZATION_GOAL_PAGE_FOLLOWS', - 'AD_OPTIMIZATION_GOAL_PAGE_LIKES', - 'AD_OPTIMIZATION_GOAL_POST_ENGAGEMENT', - 'AD_OPTIMIZATION_GOAL_QUALITY_CALL', - 'AD_OPTIMIZATION_GOAL_QUALITY_LEAD', - 'AD_OPTIMIZATION_GOAL_REACH', - 'AD_OPTIMIZATION_GOAL_REMINDERS_SET', - 'AD_OPTIMIZATION_GOAL_REPLIES', - 'AD_OPTIMIZATION_GOAL_RESEARCH_POLL_RESPONSES', - 'AD_OPTIMIZATION_GOAL_RETENTION', - 'AD_OPTIMIZATION_GOAL_RETURN_ON_AD_SPEND', - 'AD_OPTIMIZATION_GOAL_SOCIAL_IMPRESSIONS', - 'AD_OPTIMIZATION_GOAL_STORE_VISITS', - 'AD_OPTIMIZATION_GOAL_SUBSCRIBERS', - 'AD_OPTIMIZATION_GOAL_TICKET_PURCHASE', - 'AD_OPTIMIZATION_GOAL_VALUE', - 'AD_OPTIMIZATION_GOAL_VIDEO_LONG_VIEWS', - 'AD_OPTIMIZATION_GOAL_VIDEO_VIEWS', - 'AD_OPTIMIZATION_GOAL_VIDEO_VIEWS_15S', - 'AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE', - 'AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE_AND_PROFILE_ACTIONS', - ), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/ads_conversion_goal', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getAdsReportingMmmReports(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AdsPixel.php b/src/FacebookAds/Object/AdsPixel.php index 5f3d95e94..1b568aa51 100644 --- a/src/FacebookAds/Object/AdsPixel.php +++ b/src/FacebookAds/Object/AdsPixel.php @@ -107,6 +107,30 @@ public function getAgencies(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function createAhpConfig(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'applink_autosetup' => 'bool', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/ahp_configs', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getAssignedUsers(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 41fa821f1..f3bcd7a08 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -1770,6 +1770,8 @@ public function createOpenBridgeConfiguration(array $fields = array(), array $pa 'access_key' => 'string', 'active' => 'bool', 'endpoint' => 'string', + 'fallback_domain' => 'string', + 'fallback_domain_enabled' => 'bool', 'host_business_id' => 'unsigned int', 'host_external_id' => 'string', 'pixel_id' => 'unsigned int', @@ -2046,6 +2048,7 @@ public function createOwnedPage(array $fields = array(), array $params = array() $param_types = array( 'code' => 'string', + 'entry_point' => 'string', 'page_id' => 'int', ); $enums = array( @@ -2825,6 +2828,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( + 'entry_point' => 'string', 'name' => 'string', 'primary_page' => 'string', 'timezone_id' => 'unsigned int', diff --git a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php index af4c1f78c..d8b5f4ad2 100644 --- a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php +++ b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php @@ -45,7 +45,6 @@ class AdPromotedObjectFields extends AbstractEnum { const PRODUCT_ITEM_ID = 'product_item_id'; const PRODUCT_SET_ID = 'product_set_id'; const RETENTION_DAYS = 'retention_days'; - const WHATS_APP_BUSINESS_PHONE_NUMBER_ID = 'whats_app_business_phone_number_id'; public function getFieldTypes() { return array( @@ -72,7 +71,6 @@ public function getFieldTypes() { 'product_item_id' => 'string', 'product_set_id' => 'string', 'retention_days' => 'string', - 'whats_app_business_phone_number_id' => 'Object', ); } } diff --git a/src/FacebookAds/Object/Fields/IGMediaFields.php b/src/FacebookAds/Object/Fields/IGMediaFields.php index f87e4de01..d26ccf153 100644 --- a/src/FacebookAds/Object/Fields/IGMediaFields.php +++ b/src/FacebookAds/Object/Fields/IGMediaFields.php @@ -24,6 +24,7 @@ class IGMediaFields extends AbstractEnum { const CAPTION = 'caption'; const COMMENTS_COUNT = 'comments_count'; + const COPYRIGHT_CHECK_INFORMATION = 'copyright_check_information'; const ID = 'id'; const IG_ID = 'ig_id'; const IS_COMMENT_ENABLED = 'is_comment_enabled'; @@ -43,6 +44,7 @@ public function getFieldTypes() { return array( 'caption' => 'string', 'comments_count' => 'int', + 'copyright_check_information' => 'IGVideoCopyrightCheckMatchesInformation', 'id' => 'string', 'ig_id' => 'string', 'is_comment_enabled' => 'bool', diff --git a/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckMatchesInformationFields.php b/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckMatchesInformationFields.php new file mode 100644 index 000000000..b5fdc4828 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckMatchesInformationFields.php @@ -0,0 +1,34 @@ + 'list', + 'status' => 'IGVideoCopyrightCheckStatus', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckStatusFields.php b/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckStatusFields.php new file mode 100644 index 000000000..5433e4641 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGVideoCopyrightCheckStatusFields.php @@ -0,0 +1,34 @@ + 'bool', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstagramCommentFields.php b/src/FacebookAds/Object/Fields/InstagramCommentFields.php index e58fd30bd..4cb25e15b 100644 --- a/src/FacebookAds/Object/Fields/InstagramCommentFields.php +++ b/src/FacebookAds/Object/Fields/InstagramCommentFields.php @@ -29,6 +29,7 @@ class InstagramCommentFields extends AbstractEnum { const INSTAGRAM_USER = 'instagram_user'; const MENTIONED_INSTAGRAM_USERS = 'mentioned_instagram_users'; const MESSAGE = 'message'; + const USERNAME = 'username'; public function getFieldTypes() { return array( @@ -39,6 +40,7 @@ public function getFieldTypes() { 'instagram_user' => 'InstagramUser', 'mentioned_instagram_users' => 'list', 'message' => 'string', + 'username' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php b/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php index 2ae76151e..889c96139 100644 --- a/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php +++ b/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php @@ -25,6 +25,8 @@ class OpenBridgeConfigurationFields extends AbstractEnum { const ACCESS_KEY = 'access_key'; const ACTIVE = 'active'; const ENDPOINT = 'endpoint'; + const FALLBACK_DOMAIN = 'fallback_domain'; + const FALLBACK_DOMAIN_ENABLED = 'fallback_domain_enabled'; const HOST_BUSINESS_ID = 'host_business_id'; const HOST_EXTERNAL_ID = 'host_external_id'; const ID = 'id'; @@ -35,6 +37,8 @@ public function getFieldTypes() { 'access_key' => 'string', 'active' => 'bool', 'endpoint' => 'string', + 'fallback_domain' => 'string', + 'fallback_domain_enabled' => 'bool', 'host_business_id' => 'string', 'host_external_id' => 'string', 'id' => 'string', diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index a51dbcc22..27448cb12 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -59,6 +59,7 @@ class PageFields extends AbstractEnum { const DIRECTED_BY = 'directed_by'; const DISPLAY_SUBTEXT = 'display_subtext'; const DISPLAYED_MESSAGE_RESPONSE_TIME = 'displayed_message_response_time'; + const DOES_VIEWER_HAVE_PAGE_PERMISSION_LINK_IG = 'does_viewer_have_page_permission_link_ig'; const EMAILS = 'emails'; const ENGAGEMENT = 'engagement'; const FAN_COUNT = 'fan_count'; @@ -87,6 +88,7 @@ class PageFields extends AbstractEnum { const IS_CHAIN = 'is_chain'; const IS_COMMUNITY_PAGE = 'is_community_page'; const IS_ELIGIBLE_FOR_BRANDED_CONTENT = 'is_eligible_for_branded_content'; + const IS_ELIGIBLE_FOR_DISABLE_CONNECT_IG_BTN_FOR_NON_PAGE_ADMIN_AM_WEB = 'is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web'; const IS_MESSENGER_BOT_GET_STARTED_ENABLED = 'is_messenger_bot_get_started_enabled'; const IS_MESSENGER_PLATFORM_BOT = 'is_messenger_platform_bot'; const IS_OWNED = 'is_owned'; @@ -106,7 +108,6 @@ class PageFields extends AbstractEnum { const MERCHANT_REVIEW_STATUS = 'merchant_review_status'; const MESSAGING_FEATURE_STATUS = 'messaging_feature_status'; const MESSENGER_ADS_DEFAULT_ICEBREAKERS = 'messenger_ads_default_icebreakers'; - const MESSENGER_ADS_DEFAULT_PAGE_WELCOME_MESSAGE = 'messenger_ads_default_page_welcome_message'; const MESSENGER_ADS_DEFAULT_QUICK_REPLIES = 'messenger_ads_default_quick_replies'; const MESSENGER_ADS_QUICK_REPLIES_TYPE = 'messenger_ads_quick_replies_type'; const MINI_SHOP_STOREFRONT = 'mini_shop_storefront'; @@ -210,6 +211,7 @@ public function getFieldTypes() { 'directed_by' => 'string', 'display_subtext' => 'string', 'displayed_message_response_time' => 'string', + 'does_viewer_have_page_permission_link_ig' => 'bool', 'emails' => 'list', 'engagement' => 'Engagement', 'fan_count' => 'unsigned int', @@ -238,6 +240,7 @@ public function getFieldTypes() { 'is_chain' => 'bool', 'is_community_page' => 'bool', 'is_eligible_for_branded_content' => 'bool', + 'is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web' => 'bool', 'is_messenger_bot_get_started_enabled' => 'bool', 'is_messenger_platform_bot' => 'bool', 'is_owned' => 'bool', @@ -257,7 +260,6 @@ public function getFieldTypes() { 'merchant_review_status' => 'string', 'messaging_feature_status' => 'MessagingFeatureStatus', 'messenger_ads_default_icebreakers' => 'list', - 'messenger_ads_default_page_welcome_message' => 'MessengerDestinationPageWelcomeMessage', 'messenger_ads_default_quick_replies' => 'list', 'messenger_ads_quick_replies_type' => 'string', 'mini_shop_storefront' => 'Shop', diff --git a/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php b/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php index 65b43731e..02acf25bc 100644 --- a/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php +++ b/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php @@ -22,12 +22,14 @@ class ShadowIGMediaBuilderFields extends AbstractEnum { + const COPYRIGHT_CHECK_STATUS = 'copyright_check_status'; const ID = 'id'; const STATUS = 'status'; const STATUS_CODE = 'status_code'; public function getFieldTypes() { return array( + 'copyright_check_status' => 'IGVideoCopyrightCheckStatus', 'id' => 'string', 'status' => 'string', 'status_code' => 'string', diff --git a/src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php b/src/FacebookAds/Object/Fields/ShadowIGMediaCollaboratorsFields.php similarity index 54% rename from src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php rename to src/FacebookAds/Object/Fields/ShadowIGMediaCollaboratorsFields.php index 4c98a33c9..5a60ec131 100644 --- a/src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php +++ b/src/FacebookAds/Object/Fields/ShadowIGMediaCollaboratorsFields.php @@ -20,23 +20,17 @@ * */ -class MessengerDestinationPageWelcomeMessageFields extends AbstractEnum { +class ShadowIGMediaCollaboratorsFields extends AbstractEnum { const ID = 'id'; - const PAGE_WELCOME_MESSAGE_BODY = 'page_welcome_message_body'; - const PAGE_WELCOME_MESSAGE_TYPE = 'page_welcome_message_type'; - const TEMPLATE_NAME = 'template_name'; - const TIME_CREATED = 'time_created'; - const TIME_LAST_USED = 'time_last_used'; + const INVITE_STATUS = 'invite_status'; + const USERNAME = 'username'; public function getFieldTypes() { return array( 'id' => 'string', - 'page_welcome_message_body' => 'string', - 'page_welcome_message_type' => 'string', - 'template_name' => 'string', - 'time_created' => 'datetime', - 'time_last_used' => 'datetime', + 'invite_status' => 'string', + 'username' => 'string', ); } } diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index 994dc1f6a..9c2c3ff3f 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -179,53 +179,6 @@ public function createAlbum(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function getAttachmentSurfaces(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, - '/attachment_surfaces', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function createAttachmentSurface(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'title' => 'map', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/attachment_surfaces', - new AbstractCrudObject(), - 'EDGE', - array(), - 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(); diff --git a/src/FacebookAds/Object/IGMedia.php b/src/FacebookAds/Object/IGMedia.php index a313fe357..88acc8256 100644 --- a/src/FacebookAds/Object/IGMedia.php +++ b/src/FacebookAds/Object/IGMedia.php @@ -65,6 +65,29 @@ public function getChildren(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function getCollaborators(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, + '/collaborators', + new ShadowIGMediaCollaborators(), + 'EDGE', + ShadowIGMediaCollaborators::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getComments(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/MessengerDestinationPageWelcomeMessage.php b/src/FacebookAds/Object/IGVideoCopyrightCheckMatchesInformation.php similarity index 73% rename from src/FacebookAds/Object/MessengerDestinationPageWelcomeMessage.php rename to src/FacebookAds/Object/IGVideoCopyrightCheckMatchesInformation.php index ec25cf157..fabde2c68 100644 --- a/src/FacebookAds/Object/MessengerDestinationPageWelcomeMessage.php +++ b/src/FacebookAds/Object/IGVideoCopyrightCheckMatchesInformation.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\MessengerDestinationPageWelcomeMessageFields; +use FacebookAds\Object\Fields\IGVideoCopyrightCheckMatchesInformationFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class MessengerDestinationPageWelcomeMessage extends AbstractCrudObject { +class IGVideoCopyrightCheckMatchesInformation extends AbstractObject { /** - * @return MessengerDestinationPageWelcomeMessageFields + * @return IGVideoCopyrightCheckMatchesInformationFields */ public static function getFieldsEnum() { - return MessengerDestinationPageWelcomeMessageFields::getInstance(); + return IGVideoCopyrightCheckMatchesInformationFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/IGVideoCopyrightCheckStatus.php b/src/FacebookAds/Object/IGVideoCopyrightCheckStatus.php new file mode 100644 index 000000000..cff961bb3 --- /dev/null +++ b/src/FacebookAds/Object/IGVideoCopyrightCheckStatus.php @@ -0,0 +1,42 @@ + 'string', 'active' => 'bool', 'endpoint' => 'string', + 'fallback_domain' => 'string', + 'fallback_domain_enabled' => 'bool', 'host_business_id' => 'unsigned int', 'host_external_id' => 'string', ); diff --git a/src/FacebookAds/Object/Page.php b/src/FacebookAds/Object/Page.php index 41dde3dd1..6c2b8e2b8 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -1738,8 +1738,8 @@ public function deleteLocations(array $fields = array(), array $params = array() $this->assureId(); $param_types = array( - 'location_page_id' => 'string', - 'store_number' => 'unsigned int', + 'location_page_ids' => 'list', + 'store_numbers' => 'list', ); $enums = array( ); diff --git a/src/FacebookAds/Object/ShadowIGMediaCollaborators.php b/src/FacebookAds/Object/ShadowIGMediaCollaborators.php new file mode 100644 index 000000000..05182b2e5 --- /dev/null +++ b/src/FacebookAds/Object/ShadowIGMediaCollaborators.php @@ -0,0 +1,42 @@ +assureId(); $param_types = array( + 'categories' => 'list', 'clone_extension_id' => 'string', 'clone_template' => 'string', 'data_channel_uri' => 'string', 'name' => 'string', ); $enums = array( + 'categories_enum' => array( + 'APPOINTMENT_BOOKING', + 'CONTACT_US', + 'CUSTOMER_SUPPORT', + 'LEAD_GENERATION', + 'OTHER', + 'SIGN_IN', + 'SIGN_UP', + 'SURVEY', + ), ); $request = new ApiRequest( @@ -289,12 +300,23 @@ public function createFlow(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( + 'categories' => 'list', 'clone_flow_id' => 'string', 'clone_template' => 'string', 'data_channel_uri' => 'string', 'name' => 'string', ); $enums = array( + 'categories_enum' => array( + 'APPOINTMENT_BOOKING', + 'CONTACT_US', + 'CUSTOMER_SUPPORT', + 'LEAD_GENERATION', + 'OTHER', + 'SIGN_IN', + 'SIGN_UP', + 'SURVEY', + ), ); $request = new ApiRequest( From bf538a2de60f75fb924ee875a6ac976e9d795bf5 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Thu, 2 Nov 2023 15:31:11 -0700 Subject: [PATCH 06/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D50948236 fbshipit-source-id: 631bc21751f943b0f6bf6fed31caab3b7051d380 --- src/FacebookAds/ApiConfig.php | 2 +- src/FacebookAds/Object/Ad.php | 4 - src/FacebookAds/Object/AdAccount.php | 4 +- src/FacebookAds/Object/AdSet.php | 29 ++++++ src/FacebookAds/Object/Business.php | 1 + .../CTXPartnerAppWelcomeMessageFlow.php | 65 +++++++++++++ src/FacebookAds/Object/Campaign.php | 29 ++++++ .../Object/Fields/AdAssetFeedSpecFields.php | 6 ++ .../AdCreativeBrandedContentAdsFields.php | 2 + .../Object/Fields/AdCreativeFields.php | 2 + .../Fields/AdCreativeLinkDataFields.php | 2 + src/FacebookAds/Object/Fields/AdFields.php | 2 - .../Object/Fields/AdsInsightsFields.php | 4 + .../Object/Fields/ApplicationFields.php | 4 + .../CTXPartnerAppWelcomeMessageFlowFields.php | 44 +++++++++ .../Object/Fields/CustomAudienceFields.php | 2 + .../Object/Fields/HasLeadAccessFields.php | 48 ++++++++++ .../Fields/ManagedPartnerBusinessFields.php | 2 +- .../ManagedPartnerExtendedCreditFields.php} | 19 +++- src/FacebookAds/Object/Fields/PageFields.php | 2 + src/FacebookAds/Object/Fields/ShopFields.php | 4 + .../Fields/WhatsAppBusinessAccountFields.php | 2 + src/FacebookAds/Object/HasLeadAccess.php | 42 +++++++++ .../Object/ManagedPartnerExtendedCredit.php | 42 +++++++++ src/FacebookAds/Object/Page.php | 93 +++++++++++++++++++ src/FacebookAds/Object/PagePostExperiment.php | 25 +++++ ...ccountAdVolumeRecommendationTypeValues.php | 21 +++++ ...AdAssetFeedSpecCallToActionTypesValues.php | 1 - .../AdCreativeCallToActionTypeValues.php | 1 - ...CreativeLinkDataCallToActionTypeValues.php | 1 - .../AdPromotedObjectCustomEventTypeValues.php | 1 + .../CustomAudienceDataSourceSubTypeValues.php | 1 + ...gePostExperimentOptimizationGoalValues.php | 36 +++++++ ...roductCatalogDiagnosticGroupTypeValues.php | 1 + ...oductCatalogDiagnosticGroupTypesValues.php | 1 + .../Values/ProductItemErrorTypeValues.php | 5 + .../Object/WhatsAppBusinessAccount.php | 61 ------------ 37 files changed, 531 insertions(+), 80 deletions(-) create mode 100644 src/FacebookAds/Object/CTXPartnerAppWelcomeMessageFlow.php create mode 100644 src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php create mode 100644 src/FacebookAds/Object/Fields/HasLeadAccessFields.php rename src/FacebookAds/Object/{Values/AdMetaRewardAdgroupStatusValues.php => Fields/ManagedPartnerExtendedCreditFields.php} (52%) create mode 100644 src/FacebookAds/Object/HasLeadAccess.php create mode 100644 src/FacebookAds/Object/ManagedPartnerExtendedCredit.php create mode 100644 src/FacebookAds/Object/Values/PagePostExperimentOptimizationGoalValues.php diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 806fe96f1..30ce652ff 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '18.0'; - const SDKVersion = '18.0.2'; + const SDKVersion = '18.0.3'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/Ad.php b/src/FacebookAds/Object/Ad.php index 15b8f57e8..a974a95ac 100644 --- a/src/FacebookAds/Object/Ad.php +++ b/src/FacebookAds/Object/Ad.php @@ -19,7 +19,6 @@ use FacebookAds\Object\Values\AdDatePresetValues; use FacebookAds\Object\Values\AdEffectiveStatusValues; use FacebookAds\Object\Values\AdExecutionOptionsValues; -use FacebookAds\Object\Values\AdMetaRewardAdgroupStatusValues; use FacebookAds\Object\Values\AdOperatorValues; use FacebookAds\Object\Values\AdPreviewAdFormatValues; use FacebookAds\Object\Values\AdPreviewCreativeFeatureValues; @@ -71,7 +70,6 @@ protected static function getReferencedEnums() { $ref_enums['Status'] = AdStatusValues::getInstance()->getValues(); $ref_enums['DatePreset'] = AdDatePresetValues::getInstance()->getValues(); $ref_enums['ExecutionOptions'] = AdExecutionOptionsValues::getInstance()->getValues(); - $ref_enums['MetaRewardAdgroupStatus'] = AdMetaRewardAdgroupStatusValues::getInstance()->getValues(); $ref_enums['Operator'] = AdOperatorValues::getInstance()->getValues(); $ref_enums['StatusOption'] = AdStatusOptionValues::getInstance()->getValues(); return $ref_enums; @@ -484,7 +482,6 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'engagement_audience' => 'bool', 'execution_options' => 'list', 'include_demolink_hashes' => 'bool', - 'meta_reward_adgroup_status' => 'meta_reward_adgroup_status_enum', 'name' => 'string', 'priority' => 'unsigned int', 'status' => 'status_enum', @@ -492,7 +489,6 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe ); $enums = array( 'execution_options_enum' => AdExecutionOptionsValues::getInstance()->getValues(), - 'meta_reward_adgroup_status_enum' => AdMetaRewardAdgroupStatusValues::getInstance()->getValues(), 'status_enum' => AdStatusValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 59054ed05..73dad114a 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -43,7 +43,6 @@ use FacebookAds\Object\Values\AdCreativeOperatorValues; use FacebookAds\Object\Values\AdDatePresetValues; use FacebookAds\Object\Values\AdExecutionOptionsValues; -use FacebookAds\Object\Values\AdMetaRewardAdgroupStatusValues; use FacebookAds\Object\Values\AdOperatorValues; use FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues; use FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues; @@ -813,7 +812,6 @@ public function createAd(array $fields = array(), array $params = array(), $pend 'engagement_audience' => 'bool', 'execution_options' => 'list', 'include_demolink_hashes' => 'bool', - 'meta_reward_adgroup_status' => 'meta_reward_adgroup_status_enum', 'name' => 'string', 'priority' => 'unsigned int', 'source_ad_id' => 'string', @@ -822,7 +820,6 @@ public function createAd(array $fields = array(), array $params = array(), $pend ); $enums = array( 'execution_options_enum' => AdExecutionOptionsValues::getInstance()->getValues(), - 'meta_reward_adgroup_status_enum' => AdMetaRewardAdgroupStatusValues::getInstance()->getValues(), 'status_enum' => AdStatusValues::getInstance()->getValues(), ); @@ -1907,6 +1904,7 @@ public function createCustomAudience(array $fields = array(), array $params = ar 'subtype' => 'subtype_enum', 'use_in_campaigns' => 'bool', 'video_group_ids' => 'list', + 'whats_app_business_phone_number_id' => 'string', ); $enums = array( 'claim_objective_enum' => CustomAudienceClaimObjectiveValues::getInstance()->getValues(), diff --git a/src/FacebookAds/Object/AdSet.php b/src/FacebookAds/Object/AdSet.php index daf930a49..cc58fdeeb 100644 --- a/src/FacebookAds/Object/AdSet.php +++ b/src/FacebookAds/Object/AdSet.php @@ -40,6 +40,7 @@ use FacebookAds\Object\Values\AdsInsightsDatePresetValues; use FacebookAds\Object\Values\AdsInsightsLevelValues; use FacebookAds\Object\Values\AdsInsightsSummaryActionBreakdownsValues; +use FacebookAds\Object\Values\HighDemandPeriodBudgetValueTypeValues; use FacebookAds\Object\Traits\AdLabelAwareCrudObjectTrait; use FacebookAds\Object\Traits\ObjectValidation; @@ -299,6 +300,34 @@ public function getAsyncAdRequests(array $fields = array(), array $params = arra return $pending ? $request : $request->execute(); } + public function createBudgetSchedule(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'budget_value' => 'unsigned int', + 'budget_value_type' => 'budget_value_type_enum', + 'time_end' => 'unsigned int', + 'time_start' => 'unsigned int', + ); + $enums = array( + 'budget_value_type_enum' => HighDemandPeriodBudgetValueTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/budget_schedules', + new HighDemandPeriod(), + 'EDGE', + HighDemandPeriod::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getCopies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Business.php b/src/FacebookAds/Object/Business.php index f3bcd7a08..ad4c196bf 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -1607,6 +1607,7 @@ public function createManagedPartnerBusiness(array $fields = array(), array $par 'sales_rep_email' => 'string', 'seller_external_website_url' => 'string', 'seller_targeting_countries' => 'list', + 'skip_partner_page_creation' => 'bool', 'survey_business_type' => 'survey_business_type_enum', 'survey_num_assets' => 'unsigned int', 'survey_num_people' => 'unsigned int', diff --git a/src/FacebookAds/Object/CTXPartnerAppWelcomeMessageFlow.php b/src/FacebookAds/Object/CTXPartnerAppWelcomeMessageFlow.php new file mode 100644 index 000000000..2769b0d3d --- /dev/null +++ b/src/FacebookAds/Object/CTXPartnerAppWelcomeMessageFlow.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CTXPartnerAppWelcomeMessageFlow(), + 'NODE', + CTXPartnerAppWelcomeMessageFlow::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Campaign.php b/src/FacebookAds/Object/Campaign.php index b6ba1d1c2..d2b0c34f4 100644 --- a/src/FacebookAds/Object/Campaign.php +++ b/src/FacebookAds/Object/Campaign.php @@ -37,6 +37,7 @@ use FacebookAds\Object\Values\CampaignSpecialAdCategoryValues; use FacebookAds\Object\Values\CampaignStatusOptionValues; use FacebookAds\Object\Values\CampaignStatusValues; +use FacebookAds\Object\Values\HighDemandPeriodBudgetValueTypeValues; use FacebookAds\Object\Traits\AdLabelAwareCrudObjectTrait; use FacebookAds\Object\Traits\ObjectValidation; @@ -217,6 +218,34 @@ public function getAdSets(array $fields = array(), array $params = array(), $pen return $pending ? $request : $request->execute(); } + public function createBudgetSchedule(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'budget_value' => 'unsigned int', + 'budget_value_type' => 'budget_value_type_enum', + 'time_end' => 'unsigned int', + 'time_start' => 'unsigned int', + ); + $enums = array( + 'budget_value_type_enum' => HighDemandPeriodBudgetValueTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/budget_schedules', + new HighDemandPeriod(), + 'EDGE', + HighDemandPeriod::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getCopies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php index 27b05b15d..a6ed6bf7b 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php @@ -38,7 +38,10 @@ class AdAssetFeedSpecFields extends AbstractEnum { const IMAGES = 'images'; const LINK_URLS = 'link_urls'; const MESSAGE_EXTENSIONS = 'message_extensions'; + const ONSITE_DESTINATIONS = 'onsite_destinations'; const OPTIMIZATION_TYPE = 'optimization_type'; + const REASONS_TO_SHOP = 'reasons_to_shop'; + const SHOPS_BUNDLE = 'shops_bundle'; const TITLES = 'titles'; const VIDEOS = 'videos'; @@ -60,7 +63,10 @@ public function getFieldTypes() { 'images' => 'list', 'link_urls' => 'list', 'message_extensions' => 'list', + 'onsite_destinations' => 'list', 'optimization_type' => 'string', + 'reasons_to_shop' => 'bool', + 'shops_bundle' => 'bool', 'titles' => 'list', 'videos' => 'list', ); diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php index fb11bab3b..492b05ad8 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php @@ -25,6 +25,7 @@ class AdCreativeBrandedContentAdsFields extends AbstractEnum { const AD_FORMAT = 'ad_format'; const CREATOR_AD_PERMISSION_TYPE = 'creator_ad_permission_type'; const INSTAGRAM_BOOST_POST_ACCESS_TOKEN = 'instagram_boost_post_access_token'; + const IS_MCA_INTERNAL = 'is_mca_internal'; const PARTNERS = 'partners'; const UI_VERSION = 'ui_version'; @@ -33,6 +34,7 @@ public function getFieldTypes() { 'ad_format' => 'int', 'creator_ad_permission_type' => 'string', 'instagram_boost_post_access_token' => 'string', + 'is_mca_internal' => 'bool', 'partners' => 'list', 'ui_version' => 'int', ); diff --git a/src/FacebookAds/Object/Fields/AdCreativeFields.php b/src/FacebookAds/Object/Fields/AdCreativeFields.php index ba0bc4b34..157c720c0 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFields.php @@ -71,6 +71,7 @@ class AdCreativeFields extends AbstractEnum { const OBJECT_TYPE = 'object_type'; const OBJECT_URL = 'object_url'; const OMNICHANNEL_LINK_SPEC = 'omnichannel_link_spec'; + const PHOTO_ALBUM_SOURCE_OBJECT_STORY_ID = 'photo_album_source_object_story_id'; const PLACE_PAGE_SET_ID = 'place_page_set_id'; const PLATFORM_CUSTOMIZATIONS = 'platform_customizations'; const PLAYABLE_ASSET_ID = 'playable_asset_id'; @@ -142,6 +143,7 @@ public function getFieldTypes() { 'object_type' => 'ObjectType', 'object_url' => 'string', 'omnichannel_link_spec' => 'AdCreativeOmnichannelLinkSpec', + 'photo_album_source_object_story_id' => 'string', 'place_page_set_id' => 'string', 'platform_customizations' => 'AdCreativePlatformCustomization', 'playable_asset_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php index 35797dd76..754215036 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php @@ -26,6 +26,7 @@ class AdCreativeLinkDataFields extends AbstractEnum { const ADDITIONAL_IMAGE_INDEX = 'additional_image_index'; const APP_LINK_SPEC = 'app_link_spec'; const ATTACHMENT_STYLE = 'attachment_style'; + const AUTOMATED_PRODUCT_TAGS = 'automated_product_tags'; const BRANDED_CONTENT_SHARED_TO_SPONSOR_STATUS = 'branded_content_shared_to_sponsor_status'; const BRANDED_CONTENT_SPONSOR_PAGE_ID = 'branded_content_sponsor_page_id'; const CALL_TO_ACTION = 'call_to_action'; @@ -62,6 +63,7 @@ public function getFieldTypes() { 'additional_image_index' => 'int', 'app_link_spec' => 'AdCreativeLinkDataAppLinkSpec', 'attachment_style' => 'string', + 'automated_product_tags' => 'bool', 'branded_content_shared_to_sponsor_status' => 'string', 'branded_content_sponsor_page_id' => 'string', 'call_to_action' => 'AdCreativeLinkDataCallToAction', diff --git a/src/FacebookAds/Object/Fields/AdFields.php b/src/FacebookAds/Object/Fields/AdFields.php index 4e665cccb..6d98a1e72 100644 --- a/src/FacebookAds/Object/Fields/AdFields.php +++ b/src/FacebookAds/Object/Fields/AdFields.php @@ -48,7 +48,6 @@ class AdFields extends AbstractEnum { const ID = 'id'; const ISSUES_INFO = 'issues_info'; const LAST_UPDATED_BY_APP_ID = 'last_updated_by_app_id'; - const META_REWARD_ADGROUP_STATUS = 'meta_reward_adgroup_status'; const NAME = 'name'; const PREVIEW_SHAREABLE_LINK = 'preview_shareable_link'; const PRIORITY = 'priority'; @@ -96,7 +95,6 @@ public function getFieldTypes() { 'id' => 'string', 'issues_info' => 'list', 'last_updated_by_app_id' => 'string', - 'meta_reward_adgroup_status' => 'string', 'name' => 'string', 'preview_shareable_link' => 'string', 'priority' => 'unsigned int', diff --git a/src/FacebookAds/Object/Fields/AdsInsightsFields.php b/src/FacebookAds/Object/Fields/AdsInsightsFields.php index e318f4df4..7f96f20ed 100644 --- a/src/FacebookAds/Object/Fields/AdsInsightsFields.php +++ b/src/FacebookAds/Object/Fields/AdsInsightsFields.php @@ -51,6 +51,7 @@ class AdsInsightsFields extends AbstractEnum { const CATALOG_SEGMENT_VALUE_OMNI_PURCHASE_ROAS = 'catalog_segment_value_omni_purchase_roas'; const CATALOG_SEGMENT_VALUE_WEBSITE_PURCHASE_ROAS = 'catalog_segment_value_website_purchase_roas'; const CLICKS = 'clicks'; + const CONVERSION_LEAD_RATE = 'conversion_lead_rate'; const CONVERSION_RATE_RANKING = 'conversion_rate_ranking'; const CONVERSION_VALUES = 'conversion_values'; const CONVERSIONS = 'conversions'; @@ -61,6 +62,7 @@ class AdsInsightsFields extends AbstractEnum { const COST_PER_ACTION_TYPE = 'cost_per_action_type'; const COST_PER_AD_CLICK = 'cost_per_ad_click'; const COST_PER_CONVERSION = 'cost_per_conversion'; + const COST_PER_CONVERSION_LEAD = 'cost_per_conversion_lead'; const COST_PER_DDA_COUNTBY_CONVS = 'cost_per_dda_countby_convs'; const COST_PER_ESTIMATED_AD_RECALLERS = 'cost_per_estimated_ad_recallers'; const COST_PER_INLINE_LINK_CLICK = 'cost_per_inline_link_click'; @@ -186,6 +188,7 @@ public function getFieldTypes() { 'catalog_segment_value_omni_purchase_roas' => 'list', 'catalog_segment_value_website_purchase_roas' => 'list', 'clicks' => 'string', + 'conversion_lead_rate' => 'string', 'conversion_rate_ranking' => 'string', 'conversion_values' => 'list', 'conversions' => 'list', @@ -196,6 +199,7 @@ public function getFieldTypes() { 'cost_per_action_type' => 'list', 'cost_per_ad_click' => 'list', 'cost_per_conversion' => 'list', + 'cost_per_conversion_lead' => 'string', 'cost_per_dda_countby_convs' => 'string', 'cost_per_estimated_ad_recallers' => 'string', 'cost_per_inline_link_click' => 'string', diff --git a/src/FacebookAds/Object/Fields/ApplicationFields.php b/src/FacebookAds/Object/Fields/ApplicationFields.php index c9d0b7bce..6e17f0eaf 100644 --- a/src/FacebookAds/Object/Fields/ApplicationFields.php +++ b/src/FacebookAds/Object/Fields/ApplicationFields.php @@ -104,6 +104,8 @@ class ApplicationFields extends AbstractEnum { const RESTRICTIONS = 'restrictions'; const RESTRICTIVE_DATA_FILTER_PARAMS = 'restrictive_data_filter_params'; const RESTRICTIVE_DATA_FILTER_RULES = 'restrictive_data_filter_rules'; + const SDK_AUTO_LOGGING_DEFAULT_VALUE = 'sdk_auto_logging_default_value'; + const SDK_AUTO_LOGGING_OVERRIDE_VALUE = 'sdk_auto_logging_override_value'; const SDK_UPDATE_MESSAGE = 'sdk_update_message'; const SEAMLESS_LOGIN = 'seamless_login'; const SECURE_CANVAS_URL = 'secure_canvas_url'; @@ -210,6 +212,8 @@ public function getFieldTypes() { 'restrictions' => 'Object', 'restrictive_data_filter_params' => 'string', 'restrictive_data_filter_rules' => 'string', + 'sdk_auto_logging_default_value' => 'bool', + 'sdk_auto_logging_override_value' => 'bool', 'sdk_update_message' => 'string', 'seamless_login' => 'int', 'secure_canvas_url' => 'string', diff --git a/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php b/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php new file mode 100644 index 000000000..eddb19832 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php @@ -0,0 +1,44 @@ + 'list', + 'eligible_platforms' => 'list', + 'id' => 'string', + 'is_used_in_ad' => 'bool', + 'last_update_time' => 'datetime', + 'name' => 'string', + 'welcome_message_flow' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CustomAudienceFields.php b/src/FacebookAds/Object/Fields/CustomAudienceFields.php index ea56df511..8ca35d0a9 100644 --- a/src/FacebookAds/Object/Fields/CustomAudienceFields.php +++ b/src/FacebookAds/Object/Fields/CustomAudienceFields.php @@ -81,6 +81,7 @@ class CustomAudienceFields extends AbstractEnum { const PRODUCT_SET_ID = 'product_set_id'; const USE_IN_CAMPAIGNS = 'use_in_campaigns'; const VIDEO_GROUP_IDS = 'video_group_ids'; + const WHATS_APP_BUSINESS_PHONE_NUMBER_ID = 'whats_app_business_phone_number_id'; public function getFieldTypes() { return array( @@ -143,6 +144,7 @@ public function getFieldTypes() { 'product_set_id' => 'string', 'use_in_campaigns' => 'bool', 'video_group_ids' => 'list', + 'whats_app_business_phone_number_id' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/HasLeadAccessFields.php b/src/FacebookAds/Object/Fields/HasLeadAccessFields.php new file mode 100644 index 000000000..a4c88c732 --- /dev/null +++ b/src/FacebookAds/Object/Fields/HasLeadAccessFields.php @@ -0,0 +1,48 @@ + 'bool', + 'can_access_lead' => 'bool', + 'enabled_lead_access_manager' => 'bool', + 'failure_reason' => 'string', + 'failure_resolution' => 'string', + 'is_page_admin' => 'bool', + 'page_id' => 'string', + 'user_has_leads_permission' => 'bool', + 'user_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php b/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php index 434a12e26..91b4a6975 100644 --- a/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php +++ b/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php @@ -34,7 +34,7 @@ public function getFieldTypes() { return array( 'ad_account' => 'AdAccount', 'catalog_segment' => 'ProductCatalog', - 'extended_credit' => 'ExtendedCredit', + 'extended_credit' => 'ManagedPartnerExtendedCredit', 'page' => 'Page', 'seller_business_info' => 'Object', 'seller_business_status' => 'string', diff --git a/src/FacebookAds/Object/Values/AdMetaRewardAdgroupStatusValues.php b/src/FacebookAds/Object/Fields/ManagedPartnerExtendedCreditFields.php similarity index 52% rename from src/FacebookAds/Object/Values/AdMetaRewardAdgroupStatusValues.php rename to src/FacebookAds/Object/Fields/ManagedPartnerExtendedCreditFields.php index 45ee765fc..5570256a9 100644 --- a/src/FacebookAds/Object/Values/AdMetaRewardAdgroupStatusValues.php +++ b/src/FacebookAds/Object/Fields/ManagedPartnerExtendedCreditFields.php @@ -7,7 +7,7 @@ * LICENSE file in the root directory of this source tree. */ -namespace FacebookAds\Object\Values; +namespace FacebookAds\Object\Fields; use FacebookAds\Enum\AbstractEnum; @@ -18,10 +18,19 @@ * on github and we'll fix in our codegen framework. We'll not be able to accept * pull request for this class. * - * @method static AdMetaRewardAdgroupStatusValues getInstance() */ -class AdMetaRewardAdgroupStatusValues extends AbstractEnum { - const ACTIVE = 'ACTIVE'; - const INACTIVE = 'INACTIVE'; +class ManagedPartnerExtendedCreditFields extends AbstractEnum { + + const ID = 'id'; + const MAX_BALANCE = 'max_balance'; + const RECEIVING_CREDIT_ALLOCATION_CONFIG = 'receiving_credit_allocation_config'; + + public function getFieldTypes() { + return array( + 'id' => 'string', + 'max_balance' => 'CurrencyAmount', + 'receiving_credit_allocation_config' => 'ExtendedCreditAllocationConfig', + ); + } } diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index 27448cb12..229491be8 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -74,6 +74,7 @@ class PageFields extends AbstractEnum { const GLOBAL_BRAND_PAGE_NAME = 'global_brand_page_name'; const GLOBAL_BRAND_ROOT_ID = 'global_brand_root_id'; const HAS_ADDED_APP = 'has_added_app'; + const HAS_LEAD_ACCESS = 'has_lead_access'; const HAS_TRANSITIONED_TO_NEW_PAGE_EXPERIENCE = 'has_transitioned_to_new_page_experience'; const HAS_WHATSAPP_BUSINESS_NUMBER = 'has_whatsapp_business_number'; const HAS_WHATSAPP_ENTERPRISE_NUMBER_USING_CLOUD_API = 'has_whatsapp_enterprise_number_using_cloud_api'; @@ -226,6 +227,7 @@ public function getFieldTypes() { 'global_brand_page_name' => 'string', 'global_brand_root_id' => 'string', 'has_added_app' => 'bool', + 'has_lead_access' => 'HasLeadAccess', 'has_transitioned_to_new_page_experience' => 'bool', 'has_whatsapp_business_number' => 'bool', 'has_whatsapp_enterprise_number_using_cloud_api' => 'bool', diff --git a/src/FacebookAds/Object/Fields/ShopFields.php b/src/FacebookAds/Object/Fields/ShopFields.php index bc0a9ca49..fc0a63e4c 100644 --- a/src/FacebookAds/Object/Fields/ShopFields.php +++ b/src/FacebookAds/Object/Fields/ShopFields.php @@ -25,6 +25,8 @@ class ShopFields extends AbstractEnum { const FB_SALES_CHANNEL = 'fb_sales_channel'; const ID = 'id'; const IG_SALES_CHANNEL = 'ig_sales_channel'; + const IS_ONSITE_ENABLED = 'is_onsite_enabled'; + const SHOP_STATUS = 'shop_status'; const WORKSPACE = 'workspace'; public function getFieldTypes() { @@ -32,6 +34,8 @@ public function getFieldTypes() { 'fb_sales_channel' => 'Object', 'id' => 'string', 'ig_sales_channel' => 'Object', + 'is_onsite_enabled' => 'bool', + 'shop_status' => 'string', 'workspace' => 'Object', ); } diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php index 72640a12e..1b93bca1d 100644 --- a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php @@ -28,6 +28,7 @@ class WhatsAppBusinessAccountFields extends AbstractEnum { const COUNTRY = 'country'; const CREATION_TIME = 'creation_time'; const CURRENCY = 'currency'; + const HEALTH_STATUS = 'health_status'; const ID = 'id'; const IS_ENABLED_FOR_INSIGHTS = 'is_enabled_for_insights'; const MESSAGE_TEMPLATE_NAMESPACE = 'message_template_namespace'; @@ -49,6 +50,7 @@ public function getFieldTypes() { 'country' => 'string', 'creation_time' => 'int', 'currency' => 'string', + 'health_status' => 'Object', 'id' => 'string', 'is_enabled_for_insights' => 'bool', 'message_template_namespace' => 'string', diff --git a/src/FacebookAds/Object/HasLeadAccess.php b/src/FacebookAds/Object/HasLeadAccess.php new file mode 100644 index 000000000..c717d64ea --- /dev/null +++ b/src/FacebookAds/Object/HasLeadAccess.php @@ -0,0 +1,42 @@ +execute(); } + public function createAbTest(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'control_video_id' => 'string', + 'description' => 'string', + 'duration' => 'unsigned int', + 'experiment_video_ids' => 'list', + 'name' => 'string', + 'optimization_goal' => 'optimization_goal_enum', + 'scheduled_experiment_timestamp' => 'unsigned int', + ); + $enums = array( + 'optimization_goal_enum' => PagePostExperimentOptimizationGoalValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/ab_tests', + new PagePostExperiment(), + 'EDGE', + PagePostExperiment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createAcknowledgeOrder(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2036,6 +2068,8 @@ public function deleteMessengerProfile(array $fields = array(), array $params = $enums = array( 'fields_enum' => array( 'ACCOUNT_LINKING_URL', + 'COMMANDS', + 'DESCRIPTION', 'GET_STARTED', 'GREETING', 'HOME_URL', @@ -2045,6 +2079,7 @@ public function deleteMessengerProfile(array $fields = array(), array $params = 'PLATFORM', 'SUBJECT_TO_NEW_EU_PRIVACY_RULES', 'TARGET_AUDIENCE', + 'TITLE', 'WHITELISTED_DOMAINS', ), 'platform_enum' => PagePlatformValues::getInstance()->getValues(), @@ -2095,6 +2130,8 @@ public function createMessengerProfile(array $fields = array(), array $params = $param_types = array( 'account_linking_url' => 'string', + 'commands' => 'list', + 'description' => 'list', 'get_started' => 'Object', 'greeting' => 'list', 'ice_breakers' => 'list', @@ -2102,6 +2139,7 @@ public function createMessengerProfile(array $fields = array(), array $params = 'persistent_menu' => 'list', 'platform' => 'platform_enum', 'target_audience' => 'Object', + 'title' => 'list', 'whitelisted_domains' => 'list', ); $enums = array( @@ -3537,6 +3575,30 @@ public function getVisitorPosts(array $fields = array(), array $params = array() return $pending ? $request : $request->execute(); } + public function deleteWelcomeMessageFlows(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'flow_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/welcome_message_flows', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getWelcomeMessageFlows(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -3552,6 +3614,37 @@ public function getWelcomeMessageFlows(array $fields = array(), array $params = $this->data['id'], RequestInterface::METHOD_GET, '/welcome_message_flows', + new CTXPartnerAppWelcomeMessageFlow(), + 'EDGE', + CTXPartnerAppWelcomeMessageFlow::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createWelcomeMessageFlow(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'eligible_platforms' => 'list', + 'flow_id' => 'string', + 'name' => 'string', + 'welcome_message_flow' => 'list', + ); + $enums = array( + 'eligible_platforms_enum' => array( + 'INSTAGRAM', + 'MESSENGER', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/welcome_message_flows', new AbstractCrudObject(), 'EDGE', array(), diff --git a/src/FacebookAds/Object/PagePostExperiment.php b/src/FacebookAds/Object/PagePostExperiment.php index 4ed1c60d7..a2525ec8b 100644 --- a/src/FacebookAds/Object/PagePostExperiment.php +++ b/src/FacebookAds/Object/PagePostExperiment.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\PagePostExperimentFields; +use FacebookAds\Object\Values\PagePostExperimentOptimizationGoalValues; /** * This class is auto-generated. @@ -35,6 +36,7 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['OptimizationGoal'] = PagePostExperimentOptimizationGoalValues::getInstance()->getValues(); return $ref_enums; } @@ -62,6 +64,29 @@ public function getVideoInsights(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } + public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/', + new AbstractCrudObject(), + 'NODE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index 88ae27703..e1f5aa883 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -23,9 +23,11 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AB_TEST = 'AB_TEST'; + const ACCOUNT_SPEND_LIMIT = 'ACCOUNT_SPEND_LIMIT'; const ACO_TOGGLE = 'ACO_TOGGLE'; const ADS_REPORTING = 'ADS_REPORTING'; const ADVANCED_CAMPAIGN_BUDGET = 'ADVANCED_CAMPAIGN_BUDGET'; + const ADVANTAGE_CUSTOM_AUDIENCE = 'ADVANTAGE_CUSTOM_AUDIENCE'; const ADVANTAGE_CUSTOM_AUDIENCE_UPSELL = 'ADVANTAGE_CUSTOM_AUDIENCE_UPSELL'; const ADVANTAGE_PLUS_AUDIENCE_FRICTION = 'ADVANTAGE_PLUS_AUDIENCE_FRICTION'; const ADVANTAGE_PLUS_AUDIENCE_TOGGLE = 'ADVANTAGE_PLUS_AUDIENCE_TOGGLE'; @@ -38,10 +40,16 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AGGREGATED_BID_LIMITED = 'AGGREGATED_BID_LIMITED'; const AGGREGATED_BUDGET_LIMITED = 'AGGREGATED_BUDGET_LIMITED'; const AGGREGATED_COST_LIMITED = 'AGGREGATED_COST_LIMITED'; + const APP_AEM_V2_INSTALLATION_PROMOTION = 'APP_AEM_V2_INSTALLATION_PROMOTION'; + const ASC_BUDGET_OPTIMIZATION = 'ASC_BUDGET_OPTIMIZATION'; + const ASC_BUDGET_OPTIMIZATION_PFR = 'ASC_BUDGET_OPTIMIZATION_PFR'; + const ASPECT_RATIO = 'ASPECT_RATIO'; + const ATLEAST_6_PLACEMENTS = 'ATLEAST_6_PLACEMENTS'; const AUCTION_OVERLAP = 'AUCTION_OVERLAP'; const AUCTION_OVERLAP_CONSOLIDATION = 'AUCTION_OVERLAP_CONSOLIDATION'; const AUDIENCE_EXPANSION = 'AUDIENCE_EXPANSION'; const AUDIENCE_EXPANSION_RETARGETING = 'AUDIENCE_EXPANSION_RETARGETING'; + const AUDIENCE_LEARNING_LIMITED = 'AUDIENCE_LEARNING_LIMITED'; const AUTOFLOW_OPT_IN = 'AUTOFLOW_OPT_IN'; const AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW = 'AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW'; const AUTOMATIC_PLACEMENTS = 'AUTOMATIC_PLACEMENTS'; @@ -57,7 +65,9 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const COST_GOAL_CPA_LIMITED = 'COST_GOAL_CPA_LIMITED'; const COST_PER_RESULT = 'COST_PER_RESULT'; const CREATION_PACKAGE_UPGRADE_TO_ASC = 'CREATION_PACKAGE_UPGRADE_TO_ASC'; + const CREATION_PACKAGE_UPGRADE_TO_TLA = 'CREATION_PACKAGE_UPGRADE_TO_TLA'; const CREATIVE_BADGE = 'CREATIVE_BADGE'; + const CREATIVE_DIVERSITY = 'CREATIVE_DIVERSITY'; const CREATIVE_FATIGUE = 'CREATIVE_FATIGUE'; const CREATIVE_FATIGUE_HOURLY = 'CREATIVE_FATIGUE_HOURLY'; const CREATIVE_LIMITED = 'CREATIVE_LIMITED'; @@ -71,8 +81,11 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const FRAGMENTATION = 'FRAGMENTATION'; const GES_TEST = 'GES_TEST'; const GUIDANCE_CENTER_CODE_GEN = 'GUIDANCE_CENTER_CODE_GEN'; + const HIGH_COST = 'HIGH_COST'; + const HISTORICAL_BENCHMARK = 'HISTORICAL_BENCHMARK'; const LEARNING_LIMITED = 'LEARNING_LIMITED'; const LEARNING_PAUSE_FRICTION = 'LEARNING_PAUSE_FRICTION'; + const LEARNING_PHASE_BUDGET_EDITS = 'LEARNING_PHASE_BUDGET_EDITS'; const LOW_OUTCOME = 'LOW_OUTCOME'; const MERLIN_GUIDANCE = 'MERLIN_GUIDANCE'; const MIXED_PA_COMBINE_ADSETS = 'MIXED_PA_COMBINE_ADSETS'; @@ -81,6 +94,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const MR_AEMV2SUB_KCONSOLIDATION = 'MR_AEMV2SUB_KCONSOLIDATION'; const MULTI_TEXT = 'MULTI_TEXT'; const MUSIC = 'MUSIC'; + const NOT_APPLICABLE = 'NOT_APPLICABLE'; const OPTIMAL_BAU = 'OPTIMAL_BAU'; const PAYMENT_METHOD = 'PAYMENT_METHOD'; const PERFORMANT_CREATIVE_REELS_OPT_IN = 'PERFORMANT_CREATIVE_REELS_OPT_IN'; @@ -88,6 +102,8 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const PREDICTIVE_CREATIVE_LIMITED = 'PREDICTIVE_CREATIVE_LIMITED'; const PREDICTIVE_CREATIVE_LIMITED_HOURLY = 'PREDICTIVE_CREATIVE_LIMITED_HOURLY'; const RAPID_LEARNING_LIMITED = 'RAPID_LEARNING_LIMITED'; + const RAPID_LEARNING_PHASE = 'RAPID_LEARNING_PHASE'; + const REELS_DUPLICATION_UPSELL = 'REELS_DUPLICATION_UPSELL'; const REVERT = 'REVERT'; const SCALE_GOOD_CAMPAIGN = 'SCALE_GOOD_CAMPAIGN'; const SEMANTIC_BASED_AUDIENCE_EXPANSION = 'SEMANTIC_BASED_AUDIENCE_EXPANSION'; @@ -100,9 +116,14 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const SYD_TEST_MODE = 'SYD_TEST_MODE'; const TOP_ADSETS_WITH_ADS_UNDER_CAP = 'TOP_ADSETS_WITH_ADS_UNDER_CAP'; const TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP = 'TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP'; + const TWO_P_GUIDANCE_CARD_AAA = 'TWO_P_GUIDANCE_CARD_AAA'; + const TWO_P_GUIDANCE_CARD_AUTO_PLACEMENT = 'TWO_P_GUIDANCE_CARD_AUTO_PLACEMENT'; + const TWO_P_GUIDANCE_CARD_CBO_OFF = 'TWO_P_GUIDANCE_CARD_CBO_OFF'; + const TWO_P_GUIDANCE_CARD_CTM_PREFLIGHT = 'TWO_P_GUIDANCE_CARD_CTM_PREFLIGHT'; const UNCROP_IMAGE = 'UNCROP_IMAGE'; const UNECONOMICAL_ADS_THROTTLING = 'UNECONOMICAL_ADS_THROTTLING'; const UNUSED_BUDGET = 'UNUSED_BUDGET'; const VIDEO_LENGTH = 'VIDEO_LENGTH'; + const ZERO_CONVERSION = 'ZERO_CONVERSION'; const ZERO_IMPRESSION = 'ZERO_IMPRESSION'; } diff --git a/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php b/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php index 447a04a70..ef1f8e30a 100644 --- a/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php +++ b/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php @@ -61,7 +61,6 @@ class AdAssetFeedSpecCallToActionTypesValues extends AbstractEnum { const LISTEN_NOW = 'LISTEN_NOW'; const MESSAGE_PAGE = 'MESSAGE_PAGE'; const MOBILE_DOWNLOAD = 'MOBILE_DOWNLOAD'; - const MOMENTS = 'MOMENTS'; const NO_BUTTON = 'NO_BUTTON'; const OPEN_INSTANT_APP = 'OPEN_INSTANT_APP'; const OPEN_LINK = 'OPEN_LINK'; diff --git a/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php b/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php index 208e95aca..80270405a 100644 --- a/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php +++ b/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php @@ -61,7 +61,6 @@ class AdCreativeCallToActionTypeValues extends AbstractEnum { const LISTEN_NOW = 'LISTEN_NOW'; const MESSAGE_PAGE = 'MESSAGE_PAGE'; const MOBILE_DOWNLOAD = 'MOBILE_DOWNLOAD'; - const MOMENTS = 'MOMENTS'; const NO_BUTTON = 'NO_BUTTON'; const OPEN_INSTANT_APP = 'OPEN_INSTANT_APP'; const OPEN_LINK = 'OPEN_LINK'; diff --git a/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php b/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php index 0473e11d3..959d5a1b2 100644 --- a/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php +++ b/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php @@ -61,7 +61,6 @@ class AdCreativeLinkDataCallToActionTypeValues extends AbstractEnum { const LISTEN_NOW = 'LISTEN_NOW'; const MESSAGE_PAGE = 'MESSAGE_PAGE'; const MOBILE_DOWNLOAD = 'MOBILE_DOWNLOAD'; - const MOMENTS = 'MOMENTS'; const NO_BUTTON = 'NO_BUTTON'; const OPEN_INSTANT_APP = 'OPEN_INSTANT_APP'; const OPEN_LINK = 'OPEN_LINK'; diff --git a/src/FacebookAds/Object/Values/AdPromotedObjectCustomEventTypeValues.php b/src/FacebookAds/Object/Values/AdPromotedObjectCustomEventTypeValues.php index 30fa721bf..9eee7eedd 100644 --- a/src/FacebookAds/Object/Values/AdPromotedObjectCustomEventTypeValues.php +++ b/src/FacebookAds/Object/Values/AdPromotedObjectCustomEventTypeValues.php @@ -26,6 +26,7 @@ class AdPromotedObjectCustomEventTypeValues extends AbstractEnum { const ADD_PAYMENT_INFO = 'ADD_PAYMENT_INFO'; const ADD_TO_CART = 'ADD_TO_CART'; const ADD_TO_WISHLIST = 'ADD_TO_WISHLIST'; + const AD_IMPRESSION = 'AD_IMPRESSION'; const COMPLETE_REGISTRATION = 'COMPLETE_REGISTRATION'; const CONTACT = 'CONTACT'; const CONTENT_VIEW = 'CONTENT_VIEW'; diff --git a/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php b/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php index 41ed2b9a2..ed91f7741 100644 --- a/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php +++ b/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php @@ -51,6 +51,7 @@ class CustomAudienceDataSourceSubTypeValues extends AbstractEnum { const INSTANT_ARTICLE_EVENTS = 'INSTANT_ARTICLE_EVENTS'; const LOOKALIKE_PLATFORM = 'LOOKALIKE_PLATFORM'; const MAIL_CHIMP_EMAIL_HASHES = 'MAIL_CHIMP_EMAIL_HASHES'; + const MESSENGER_ONSITE_SUBSCRIPTION = 'MESSENGER_ONSITE_SUBSCRIPTION'; const MOBILE_ADVERTISER_IDS = 'MOBILE_ADVERTISER_IDS'; const MOBILE_APP_COMBINATION_EVENTS = 'MOBILE_APP_COMBINATION_EVENTS'; const MOBILE_APP_CUSTOM_AUDIENCE_USERS = 'MOBILE_APP_CUSTOM_AUDIENCE_USERS'; diff --git a/src/FacebookAds/Object/Values/PagePostExperimentOptimizationGoalValues.php b/src/FacebookAds/Object/Values/PagePostExperimentOptimizationGoalValues.php new file mode 100644 index 000000000..d6bfdd0b0 --- /dev/null +++ b/src/FacebookAds/Object/Values/PagePostExperimentOptimizationGoalValues.php @@ -0,0 +1,36 @@ +execute(); } - public function getExtensions(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/extensions', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function createExtension(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'categories' => 'list', - 'clone_extension_id' => 'string', - 'clone_template' => 'string', - 'data_channel_uri' => 'string', - 'name' => 'string', - ); - $enums = array( - 'categories_enum' => array( - 'APPOINTMENT_BOOKING', - 'CONTACT_US', - 'CUSTOMER_SUPPORT', - 'LEAD_GENERATION', - 'OTHER', - 'SIGN_IN', - 'SIGN_UP', - 'SURVEY', - ), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/extensions', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getFlows(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); From 9ce605676adacb898328be53801010a2c8630113 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Fri, 1 Dec 2023 17:05:44 -0800 Subject: [PATCH 07/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D51766783 fbshipit-source-id: ac1f695a815dfbcde66183513e78ac224dfaa3d5 --- src/FacebookAds/ApiConfig.php | 2 +- .../Object/AdAssetFeedAdditionalData.php | 42 ++++++++++++ .../Object/AdAssetFeedSpecCallToAction.php | 42 ++++++++++++ .../Object/AdAssetFeedSpecCarousel.php | 42 ++++++++++++ ...AdAssetFeedSpecCarouselChildAttachment.php | 42 ++++++++++++ .../Object/AdAssetFeedSpecEvents.php | 42 ++++++++++++ .../Object/AdAssetOnsiteDestinations.php | 42 ++++++++++++ .../AdCreativeBrandedContentAdsPartners.php | 42 ++++++++++++ src/FacebookAds/Object/Application.php | 24 ------- src/FacebookAds/Object/BusinessUser.php | 1 + .../AdAssetFeedAdditionalDataFields.php | 40 ++++++++++++ .../AdAssetFeedSpecCallToActionFields.php | 36 ++++++++++ ...tFeedSpecCarouselChildAttachmentFields.php | 50 ++++++++++++++ .../Fields/AdAssetFeedSpecCarouselFields.php | 38 +++++++++++ .../Fields/AdAssetFeedSpecEventsFields.php | 32 +++++++++ .../Object/Fields/AdAssetFeedSpecFields.php | 10 +-- .../AdAssetOnsiteDestinationsFields.php | 38 +++++++++++ .../AdCreativeBrandedContentAdsFields.php | 2 +- ...reativeBrandedContentAdsPartnersFields.php | 38 +++++++++++ .../Object/Fields/ApplicationFields.php | 8 +-- .../Object/Fields/MessengerProfileFields.php | 2 + .../Fields/PagePostExperimentFields.php | 2 - .../Object/Fields/ProductItemFields.php | 2 + .../Fields/WhatsAppBusinessAccountFields.php | 2 +- .../WhatsAppBusinessHealthStatusFields.php | 40 ++++++++++++ ...sinessHealthStatusForMessageSendFields.php | 34 ++++++++++ .../Object/Fields/WhitehatFBDLRunFields.php | 46 +++++++++++++ src/FacebookAds/Object/User.php | 23 +++++++ .../Values/AdVideoContainerTypeValues.php | 1 + .../Values/ProductItemErrorTypeValues.php | 2 + .../Object/WhatsAppBusinessAccount.php | 25 ++++++- .../Object/WhatsAppBusinessHealthStatus.php | 42 ++++++++++++ ...sAppBusinessHealthStatusForMessageSend.php | 42 ++++++++++++ src/FacebookAds/Object/WhitehatFBDLRun.php | 65 +++++++++++++++++++ 34 files changed, 902 insertions(+), 39 deletions(-) create mode 100644 src/FacebookAds/Object/AdAssetFeedAdditionalData.php create mode 100644 src/FacebookAds/Object/AdAssetFeedSpecCallToAction.php create mode 100644 src/FacebookAds/Object/AdAssetFeedSpecCarousel.php create mode 100644 src/FacebookAds/Object/AdAssetFeedSpecCarouselChildAttachment.php create mode 100644 src/FacebookAds/Object/AdAssetFeedSpecEvents.php create mode 100644 src/FacebookAds/Object/AdAssetOnsiteDestinations.php create mode 100644 src/FacebookAds/Object/AdCreativeBrandedContentAdsPartners.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetFeedSpecCallToActionFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetFeedSpecCarouselChildAttachmentFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetFeedSpecCarouselFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetFeedSpecEventsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetOnsiteDestinationsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsPartnersFields.php create mode 100644 src/FacebookAds/Object/Fields/WhatsAppBusinessHealthStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/WhatsAppBusinessHealthStatusForMessageSendFields.php create mode 100644 src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php create mode 100644 src/FacebookAds/Object/WhatsAppBusinessHealthStatus.php create mode 100644 src/FacebookAds/Object/WhatsAppBusinessHealthStatusForMessageSend.php create mode 100644 src/FacebookAds/Object/WhitehatFBDLRun.php diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 30ce652ff..a2eefca0d 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '18.0'; - const SDKVersion = '18.0.3'; + const SDKVersion = '18.0.4'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AdAssetFeedAdditionalData.php b/src/FacebookAds/Object/AdAssetFeedAdditionalData.php new file mode 100644 index 000000000..1ac7e7c6c --- /dev/null +++ b/src/FacebookAds/Object/AdAssetFeedAdditionalData.php @@ -0,0 +1,42 @@ +execute(); } - public function getBanned(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'uid' => 'int', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/banned', - new User(), - 'EDGE', - User::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getButtonAutoDetectionDeviceSelection(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/BusinessUser.php b/src/FacebookAds/Object/BusinessUser.php index b83fc7953..6e96765d2 100644 --- a/src/FacebookAds/Object/BusinessUser.php +++ b/src/FacebookAds/Object/BusinessUser.php @@ -198,6 +198,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'last_name' => 'string', 'pending_email' => 'string', 'role' => 'role_enum', + 'skip_verification_email' => 'bool', 'title' => 'string', ); $enums = array( diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php new file mode 100644 index 000000000..ca740e260 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php @@ -0,0 +1,40 @@ + 'bool', + 'brand_page_id' => 'string', + 'is_click_to_message' => 'bool', + 'multi_share_end_card' => 'bool', + 'page_welcome_message' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecCallToActionFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecCallToActionFields.php new file mode 100644 index 000000000..184762b4f --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecCallToActionFields.php @@ -0,0 +1,36 @@ + 'list', + 'type' => 'string', + 'value' => 'AdCreativeLinkDataCallToActionValue', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecCarouselChildAttachmentFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecCarouselChildAttachmentFields.php new file mode 100644 index 000000000..cbbec4226 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecCarouselChildAttachmentFields.php @@ -0,0 +1,50 @@ + 'AdAssetFeedSpecAssetLabel', + 'call_to_action_type_label' => 'AdAssetFeedSpecAssetLabel', + 'caption_label' => 'AdAssetFeedSpecAssetLabel', + 'description_label' => 'AdAssetFeedSpecAssetLabel', + 'image_label' => 'AdAssetFeedSpecAssetLabel', + 'link_url_label' => 'AdAssetFeedSpecAssetLabel', + 'phone_data_ids_label' => 'AdAssetFeedSpecAssetLabel', + 'static_card' => 'bool', + 'title_label' => 'AdAssetFeedSpecAssetLabel', + 'video_label' => 'AdAssetFeedSpecAssetLabel', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecCarouselFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecCarouselFields.php new file mode 100644 index 000000000..5ff57eb7e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecCarouselFields.php @@ -0,0 +1,38 @@ + 'list', + 'child_attachments' => 'list', + 'multi_share_end_card' => 'bool', + 'multi_share_optimized' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecEventsFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecEventsFields.php new file mode 100644 index 000000000..9a00d87ad --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecEventsFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php index a6ed6bf7b..0fc9c1ca4 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php @@ -48,22 +48,22 @@ class AdAssetFeedSpecFields extends AbstractEnum { public function getFieldTypes() { return array( 'ad_formats' => 'list', - 'additional_data' => 'Object', + 'additional_data' => 'AdAssetFeedAdditionalData', 'app_product_page_id' => 'string', 'asset_customization_rules' => 'list', 'autotranslate' => 'list', 'bodies' => 'list', 'call_to_action_types' => 'list', - 'call_to_actions' => 'list', + 'call_to_actions' => 'list', 'captions' => 'list', - 'carousels' => 'list', + 'carousels' => 'list', 'descriptions' => 'list', - 'events' => 'list', + 'events' => 'list', 'groups' => 'list', 'images' => 'list', 'link_urls' => 'list', 'message_extensions' => 'list', - 'onsite_destinations' => 'list', + 'onsite_destinations' => 'list', 'optimization_type' => 'string', 'reasons_to_shop' => 'bool', 'shops_bundle' => 'bool', diff --git a/src/FacebookAds/Object/Fields/AdAssetOnsiteDestinationsFields.php b/src/FacebookAds/Object/Fields/AdAssetOnsiteDestinationsFields.php new file mode 100644 index 000000000..76b71788e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetOnsiteDestinationsFields.php @@ -0,0 +1,38 @@ + 'string', + 'details_page_product_id' => 'string', + 'shop_collection_product_set_id' => 'string', + 'storefront_shop_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php index 492b05ad8..533c9e31b 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php @@ -35,7 +35,7 @@ public function getFieldTypes() { 'creator_ad_permission_type' => 'string', 'instagram_boost_post_access_token' => 'string', 'is_mca_internal' => 'bool', - 'partners' => 'list', + 'partners' => 'list', 'ui_version' => 'int', ); } diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsPartnersFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsPartnersFields.php new file mode 100644 index 000000000..bf7c16df8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsPartnersFields.php @@ -0,0 +1,38 @@ + 'string', + 'identity_type' => 'string', + 'ig_asset_id' => 'string', + 'ig_user_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ApplicationFields.php b/src/FacebookAds/Object/Fields/ApplicationFields.php index 6e17f0eaf..162d3ad3f 100644 --- a/src/FacebookAds/Object/Fields/ApplicationFields.php +++ b/src/FacebookAds/Object/Fields/ApplicationFields.php @@ -47,6 +47,8 @@ class ApplicationFields extends AbstractEnum { const AUTO_EVENT_MAPPING_ANDROID = 'auto_event_mapping_android'; const AUTO_EVENT_MAPPING_IOS = 'auto_event_mapping_ios'; const AUTO_EVENT_SETUP_ENABLED = 'auto_event_setup_enabled'; + const AUTO_LOG_APP_EVENTS_DEFAULT = 'auto_log_app_events_default'; + const AUTO_LOG_APP_EVENTS_ENABLED = 'auto_log_app_events_enabled'; const BUSINESS = 'business'; const CANVAS_FLUID_HEIGHT = 'canvas_fluid_height'; const CANVAS_FLUID_WIDTH = 'canvas_fluid_width'; @@ -104,8 +106,6 @@ class ApplicationFields extends AbstractEnum { const RESTRICTIONS = 'restrictions'; const RESTRICTIVE_DATA_FILTER_PARAMS = 'restrictive_data_filter_params'; const RESTRICTIVE_DATA_FILTER_RULES = 'restrictive_data_filter_rules'; - const SDK_AUTO_LOGGING_DEFAULT_VALUE = 'sdk_auto_logging_default_value'; - const SDK_AUTO_LOGGING_OVERRIDE_VALUE = 'sdk_auto_logging_override_value'; const SDK_UPDATE_MESSAGE = 'sdk_update_message'; const SEAMLESS_LOGIN = 'seamless_login'; const SECURE_CANVAS_URL = 'secure_canvas_url'; @@ -155,6 +155,8 @@ public function getFieldTypes() { 'auto_event_mapping_android' => 'list', 'auto_event_mapping_ios' => 'list', 'auto_event_setup_enabled' => 'bool', + 'auto_log_app_events_default' => 'bool', + 'auto_log_app_events_enabled' => 'bool', 'business' => 'Business', 'canvas_fluid_height' => 'bool', 'canvas_fluid_width' => 'unsigned int', @@ -212,8 +214,6 @@ public function getFieldTypes() { 'restrictions' => 'Object', 'restrictive_data_filter_params' => 'string', 'restrictive_data_filter_rules' => 'string', - 'sdk_auto_logging_default_value' => 'bool', - 'sdk_auto_logging_override_value' => 'bool', 'sdk_update_message' => 'string', 'seamless_login' => 'int', 'secure_canvas_url' => 'string', diff --git a/src/FacebookAds/Object/Fields/MessengerProfileFields.php b/src/FacebookAds/Object/Fields/MessengerProfileFields.php index 040592594..4cfd29a2e 100644 --- a/src/FacebookAds/Object/Fields/MessengerProfileFields.php +++ b/src/FacebookAds/Object/Fields/MessengerProfileFields.php @@ -23,6 +23,7 @@ class MessengerProfileFields extends AbstractEnum { const ACCOUNT_LINKING_URL = 'account_linking_url'; + const COMMANDS = 'commands'; const GET_STARTED = 'get_started'; const GREETING = 'greeting'; const ICE_BREAKERS = 'ice_breakers'; @@ -35,6 +36,7 @@ class MessengerProfileFields extends AbstractEnum { public function getFieldTypes() { return array( 'account_linking_url' => 'string', + 'commands' => 'list', 'get_started' => 'Object', 'greeting' => 'list', 'ice_breakers' => 'list', diff --git a/src/FacebookAds/Object/Fields/PagePostExperimentFields.php b/src/FacebookAds/Object/Fields/PagePostExperimentFields.php index 72359712a..51df8377d 100644 --- a/src/FacebookAds/Object/Fields/PagePostExperimentFields.php +++ b/src/FacebookAds/Object/Fields/PagePostExperimentFields.php @@ -34,7 +34,6 @@ class PagePostExperimentFields extends AbstractEnum { const INSIGHT_SNAPSHOTS = 'insight_snapshots'; const NAME = 'name'; const OPTIMIZATION_GOAL = 'optimization_goal'; - const POST_VARIANT_FIELDS = 'post_variant_fields'; const PUBLISH_STATUS = 'publish_status'; const PUBLISH_TIME = 'publish_time'; const SCHEDULED_EXPERIMENT_TIMESTAMP = 'scheduled_experiment_timestamp'; @@ -54,7 +53,6 @@ public function getFieldTypes() { 'insight_snapshots' => 'list>>>', 'name' => 'string', 'optimization_goal' => 'string', - 'post_variant_fields' => 'list', 'publish_status' => 'string', 'publish_time' => 'datetime', 'scheduled_experiment_timestamp' => 'datetime', diff --git a/src/FacebookAds/Object/Fields/ProductItemFields.php b/src/FacebookAds/Object/Fields/ProductItemFields.php index 1a7ab6057..5d6687d1b 100644 --- a/src/FacebookAds/Object/Fields/ProductItemFields.php +++ b/src/FacebookAds/Object/Fields/ProductItemFields.php @@ -92,6 +92,7 @@ class ProductItemFields extends AbstractEnum { const SHORT_DESCRIPTION = 'short_description'; const SIZE = 'size'; const START_DATE = 'start_date'; + const TAGS = 'tags'; const URL = 'url'; const VIDEO_FETCH_STATUS = 'video_fetch_status'; const VISIBILITY = 'visibility'; @@ -193,6 +194,7 @@ public function getFieldTypes() { 'short_description' => 'string', 'size' => 'string', 'start_date' => 'string', + 'tags' => 'list', 'url' => 'string', 'video_fetch_status' => 'VideoFetchStatus', 'visibility' => 'Visibility', diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php index 1b93bca1d..142050493 100644 --- a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php @@ -50,7 +50,7 @@ public function getFieldTypes() { 'country' => 'string', 'creation_time' => 'int', 'currency' => 'string', - 'health_status' => 'Object', + 'health_status' => 'WhatsAppBusinessHealthStatusForMessageSend', 'id' => 'string', 'is_enabled_for_insights' => 'bool', 'message_template_namespace' => 'string', diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessHealthStatusFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessHealthStatusFields.php new file mode 100644 index 000000000..ef9dc6f3a --- /dev/null +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessHealthStatusFields.php @@ -0,0 +1,40 @@ + 'list', + 'can_send_message' => 'string', + 'entity_type' => 'string', + 'errors' => 'list', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessHealthStatusForMessageSendFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessHealthStatusForMessageSendFields.php new file mode 100644 index 000000000..da75f88b4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessHealthStatusForMessageSendFields.php @@ -0,0 +1,34 @@ + 'string', + 'entities' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php b/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php new file mode 100644 index 000000000..14dfe5ea6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php @@ -0,0 +1,46 @@ + 'datetime', + 'id' => 'string', + 'is_pinned' => 'bool', + 'note' => 'string', + 'result' => 'list>', + 'run_code' => 'string', + 'status' => 'string', + 'user_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/User.php b/src/FacebookAds/Object/User.php index e3149a5f0..460b690a3 100644 --- a/src/FacebookAds/Object/User.php +++ b/src/FacebookAds/Object/User.php @@ -670,6 +670,29 @@ public function getEvents(array $fields = array(), array $params = array(), $pen return $pending ? $request : $request->execute(); } + public function getFbdlRuns(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/fbdl_runs', + new WhitehatFBDLRun(), + 'EDGE', + WhitehatFBDLRun::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getFeed(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php index c04467de1..1894c874b 100644 --- a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +++ b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php @@ -96,6 +96,7 @@ class AdVideoContainerTypeValues extends AbstractEnum { const INSTAGRAM_VIDEO_COPY = 'INSTAGRAM_VIDEO_COPY'; const INSTANT_APPLICATION_PREVIEW = 'INSTANT_APPLICATION_PREVIEW'; const INSTANT_ARTICLE = 'INSTANT_ARTICLE'; + const INSTANT_GAMES_PROMO = 'INSTANT_GAMES_PROMO'; const INSTANT_GAME_CLIP = 'INSTANT_GAME_CLIP'; const ISSUE_MODULE = 'ISSUE_MODULE'; const JOBS_CAREERS = 'JOBS_CAREERS'; diff --git a/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php b/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php index 222356531..1306db7ed 100644 --- a/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php +++ b/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php @@ -27,6 +27,7 @@ class ProductItemErrorTypeValues extends AbstractEnum { const AVAILABLE = 'AVAILABLE'; const BAD_QUALITY_IMAGE = 'BAD_QUALITY_IMAGE'; const CANNOT_EDIT_SUBSCRIPTION_PRODUCTS = 'CANNOT_EDIT_SUBSCRIPTION_PRODUCTS'; + const CHECKOUT_DISABLED_BY_USER = 'CHECKOUT_DISABLED_BY_USER'; const COMMERCE_ACCOUNT_NOT_LEGALLY_COMPLIANT = 'COMMERCE_ACCOUNT_NOT_LEGALLY_COMPLIANT'; const CRAWLED_AVAILABILITY_MISMATCH = 'CRAWLED_AVAILABILITY_MISMATCH'; const DA_DISABLED_BY_USER = 'DA_DISABLED_BY_USER'; @@ -66,6 +67,7 @@ class ProductItemErrorTypeValues extends AbstractEnum { const ITEM_OVERRIDE_EMPTY_PRICE = 'ITEM_OVERRIDE_EMPTY_PRICE'; const ITEM_OVERRIDE_NOT_VISIBLE = 'ITEM_OVERRIDE_NOT_VISIBLE'; const ITEM_STALE_OUT_OF_STOCK = 'ITEM_STALE_OUT_OF_STOCK'; + const MARKETPLACE_DISABLED_BY_USER = 'MARKETPLACE_DISABLED_BY_USER'; const MINI_SHOPS_DISABLED_BY_USER = 'MINI_SHOPS_DISABLED_BY_USER'; const MISSING_CHECKOUT = 'MISSING_CHECKOUT'; const MISSING_CHECKOUT_CURRENCY = 'MISSING_CHECKOUT_CURRENCY'; diff --git a/src/FacebookAds/Object/WhatsAppBusinessAccount.php b/src/FacebookAds/Object/WhatsAppBusinessAccount.php index a4a7800a4..6a5cd9457 100644 --- a/src/FacebookAds/Object/WhatsAppBusinessAccount.php +++ b/src/FacebookAds/Object/WhatsAppBusinessAccount.php @@ -212,6 +212,29 @@ public function getConversationAnalytics(array $fields = array(), array $params return $pending ? $request : $request->execute(); } + public function getDccConfig(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, + '/dcc_config', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getFlows(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -242,7 +265,7 @@ public function createFlow(array $fields = array(), array $params = array(), $pe 'categories' => 'list', 'clone_flow_id' => 'string', 'clone_template' => 'string', - 'data_channel_uri' => 'string', + 'endpoint_uri' => 'string', 'name' => 'string', ); $enums = array( diff --git a/src/FacebookAds/Object/WhatsAppBusinessHealthStatus.php b/src/FacebookAds/Object/WhatsAppBusinessHealthStatus.php new file mode 100644 index 000000000..68defc007 --- /dev/null +++ b/src/FacebookAds/Object/WhatsAppBusinessHealthStatus.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WhitehatFBDLRun(), + 'NODE', + WhitehatFBDLRun::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} From 409e7a3aa45d823ef7136f42bd5cba6fa1852c57 Mon Sep 17 00:00:00 2001 From: Vitor Siqueira Date: Fri, 19 Jan 2024 10:33:16 -0800 Subject: [PATCH 08/34] Improve instructions of installing package via composer in README file (#592) Summary: Improve instructions to install the package via composer Issue https://github.com/facebook/facebook-php-business-sdk/issues/593 Pull Request resolved: https://github.com/facebook/facebook-php-business-sdk/pull/592 Reviewed By: mengxuanzhangz Differential Revision: D52914476 Pulled By: stcheng fbshipit-source-id: 2afb490e89f2968aa27b1d7d52584d0a8ec8e148 --- README.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d381dec0b..c2dbade02 100644 --- a/README.md +++ b/README.md @@ -53,19 +53,9 @@ The Facebook Business SDK requires PHP 8.0 or greater. The Facebook Business SDK uses composer to manage dependencies. Visit the composer documentation to learn how to install composer. -Add the following to your `composer.json` file: - -```json -{ - "require": { - "facebook/php-business-sdk": "16.0.*" - } -} -``` -then install it through composer: - +Execute the command below in your project root: ```shell -php composer.phar install --no-dev +composer require facebook/php-business-sdk ``` This SDK and its dependencies will be installed under `./vendor`. From 6d82637e0262478846b178669b847f19d8fa2517 Mon Sep 17 00:00:00 2001 From: Hamza Alayed Date: Mon, 22 Jan 2024 17:08:40 -0800 Subject: [PATCH 09/34] bug: Fix escape string in CatalogItemAppealStatusStatusValues.php (#594) Summary: :bug: Fix escape string in catalog item appeal status values Pull Request resolved: https://github.com/facebook/facebook-php-business-sdk/pull/594 Reviewed By: mengxuanzhangz Differential Revision: D52982956 Pulled By: stcheng fbshipit-source-id: 586da15dd14f8aaa0e98bb36e582d225fb09f578 --- .../Object/Values/CatalogItemAppealStatusStatusValues.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FacebookAds/Object/Values/CatalogItemAppealStatusStatusValues.php b/src/FacebookAds/Object/Values/CatalogItemAppealStatusStatusValues.php index ee8f8f598..d1bd36cb8 100644 --- a/src/FacebookAds/Object/Values/CatalogItemAppealStatusStatusValues.php +++ b/src/FacebookAds/Object/Values/CatalogItemAppealStatusStatusValues.php @@ -24,7 +24,7 @@ class CatalogItemAppealStatusStatusValues extends AbstractEnum { const THIS_ITEM_CANNOT_BE_APPEALED_AS_IT_IS_EITHER_APPROVED_OR_ALREADY_HAS_AN_APPEAL = 'This item cannot be appealed as it is either approved or already has an appeal'; const THIS_ITEM_IS_NOT_REJECTED_FOR_ANY_OF_CHANNELS = 'This item is not rejected for any of channels'; - const WE_VE_ENCOUNTERED_UNEXPECTED_ERROR_WHILE_PROCESSING_THIS_REQUEST_PLEASE_TRY_AGAIN_LATER_ = 'We've encountered unexpected error while processing this request. Please try again later !'; - const YOU_VE_REACHED_THE_MAXIMUM_NUMBER_OF_ITEM_REQUESTS_YOU_CAN_MAKE_THIS_WEEK_YOU_LL_BE_ABLE_TO_REQUEST_ITEM_REVIEWS_AGAIN_WITHIN_THE_NEXT_7_DAYS_ = 'You've reached the maximum number of item requests you can make this week. You'll be able to request item reviews again within the next 7 days.'; + const WE_VE_ENCOUNTERED_UNEXPECTED_ERROR_WHILE_PROCESSING_THIS_REQUEST_PLEASE_TRY_AGAIN_LATER_ = 'We\'ve encountered unexpected error while processing this request. Please try again later !'; + const YOU_VE_REACHED_THE_MAXIMUM_NUMBER_OF_ITEM_REQUESTS_YOU_CAN_MAKE_THIS_WEEK_YOU_LL_BE_ABLE_TO_REQUEST_ITEM_REVIEWS_AGAIN_WITHIN_THE_NEXT_7_DAYS_ = 'You\'ve reached the maximum number of item requests you can make this week. You\'ll be able to request item reviews again within the next 7 days.'; const YOUR_REQUEST_WAS_RECEIVED_SEE_INFORMATION_BELOW_TO_LEARN_MORE_ = 'Your request was received. See information below to learn more.'; } From bfec989895d5df4e89fc3b2dd398b42a83d11a33 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Tue, 23 Jan 2024 11:52:49 -0800 Subject: [PATCH 10/34] Support KeyValue Type for Ruby PHP and Python Summary: Add support of type KeyValue to Ruby, PHP, and Python. Reviewed By: mengxuanzhangz Differential Revision: D53016094 fbshipit-source-id: 50409b3f7f5f8df38853e266edf46e781c269a47 --- src/FacebookAds/Object/Fields/LeadgenFormFields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FacebookAds/Object/Fields/LeadgenFormFields.php b/src/FacebookAds/Object/Fields/LeadgenFormFields.php index 5ca2eb55c..cb3c81c7f 100644 --- a/src/FacebookAds/Object/Fields/LeadgenFormFields.php +++ b/src/FacebookAds/Object/Fields/LeadgenFormFields.php @@ -70,7 +70,7 @@ public function getFieldTypes() { 'questions' => 'list', 'status' => 'string', 'thank_you_page' => 'LeadGenThankYouPage', - 'tracking_parameters' => 'list>', + 'tracking_parameters' => 'list', ); } } From 4b976a8c7b4ebf0034a0e327f4e03462d944e75d Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Tue, 23 Jan 2024 15:34:35 -0800 Subject: [PATCH 11/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D53020059 fbshipit-source-id: fb1d683e4c9292341830d9a2100a040cdff2be59 --- src/FacebookAds/ApiConfig.php | 4 +- src/FacebookAds/Object/AdAccount.php | 28 ++++++++ src/FacebookAds/Object/AdsPixel.php | 1 + src/FacebookAds/Object/Application.php | 1 + src/FacebookAds/Object/Business.php | 4 +- src/FacebookAds/Object/Canvas.php | 23 +++++++ ...antArticlesStats.php => CanvasPreview.php} | 8 +-- src/FacebookAds/Object/CustomAudience.php | 50 ++++++++++++++ ...hatFBDLRun.php => CustomAudienceSalts.php} | 31 ++------- .../Object/DestinationCatalogSettings.php | 65 ------------------ .../AdAccountBusinessConstraintsFields.php | 4 ++ .../AdCreativeBrandedContentAdsFields.php | 2 + .../Object/Fields/AdPromotedObjectFields.php | 4 ++ .../Object/Fields/AdsActionStatsFields.php | 8 +++ .../Object/Fields/AdsHistogramStatsFields.php | 8 +++ ...ingsFields.php => CanvasPreviewFields.php} | 8 +-- ...elds.php => CustomAudienceSaltsFields.php} | 16 ++--- ...hp => VideoCopyrightCheckStatusFields.php} | 18 +---- .../VideoStatusErrorFields.php} | 18 +++-- .../Object/Fields/VideoStatusFields.php | 42 ++++++++++++ .../VideoStatusProcessingPhaseFields.php | 34 ++++++++++ ...p => VideoStatusPublishingPhaseFields.php} | 22 ++---- .../VideoStatusUploadingPhaseFields.php | 38 +++++++++++ src/FacebookAds/Object/GameItem.php | 67 ------------------- src/FacebookAds/Object/Group.php | 3 - src/FacebookAds/Object/IGMedia.php | 4 ++ src/FacebookAds/Object/Page.php | 30 --------- src/FacebookAds/Object/Profile.php | 3 - .../Object/ProfilePictureSource.php | 2 - src/FacebookAds/Object/User.php | 57 ---------------- .../AdAccountAdRulesHistoryActionValues.php | 2 + ...ccountAdVolumeRecommendationTypeValues.php | 7 ++ ....php => AdAccountPermittedTasksValues.php} | 10 ++- .../AdCreativeAuthorizationCategoryValues.php | 1 + ...AdRuleExecutionSpecExecutionTypeValues.php | 1 + .../Values/AdRuleHistoryActionValues.php | 2 + .../Values/AdVideoContainerTypeValues.php | 1 + .../Values/AdsInsightsBreakdownsValues.php | 1 + .../Object/Values/BusinessVerticalValues.php | 1 + .../InstagramInsightsResultMetricValues.php | 2 + .../Values/ProductItemErrorTypeValues.php | 3 + .../Object/VideoCopyrightCheckStatus.php | 42 ++++++++++++ src/FacebookAds/Object/VideoStatus.php | 42 ++++++++++++ src/FacebookAds/Object/VideoStatusError.php | 42 ++++++++++++ .../Object/VideoStatusProcessingPhase.php | 42 ++++++++++++ .../Object/VideoStatusPublishingPhase.php | 42 ++++++++++++ .../Object/VideoStatusUploadingPhase.php | 42 ++++++++++++ .../Object/WhatsAppBusinessAccount.php | 1 - 48 files changed, 568 insertions(+), 319 deletions(-) rename src/FacebookAds/Object/{InstantArticlesStats.php => CanvasPreview.php} (79%) rename src/FacebookAds/Object/{WhitehatFBDLRun.php => CustomAudienceSalts.php} (50%) delete mode 100644 src/FacebookAds/Object/DestinationCatalogSettings.php rename src/FacebookAds/Object/Fields/{DestinationCatalogSettingsFields.php => CanvasPreviewFields.php} (73%) rename src/FacebookAds/Object/Fields/{InstantArticlesStatsFields.php => CustomAudienceSaltsFields.php} (58%) rename src/FacebookAds/Object/Fields/{GameItemFields.php => VideoCopyrightCheckStatusFields.php} (60%) rename src/FacebookAds/Object/{Values/GameItemActionValues.php => Fields/VideoStatusErrorFields.php} (65%) create mode 100644 src/FacebookAds/Object/Fields/VideoStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/VideoStatusProcessingPhaseFields.php rename src/FacebookAds/Object/Fields/{WhitehatFBDLRunFields.php => VideoStatusPublishingPhaseFields.php} (57%) create mode 100644 src/FacebookAds/Object/Fields/VideoStatusUploadingPhaseFields.php delete mode 100644 src/FacebookAds/Object/GameItem.php rename src/FacebookAds/Object/Values/{ProfilePictureSourceBreakingChangeValues.php => AdAccountPermittedTasksValues.php} (66%) create mode 100644 src/FacebookAds/Object/VideoCopyrightCheckStatus.php create mode 100644 src/FacebookAds/Object/VideoStatus.php create mode 100644 src/FacebookAds/Object/VideoStatusError.php create mode 100644 src/FacebookAds/Object/VideoStatusProcessingPhase.php create mode 100644 src/FacebookAds/Object/VideoStatusPublishingPhase.php create mode 100644 src/FacebookAds/Object/VideoStatusUploadingPhase.php diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index a2eefca0d..cc89131d7 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -9,7 +9,7 @@ namespace FacebookAds; class ApiConfig { - const APIVersion = '18.0'; - const SDKVersion = '18.0.4'; + const APIVersion = '19.0'; + const SDKVersion = '19.0.0'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 73dad114a..2d7707b12 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -23,6 +23,7 @@ use FacebookAds\Object\Values\AdAccountCurrencyValues; use FacebookAds\Object\Values\AdAccountDeliveryEstimateOptimizationGoalValues; use FacebookAds\Object\Values\AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues; +use FacebookAds\Object\Values\AdAccountPermittedTasksValues; use FacebookAds\Object\Values\AdAccountSubtypeValues; use FacebookAds\Object\Values\AdAccountTargetingUnifiedAppStoreValues; use FacebookAds\Object\Values\AdAccountTargetingUnifiedLimitTypeValues; @@ -130,6 +131,7 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['Currency'] = AdAccountCurrencyValues::getInstance()->getValues(); + $ref_enums['PermittedTasks'] = AdAccountPermittedTasksValues::getInstance()->getValues(); $ref_enums['Tasks'] = AdAccountTasksValues::getInstance()->getValues(); $ref_enums['ClaimObjective'] = AdAccountClaimObjectiveValues::getInstance()->getValues(); $ref_enums['ContentType'] = AdAccountContentTypeValues::getInstance()->getValues(); @@ -1381,6 +1383,32 @@ public function getAgencies(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function createAgency(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'business' => 'string', + 'permitted_tasks' => 'list', + ); + $enums = array( + 'permitted_tasks_enum' => AdAccountPermittedTasksValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/agencies', + new AdAccount(), + 'EDGE', + AdAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getApplications(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AdsPixel.php b/src/FacebookAds/Object/AdsPixel.php index 1b568aa51..fa4137593 100644 --- a/src/FacebookAds/Object/AdsPixel.php +++ b/src/FacebookAds/Object/AdsPixel.php @@ -215,6 +215,7 @@ public function createEvent(array $fields = array(), array $params = array(), $p 'namespace_id' => 'string', 'partner_agent' => 'string', 'platforms' => 'list', + 'progress' => 'Object', 'test_event_code' => 'string', 'trace' => 'unsigned int', 'upload_id' => 'string', diff --git a/src/FacebookAds/Object/Application.php b/src/FacebookAds/Object/Application.php index f59f93851..b4e016cd5 100644 --- a/src/FacebookAds/Object/Application.php +++ b/src/FacebookAds/Object/Application.php @@ -1029,6 +1029,7 @@ public function createMmpAuditing(array $fields = array(), array $params = array 'click_attr_window' => 'unsigned int', 'custom_events' => 'list', 'decline_reason' => 'string', + 'engagement_type' => 'string', 'event' => 'string', 'event_reported_time' => 'unsigned int', 'fb_ad_id' => 'unsigned int', diff --git a/src/FacebookAds/Object/Business.php b/src/FacebookAds/Object/Business.php index ad4c196bf..8840cf898 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -44,7 +44,6 @@ use FacebookAds\Object\Values\CustomConversionCustomEventTypeValues; use FacebookAds\Object\Values\OmegaCustomerTrxTypeValues; use FacebookAds\Object\Values\ProductCatalogVerticalValues; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; use FacebookAds\Object\Values\SystemUserRoleValues; use FacebookAds\Object\Values\WhatsAppBusinessPreVerifiedPhoneNumberCodeVerificationStatusValues; @@ -1641,6 +1640,7 @@ public function createManagedPartnerBusiness(array $fields = array(), array $par 'LUXURY', 'MARKETING', 'NON_PROFIT', + 'NOT_SET', 'ORGANIZATIONS_AND_ASSOCIATIONS', 'OTHER', 'PROFESSIONAL_SERVICES', @@ -2415,14 +2415,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/Canvas.php b/src/FacebookAds/Object/Canvas.php index 15cc3ca54..7247e8b32 100644 --- a/src/FacebookAds/Object/Canvas.php +++ b/src/FacebookAds/Object/Canvas.php @@ -39,6 +39,29 @@ protected static function getReferencedEnums() { } + public function getPreview(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/preview', + new CanvasPreview(), + 'EDGE', + CanvasPreview::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getPreviews(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/InstantArticlesStats.php b/src/FacebookAds/Object/CanvasPreview.php similarity index 79% rename from src/FacebookAds/Object/InstantArticlesStats.php rename to src/FacebookAds/Object/CanvasPreview.php index ac09914c0..09c15fed1 100644 --- a/src/FacebookAds/Object/InstantArticlesStats.php +++ b/src/FacebookAds/Object/CanvasPreview.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\InstantArticlesStatsFields; +use FacebookAds\Object\Fields\CanvasPreviewFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class InstantArticlesStats extends AbstractObject { +class CanvasPreview extends AbstractObject { /** - * @return InstantArticlesStatsFields + * @return CanvasPreviewFields */ public static function getFieldsEnum() { - return InstantArticlesStatsFields::getInstance(); + return CanvasPreviewFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/CustomAudience.php b/src/FacebookAds/Object/CustomAudience.php index 1b327b9c2..cc29148f6 100644 --- a/src/FacebookAds/Object/CustomAudience.php +++ b/src/FacebookAds/Object/CustomAudience.php @@ -172,6 +172,56 @@ public function getAds(array $fields = array(), array $params = array(), $pendin return $pending ? $request : $request->execute(); } + public function getSalts(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'params' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/salts', + new CustomAudienceSalts(), + 'EDGE', + CustomAudienceSalts::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createSalt(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'salt' => 'string', + 'valid_from' => 'datetime', + 'valid_to' => 'datetime', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/salts', + new CustomAudience(), + 'EDGE', + CustomAudience::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSessions(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/WhitehatFBDLRun.php b/src/FacebookAds/Object/CustomAudienceSalts.php similarity index 50% rename from src/FacebookAds/Object/WhitehatFBDLRun.php rename to src/FacebookAds/Object/CustomAudienceSalts.php index 99b6902f8..ee1ed67f8 100644 --- a/src/FacebookAds/Object/WhitehatFBDLRun.php +++ b/src/FacebookAds/Object/CustomAudienceSalts.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\WhitehatFBDLRunFields; +use FacebookAds\Object\Fields\CustomAudienceSaltsFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class WhitehatFBDLRun extends AbstractCrudObject { +class CustomAudienceSalts extends AbstractObject { /** - * @return WhitehatFBDLRunFields + * @return CustomAudienceSaltsFields */ public static function getFieldsEnum() { - return WhitehatFBDLRunFields::getInstance(); + return CustomAudienceSaltsFields::getInstance(); } protected static function getReferencedEnums() { @@ -39,27 +39,4 @@ protected static function getReferencedEnums() { } - public function getSelf(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/', - new WhitehatFBDLRun(), - 'NODE', - WhitehatFBDLRun::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - } diff --git a/src/FacebookAds/Object/DestinationCatalogSettings.php b/src/FacebookAds/Object/DestinationCatalogSettings.php deleted file mode 100644 index 80f05e4ee..000000000 --- a/src/FacebookAds/Object/DestinationCatalogSettings.php +++ /dev/null @@ -1,65 +0,0 @@ -assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/', - new DestinationCatalogSettings(), - 'NODE', - DestinationCatalogSettings::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - -} diff --git a/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php b/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php index 4ab6adda7..e69608af1 100644 --- a/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php @@ -23,12 +23,16 @@ class AdAccountBusinessConstraintsFields extends AbstractEnum { const AUDIENCE_CONTROLS = 'audience_controls'; + const CAMPAIGNS_WITH_ERROR = 'campaigns_with_error'; const PLACEMENT_CONTROLS = 'placement_controls'; + const STATUS = 'status'; public function getFieldTypes() { return array( 'audience_controls' => 'Object', + 'campaigns_with_error' => 'list', 'placement_controls' => 'Object', + 'status' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php index 533c9e31b..e98a38610 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php @@ -27,6 +27,7 @@ class AdCreativeBrandedContentAdsFields extends AbstractEnum { const INSTAGRAM_BOOST_POST_ACCESS_TOKEN = 'instagram_boost_post_access_token'; const IS_MCA_INTERNAL = 'is_mca_internal'; const PARTNERS = 'partners'; + const PROMOTED_PAGE_ID = 'promoted_page_id'; const UI_VERSION = 'ui_version'; public function getFieldTypes() { @@ -36,6 +37,7 @@ public function getFieldTypes() { 'instagram_boost_post_access_token' => 'string', 'is_mca_internal' => 'bool', 'partners' => 'list', + 'promoted_page_id' => 'string', 'ui_version' => 'int', ); } diff --git a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php index d8b5f4ad2..ada6d7cad 100644 --- a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php +++ b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php @@ -43,8 +43,10 @@ class AdPromotedObjectFields extends AbstractEnum { const PLACE_PAGE_SET_ID = 'place_page_set_id'; const PRODUCT_CATALOG_ID = 'product_catalog_id'; const PRODUCT_ITEM_ID = 'product_item_id'; + const PRODUCT_SET = 'product_set'; const PRODUCT_SET_ID = 'product_set_id'; const RETENTION_DAYS = 'retention_days'; + const WHATSAPP_PHONE_NUMBER = 'whatsapp_phone_number'; public function getFieldTypes() { return array( @@ -69,8 +71,10 @@ public function getFieldTypes() { 'place_page_set_id' => 'string', 'product_catalog_id' => 'string', 'product_item_id' => 'string', + 'product_set' => 'ProductSet', 'product_set_id' => 'string', 'retention_days' => 'string', + 'whatsapp_phone_number' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdsActionStatsFields.php b/src/FacebookAds/Object/Fields/AdsActionStatsFields.php index 0d942de62..bedfffb0a 100644 --- a/src/FacebookAds/Object/Fields/AdsActionStatsFields.php +++ b/src/FacebookAds/Object/Fields/AdsActionStatsFields.php @@ -52,7 +52,11 @@ class AdsActionStatsFields extends AbstractEnum { const INTERACTIVE_COMPONENT_STICKER_ID = 'interactive_component_sticker_id'; const INTERACTIVE_COMPONENT_STICKER_RESPONSE = 'interactive_component_sticker_response'; const SKAN_CLICK = 'skan_click'; + const SKAN_CLICK_SECOND_POSTBACK = 'skan_click_second_postback'; + const SKAN_CLICK_THIRD_POSTBACK = 'skan_click_third_postback'; const SKAN_VIEW = 'skan_view'; + const SKAN_VIEW_SECOND_POSTBACK = 'skan_view_second_postback'; + const SKAN_VIEW_THIRD_POSTBACK = 'skan_view_third_postback'; const VALUE = 'value'; public function getFieldTypes() { @@ -87,7 +91,11 @@ public function getFieldTypes() { 'interactive_component_sticker_id' => 'string', 'interactive_component_sticker_response' => 'string', 'skan_click' => 'string', + 'skan_click_second_postback' => 'string', + 'skan_click_third_postback' => 'string', 'skan_view' => 'string', + 'skan_view_second_postback' => 'string', + 'skan_view_third_postback' => 'string', 'value' => 'string', ); } diff --git a/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php b/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php index 64240adf7..316a3b9b4 100644 --- a/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php +++ b/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php @@ -52,7 +52,11 @@ class AdsHistogramStatsFields extends AbstractEnum { const INTERACTIVE_COMPONENT_STICKER_ID = 'interactive_component_sticker_id'; const INTERACTIVE_COMPONENT_STICKER_RESPONSE = 'interactive_component_sticker_response'; const SKAN_CLICK = 'skan_click'; + const SKAN_CLICK_SECOND_POSTBACK = 'skan_click_second_postback'; + const SKAN_CLICK_THIRD_POSTBACK = 'skan_click_third_postback'; const SKAN_VIEW = 'skan_view'; + const SKAN_VIEW_SECOND_POSTBACK = 'skan_view_second_postback'; + const SKAN_VIEW_THIRD_POSTBACK = 'skan_view_third_postback'; const VALUE = 'value'; public function getFieldTypes() { @@ -87,7 +91,11 @@ public function getFieldTypes() { 'interactive_component_sticker_id' => 'string', 'interactive_component_sticker_response' => 'string', 'skan_click' => 'list', + 'skan_click_second_postback' => 'list', + 'skan_click_third_postback' => 'list', 'skan_view' => 'list', + 'skan_view_second_postback' => 'list', + 'skan_view_third_postback' => 'list', 'value' => 'list', ); } diff --git a/src/FacebookAds/Object/Fields/DestinationCatalogSettingsFields.php b/src/FacebookAds/Object/Fields/CanvasPreviewFields.php similarity index 73% rename from src/FacebookAds/Object/Fields/DestinationCatalogSettingsFields.php rename to src/FacebookAds/Object/Fields/CanvasPreviewFields.php index 8ea57b136..bfdcfc161 100644 --- a/src/FacebookAds/Object/Fields/DestinationCatalogSettingsFields.php +++ b/src/FacebookAds/Object/Fields/CanvasPreviewFields.php @@ -20,15 +20,13 @@ * */ -class DestinationCatalogSettingsFields extends AbstractEnum { +class CanvasPreviewFields extends AbstractEnum { - const GENERATE_ITEMS_FROM_PAGES = 'generate_items_from_pages'; - const ID = 'id'; + const BODY = 'body'; public function getFieldTypes() { return array( - 'generate_items_from_pages' => 'bool', - 'id' => 'string', + 'body' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/InstantArticlesStatsFields.php b/src/FacebookAds/Object/Fields/CustomAudienceSaltsFields.php similarity index 58% rename from src/FacebookAds/Object/Fields/InstantArticlesStatsFields.php rename to src/FacebookAds/Object/Fields/CustomAudienceSaltsFields.php index bc16c25e5..14761c8dd 100644 --- a/src/FacebookAds/Object/Fields/InstantArticlesStatsFields.php +++ b/src/FacebookAds/Object/Fields/CustomAudienceSaltsFields.php @@ -20,21 +20,15 @@ * */ -class InstantArticlesStatsFields extends AbstractEnum { +class CustomAudienceSaltsFields extends AbstractEnum { - const ERROR = 'error'; - const METADATA = 'metadata'; - const METRIC = 'metric'; - const TOTALS = 'totals'; - const X_AXIS_BREAKDOWN = 'x_axis_breakdown'; + const APP_ID = 'app_id'; + const PUBLIC_KEY = 'public_key'; public function getFieldTypes() { return array( - 'error' => 'string', - 'metadata' => 'list>', - 'metric' => 'Object', - 'totals' => 'list>', - 'x_axis_breakdown' => 'list>>', + 'app_id' => 'int', + 'public_key' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/GameItemFields.php b/src/FacebookAds/Object/Fields/VideoCopyrightCheckStatusFields.php similarity index 60% rename from src/FacebookAds/Object/Fields/GameItemFields.php rename to src/FacebookAds/Object/Fields/VideoCopyrightCheckStatusFields.php index 382527c0f..74274a75b 100644 --- a/src/FacebookAds/Object/Fields/GameItemFields.php +++ b/src/FacebookAds/Object/Fields/VideoCopyrightCheckStatusFields.php @@ -20,27 +20,15 @@ * */ -class GameItemFields extends AbstractEnum { +class VideoCopyrightCheckStatusFields extends AbstractEnum { - const COUNT = 'count'; - const CREATED = 'created'; - const EXT_ID = 'ext_id'; - const ID = 'id'; - const ITEM_DEF = 'item_def'; - const OWNER = 'owner'; + const MATCHES_FOUND = 'matches_found'; const STATUS = 'status'; - const UPDATED = 'updated'; public function getFieldTypes() { return array( - 'count' => 'int', - 'created' => 'datetime', - 'ext_id' => 'string', - 'id' => 'string', - 'item_def' => 'string', - 'owner' => 'User', + 'matches_found' => 'bool', 'status' => 'string', - 'updated' => 'datetime', ); } } diff --git a/src/FacebookAds/Object/Values/GameItemActionValues.php b/src/FacebookAds/Object/Fields/VideoStatusErrorFields.php similarity index 65% rename from src/FacebookAds/Object/Values/GameItemActionValues.php rename to src/FacebookAds/Object/Fields/VideoStatusErrorFields.php index f2a00fc43..fd37e66a1 100644 --- a/src/FacebookAds/Object/Values/GameItemActionValues.php +++ b/src/FacebookAds/Object/Fields/VideoStatusErrorFields.php @@ -7,7 +7,7 @@ * LICENSE file in the root directory of this source tree. */ -namespace FacebookAds\Object\Values; +namespace FacebookAds\Object\Fields; use FacebookAds\Enum\AbstractEnum; @@ -18,11 +18,17 @@ * on github and we'll fix in our codegen framework. We'll not be able to accept * pull request for this class. * - * @method static GameItemActionValues getInstance() */ -class GameItemActionValues extends AbstractEnum { - const CONSUME = 'CONSUME'; - const DROP = 'DROP'; - const MARK = 'MARK'; +class VideoStatusErrorFields extends AbstractEnum { + + const CODE = 'code'; + const MESSAGE = 'message'; + + public function getFieldTypes() { + return array( + 'code' => 'int', + 'message' => 'string', + ); + } } diff --git a/src/FacebookAds/Object/Fields/VideoStatusFields.php b/src/FacebookAds/Object/Fields/VideoStatusFields.php new file mode 100644 index 000000000..5fd8e7fcc --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoStatusFields.php @@ -0,0 +1,42 @@ + 'VideoCopyrightCheckStatus', + 'processing_phase' => 'VideoStatusProcessingPhase', + 'processing_progress' => 'unsigned int', + 'publishing_phase' => 'VideoStatusPublishingPhase', + 'uploading_phase' => 'VideoStatusUploadingPhase', + 'video_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/VideoStatusProcessingPhaseFields.php b/src/FacebookAds/Object/Fields/VideoStatusProcessingPhaseFields.php new file mode 100644 index 000000000..ff2ce12b2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoStatusProcessingPhaseFields.php @@ -0,0 +1,34 @@ + 'list', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php b/src/FacebookAds/Object/Fields/VideoStatusPublishingPhaseFields.php similarity index 57% rename from src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php rename to src/FacebookAds/Object/Fields/VideoStatusPublishingPhaseFields.php index 14dfe5ea6..97a5a36cf 100644 --- a/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php +++ b/src/FacebookAds/Object/Fields/VideoStatusPublishingPhaseFields.php @@ -20,27 +20,19 @@ * */ -class WhitehatFBDLRunFields extends AbstractEnum { +class VideoStatusPublishingPhaseFields extends AbstractEnum { - const CREATION_TIME = 'creation_time'; - const ID = 'id'; - const IS_PINNED = 'is_pinned'; - const NOTE = 'note'; - const RESULT = 'result'; - const RUN_CODE = 'run_code'; + const ERRORS = 'errors'; + const PUBLISH_STATUS = 'publish_status'; + const PUBLISH_TIME = 'publish_time'; const STATUS = 'status'; - const USER_TYPE = 'user_type'; public function getFieldTypes() { return array( - 'creation_time' => 'datetime', - 'id' => 'string', - 'is_pinned' => 'bool', - 'note' => 'string', - 'result' => 'list>', - 'run_code' => 'string', + 'errors' => 'list', + 'publish_status' => 'string', + 'publish_time' => 'datetime', 'status' => 'string', - 'user_type' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/VideoStatusUploadingPhaseFields.php b/src/FacebookAds/Object/Fields/VideoStatusUploadingPhaseFields.php new file mode 100644 index 000000000..9130c5437 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoStatusUploadingPhaseFields.php @@ -0,0 +1,38 @@ + 'unsigned int', + 'errors' => 'list', + 'source_file_size' => 'unsigned int', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/GameItem.php b/src/FacebookAds/Object/GameItem.php deleted file mode 100644 index 9db777872..000000000 --- a/src/FacebookAds/Object/GameItem.php +++ /dev/null @@ -1,67 +0,0 @@ -getValues(); - return $ref_enums; - } - - - public function getSelf(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/', - new GameItem(), - 'NODE', - GameItem::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - -} diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index 9c2c3ff3f..b3991d96d 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -42,7 +42,6 @@ use FacebookAds\Object\Values\PostPostingToRedspaceValues; use FacebookAds\Object\Values\PostTargetSurfaceValues; use FacebookAds\Object\Values\PostUnpublishedContentTypeValues; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; /** @@ -708,14 +707,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/IGMedia.php b/src/FacebookAds/Object/IGMedia.php index 88acc8256..27a4e95ee 100644 --- a/src/FacebookAds/Object/IGMedia.php +++ b/src/FacebookAds/Object/IGMedia.php @@ -241,6 +241,10 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->assureId(); $param_types = array( + 'primary_fb_page_id' => 'string', + 'primary_ig_user_id' => 'string', + 'secondary_fb_page_id' => 'string', + 'secondary_ig_user_id' => 'string', ); $enums = array( ); diff --git a/src/FacebookAds/Object/Page.php b/src/FacebookAds/Object/Page.php index 436458947..93391c53e 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -73,7 +73,6 @@ use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues; use FacebookAds\Object\Values\PhotoTypeValues; use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; use FacebookAds\Object\Values\StoriesStatusValues; use FacebookAds\Object\Values\UnifiedThreadPlatformValues; @@ -1574,33 +1573,6 @@ public function getInstagramAccounts(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getInstantArticlesStats(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'metrics_list' => 'list', - 'page_list' => 'list', - 'since' => 'datetime', - 'until' => 'datetime', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/instant_articles_stats', - new InstantArticlesStats(), - 'EDGE', - InstantArticlesStats::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getLeadGenForms(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2547,14 +2519,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/Profile.php b/src/FacebookAds/Object/Profile.php index c3bccfa49..fc4fcc4f6 100644 --- a/src/FacebookAds/Object/Profile.php +++ b/src/FacebookAds/Object/Profile.php @@ -14,7 +14,6 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ProfileFields; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; use FacebookAds\Object\Values\ProfileProfileTypeValues; use FacebookAds\Object\Values\ProfileTypeValues; @@ -49,14 +48,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/ProfilePictureSource.php b/src/FacebookAds/Object/ProfilePictureSource.php index 15a1a53c7..8d6a2e107 100644 --- a/src/FacebookAds/Object/ProfilePictureSource.php +++ b/src/FacebookAds/Object/ProfilePictureSource.php @@ -14,7 +14,6 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ProfilePictureSourceFields; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; /** @@ -38,7 +37,6 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['Type'] = ProfilePictureSourceTypeValues::getInstance()->getValues(); - $ref_enums['BreakingChange'] = ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/User.php b/src/FacebookAds/Object/User.php index 460b690a3..b1c9c0326 100644 --- a/src/FacebookAds/Object/User.php +++ b/src/FacebookAds/Object/User.php @@ -27,7 +27,6 @@ use FacebookAds\Object\Values\BusinessVerticalValues; use FacebookAds\Object\Values\EventTypeValues; use FacebookAds\Object\Values\FundraiserPersonToCharityFundraiserTypeValues; -use FacebookAds\Object\Values\GameItemActionValues; use FacebookAds\Object\Values\LiveVideoBroadcastStatusValues; use FacebookAds\Object\Values\LiveVideoProjectionValues; use FacebookAds\Object\Values\LiveVideoSourceValues; @@ -46,7 +45,6 @@ use FacebookAds\Object\Values\PostPostingToRedspaceValues; use FacebookAds\Object\Values\PostTargetSurfaceValues; use FacebookAds\Object\Values\PostUnpublishedContentTypeValues; -use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues; use FacebookAds\Object\Values\ProfilePictureSourceTypeValues; use FacebookAds\Object\Values\UnifiedThreadPlatformValues; use FacebookAds\Object\Values\UserFilteringValues; @@ -670,29 +668,6 @@ public function getEvents(array $fields = array(), array $params = array(), $pen return $pending ? $request : $request->execute(); } - public function getFbdlRuns(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/fbdl_runs', - new WhitehatFBDLRun(), - 'EDGE', - WhitehatFBDLRun::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getFeed(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -947,36 +922,6 @@ public function createFundraiser(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } - public function createGameItem(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'action' => 'action_enum', - 'app_id' => 'string', - 'drop_table_id' => 'string', - 'ext_id' => 'string', - 'item_id' => 'string', - 'quantity' => 'unsigned int', - ); - $enums = array( - 'action_enum' => GameItemActionValues::getInstance()->getValues(), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/game_items', - new GameItem(), - 'EDGE', - GameItem::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function createGameTime(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1488,14 +1433,12 @@ public function getPicture(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( - 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php index cabe2cf1f..974bc0289 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php @@ -27,7 +27,9 @@ class AdAccountAdRulesHistoryActionValues extends AbstractEnum { const CHANGED_BUDGET = 'CHANGED_BUDGET'; const EMAIL = 'EMAIL'; const ENABLE_ADVANTAGE_PLUS_CREATIVE = 'ENABLE_ADVANTAGE_PLUS_CREATIVE'; + const ENABLE_ADVANTAGE_PLUS_PLACEMENTS = 'ENABLE_ADVANTAGE_PLUS_PLACEMENTS'; const ENABLE_AUTOFLOW = 'ENABLE_AUTOFLOW'; + const ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION = 'ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION'; const ENDPOINT_PINGED = 'ENDPOINT_PINGED'; const ERROR = 'ERROR'; const FACEBOOK_NOTIFICATION_SENT = 'FACEBOOK_NOTIFICATION_SENT'; diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index e1f5aa883..9931d1a83 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -27,12 +27,17 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const ACO_TOGGLE = 'ACO_TOGGLE'; const ADS_REPORTING = 'ADS_REPORTING'; const ADVANCED_CAMPAIGN_BUDGET = 'ADVANCED_CAMPAIGN_BUDGET'; + const ADVANTAGE_APP_CAMPAIGN = 'ADVANTAGE_APP_CAMPAIGN'; const ADVANTAGE_CUSTOM_AUDIENCE = 'ADVANTAGE_CUSTOM_AUDIENCE'; const ADVANTAGE_CUSTOM_AUDIENCE_UPSELL = 'ADVANTAGE_CUSTOM_AUDIENCE_UPSELL'; + const ADVANTAGE_DETAILED_TARGETING = 'ADVANTAGE_DETAILED_TARGETING'; + const ADVANTAGE_LOOKALIKE_AUDIENCE = 'ADVANTAGE_LOOKALIKE_AUDIENCE'; + const ADVANTAGE_PLUS_AUDIENCE = 'ADVANTAGE_PLUS_AUDIENCE'; const ADVANTAGE_PLUS_AUDIENCE_FRICTION = 'ADVANTAGE_PLUS_AUDIENCE_FRICTION'; const ADVANTAGE_PLUS_AUDIENCE_TOGGLE = 'ADVANTAGE_PLUS_AUDIENCE_TOGGLE'; const ADVANTAGE_PLUS_CREATIVE = 'ADVANTAGE_PLUS_CREATIVE'; const ADVANTAGE_PLUS_CREATIVE_CATALOG = 'ADVANTAGE_PLUS_CREATIVE_CATALOG'; + const ADVANTAGE_PLUS_PLACEMENTS_FRICTION = 'ADVANTAGE_PLUS_PLACEMENTS_FRICTION'; const ADVANTAGE_SHOPPING_CAMPAIGN = 'ADVANTAGE_SHOPPING_CAMPAIGN'; const ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION = 'ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION'; const AD_OBJECTIVE = 'AD_OBJECTIVE'; @@ -83,6 +88,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const GUIDANCE_CENTER_CODE_GEN = 'GUIDANCE_CENTER_CODE_GEN'; const HIGH_COST = 'HIGH_COST'; const HISTORICAL_BENCHMARK = 'HISTORICAL_BENCHMARK'; + const IG_MULTI_ADS = 'IG_MULTI_ADS'; const LEARNING_LIMITED = 'LEARNING_LIMITED'; const LEARNING_PAUSE_FRICTION = 'LEARNING_PAUSE_FRICTION'; const LEARNING_PHASE_BUDGET_EDITS = 'LEARNING_PHASE_BUDGET_EDITS'; @@ -114,6 +120,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const SIX_PLUS_MANUAL_PLACEMENTS = 'SIX_PLUS_MANUAL_PLACEMENTS'; const SPEND_LIMIT = 'SPEND_LIMIT'; const SYD_TEST_MODE = 'SYD_TEST_MODE'; + const TAILORED_LEAD_AD_CAMPAIGN = 'TAILORED_LEAD_AD_CAMPAIGN'; const TOP_ADSETS_WITH_ADS_UNDER_CAP = 'TOP_ADSETS_WITH_ADS_UNDER_CAP'; const TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP = 'TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP'; const TWO_P_GUIDANCE_CARD_AAA = 'TWO_P_GUIDANCE_CARD_AAA'; diff --git a/src/FacebookAds/Object/Values/ProfilePictureSourceBreakingChangeValues.php b/src/FacebookAds/Object/Values/AdAccountPermittedTasksValues.php similarity index 66% rename from src/FacebookAds/Object/Values/ProfilePictureSourceBreakingChangeValues.php rename to src/FacebookAds/Object/Values/AdAccountPermittedTasksValues.php index 38a639f8e..db4427498 100644 --- a/src/FacebookAds/Object/Values/ProfilePictureSourceBreakingChangeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountPermittedTasksValues.php @@ -18,9 +18,13 @@ * on github and we'll fix in our codegen framework. We'll not be able to accept * pull request for this class. * - * @method static ProfilePictureSourceBreakingChangeValues getInstance() + * @method static AdAccountPermittedTasksValues getInstance() */ -class ProfilePictureSourceBreakingChangeValues extends AbstractEnum { +class AdAccountPermittedTasksValues extends AbstractEnum { - const PROFILE_PICTURE = 'PROFILE_PICTURE'; + const AA_ANALYZE = 'AA_ANALYZE'; + const ADVERTISE = 'ADVERTISE'; + const ANALYZE = 'ANALYZE'; + const DRAFT = 'DRAFT'; + const MANAGE = 'MANAGE'; } diff --git a/src/FacebookAds/Object/Values/AdCreativeAuthorizationCategoryValues.php b/src/FacebookAds/Object/Values/AdCreativeAuthorizationCategoryValues.php index d73a333e4..6c1b0d068 100644 --- a/src/FacebookAds/Object/Values/AdCreativeAuthorizationCategoryValues.php +++ b/src/FacebookAds/Object/Values/AdCreativeAuthorizationCategoryValues.php @@ -24,4 +24,5 @@ class AdCreativeAuthorizationCategoryValues extends AbstractEnum { const NONE = 'NONE'; const POLITICAL = 'POLITICAL'; + const POLITICAL_WITH_DIGITALLY_CREATED_MEDIA = 'POLITICAL_WITH_DIGITALLY_CREATED_MEDIA'; } diff --git a/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php b/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php index 3ee165434..162d3cea4 100644 --- a/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php +++ b/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php @@ -29,6 +29,7 @@ class AdRuleExecutionSpecExecutionTypeValues extends AbstractEnum { const CHANGE_BID = 'CHANGE_BID'; const CHANGE_BUDGET = 'CHANGE_BUDGET'; const CHANGE_CAMPAIGN_BUDGET = 'CHANGE_CAMPAIGN_BUDGET'; + const DCO = 'DCO'; const INCREASE_RADIUS = 'INCREASE_RADIUS'; const NOTIFICATION = 'NOTIFICATION'; const PAUSE = 'PAUSE'; diff --git a/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php b/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php index 387e91db8..8f1e90bbb 100644 --- a/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php +++ b/src/FacebookAds/Object/Values/AdRuleHistoryActionValues.php @@ -27,7 +27,9 @@ class AdRuleHistoryActionValues extends AbstractEnum { const CHANGED_BUDGET = 'CHANGED_BUDGET'; const EMAIL = 'EMAIL'; const ENABLE_ADVANTAGE_PLUS_CREATIVE = 'ENABLE_ADVANTAGE_PLUS_CREATIVE'; + const ENABLE_ADVANTAGE_PLUS_PLACEMENTS = 'ENABLE_ADVANTAGE_PLUS_PLACEMENTS'; const ENABLE_AUTOFLOW = 'ENABLE_AUTOFLOW'; + const ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION = 'ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION'; const ENDPOINT_PINGED = 'ENDPOINT_PINGED'; const ERROR = 'ERROR'; const FACEBOOK_NOTIFICATION_SENT = 'FACEBOOK_NOTIFICATION_SENT'; diff --git a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php index 1894c874b..687f5e78f 100644 --- a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +++ b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php @@ -48,6 +48,7 @@ class AdVideoContainerTypeValues extends AbstractEnum { const CONTAINED_POST_AUDIO_BROADCAST = 'CONTAINED_POST_AUDIO_BROADCAST'; const CONTAINED_POST_COPYRIGHT_REFERENCE_BROADCAST = 'CONTAINED_POST_COPYRIGHT_REFERENCE_BROADCAST'; const COPYRIGHT_REFERENCE_BROADCAST = 'COPYRIGHT_REFERENCE_BROADCAST'; + const COPYRIGHT_REFERENCE_IG_XPOST_VIDEO = 'COPYRIGHT_REFERENCE_IG_XPOST_VIDEO'; const COPYRIGHT_REFERENCE_VIDEO = 'COPYRIGHT_REFERENCE_VIDEO'; const CREATION_ML_PRECREATION = 'CREATION_ML_PRECREATION'; const DCO_AD_ASSET_FEED = 'DCO_AD_ASSET_FEED'; diff --git a/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php b/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php index a58429ffb..709a58434 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php @@ -41,6 +41,7 @@ class AdsInsightsBreakdownsValues extends AbstractEnum { const IMAGE_ASSET = 'image_asset'; const IMPRESSION_DEVICE = 'impression_device'; const IS_CONVERSION_ID_MODELED = 'is_conversion_id_modeled'; + const LANDING_DESTINATION = 'landing_destination'; const LINK_URL_ASSET = 'link_url_asset'; const MARKETING_MESSAGES_BTN_NAME = 'marketing_messages_btn_name'; const MDSA_LANDING_DESTINATION = 'mdsa_landing_destination'; diff --git a/src/FacebookAds/Object/Values/BusinessVerticalValues.php b/src/FacebookAds/Object/Values/BusinessVerticalValues.php index fe9a7fc08..49da0edc1 100644 --- a/src/FacebookAds/Object/Values/BusinessVerticalValues.php +++ b/src/FacebookAds/Object/Values/BusinessVerticalValues.php @@ -36,6 +36,7 @@ class BusinessVerticalValues extends AbstractEnum { const LUXURY = 'LUXURY'; const MARKETING = 'MARKETING'; const NON_PROFIT = 'NON_PROFIT'; + const NOT_SET = 'NOT_SET'; const ORGANIZATIONS_AND_ASSOCIATIONS = 'ORGANIZATIONS_AND_ASSOCIATIONS'; const OTHER = 'OTHER'; const PROFESSIONAL_SERVICES = 'PROFESSIONAL_SERVICES'; diff --git a/src/FacebookAds/Object/Values/InstagramInsightsResultMetricValues.php b/src/FacebookAds/Object/Values/InstagramInsightsResultMetricValues.php index 165dd5dd6..758c0866f 100644 --- a/src/FacebookAds/Object/Values/InstagramInsightsResultMetricValues.php +++ b/src/FacebookAds/Object/Values/InstagramInsightsResultMetricValues.php @@ -27,10 +27,12 @@ class InstagramInsightsResultMetricValues extends AbstractEnum { const CAROUSEL_ALBUM_REACH = 'carousel_album_reach'; const CAROUSEL_ALBUM_SAVED = 'carousel_album_saved'; const CAROUSEL_ALBUM_VIDEO_VIEWS = 'carousel_album_video_views'; + const CLIPS_REPLAYS_COUNT = 'clips_replays_count'; const COMMENTS = 'comments'; const ENGAGEMENT = 'engagement'; const EXITS = 'exits'; const FOLLOWS = 'follows'; + const IG_REELS_AGGREGATED_ALL_PLAYS_COUNT = 'ig_reels_aggregated_all_plays_count'; const IG_REELS_AVG_WATCH_TIME = 'ig_reels_avg_watch_time'; const IG_REELS_VIDEO_VIEW_TOTAL_TIME = 'ig_reels_video_view_total_time'; const IMPRESSIONS = 'impressions'; diff --git a/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php b/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php index 1306db7ed..ff2cedd46 100644 --- a/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php +++ b/src/FacebookAds/Object/Values/ProductItemErrorTypeValues.php @@ -55,6 +55,7 @@ class ProductItemErrorTypeValues extends AbstractEnum { const INVALID_IMAGES = 'INVALID_IMAGES'; const INVALID_MONETIZER_RETURN_POLICY = 'INVALID_MONETIZER_RETURN_POLICY'; const INVALID_PRE_ORDER_PARAMS = 'INVALID_PRE_ORDER_PARAMS'; + const INVALID_SHELTER_PAGE_ID = 'INVALID_SHELTER_PAGE_ID'; const INVALID_SHIPPING_PROFILE_PARAMS = 'INVALID_SHIPPING_PROFILE_PARAMS'; const INVALID_SUBSCRIPTION_DISABLE_PARAMS = 'INVALID_SUBSCRIPTION_DISABLE_PARAMS'; const INVALID_SUBSCRIPTION_ENABLE_PARAMS = 'INVALID_SUBSCRIPTION_ENABLE_PARAMS'; @@ -122,4 +123,6 @@ class ProductItemErrorTypeValues extends AbstractEnum { const VIDEO_FETCH_FAILED_LINK_BROKEN = 'VIDEO_FETCH_FAILED_LINK_BROKEN'; const VIDEO_FETCH_FAILED_TIMED_OUT = 'VIDEO_FETCH_FAILED_TIMED_OUT'; const VIDEO_NOT_DOWNLOADABLE = 'VIDEO_NOT_DOWNLOADABLE'; + const WHATSAPP_DISABLED_BY_USER = 'WHATSAPP_DISABLED_BY_USER'; + const WHATSAPP_POLICY_VIOLATION = 'WHATSAPP_POLICY_VIOLATION'; } diff --git a/src/FacebookAds/Object/VideoCopyrightCheckStatus.php b/src/FacebookAds/Object/VideoCopyrightCheckStatus.php new file mode 100644 index 000000000..aa1199739 --- /dev/null +++ b/src/FacebookAds/Object/VideoCopyrightCheckStatus.php @@ -0,0 +1,42 @@ + 'list', 'clone_flow_id' => 'string', - 'clone_template' => 'string', 'endpoint_uri' => 'string', 'name' => 'string', ); From f7a3990d307a84f53d7cd7a0ab693596776d3530 Mon Sep 17 00:00:00 2001 From: "James P. Shields" Date: Mon, 29 Jan 2024 10:43:18 -0800 Subject: [PATCH 12/34] Fix issue #273 - Log response failures. (#335) Summary: Pull Request resolved: https://github.com/facebook/facebook-php-business-sdk/pull/335 Reviewed By: mengxuanzhangz Differential Revision: D53145922 Pulled By: stcheng fbshipit-source-id: d626f56e7df9df9755895af98cf6516fed50bbab --- src/FacebookAds/Api.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/FacebookAds/Api.php b/src/FacebookAds/Api.php index 8f1497edf..4abeea818 100644 --- a/src/FacebookAds/Api.php +++ b/src/FacebookAds/Api.php @@ -10,6 +10,7 @@ namespace FacebookAds; use FacebookAds\Http\Client; +use FacebookAds\Http\Exception\RequestException; use FacebookAds\Http\RequestInterface; use FacebookAds\Http\ResponseInterface; use FacebookAds\Logger\LoggerInterface; @@ -147,7 +148,12 @@ public function prepareRequest( */ public function executeRequest(RequestInterface $request) { $this->getLogger()->logRequest('debug', $request); - $response = $request->execute(); + try { + $response = $request->execute(); + } catch (RequestException $e) { + $this->getLogger()->logResponse('debug', @$e->getResponse()); + throw $e; + } $this->getLogger()->logResponse('debug', $response); return $response; From 3003c7d3ea9b536f0be95759e8197205d9800158 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Wed, 6 Mar 2024 09:55:25 -0800 Subject: [PATCH 13/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D54566141 fbshipit-source-id: be845cf940ce2c207e8671858d259aceb31c1a83 --- ...gHotelsPostUpdateHotelsCatalogSettings.php | 1 - src/FacebookAds/ApiConfig.php | 2 +- src/FacebookAds/Object/Ad.php | 2 +- src/FacebookAds/Object/AdAccount.php | 47 ++++++ src/FacebookAds/Object/AdAssetBody.php | 42 +++++ .../Object/AdAssetCallToActionType.php | 42 +++++ src/FacebookAds/Object/AdAssetDescription.php | 42 +++++ src/FacebookAds/Object/AdAssetImage.php | 42 +++++ src/FacebookAds/Object/AdAssetLinkURL.php | 42 +++++ src/FacebookAds/Object/AdAssetTitle.php | 42 +++++ src/FacebookAds/Object/AdAssetVideo.php | 42 +++++ .../AdCreativePromotionMetadataSpec.php | 42 +++++ .../Object/AdCreativeSiteLinksSpec.php | 42 +++++ src/FacebookAds/Object/AdSet.php | 2 +- src/FacebookAds/Object/AdsPixel.php | 23 --- ...ageAboutStory.php => AnalyticsSegment.php} | 15 +- .../Object/BrandedContentShadowIGMediaID.php | 42 +++++ .../Object/BrandedContentShadowIGUserID.php | 42 +++++ src/FacebookAds/Object/Business.php | 27 ++++ src/FacebookAds/Object/Campaign.php | 2 +- .../Object/CommerceMerchantSettings.php | 25 --- src/FacebookAds/Object/CommerceOrder.php | 1 + ...tStoryFields.php => AdAssetBodyFields.php} | 18 +-- .../Fields/AdAssetCallToActionTypeFields.php | 34 ++++ .../Fields/AdAssetDescriptionFields.php | 36 +++++ .../Object/Fields/AdAssetImageFields.php | 44 ++++++ .../Object/Fields/AdAssetLinkURLFields.php | 48 ++++++ .../Object/Fields/AdAssetTitleFields.php | 36 +++++ .../Object/Fields/AdAssetVideoFields.php | 52 +++++++ .../AdCreativePromotionMetadataSpecFields.php | 44 ++++++ .../Fields/AdCreativeSiteLinksSpecFields.php | 34 ++++ .../Fields/AdCreativeSourcingSpecFields.php | 4 + .../Object/Fields/AnalyticsSegmentFields.php | 64 ++++++++ .../BrandedContentShadowIGMediaIDFields.php | 38 +++++ .../BrandedContentShadowIGUserIDFields.php | 32 ++++ src/FacebookAds/Object/Fields/PageFields.php | 6 +- .../Object/Fields/ProductCatalogFields.php | 4 + .../Object/Fields/ProductItemFields.php | 6 - src/FacebookAds/Object/Fields/ShopFields.php | 2 + .../Fields/TargetingAutomationFields.php | 36 +++++ .../Object/Fields/TargetingFields.php | 4 + .../Fields/WhatsAppBusinessAccountFields.php | 2 + ...tnerClientVerificationSubmissionFields.php | 44 ++++++ src/FacebookAds/Object/IGMedia.php | 48 ++++++ src/FacebookAds/Object/IGUser.php | 146 ++++++++++++++++++ src/FacebookAds/Object/InstagramUser.php | 23 +++ src/FacebookAds/Object/PagePost.php | 2 + src/FacebookAds/Object/Post.php | 2 + src/FacebookAds/Object/ProductCatalog.php | 7 +- src/FacebookAds/Object/ProductGroup.php | 3 - src/FacebookAds/Object/ProductItem.php | 3 - .../Object/TargetingAutomation.php | 42 +++++ .../AdAccountAdRulesHistoryActionValues.php | 1 + ...ccountAdVolumeRecommendationTypeValues.php | 6 + ...DeliveryEstimateOptimizationGoalValues.php | 1 + ...AdAssetFeedSpecCallToActionTypesValues.php | 1 + ...DeliveryEstimateOptimizationGoalValues.php | 1 + .../AdCreativeCallToActionTypeValues.php | 1 + ...CreativeLinkDataCallToActionTypeValues.php | 1 + .../Object/Values/AdDatePresetValues.php | 2 +- .../Object/Values/AdPreviewAdFormatValues.php | 4 + .../Values/AdRuleHistoryActionValues.php | 1 + .../Object/Values/AdSetBidStrategyValues.php | 1 + .../Object/Values/AdSetDatePresetValues.php | 40 ++--- .../Values/AdSetOptimizationGoalValues.php | 1 + .../Values/AdVideoContainerTypeValues.php | 3 +- .../AdsInsightsActionBreakdownsValues.php | 2 + .../Values/AdsInsightsBreakdownsValues.php | 1 + .../Values/AdsInsightsDatePresetValues.php | 2 +- ...sInsightsSummaryActionBreakdownsValues.php | 2 + .../Values/CampaignBidStrategyValues.php | 1 + .../Values/CampaignDatePresetValues.php | 2 +- .../CustomAudienceDataSourceSubTypeValues.php | 1 + .../Values/GroupPostPermissionsValues.php | 6 +- .../Values/InsightsResultDatePresetValues.php | 2 +- .../InstagramInsightsResultMetricValues.php | 5 - .../Values/PageSubscribedFieldsValues.php | 1 + ...tCatalogAdditionalVerticalOptionValues.php | 27 ++++ .../Values/ProductCatalogVerticalValues.php | 1 + .../Values/ProductFeedOverrideTypeValues.php | 1 + .../Values/ProductItemErrorTypeValues.php | 20 +++ .../Object/WhatsAppBusinessAccount.php | 2 + ...essPartnerClientVerificationSubmission.php | 42 +++++ 83 files changed, 1531 insertions(+), 124 deletions(-) create mode 100644 src/FacebookAds/Object/AdAssetBody.php create mode 100644 src/FacebookAds/Object/AdAssetCallToActionType.php create mode 100644 src/FacebookAds/Object/AdAssetDescription.php create mode 100644 src/FacebookAds/Object/AdAssetImage.php create mode 100644 src/FacebookAds/Object/AdAssetLinkURL.php create mode 100644 src/FacebookAds/Object/AdAssetTitle.php create mode 100644 src/FacebookAds/Object/AdAssetVideo.php create mode 100644 src/FacebookAds/Object/AdCreativePromotionMetadataSpec.php create mode 100644 src/FacebookAds/Object/AdCreativeSiteLinksSpec.php rename src/FacebookAds/Object/{PageAboutStory.php => AnalyticsSegment.php} (77%) create mode 100644 src/FacebookAds/Object/BrandedContentShadowIGMediaID.php create mode 100644 src/FacebookAds/Object/BrandedContentShadowIGUserID.php rename src/FacebookAds/Object/Fields/{PageAboutStoryFields.php => AdAssetBodyFields.php} (57%) create mode 100644 src/FacebookAds/Object/Fields/AdAssetCallToActionTypeFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetDescriptionFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetImageFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetLinkURLFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetTitleFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetVideoFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativePromotionMetadataSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AnalyticsSegmentFields.php create mode 100644 src/FacebookAds/Object/Fields/BrandedContentShadowIGMediaIDFields.php create mode 100644 src/FacebookAds/Object/Fields/BrandedContentShadowIGUserIDFields.php create mode 100644 src/FacebookAds/Object/Fields/TargetingAutomationFields.php create mode 100644 src/FacebookAds/Object/Fields/WhatsAppBusinessPartnerClientVerificationSubmissionFields.php create mode 100644 src/FacebookAds/Object/TargetingAutomation.php create mode 100644 src/FacebookAds/Object/Values/ProductCatalogAdditionalVerticalOptionValues.php create mode 100644 src/FacebookAds/Object/WhatsAppBusinessPartnerClientVerificationSubmission.php diff --git a/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.php b/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.php index 925f1c835..ac992c43c 100644 --- a/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.php +++ b/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.php @@ -39,7 +39,6 @@ $fields = array( ); $params = array( - 'hotel_catalog_settings' => array('pull_config_id' => ''), ); echo json_encode((new ProductCatalog($id))->updateSelf( $fields, diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index cc89131d7..769aa053c 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '19.0'; - const SDKVersion = '19.0.0'; + const SDKVersion = '19.0.1'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/Ad.php b/src/FacebookAds/Object/Ad.php index a974a95ac..313babc3b 100644 --- a/src/FacebookAds/Object/Ad.php +++ b/src/FacebookAds/Object/Ad.php @@ -439,7 +439,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'last_week_mon_sun', 'last_week_sun_sat', 'last_year', - 'maximum', + 'lifetime', 'this_month', 'this_quarter', 'this_week_mon_today', diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 2d7707b12..19d755f6c 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -1843,6 +1843,30 @@ public function getConnectedInstagramAccounts(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } + public function getConnectedInstagramAccountsWithIabp(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'business_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/connected_instagram_accounts_with_iabp', + new InstagramUser(), + 'EDGE', + InstagramUser::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getConversionGoals(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -3128,6 +3152,29 @@ public function deleteUsersOfAnyAudience(array $fields = array(), array $params return $pending ? $request : $request->execute(); } + public function getValueAdjustmentRulePersonaGroups(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/value_adjustment_rule_persona_groups', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getValueAdjustmentRules(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AdAssetBody.php b/src/FacebookAds/Object/AdAssetBody.php new file mode 100644 index 000000000..5004b50de --- /dev/null +++ b/src/FacebookAds/Object/AdAssetBody.php @@ -0,0 +1,42 @@ +execute(); } - public function createMeapitocapiconsolidationhelper(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/meapitocapiconsolidationhelper', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getOfflineEventUploads(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/PageAboutStory.php b/src/FacebookAds/Object/AnalyticsSegment.php similarity index 77% rename from src/FacebookAds/Object/PageAboutStory.php rename to src/FacebookAds/Object/AnalyticsSegment.php index 70d142433..d0394d4db 100644 --- a/src/FacebookAds/Object/PageAboutStory.php +++ b/src/FacebookAds/Object/AnalyticsSegment.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\PageAboutStoryFields; +use FacebookAds\Object\Fields\AnalyticsSegmentFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class PageAboutStory extends AbstractCrudObject { +class AnalyticsSegment extends AbstractCrudObject { /** - * @return PageAboutStoryFields + * @return AnalyticsSegmentFields */ public static function getFieldsEnum() { - return PageAboutStoryFields::getInstance(); + return AnalyticsSegmentFields::getInstance(); } protected static function getReferencedEnums() { @@ -43,6 +43,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->assureId(); $param_types = array( + 'async_task_id' => 'string', + 'end_date' => 'int', + 'start_date' => 'int', ); $enums = array( ); @@ -52,9 +55,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new PageAboutStory(), + new AnalyticsSegment(), 'NODE', - PageAboutStory::getFieldsEnum()->getValues(), + AnalyticsSegment::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/BrandedContentShadowIGMediaID.php b/src/FacebookAds/Object/BrandedContentShadowIGMediaID.php new file mode 100644 index 000000000..9f40cb73c --- /dev/null +++ b/src/FacebookAds/Object/BrandedContentShadowIGMediaID.php @@ -0,0 +1,42 @@ +assureId(); $param_types = array( + 'additional_vertical_option' => 'additional_vertical_option_enum', 'catalog_segment_filter' => 'Object', 'catalog_segment_product_set_id' => 'string', 'da_display_settings' => 'Object', @@ -2132,6 +2134,7 @@ public function createOwnedProductCatalog(array $fields = array(), array $params 'vertical' => 'vertical_enum', ); $enums = array( + 'additional_vertical_option_enum' => ProductCatalogAdditionalVerticalOptionValues::getInstance()->getValues(), 'vertical_enum' => ProductCatalogVerticalValues::getInstance()->getValues(), ); @@ -2514,6 +2517,30 @@ public function getReceivedAudienceSharingRequests(array $fields = array(), arra return $pending ? $request : $request->execute(); } + public function getSelfCertifiedWhatsappBusinessSubmissions(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'end_business_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/self_certified_whatsapp_business_submissions', + new WhatsAppBusinessPartnerClientVerificationSubmission(), + 'EDGE', + WhatsAppBusinessPartnerClientVerificationSubmission::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createSetupManagedPartnerAdAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Campaign.php b/src/FacebookAds/Object/Campaign.php index d2b0c34f4..7061a6f07 100644 --- a/src/FacebookAds/Object/Campaign.php +++ b/src/FacebookAds/Object/Campaign.php @@ -452,7 +452,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'last_week_mon_sun', 'last_week_sun_sat', 'last_year', - 'maximum', + 'lifetime', 'this_month', 'this_quarter', 'this_week_mon_today', diff --git a/src/FacebookAds/Object/CommerceMerchantSettings.php b/src/FacebookAds/Object/CommerceMerchantSettings.php index 955f212d5..7bfac355e 100644 --- a/src/FacebookAds/Object/CommerceMerchantSettings.php +++ b/src/FacebookAds/Object/CommerceMerchantSettings.php @@ -146,31 +146,6 @@ public function getCommerceTransactions(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getOnsiteConversionEvents(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'created_after' => 'datetime', - 'created_before' => 'datetime', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/onsite_conversion_events', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getOrderManagementApps(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/CommerceOrder.php b/src/FacebookAds/Object/CommerceOrder.php index aa224575a..d0d18a2d6 100644 --- a/src/FacebookAds/Object/CommerceOrder.php +++ b/src/FacebookAds/Object/CommerceOrder.php @@ -265,6 +265,7 @@ public function createRefund(array $fields = array(), array $params = array(), $ $this->assureId(); $param_types = array( + 'adjustment_amount' => 'map', 'deductions' => 'list', 'idempotency_key' => 'string', 'items' => 'list', diff --git a/src/FacebookAds/Object/Fields/PageAboutStoryFields.php b/src/FacebookAds/Object/Fields/AdAssetBodyFields.php similarity index 57% rename from src/FacebookAds/Object/Fields/PageAboutStoryFields.php rename to src/FacebookAds/Object/Fields/AdAssetBodyFields.php index e91478a89..8ee5fd275 100644 --- a/src/FacebookAds/Object/Fields/PageAboutStoryFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetBodyFields.php @@ -20,25 +20,17 @@ * */ -class PageAboutStoryFields extends AbstractEnum { +class AdAssetBodyFields extends AbstractEnum { - const COMPOSED_TEXT = 'composed_text'; - const COVER_PHOTO = 'cover_photo'; - const ENTITY_MAP = 'entity_map'; const ID = 'id'; - const IS_PUBLISHED = 'is_published'; - const PAGE_ID = 'page_id'; - const TITLE = 'title'; + const TEXT = 'text'; + const URL_TAGS = 'url_tags'; public function getFieldTypes() { return array( - 'composed_text' => 'list', - 'cover_photo' => 'Photo', - 'entity_map' => 'list', 'id' => 'string', - 'is_published' => 'bool', - 'page_id' => 'string', - 'title' => 'string', + 'text' => 'string', + 'url_tags' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdAssetCallToActionTypeFields.php b/src/FacebookAds/Object/Fields/AdAssetCallToActionTypeFields.php new file mode 100644 index 000000000..0658fff09 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetCallToActionTypeFields.php @@ -0,0 +1,34 @@ + 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetDescriptionFields.php b/src/FacebookAds/Object/Fields/AdAssetDescriptionFields.php new file mode 100644 index 000000000..9d65bfd05 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetDescriptionFields.php @@ -0,0 +1,36 @@ + 'string', + 'text' => 'string', + 'url_tags' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetImageFields.php b/src/FacebookAds/Object/Fields/AdAssetImageFields.php new file mode 100644 index 000000000..ded957406 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetImageFields.php @@ -0,0 +1,44 @@ + 'string', + 'id' => 'string', + 'image_crops' => 'AdsImageCrops', + 'name' => 'string', + 'tag' => 'string', + 'url' => 'string', + 'url_tags' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetLinkURLFields.php b/src/FacebookAds/Object/Fields/AdAssetLinkURLFields.php new file mode 100644 index 000000000..b35e1bc67 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetLinkURLFields.php @@ -0,0 +1,48 @@ + 'string', + 'carousel_see_more_url' => 'string', + 'deeplink_url' => 'string', + 'display_url' => 'string', + 'id' => 'string', + 'ipad_deeplink_url' => 'string', + 'iphone_deeplink_url' => 'string', + 'url_tags' => 'string', + 'website_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetTitleFields.php b/src/FacebookAds/Object/Fields/AdAssetTitleFields.php new file mode 100644 index 000000000..335f81cc5 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetTitleFields.php @@ -0,0 +1,36 @@ + 'string', + 'text' => 'string', + 'url_tags' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetVideoFields.php b/src/FacebookAds/Object/Fields/AdAssetVideoFields.php new file mode 100644 index 000000000..85296a029 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetVideoFields.php @@ -0,0 +1,52 @@ + 'list', + 'id' => 'string', + 'source_image_url' => 'string', + 'tag' => 'string', + 'thumbnail_hash' => 'string', + 'thumbnail_source' => 'string', + 'thumbnail_url' => 'string', + 'url' => 'string', + 'url_tags' => 'string', + 'video_id' => 'string', + 'video_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativePromotionMetadataSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativePromotionMetadataSpecFields.php new file mode 100644 index 000000000..2eff0e819 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativePromotionMetadataSpecFields.php @@ -0,0 +1,44 @@ + 'datetime', + 'id' => 'string', + 'promotion_source' => 'string', + 'promotion_type' => 'string', + 'promotion_value' => 'float', + 'required_code' => 'string', + 'start_date' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php new file mode 100644 index 000000000..477f9d99e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php @@ -0,0 +1,34 @@ + 'string', + 'site_link_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php index 331dd1e7e..ca1de8979 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php @@ -23,10 +23,14 @@ class AdCreativeSourcingSpecFields extends AbstractEnum { const ASSOCIATED_PRODUCT_SET_ID = 'associated_product_set_id'; + const PROMOTION_METADATA_SPEC = 'promotion_metadata_spec'; + const SITE_LINKS_SPEC = 'site_links_spec'; public function getFieldTypes() { return array( 'associated_product_set_id' => 'string', + 'promotion_metadata_spec' => 'list', + 'site_links_spec' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/AnalyticsSegmentFields.php b/src/FacebookAds/Object/Fields/AnalyticsSegmentFields.php new file mode 100644 index 000000000..f3c6d462d --- /dev/null +++ b/src/FacebookAds/Object/Fields/AnalyticsSegmentFields.php @@ -0,0 +1,64 @@ + 'list', + 'description' => 'string', + 'estimated_custom_audience_size' => 'unsigned int', + 'event_info_rules' => 'list', + 'event_rules' => 'list', + 'filter_set' => 'string', + 'has_demographic_rules' => 'bool', + 'id' => 'string', + 'is_all_user' => 'bool', + 'is_eligible_for_push_campaign' => 'bool', + 'is_internal' => 'bool', + 'name' => 'string', + 'percentile_rules' => 'list', + 'time_last_seen' => 'unsigned int', + 'time_last_updated' => 'unsigned int', + 'user_property_rules' => 'list', + 'web_param_rules' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BrandedContentShadowIGMediaIDFields.php b/src/FacebookAds/Object/Fields/BrandedContentShadowIGMediaIDFields.php new file mode 100644 index 000000000..af5e6d8fa --- /dev/null +++ b/src/FacebookAds/Object/Fields/BrandedContentShadowIGMediaIDFields.php @@ -0,0 +1,38 @@ + 'list', + 'id' => 'string', + 'owner_id' => 'string', + 'permalink' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BrandedContentShadowIGUserIDFields.php b/src/FacebookAds/Object/Fields/BrandedContentShadowIGUserIDFields.php new file mode 100644 index 000000000..54c3e4048 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BrandedContentShadowIGUserIDFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index 229491be8..a4fefe6cb 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -29,6 +29,7 @@ class PageFields extends AbstractEnum { const APP_ID = 'app_id'; const ARTISTS_WE_LIKE = 'artists_we_like'; const ATTIRE = 'attire'; + const AVAILABLE_PROMO_OFFER_IDS = 'available_promo_offer_ids'; const AWARDS = 'awards'; const BAND_INTERESTS = 'band_interests'; const BAND_MEMBERS = 'band_members'; @@ -77,7 +78,6 @@ class PageFields extends AbstractEnum { const HAS_LEAD_ACCESS = 'has_lead_access'; const HAS_TRANSITIONED_TO_NEW_PAGE_EXPERIENCE = 'has_transitioned_to_new_page_experience'; const HAS_WHATSAPP_BUSINESS_NUMBER = 'has_whatsapp_business_number'; - const HAS_WHATSAPP_ENTERPRISE_NUMBER_USING_CLOUD_API = 'has_whatsapp_enterprise_number_using_cloud_api'; const HAS_WHATSAPP_NUMBER = 'has_whatsapp_number'; const HOMETOWN = 'hometown'; const HOURS = 'hours'; @@ -121,7 +121,6 @@ class PageFields extends AbstractEnum { const OFFER_ELIGIBLE = 'offer_eligible'; const OVERALL_STAR_RATING = 'overall_star_rating'; const OWNER_BUSINESS = 'owner_business'; - const PAGE_ABOUT_STORY = 'page_about_story'; const PAGE_TOKEN = 'page_token'; const PARENT_PAGE = 'parent_page'; const PARKING = 'parking'; @@ -182,6 +181,7 @@ public function getFieldTypes() { 'app_id' => 'string', 'artists_we_like' => 'string', 'attire' => 'string', + 'available_promo_offer_ids' => 'list>>>', 'awards' => 'string', 'band_interests' => 'string', 'band_members' => 'string', @@ -230,7 +230,6 @@ public function getFieldTypes() { 'has_lead_access' => 'HasLeadAccess', 'has_transitioned_to_new_page_experience' => 'bool', 'has_whatsapp_business_number' => 'bool', - 'has_whatsapp_enterprise_number_using_cloud_api' => 'bool', 'has_whatsapp_number' => 'bool', 'hometown' => 'string', 'hours' => 'map', @@ -274,7 +273,6 @@ public function getFieldTypes() { 'offer_eligible' => 'bool', 'overall_star_rating' => 'float', 'owner_business' => 'Business', - 'page_about_story' => 'PageAboutStory', 'page_token' => 'string', 'parent_page' => 'Page', 'parking' => 'PageParking', diff --git a/src/FacebookAds/Object/Fields/ProductCatalogFields.php b/src/FacebookAds/Object/Fields/ProductCatalogFields.php index 50e7a93de..792cd30ed 100644 --- a/src/FacebookAds/Object/Fields/ProductCatalogFields.php +++ b/src/FacebookAds/Object/Fields/ProductCatalogFields.php @@ -34,12 +34,14 @@ class ProductCatalogFields extends AbstractEnum { const FEED_COUNT = 'feed_count'; const ID = 'id'; const IS_CATALOG_SEGMENT = 'is_catalog_segment'; + const IS_LOCAL_CATALOG = 'is_local_catalog'; const NAME = 'name'; const OWNER_BUSINESS = 'owner_business'; const PRODUCT_COUNT = 'product_count'; const STORE_CATALOG_SETTINGS = 'store_catalog_settings'; const USER_ACCESS_EXPIRE_TIME = 'user_access_expire_time'; const VERTICAL = 'vertical'; + const ADDITIONAL_VERTICAL_OPTION = 'additional_vertical_option'; const CATALOG_SEGMENT_FILTER = 'catalog_segment_filter'; const CATALOG_SEGMENT_PRODUCT_SET_ID = 'catalog_segment_product_set_id'; const DESTINATION_CATALOG_SETTINGS = 'destination_catalog_settings'; @@ -61,12 +63,14 @@ public function getFieldTypes() { 'feed_count' => 'int', 'id' => 'string', 'is_catalog_segment' => 'bool', + 'is_local_catalog' => 'bool', 'name' => 'string', 'owner_business' => 'Business', 'product_count' => 'int', 'store_catalog_settings' => 'StoreCatalogSettings', 'user_access_expire_time' => 'datetime', 'vertical' => 'string', + 'additional_vertical_option' => 'AdditionalVerticalOption', 'catalog_segment_filter' => 'Object', 'catalog_segment_product_set_id' => 'string', 'destination_catalog_settings' => 'map', diff --git a/src/FacebookAds/Object/Fields/ProductItemFields.php b/src/FacebookAds/Object/Fields/ProductItemFields.php index 5d6687d1b..842b7bd66 100644 --- a/src/FacebookAds/Object/Fields/ProductItemFields.php +++ b/src/FacebookAds/Object/Fields/ProductItemFields.php @@ -114,9 +114,6 @@ class ProductItemFields extends AbstractEnum { const IPHONE_APP_STORE_ID = 'iphone_app_store_id'; const IPHONE_URL = 'iphone_url'; const LAUNCH_DATE = 'launch_date'; - const OFFER_PRICE_AMOUNT = 'offer_price_amount'; - const OFFER_PRICE_END_DATE = 'offer_price_end_date'; - const OFFER_PRICE_START_DATE = 'offer_price_start_date'; const RETURN_POLICY_DAYS = 'return_policy_days'; const WINDOWS_PHONE_APP_ID = 'windows_phone_app_id'; const WINDOWS_PHONE_APP_NAME = 'windows_phone_app_name'; @@ -216,9 +213,6 @@ public function getFieldTypes() { 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'launch_date' => 'string', - 'offer_price_amount' => 'unsigned int', - 'offer_price_end_date' => 'datetime', - 'offer_price_start_date' => 'datetime', 'return_policy_days' => 'unsigned int', 'windows_phone_app_id' => 'string', 'windows_phone_app_name' => 'string', diff --git a/src/FacebookAds/Object/Fields/ShopFields.php b/src/FacebookAds/Object/Fields/ShopFields.php index fc0a63e4c..5c59b7a1e 100644 --- a/src/FacebookAds/Object/Fields/ShopFields.php +++ b/src/FacebookAds/Object/Fields/ShopFields.php @@ -22,6 +22,7 @@ class ShopFields extends AbstractEnum { + const COMMERCE_MERCHANT_SETTINGS = 'commerce_merchant_settings'; const FB_SALES_CHANNEL = 'fb_sales_channel'; const ID = 'id'; const IG_SALES_CHANNEL = 'ig_sales_channel'; @@ -31,6 +32,7 @@ class ShopFields extends AbstractEnum { public function getFieldTypes() { return array( + 'commerce_merchant_settings' => 'CommerceMerchantSettings', 'fb_sales_channel' => 'Object', 'id' => 'string', 'ig_sales_channel' => 'Object', diff --git a/src/FacebookAds/Object/Fields/TargetingAutomationFields.php b/src/FacebookAds/Object/Fields/TargetingAutomationFields.php new file mode 100644 index 000000000..371e776da --- /dev/null +++ b/src/FacebookAds/Object/Fields/TargetingAutomationFields.php @@ -0,0 +1,36 @@ + 'unsigned int', + 'shared_audiences' => 'unsigned int', + 'value_expression' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/TargetingFields.php b/src/FacebookAds/Object/Fields/TargetingFields.php index 4ee166e9a..26efe2b86 100644 --- a/src/FacebookAds/Object/Fields/TargetingFields.php +++ b/src/FacebookAds/Object/Fields/TargetingFields.php @@ -25,6 +25,7 @@ class TargetingFields extends AbstractEnum { const ADGROUP_ID = 'adgroup_id'; const AGE_MAX = 'age_max'; const AGE_MIN = 'age_min'; + const AGE_RANGE = 'age_range'; const APP_INSTALL_STATE = 'app_install_state'; const AUDIENCE_NETWORK_POSITIONS = 'audience_network_positions'; const BEHAVIORS = 'behaviors'; @@ -101,6 +102,7 @@ class TargetingFields extends AbstractEnum { const REGIONS = 'regions'; const RELATIONSHIP_STATUSES = 'relationship_statuses'; const SITE_CATEGORY = 'site_category'; + const TARGETING_AUTOMATION = 'targeting_automation'; const TARGETING_OPTIMIZATION = 'targeting_optimization'; const TARGETING_RELAXATION_TYPES = 'targeting_relaxation_types'; const USER_ADCLUSTERS = 'user_adclusters'; @@ -117,6 +119,7 @@ public function getFieldTypes() { 'adgroup_id' => 'string', 'age_max' => 'unsigned int', 'age_min' => 'unsigned int', + 'age_range' => 'list', 'app_install_state' => 'string', 'audience_network_positions' => 'list', 'behaviors' => 'list', @@ -193,6 +196,7 @@ public function getFieldTypes() { 'regions' => 'list', 'relationship_statuses' => 'list', 'site_category' => 'list', + 'targeting_automation' => 'TargetingAutomation', 'targeting_optimization' => 'string', 'targeting_relaxation_types' => 'TargetingRelaxation', 'user_adclusters' => 'list', diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php index 142050493..da98c1b39 100644 --- a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php @@ -31,6 +31,7 @@ class WhatsAppBusinessAccountFields extends AbstractEnum { const HEALTH_STATUS = 'health_status'; const ID = 'id'; const IS_ENABLED_FOR_INSIGHTS = 'is_enabled_for_insights'; + const LINKED_COMMERCE_ACCOUNT = 'linked_commerce_account'; const MESSAGE_TEMPLATE_NAMESPACE = 'message_template_namespace'; const NAME = 'name'; const ON_BEHALF_OF_BUSINESS_INFO = 'on_behalf_of_business_info'; @@ -53,6 +54,7 @@ public function getFieldTypes() { 'health_status' => 'WhatsAppBusinessHealthStatusForMessageSend', 'id' => 'string', 'is_enabled_for_insights' => 'bool', + 'linked_commerce_account' => 'CommerceMerchantSettings', 'message_template_namespace' => 'string', 'name' => 'string', 'on_behalf_of_business_info' => 'Object', diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessPartnerClientVerificationSubmissionFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessPartnerClientVerificationSubmissionFields.php new file mode 100644 index 000000000..51bee605f --- /dev/null +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessPartnerClientVerificationSubmissionFields.php @@ -0,0 +1,44 @@ + 'string', + 'id' => 'string', + 'rejection_reasons' => 'list', + 'submitted_info' => 'Object', + 'submitted_time' => 'datetime', + 'update_time' => 'datetime', + 'verification_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/IGMedia.php b/src/FacebookAds/Object/IGMedia.php index 27a4e95ee..b724c0ac9 100644 --- a/src/FacebookAds/Object/IGMedia.php +++ b/src/FacebookAds/Object/IGMedia.php @@ -42,6 +42,54 @@ protected static function getReferencedEnums() { } + public function getBrandedContentPartnerPromote(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, + '/branded_content_partner_promote', + new BrandedContentShadowIGUserID(), + 'EDGE', + BrandedContentShadowIGUserID::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createBrandedContentPartnerPromote(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'permission' => 'bool', + 'sponsor_id' => 'unsigned int', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/branded_content_partner_promote', + new BrandedContentShadowIGUserID(), + 'EDGE', + BrandedContentShadowIGUserID::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getChildren(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/IGUser.php b/src/FacebookAds/Object/IGUser.php index 2024ce017..c96a40fcb 100644 --- a/src/FacebookAds/Object/IGUser.php +++ b/src/FacebookAds/Object/IGUser.php @@ -67,6 +67,152 @@ public function getAvailableCatalogs(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } + public function getBrandedContentAdPermissions(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, + '/branded_content_ad_permissions', + new IGBCAdsPermission(), + 'EDGE', + IGBCAdsPermission::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createBrandedContentAdPermission(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'creator_instagram_account' => 'string', + 'revoke' => 'bool', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/branded_content_ad_permissions', + new IGBCAdsPermission(), + 'EDGE', + IGBCAdsPermission::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getBrandedContentAdvertisableMedias(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'creator_username' => 'string', + 'only_fetch_allowlisted' => 'bool', + 'permalinks' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/branded_content_advertisable_medias', + new BrandedContentShadowIGMediaID(), + 'EDGE', + BrandedContentShadowIGMediaID::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function deleteBrandedContentTagApproval(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'user_ids' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/branded_content_tag_approval', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getBrandedContentTagApproval(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'user_ids' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/branded_content_tag_approval', + new BrandedContentShadowIGUserID(), + 'EDGE', + BrandedContentShadowIGUserID::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createBrandedContentTagApproval(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'user_ids' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/branded_content_tag_approval', + new BrandedContentShadowIGUserID(), + 'EDGE', + BrandedContentShadowIGUserID::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getCatalogProductSearch(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/InstagramUser.php b/src/FacebookAds/Object/InstagramUser.php index 5b70fd134..c801ef92d 100644 --- a/src/FacebookAds/Object/InstagramUser.php +++ b/src/FacebookAds/Object/InstagramUser.php @@ -134,6 +134,29 @@ public function createAuthorizedAdAccount(array $fields = array(), array $params return $pending ? $request : $request->execute(); } + public function getUpcomingEvents(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, + '/upcoming_events', + 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/PagePost.php b/src/FacebookAds/Object/PagePost.php index 58c674b92..377286b1c 100644 --- a/src/FacebookAds/Object/PagePost.php +++ b/src/FacebookAds/Object/PagePost.php @@ -390,6 +390,8 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->assureId(); $param_types = array( + 'primary_fb_page_id' => 'string', + 'primary_ig_user_id' => 'string', ); $enums = array( ); diff --git a/src/FacebookAds/Object/Post.php b/src/FacebookAds/Object/Post.php index cd0bed976..c85e4adf3 100644 --- a/src/FacebookAds/Object/Post.php +++ b/src/FacebookAds/Object/Post.php @@ -377,6 +377,8 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->assureId(); $param_types = array( + 'primary_fb_page_id' => 'string', + 'primary_ig_user_id' => 'string', ); $enums = array( ); diff --git a/src/FacebookAds/Object/ProductCatalog.php b/src/FacebookAds/Object/ProductCatalog.php index fcc5b74c7..845054f71 100644 --- a/src/FacebookAds/Object/ProductCatalog.php +++ b/src/FacebookAds/Object/ProductCatalog.php @@ -15,6 +15,7 @@ use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ProductCatalogFields; use FacebookAds\Object\Values\CheckBatchRequestStatusErrorPriorityValues; +use FacebookAds\Object\Values\ProductCatalogAdditionalVerticalOptionValues; use FacebookAds\Object\Values\ProductCatalogCategoryCategorizationCriteriaValues; use FacebookAds\Object\Values\ProductCatalogDataSourceIngestionSourceTypeValues; use FacebookAds\Object\Values\ProductCatalogDiagnosticGroupAffectedChannelsValues; @@ -82,6 +83,7 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['AdditionalVerticalOption'] = ProductCatalogAdditionalVerticalOptionValues::getInstance()->getValues(); $ref_enums['Vertical'] = ProductCatalogVerticalValues::getInstance()->getValues(); $ref_enums['PermittedRoles'] = ProductCatalogPermittedRolesValues::getInstance()->getValues(); $ref_enums['PermittedTasks'] = ProductCatalogPermittedTasksValues::getInstance()->getValues(); @@ -1268,9 +1270,6 @@ public function createProduct(array $fields = array(), array $params = array(), 'material' => 'string', 'mobile_link' => 'string', 'name' => 'string', - 'offer_price_amount' => 'unsigned int', - 'offer_price_end_date' => 'datetime', - 'offer_price_start_date' => 'datetime', 'ordering_index' => 'unsigned int', 'origin_country' => 'origin_country_enum', 'pattern' => 'string', @@ -1496,6 +1495,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( + 'additional_vertical_option' => 'additional_vertical_option_enum', 'da_display_settings' => 'Object', 'default_image_url' => 'string', 'destination_catalog_settings' => 'map', @@ -1506,6 +1506,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'store_catalog_settings' => 'map', ); $enums = array( + 'additional_vertical_option_enum' => ProductCatalogAdditionalVerticalOptionValues::getInstance()->getValues(), ); $request = new ApiRequest( diff --git a/src/FacebookAds/Object/ProductGroup.php b/src/FacebookAds/Object/ProductGroup.php index 213103719..f395f4b38 100644 --- a/src/FacebookAds/Object/ProductGroup.php +++ b/src/FacebookAds/Object/ProductGroup.php @@ -126,9 +126,6 @@ public function createProduct(array $fields = array(), array $params = array(), 'material' => 'string', 'mobile_link' => 'string', 'name' => 'string', - 'offer_price_amount' => 'unsigned int', - 'offer_price_end_date' => 'datetime', - 'offer_price_start_date' => 'datetime', 'ordering_index' => 'unsigned int', 'pattern' => 'string', 'price' => 'unsigned int', diff --git a/src/FacebookAds/Object/ProductItem.php b/src/FacebookAds/Object/ProductItem.php index e0a927505..5f0202649 100644 --- a/src/FacebookAds/Object/ProductItem.php +++ b/src/FacebookAds/Object/ProductItem.php @@ -252,9 +252,6 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'material' => 'string', 'mobile_link' => 'string', 'name' => 'string', - 'offer_price_amount' => 'unsigned int', - 'offer_price_end_date' => 'datetime', - 'offer_price_start_date' => 'datetime', 'ordering_index' => 'unsigned int', 'origin_country' => 'origin_country_enum', 'pattern' => 'string', diff --git a/src/FacebookAds/Object/TargetingAutomation.php b/src/FacebookAds/Object/TargetingAutomation.php new file mode 100644 index 000000000..c0ddde446 --- /dev/null +++ b/src/FacebookAds/Object/TargetingAutomation.php @@ -0,0 +1,42 @@ + 'list', 'cta_url_link_tracking_opted_out' => 'bool', 'language' => 'string', + 'library_template_button_inputs' => 'list', + 'library_template_name' => 'string', 'message_send_ttl_seconds' => 'unsigned int', 'name' => 'string', 'sub_category' => 'sub_category_enum', diff --git a/src/FacebookAds/Object/WhatsAppBusinessPartnerClientVerificationSubmission.php b/src/FacebookAds/Object/WhatsAppBusinessPartnerClientVerificationSubmission.php new file mode 100644 index 000000000..116059196 --- /dev/null +++ b/src/FacebookAds/Object/WhatsAppBusinessPartnerClientVerificationSubmission.php @@ -0,0 +1,42 @@ + Date: Wed, 6 Mar 2024 20:41:55 -0800 Subject: [PATCH 14/34] Adding support to WhatsApp events on Business SDK Summary: CAPI CTWA has been launched to 100% since November 2023, but is still not supported in our Meta Business SDK. This diff adds support for WhatsApp events on the Business SDK. It includes changes to the Event class to add a new field for the messaging channel, as well as changes to the User Data class to include new constants for the CTWA_CLID and PAGE_ID parameters. Reviewed By: stcheng Differential Revision: D54615825 fbshipit-source-id: 67edbe7b4101f3ea571d3d583e585d863ab0ca65 --- .../Object/ServerSide/ActionSource.php | 5 ++ src/FacebookAds/Object/ServerSide/Event.php | 23 +++++++ .../Object/ServerSide/MessagingChannel.php | 42 +++++++++++++ .../Object/ServerSide/UserData.php | 60 +++++++++++++++++-- 4 files changed, 126 insertions(+), 4 deletions(-) create mode 100644 src/FacebookAds/Object/ServerSide/MessagingChannel.php diff --git a/src/FacebookAds/Object/ServerSide/ActionSource.php b/src/FacebookAds/Object/ServerSide/ActionSource.php index 38ee86a8d..224583d37 100644 --- a/src/FacebookAds/Object/ServerSide/ActionSource.php +++ b/src/FacebookAds/Object/ServerSide/ActionSource.php @@ -70,6 +70,11 @@ class ActionSource extends AbstractEnum { */ const SYSTEM_GENERATED = 'system_generated'; + /** + * Conversion happened through a business messaging channel, such as WhatsApp or Instagram Direct. + */ + const BUSINESS_MESSAGING = 'business_messaging'; + /** * Conversion happened in a way that is not listed. */ diff --git a/src/FacebookAds/Object/ServerSide/Event.php b/src/FacebookAds/Object/ServerSide/Event.php index b643fb9a9..4e1ad7a47 100644 --- a/src/FacebookAds/Object/ServerSide/Event.php +++ b/src/FacebookAds/Object/ServerSide/Event.php @@ -51,6 +51,7 @@ class Event implements ArrayAccess { 'action_source' => 'string', 'app_data' => 'FacebookAds\Object\ServerSide\AppData', 'advanced_measurement_table' => 'string', + 'messaging_channel' => 'string', ); /** * Array of attributes where the key is the local name, and the value is the original name @@ -70,6 +71,7 @@ class Event implements ArrayAccess { 'action_source' => 'action_source', 'app_data' => 'app_data', 'advanced_measurement_table' => 'advanced_measurement_table', + 'messaging_channel' => 'messaging_channel', ); /** @@ -90,6 +92,7 @@ class Event implements ArrayAccess { 'action_source' => 'setActionSource', 'app_data' => 'setAppData', 'advanced_measurement_table' => 'setAdvancedMeasurementTable', + 'messaging_channel' => 'setMessagingChannel', ); /** * Array of attributes to getter functions (for serialization of requests) @@ -109,6 +112,7 @@ class Event implements ArrayAccess { 'action_source' => 'getActionSource', 'app_data' => 'getAppData', 'advanced_measurement_table' => 'getAdvancedMeasurementTable', + 'messaging_channel' => 'getMessagingChannel', ); /** * Associative array for storing property values @@ -134,6 +138,7 @@ public function __construct(array $data = null) { $this->container['action_source'] = isset($data['action_source']) ? $data['action_source'] : null; $this->container['app_data'] = isset($data['app_data']) ? $data['app_data'] : null; $this->container['advanced_measurement_table'] = isset($data['advanced_measurement_table']) ? $data['advanced_measurement_table'] : null; + $this->container['messaging_channel'] = isset($data['messaging_channel']) ? $data['messaging_channel'] : null; } public static function paramTypes() { @@ -402,6 +407,7 @@ public function normalize() { $this->container['action_source'] ); $normalized_payload['advanced_measurement_table'] = $this->getAdvancedMeasurementTable(); + $normalized_payload['messaging_channel'] = $this->getMessagingChannel(); $normalized_payload = array_filter($normalized_payload, function($val) { if(is_array($val)) { return true; } else { return strlen((string) $val); }}); // Add the opt_out value back in if it was filtered out if ($this->getOptOut() === false) { @@ -518,6 +524,23 @@ public function getAdvancedMeasurementTable() { return $this->container['advanced_measurement_table']; } + /** + * Sets the messaging channel of the event. + * @return $this + */ + public function setMessagingChannel($messaging_channel) { + $this->container['messaging_channel'] = $messaging_channel; + return $this; + } + + /** + * Return the messaging channel of the event. + * @return string + */ + public function getMessagingChannel() { + return $this->container['messaging_channel']; + } + /** * Gets the string representation of the object * @return string diff --git a/src/FacebookAds/Object/ServerSide/MessagingChannel.php b/src/FacebookAds/Object/ServerSide/MessagingChannel.php new file mode 100644 index 000000000..7683f4665 --- /dev/null +++ b/src/FacebookAds/Object/ServerSide/MessagingChannel.php @@ -0,0 +1,42 @@ + 'string', 'doby' => 'string', 'madid' => 'string', - 'anon_id' => 'string' + 'anon_id' => 'string', + 'ctwa_clid' => 'string', + 'page_id' => 'string' ); /** * Array of attributes where the key is the local name, and the value is the original name @@ -129,7 +131,9 @@ class UserData implements ArrayAccess { 'dobm' => 'dobm', 'doby' => 'doby', 'madid' => 'madid', - 'anon_id' => 'anon_id' + 'anon_id' => 'anon_id', + 'ctwa_clid' => 'ctwa_clid', + 'page_id' => 'page_id' ); /** * Array of attributes to setter functions (for deserialization of responses) @@ -172,7 +176,9 @@ class UserData implements ArrayAccess { 'dobm' => 'setDobm', 'doby' => 'setDoby', 'madid' => 'setMadid', - 'anon_id' => 'setAnonId' + 'anon_id' => 'setAnonId', + 'ctwa_clid' => 'setCtwaClid', + 'page_id' => 'setPageId' ); /** * Array of attributes to getter functions (for serialization of requests) @@ -215,7 +221,9 @@ class UserData implements ArrayAccess { 'dobm' => 'getDobm', 'doby' => 'getDoby', 'madid' => 'getMadid', - 'anon_id' => 'getAnonId' + 'anon_id' => 'getAnonId', + 'ctwa_clid' => 'getCtwaClid', + 'page_id' => 'getPageId' ); /** * Associative array for storing property values @@ -336,6 +344,8 @@ public function __construct(array $data = null) { $this->container['doby'] = isset($data['doby']) ? $data['doby'] : null; $this->container['madid'] = isset($data['madid']) ? $data['madid'] : null; $this->container['anon_id'] = isset($data['anon_id']) ? $data['anon_id'] : null; + $this->container['ctwa_clid'] = isset($data['ctwa_clid']) ? $data['ctwa_clid'] : null; + $this->container['page_id'] = isset($data['page_id']) ? $data['page_id'] : null; } @@ -853,6 +863,30 @@ public function setAnonId($anon_id) { return $this; } + /** + * CtwaClid of the conversation that was started on WhatsApp + * + * @param ctwa_clid the anonymous id + * @return $this + */ + public function setCtwaClid($ctwa_clid) { + $this->container['ctwa_clid'] = $ctwa_clid; + + return $this; + } + + /** + * Set the ID of the page that the ad is associated with + * + * @param page_id + * @return $this + */ + public function setPageId($page_id) { + $this->container['page_id'] = $page_id; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * @param integer $offset Offset @@ -923,6 +957,8 @@ public function normalize() { $normalized_payload['doby'] = Util::hash(Normalizer::normalize('doby', $this->getDoby())); $normalized_payload['madid'] = Util::hash(Normalizer::normalize('madid', $this->getMadid())); $normalized_payload['anon_id'] = Util::hash(Normalizer::normalize('anon_id', $this->getAnonId())); + $normalized_payload['ctwa_clid'] = $this->getCtwaClid(); + $normalized_payload['page_id'] = $this->getPageId(); $normalized_payload = array_filter($normalized_payload); return $normalized_payload; } @@ -1252,6 +1288,22 @@ public function getAnonId() { return $this->container['anon_id']; } + /** + * CtwaClid of the conversation that was started on WhatsApp + * @return string + */ + public function getCtwaClid() { + return $this->container['ctwa_clid']; + } + + /** + * ID of the page that the ad is associated with + * @return string + */ + public function getPageId() { + return $this->container['page_id']; + } + /** * Gets the string presentation of the object * @return string From 67c3ba5dfde6ca0a5a4bbd53eaa149cee158983a Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Thu, 7 Mar 2024 13:30:58 -0800 Subject: [PATCH 15/34] Update Supported Destination Types Summary: [BizSDK] Update Supported Destination Types Reviewed By: mengxuanzhangz Differential Revision: D54613743 fbshipit-source-id: 45a3e4bb007aa64944a823d6d19310d8f011b5fb --- .../Object/Values/AdSetDestinationTypeValues.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/FacebookAds/Object/Values/AdSetDestinationTypeValues.php b/src/FacebookAds/Object/Values/AdSetDestinationTypeValues.php index 707433ce1..f5db99ec2 100644 --- a/src/FacebookAds/Object/Values/AdSetDestinationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdSetDestinationTypeValues.php @@ -25,7 +25,19 @@ class AdSetDestinationTypeValues extends AbstractEnum { const APP = 'APP'; const APPLINKS_AUTOMATIC = 'APPLINKS_AUTOMATIC'; const FACEBOOK = 'FACEBOOK'; + const INSTAGRAM_DIRECT = 'INSTAGRAM_DIRECT'; + const MESSAGING_INSTAGRAM_DIRECT_MESSENGER = 'MESSAGING_INSTAGRAM_DIRECT_MESSENGER'; + const MESSAGING_INSTAGRAM_DIRECT_MESSENGER_WHATSAPP = 'MESSAGING_INSTAGRAM_DIRECT_MESSENGER_WHATSAPP'; + const MESSAGING_INSTAGRAM_DIRECT_WHATSAPP = 'MESSAGING_INSTAGRAM_DIRECT_WHATSAPP'; + const MESSAGING_MESSENGER_WHATSAPP = 'MESSAGING_MESSENGER_WHATSAPP'; const MESSENGER = 'MESSENGER'; + const ON_AD = 'ON_AD'; + const ON_EVENT = 'ON_EVENT'; + const ON_PAGE = 'ON_PAGE'; + const ON_POST = 'ON_POST'; + const ON_VIDEO = 'ON_VIDEO'; + const SHOP_AUTOMATIC = 'SHOP_AUTOMATIC'; const UNDEFINED = 'UNDEFINED'; const WEBSITE = 'WEBSITE'; + const WHATSAPP = 'WHATSAPP'; } From 108278b8d697a1037f778b80ab76bab434069598 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Fri, 15 Mar 2024 10:48:53 -0700 Subject: [PATCH 16/34] Override Enum EnumAffectedChannels for All Languages Summary: [BizSDK] Override Enum EnumAffectedChannels for All Languages Reviewed By: mengxuanzhangz Differential Revision: D54956307 fbshipit-source-id: 54bdd9067039aa8496966f8d563ad4e4127631ee --- ...talogDiagnosticGroupAffectedChannelsValues.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/FacebookAds/Object/Values/ProductCatalogDiagnosticGroupAffectedChannelsValues.php b/src/FacebookAds/Object/Values/ProductCatalogDiagnosticGroupAffectedChannelsValues.php index e9d43c99d..394f5a0cf 100644 --- a/src/FacebookAds/Object/Values/ProductCatalogDiagnosticGroupAffectedChannelsValues.php +++ b/src/FacebookAds/Object/Values/ProductCatalogDiagnosticGroupAffectedChannelsValues.php @@ -22,9 +22,18 @@ */ class ProductCatalogDiagnosticGroupAffectedChannelsValues extends AbstractEnum { - const BUSINESS_INBOX_IN_MESSENGER = 'business_inbox_in_messenger'; + const B2C_MARKETPLACE = 'b2c_marketplace'; + const C2C_MARKETPLACE = 'c2c_marketplace'; + const DA = 'da'; + const DAILY_DEALS = 'daily_deals'; + const DAILY_DEALS_LEGACY = 'daily_deals_legacy'; + const IG_PRODUCT_TAGGING = 'ig_product_tagging'; + const MARKETPLACE = 'marketplace'; + const MARKETPLACE_ADS_DEPRECATED = 'marketplace_ads_deprecated'; + const MARKETPLACE_SHOPS = 'marketplace_shops'; + const MINI_SHOPS = 'mini_shops'; + const OFFLINE_CONVERSIONS = 'offline_conversions'; const SHOPS = 'shops'; - const TEST_CAPABILITY = 'test_capability'; const UNIVERSAL_CHECKOUT = 'universal_checkout'; - const US_MARKETPLACE = 'us_marketplace'; + const WHATSAPP = 'whatsapp'; } From 6270c85917db02da397c49f13a46a31d8b985cd2 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Mon, 18 Mar 2024 23:15:35 -0700 Subject: [PATCH 17/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D54971065 fbshipit-source-id: e912137558596dcef4c99d560053d49696740763 --- .../AdAccountAdSetsPostAdSetCreateCpa.php | 4 +- ...countAdSetsPostAdSetCreateCpaAppEvents.php | 4 +- examples/AdAccountAdSetsPostCreateAdSet.php | 4 +- examples/AdAccountAdSetsPostDailyBudget20.php | 4 +- ...etsPostLifetimeBudget200Duration10Days.php | 4 +- ...ccountAdSetsPostOptimizePostEngagement.php | 4 +- src/FacebookAds/ApiConfig.php | 2 +- src/FacebookAds/Object/Ad.php | 2 +- src/FacebookAds/Object/AdAccount.php | 24 --------- src/FacebookAds/Object/AdSet.php | 2 +- src/FacebookAds/Object/Album.php | 1 - src/FacebookAds/Object/Avatar.php | 1 + src/FacebookAds/Object/Business.php | 1 - src/FacebookAds/Object/Campaign.php | 2 +- .../AdAssetFeedAdditionalDataFields.php | 2 + ...pPlacementSpecificReviewFeedbackFields.php | 2 + .../Object/Fields/AdsInsightsFields.php | 2 + .../Fields/CatalogSubVerticalListFields.php | 2 - .../FundingSourceDetailsCouponFields.php | 2 + .../Fields/FundingSourceDetailsFields.php | 2 + .../Object/Fields/InsightsResultFields.php | 2 +- .../Object/Fields/InsightsValueFields.php | 50 +++++++++++++++++++ src/FacebookAds/Object/Fields/PageFields.php | 2 + src/FacebookAds/Object/Group.php | 5 +- src/FacebookAds/Object/IGUser.php | 1 + src/FacebookAds/Object/InsightsValue.php | 42 ++++++++++++++++ src/FacebookAds/Object/Page.php | 36 ++++++++++++- src/FacebookAds/Object/User.php | 5 +- ...ccountAdVolumeRecommendationTypeValues.php | 6 +++ .../Object/Values/AdDatePresetValues.php | 2 +- .../Object/Values/AdSetDatePresetValues.php | 2 +- .../Values/AdVideoContainerTypeValues.php | 1 + ...InsightsActionAttributionWindowsValues.php | 4 ++ .../AdsInsightsActionBreakdownsValues.php | 2 + .../Values/AdsInsightsDatePresetValues.php | 2 +- ...sInsightsSummaryActionBreakdownsValues.php | 2 + .../Values/CampaignDatePresetValues.php | 2 +- .../CustomAudienceDataSourceSubTypeValues.php | 1 + .../Values/InsightsResultDatePresetValues.php | 2 +- .../Object/Values/PageActionTypeValues.php | 26 ++++++++++ .../Object/Values/PageActionValues.php | 26 ++++++++++ .../Values/PageSubscribedFieldsValues.php | 2 + .../Values/ProductCatalogVerticalValues.php | 2 - 43 files changed, 236 insertions(+), 60 deletions(-) create mode 100644 src/FacebookAds/Object/Fields/InsightsValueFields.php create mode 100644 src/FacebookAds/Object/InsightsValue.php create mode 100644 src/FacebookAds/Object/Values/PageActionTypeValues.php create mode 100644 src/FacebookAds/Object/Values/PageActionValues.php diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpa.php b/examples/AdAccountAdSetsPostAdSetCreateCpa.php index 583e256a2..11b392d08 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpa.php +++ b/examples/AdAccountAdSetsPostAdSetCreateCpa.php @@ -43,8 +43,8 @@ 'name' => 'A CPA Ad Set', 'campaign_id' => '', 'daily_budget' => '5000', - 'start_time' => '2023-04-24T09:25:05-0700', - 'end_time' => '2023-05-01T09:25:05-0700', + 'start_time' => '2024-03-20T14:31:58-0700', + 'end_time' => '2024-03-27T14:31:58-0700', 'billing_event' => 'IMPRESSIONS', 'optimization_goal' => 'REACH', 'bid_amount' => '1000', diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php index 94230c370..6fc0ed287 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php +++ b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php @@ -43,8 +43,8 @@ 'name' => 'A CPA Ad Set optimized for App Events', 'campaign_id' => '', 'daily_budget' => '300', - 'start_time' => '2023-04-24T09:25:55-0700', - 'end_time' => '2023-05-01T09:25:55-0700', + 'start_time' => '2024-03-20T14:32:42-0700', + 'end_time' => '2024-03-27T14:32:42-0700', 'billing_event' => 'IMPRESSIONS', 'optimization_goal' => 'OFFSITE_CONVERSIONS', 'bid_amount' => '100', diff --git a/examples/AdAccountAdSetsPostCreateAdSet.php b/examples/AdAccountAdSetsPostCreateAdSet.php index 961d26c02..a2c30d77b 100644 --- a/examples/AdAccountAdSetsPostCreateAdSet.php +++ b/examples/AdAccountAdSetsPostCreateAdSet.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First AdSet', 'lifetime_budget' => '20000', - 'start_time' => '2023-04-24T09:24:18-0700', - 'end_time' => '2023-05-01T09:24:18-0700', + 'start_time' => '2024-03-20T14:31:13-0700', + 'end_time' => '2024-03-27T14:31:13-0700', 'campaign_id' => '', 'bid_amount' => '500', 'billing_event' => 'IMPRESSIONS', diff --git a/examples/AdAccountAdSetsPostDailyBudget20.php b/examples/AdAccountAdSetsPostDailyBudget20.php index d327c2b67..d33b75b04 100644 --- a/examples/AdAccountAdSetsPostDailyBudget20.php +++ b/examples/AdAccountAdSetsPostDailyBudget20.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'daily_budget' => '2000', - 'start_time' => '2023-04-17T09:25:24-0700', - 'end_time' => '2023-04-24T09:25:24-0700', + 'start_time' => '2024-03-13T14:32:15-0700', + 'end_time' => '2024-03-20T14:32:15-0700', 'campaign_id' => '', 'bid_amount' => '100', 'billing_event' => 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php index 602a45e5b..fad96b6a6 100644 --- a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php +++ b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'lifetime_budget' => '20000', - 'start_time' => '2023-04-17T09:25:36-0700', - 'end_time' => '2023-04-27T09:25:36-0700', + 'start_time' => '2024-03-13T14:32:24-0700', + 'end_time' => '2024-03-23T14:32:24-0700', 'campaign_id' => '', 'bid_amount' => '100', 'billing_event' => 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostOptimizePostEngagement.php b/examples/AdAccountAdSetsPostOptimizePostEngagement.php index b0c2f4581..b42a2ae2a 100644 --- a/examples/AdAccountAdSetsPostOptimizePostEngagement.php +++ b/examples/AdAccountAdSetsPostOptimizePostEngagement.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'lifetime_budget' => '20000', - 'start_time' => '2023-04-17T09:25:45-0700', - 'end_time' => '2023-04-27T09:25:45-0700', + 'start_time' => '2024-03-13T14:32:33-0700', + 'end_time' => '2024-03-23T14:32:33-0700', 'campaign_id' => '', 'bid_amount' => '500', 'billing_event' => 'IMPRESSIONS', diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 769aa053c..a2e4abc50 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '19.0'; - const SDKVersion = '19.0.1'; + const SDKVersion = '19.0.2'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/Ad.php b/src/FacebookAds/Object/Ad.php index 313babc3b..a974a95ac 100644 --- a/src/FacebookAds/Object/Ad.php +++ b/src/FacebookAds/Object/Ad.php @@ -439,7 +439,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'last_week_mon_sun', 'last_week_sun_sat', 'last_year', - 'lifetime', + 'maximum', 'this_month', 'this_quarter', 'this_week_mon_today', diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 19d755f6c..03f6980da 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -1243,7 +1243,6 @@ public function createAdVideo(array $fields = array(), array $params = array(), 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', @@ -3152,29 +3151,6 @@ public function deleteUsersOfAnyAudience(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function getValueAdjustmentRulePersonaGroups(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/value_adjustment_rule_persona_groups', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getValueAdjustmentRules(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AdSet.php b/src/FacebookAds/Object/AdSet.php index e454b51fb..cc58fdeeb 100644 --- a/src/FacebookAds/Object/AdSet.php +++ b/src/FacebookAds/Object/AdSet.php @@ -586,7 +586,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'last_week_mon_sun', 'last_week_sun_sat', 'last_year', - 'lifetime', + 'maximum', 'this_month', 'this_quarter', 'this_week_mon_today', diff --git a/src/FacebookAds/Object/Album.php b/src/FacebookAds/Object/Album.php index 8412ad0d1..1e982a4c1 100644 --- a/src/FacebookAds/Object/Album.php +++ b/src/FacebookAds/Object/Album.php @@ -228,7 +228,6 @@ public function createPhoto(array $fields = array(), array $params = array(), $p 'proxied_app_id' => 'string', 'published' => 'bool', 'qn' => 'string', - 'scheduled_publish_time' => 'unsigned int', 'spherical_metadata' => 'map', 'sponsor_id' => 'string', 'sponsor_relationship' => 'unsigned int', diff --git a/src/FacebookAds/Object/Avatar.php b/src/FacebookAds/Object/Avatar.php index 18200b59f..bf5dc4ad5 100644 --- a/src/FacebookAds/Object/Avatar.php +++ b/src/FacebookAds/Object/Avatar.php @@ -45,6 +45,7 @@ public function getModels(array $fields = array(), array $params = array(), $pen $param_types = array( 'client_name' => 'string', 'client_version' => 'string', + 'config_id' => 'string', 'force_generate' => 'bool', 'platform' => 'string', 'profile' => 'string', diff --git a/src/FacebookAds/Object/Business.php b/src/FacebookAds/Object/Business.php index 92c495c1e..f3438ac92 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -2758,7 +2758,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', diff --git a/src/FacebookAds/Object/Campaign.php b/src/FacebookAds/Object/Campaign.php index 7061a6f07..d2b0c34f4 100644 --- a/src/FacebookAds/Object/Campaign.php +++ b/src/FacebookAds/Object/Campaign.php @@ -452,7 +452,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi 'last_week_mon_sun', 'last_week_sun_sat', 'last_year', - 'lifetime', + 'maximum', 'this_month', 'this_quarter', 'this_week_mon_today', diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php index ca740e260..aad7b7844 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataFields.php @@ -27,6 +27,7 @@ class AdAssetFeedAdditionalDataFields extends AbstractEnum { const IS_CLICK_TO_MESSAGE = 'is_click_to_message'; const MULTI_SHARE_END_CARD = 'multi_share_end_card'; const PAGE_WELCOME_MESSAGE = 'page_welcome_message'; + const PARTNER_APP_WELCOME_MESSAGE_FLOW_ID = 'partner_app_welcome_message_flow_id'; public function getFieldTypes() { return array( @@ -35,6 +36,7 @@ public function getFieldTypes() { 'is_click_to_message' => 'bool', 'multi_share_end_card' => 'bool', 'page_welcome_message' => 'string', + 'partner_app_welcome_message_flow_id' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php b/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php index 68aa966a0..089da7d45 100644 --- a/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php +++ b/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php @@ -30,6 +30,7 @@ class AdgroupPlacementSpecificReviewFeedbackFields extends AbstractEnum { const BSG = 'bsg'; const CITY_COMMUNITY = 'city_community'; const COMMERCE = 'commerce'; + const COMPROMISE = 'compromise'; const DAILY_DEALS = 'daily_deals'; const DAILY_DEALS_LEGACY = 'daily_deals_legacy'; const DPA = 'dpa'; @@ -69,6 +70,7 @@ public function getFieldTypes() { 'bsg' => 'map', 'city_community' => 'map', 'commerce' => 'map', + 'compromise' => 'map', 'daily_deals' => 'map', 'daily_deals_legacy' => 'map', 'dpa' => 'map', diff --git a/src/FacebookAds/Object/Fields/AdsInsightsFields.php b/src/FacebookAds/Object/Fields/AdsInsightsFields.php index 7f96f20ed..163d1fb69 100644 --- a/src/FacebookAds/Object/Fields/AdsInsightsFields.php +++ b/src/FacebookAds/Object/Fields/AdsInsightsFields.php @@ -110,6 +110,7 @@ class AdsInsightsFields extends AbstractEnum { const MARKETING_MESSAGES_COST_PER_DELIVERED = 'marketing_messages_cost_per_delivered'; const MARKETING_MESSAGES_COST_PER_LINK_BTN_CLICK = 'marketing_messages_cost_per_link_btn_click'; const MARKETING_MESSAGES_SPEND = 'marketing_messages_spend'; + const MARKETING_MESSAGES_WEBSITE_PURCHASE_VALUES = 'marketing_messages_website_purchase_values'; const MOBILE_APP_PURCHASE_ROAS = 'mobile_app_purchase_roas'; const OBJECTIVE = 'objective'; const OPTIMIZATION_GOAL = 'optimization_goal'; @@ -247,6 +248,7 @@ public function getFieldTypes() { 'marketing_messages_cost_per_delivered' => 'string', 'marketing_messages_cost_per_link_btn_click' => 'string', 'marketing_messages_spend' => 'string', + 'marketing_messages_website_purchase_values' => 'string', 'mobile_app_purchase_roas' => 'list', 'objective' => 'string', 'optimization_goal' => 'string', diff --git a/src/FacebookAds/Object/Fields/CatalogSubVerticalListFields.php b/src/FacebookAds/Object/Fields/CatalogSubVerticalListFields.php index ad3e8f3b9..cbf91acc3 100644 --- a/src/FacebookAds/Object/Fields/CatalogSubVerticalListFields.php +++ b/src/FacebookAds/Object/Fields/CatalogSubVerticalListFields.php @@ -51,7 +51,6 @@ class CatalogSubVerticalListFields extends AbstractEnum { const LOCAL_SERVICE_BUSINESS_ITEM = 'local_service_business_item'; const LOCAL_SERVICE_BUSINESS_RESTAURANT = 'local_service_business_restaurant'; const LOYALTY_OFFER = 'loyalty_offer'; - const MEETUP_SPACE = 'meetup_space'; const NURSERY = 'nursery'; const PRINTERS_AND_SCANNERS = 'printers_and_scanners'; const PRINTERS_SCANNERS_AND_FAX_MACHINES = 'printers_scanners_and_fax_machines'; @@ -108,7 +107,6 @@ public function getFieldTypes() { 'local_service_business_item' => 'Object', 'local_service_business_restaurant' => 'Object', 'loyalty_offer' => 'Object', - 'meetup_space' => 'Object', 'nursery' => 'Object', 'printers_and_scanners' => 'Object', 'printers_scanners_and_fax_machines' => 'Object', diff --git a/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php b/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php index 93b6caf2c..034d7ceba 100644 --- a/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php +++ b/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php @@ -23,6 +23,7 @@ class FundingSourceDetailsCouponFields extends AbstractEnum { const AMOUNT = 'amount'; + const CAMPAIGN_IDS = 'campaign_ids'; const CURRENCY = 'currency'; const DISPLAY_AMOUNT = 'display_amount'; const EXPIRATION = 'expiration'; @@ -30,6 +31,7 @@ class FundingSourceDetailsCouponFields extends AbstractEnum { public function getFieldTypes() { return array( 'amount' => 'int', + 'campaign_ids' => 'list', 'currency' => 'string', 'display_amount' => 'string', 'expiration' => 'datetime', diff --git a/src/FacebookAds/Object/Fields/FundingSourceDetailsFields.php b/src/FacebookAds/Object/Fields/FundingSourceDetailsFields.php index 7ad382f55..a5fc13e4c 100644 --- a/src/FacebookAds/Object/Fields/FundingSourceDetailsFields.php +++ b/src/FacebookAds/Object/Fields/FundingSourceDetailsFields.php @@ -23,6 +23,7 @@ class FundingSourceDetailsFields extends AbstractEnum { const COUPON = 'coupon'; + const COUPONS = 'coupons'; const DISPLAY_STRING = 'display_string'; const ID = 'id'; const TYPE = 'type'; @@ -30,6 +31,7 @@ class FundingSourceDetailsFields extends AbstractEnum { public function getFieldTypes() { return array( 'coupon' => 'FundingSourceDetailsCoupon', + 'coupons' => 'list', 'display_string' => 'string', 'id' => 'string', 'type' => 'int', diff --git a/src/FacebookAds/Object/Fields/InsightsResultFields.php b/src/FacebookAds/Object/Fields/InsightsResultFields.php index c1cb09798..786beab46 100644 --- a/src/FacebookAds/Object/Fields/InsightsResultFields.php +++ b/src/FacebookAds/Object/Fields/InsightsResultFields.php @@ -38,7 +38,7 @@ public function getFieldTypes() { 'name' => 'string', 'period' => 'string', 'title' => 'string', - 'values' => 'list', + 'values' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/InsightsValueFields.php b/src/FacebookAds/Object/Fields/InsightsValueFields.php new file mode 100644 index 000000000..da3621562 --- /dev/null +++ b/src/FacebookAds/Object/Fields/InsightsValueFields.php @@ -0,0 +1,50 @@ + 'string', + 'end_time' => 'datetime', + 'engagement_source' => 'string', + 'message_type' => 'string', + 'messaging_channel' => 'string', + 'recurring_notifications_entry_point' => 'string', + 'recurring_notifications_frequency' => 'string', + 'recurring_notifications_topic' => 'string', + 'start_time' => 'datetime', + 'value' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index a4fefe6cb..27b4bb2ac 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -37,6 +37,7 @@ class PageFields extends AbstractEnum { const BIO = 'bio'; const BIRTHDAY = 'birthday'; const BOOKING_AGENT = 'booking_agent'; + const BREAKING_NEWS_USAGE = 'breaking_news_usage'; const BUILT = 'built'; const BUSINESS = 'business'; const CAN_CHECKIN = 'can_checkin'; @@ -189,6 +190,7 @@ public function getFieldTypes() { 'bio' => 'string', 'birthday' => 'string', 'booking_agent' => 'string', + 'breaking_news_usage' => 'Object', 'built' => 'string', 'business' => 'Object', 'can_checkin' => 'bool', diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index b3991d96d..8cd862cd4 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -271,6 +271,8 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'audience_exp' => 'bool', 'backdated_time' => 'datetime', 'backdated_time_granularity' => 'backdated_time_granularity_enum', + 'breaking_news' => 'bool', + 'breaking_news_expiration' => 'unsigned int', 'call_to_action' => 'Object', 'caption' => 'string', 'child_attachments' => 'list', @@ -295,7 +297,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'formatting' => 'formatting_enum', 'fun_fact_prompt_id' => 'unsigned int', 'fun_fact_toastee_id' => 'unsigned int', - 'has_nickname' => 'bool', 'height' => 'unsigned int', 'holiday_card' => 'string', 'home_checkin_city_id' => 'Object', @@ -669,7 +670,6 @@ public function createPhoto(array $fields = array(), array $params = array(), $p 'proxied_app_id' => 'string', 'published' => 'bool', 'qn' => 'string', - 'scheduled_publish_time' => 'unsigned int', 'spherical_metadata' => 'map', 'sponsor_id' => 'string', 'sponsor_relationship' => 'unsigned int', @@ -789,7 +789,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', diff --git a/src/FacebookAds/Object/IGUser.php b/src/FacebookAds/Object/IGUser.php index c96a40fcb..a4893d566 100644 --- a/src/FacebookAds/Object/IGUser.php +++ b/src/FacebookAds/Object/IGUser.php @@ -386,6 +386,7 @@ public function createMedia(array $fields = array(), array $params = array(), $p 'product_tags' => 'list', 'share_to_feed' => 'bool', 'thumb_offset' => 'string', + 'upload_type' => 'string', 'user_tags' => 'list', 'video_url' => 'string', ); diff --git a/src/FacebookAds/Object/InsightsValue.php b/src/FacebookAds/Object/InsightsValue.php new file mode 100644 index 000000000..4aed32499 --- /dev/null +++ b/src/FacebookAds/Object/InsightsValue.php @@ -0,0 +1,42 @@ +getValues(); $ref_enums['DeveloperAction'] = PageDeveloperActionValues::getInstance()->getValues(); $ref_enums['SubscribedFields'] = PageSubscribedFieldsValues::getInstance()->getValues(); + $ref_enums['Action'] = PageActionValues::getInstance()->getValues(); + $ref_enums['ActionType'] = PageActionTypeValues::getInstance()->getValues(); return $ref_enums; } @@ -1267,6 +1271,8 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'audience_exp' => 'bool', 'backdated_time' => 'datetime', 'backdated_time_granularity' => 'backdated_time_granularity_enum', + 'breaking_news' => 'bool', + 'breaking_news_expiration' => 'unsigned int', 'call_to_action' => 'Object', 'caption' => 'string', 'child_attachments' => 'list', @@ -1292,7 +1298,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'formatting' => 'formatting_enum', 'fun_fact_prompt_id' => 'unsigned int', 'fun_fact_toastee_id' => 'unsigned int', - 'has_nickname' => 'bool', 'height' => 'unsigned int', 'holiday_card' => 'string', 'home_checkin_city_id' => 'Object', @@ -3080,6 +3085,34 @@ public function createTakeThreadControl(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } + public function createThreadAction(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'action' => 'action_enum', + 'action_type' => 'action_type_enum', + 'user_id' => 'map', + ); + $enums = array( + 'action_enum' => PageActionValues::getInstance()->getValues(), + 'action_type_enum' => PageActionTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/thread_action', + new Page(), + 'EDGE', + Page::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getThreadOwner(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -3435,7 +3468,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', diff --git a/src/FacebookAds/Object/User.php b/src/FacebookAds/Object/User.php index b1c9c0326..0edd5cd76 100644 --- a/src/FacebookAds/Object/User.php +++ b/src/FacebookAds/Object/User.php @@ -715,6 +715,8 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'audience_exp' => 'bool', 'backdated_time' => 'datetime', 'backdated_time_granularity' => 'backdated_time_granularity_enum', + 'breaking_news' => 'bool', + 'breaking_news_expiration' => 'unsigned int', 'call_to_action' => 'Object', 'caption' => 'string', 'child_attachments' => 'list', @@ -739,7 +741,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'formatting' => 'formatting_enum', 'fun_fact_prompt_id' => 'unsigned int', 'fun_fact_toastee_id' => 'unsigned int', - 'has_nickname' => 'bool', 'height' => 'unsigned int', 'holiday_card' => 'string', 'home_checkin_city_id' => 'Object', @@ -1395,7 +1396,6 @@ public function createPhoto(array $fields = array(), array $params = array(), $p 'proxied_app_id' => 'string', 'published' => 'bool', 'qn' => 'string', - 'scheduled_publish_time' => 'unsigned int', 'spherical_metadata' => 'map', 'sponsor_id' => 'string', 'sponsor_relationship' => 'unsigned int', @@ -1593,7 +1593,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list>', 'guide_enabled' => 'bool', - 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index 717cb9779..01bf5fc28 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -48,6 +48,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const APP_AEM_V2_INSTALLATION_PROMOTION = 'APP_AEM_V2_INSTALLATION_PROMOTION'; const ASC_BUDGET_OPTIMIZATION = 'ASC_BUDGET_OPTIMIZATION'; const ASC_BUDGET_OPTIMIZATION_PFR = 'ASC_BUDGET_OPTIMIZATION_PFR'; + const ASC_CREATION_PACKAGE = 'ASC_CREATION_PACKAGE'; const ASPECT_RATIO = 'ASPECT_RATIO'; const ATLEAST_6_PLACEMENTS = 'ATLEAST_6_PLACEMENTS'; const AUCTION_OVERLAP = 'AUCTION_OVERLAP'; @@ -67,12 +68,14 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const CASH_REWARDS_OPT_IN = 'CASH_REWARDS_OPT_IN'; const CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM = 'CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM'; const CONNECT_FACEBOOK_PAGE_TO_WHATSAPP = 'CONNECT_FACEBOOK_PAGE_TO_WHATSAPP'; + const CONVERSION_LEAD_ADS = 'CONVERSION_LEAD_ADS'; const COST_GOAL = 'COST_GOAL'; const COST_GOAL_BUDGET_LIMITED = 'COST_GOAL_BUDGET_LIMITED'; const COST_GOAL_CPA_LIMITED = 'COST_GOAL_CPA_LIMITED'; const COST_PER_RESULT = 'COST_PER_RESULT'; const CREATION_PACKAGE_UPGRADE_TO_ASC = 'CREATION_PACKAGE_UPGRADE_TO_ASC'; const CREATION_PACKAGE_UPGRADE_TO_TLA = 'CREATION_PACKAGE_UPGRADE_TO_TLA'; + const CREATION_PACKAGE_UPGRADE_TO_TMC = 'CREATION_PACKAGE_UPGRADE_TO_TMC'; const CREATIVE_BADGE = 'CREATIVE_BADGE'; const CREATIVE_DIVERSITY = 'CREATIVE_DIVERSITY'; const CREATIVE_FATIGUE = 'CREATIVE_FATIGUE'; @@ -82,6 +85,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const CREATOR_ADS_PA_CONVERSION = 'CREATOR_ADS_PA_CONVERSION'; const CTA = 'CTA'; const CTX_BUDGET_OPTIMIZATION = 'CTX_BUDGET_OPTIMIZATION'; + const CTX_GUIDANCE = 'CTX_GUIDANCE'; const DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS = 'DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS'; const DEAD_LINK = 'DEAD_LINK'; const DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET = 'DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET'; @@ -94,6 +98,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const HIGH_COST = 'HIGH_COST'; const HISTORICAL_BENCHMARK = 'HISTORICAL_BENCHMARK'; const IG_MULTI_ADS = 'IG_MULTI_ADS'; + const LEAD_ADS_GUIDANCE = 'LEAD_ADS_GUIDANCE'; const LEARNING_LIMITED = 'LEARNING_LIMITED'; const LEARNING_PAUSE_FRICTION = 'LEARNING_PAUSE_FRICTION'; const LEARNING_PHASE_BUDGET_EDITS = 'LEARNING_PHASE_BUDGET_EDITS'; @@ -127,6 +132,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const SPEND_LIMIT = 'SPEND_LIMIT'; const SYD_TEST_MODE = 'SYD_TEST_MODE'; const TAILORED_LEAD_AD_CAMPAIGN = 'TAILORED_LEAD_AD_CAMPAIGN'; + const TAILORED_MESSAGES_CAMPAIGN = 'TAILORED_MESSAGES_CAMPAIGN'; const TOP_ADSETS_WITH_ADS_UNDER_CAP = 'TOP_ADSETS_WITH_ADS_UNDER_CAP'; const TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP = 'TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP'; const TWO_P_GUIDANCE_CARD_AAA = 'TWO_P_GUIDANCE_CARD_AAA'; diff --git a/src/FacebookAds/Object/Values/AdDatePresetValues.php b/src/FacebookAds/Object/Values/AdDatePresetValues.php index bedc73a60..bad7b500b 100644 --- a/src/FacebookAds/Object/Values/AdDatePresetValues.php +++ b/src/FacebookAds/Object/Values/AdDatePresetValues.php @@ -34,7 +34,7 @@ class AdDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'last_week_mon_sun'; const LAST_WEEK_SUN_SAT = 'last_week_sun_sat'; const LAST_YEAR = 'last_year'; - const LIFETIME = 'lifetime'; + const MAXIMUM = 'maximum'; const THIS_MONTH = 'this_month'; const THIS_QUARTER = 'this_quarter'; const THIS_WEEK_MON_TODAY = 'this_week_mon_today'; diff --git a/src/FacebookAds/Object/Values/AdSetDatePresetValues.php b/src/FacebookAds/Object/Values/AdSetDatePresetValues.php index aa75ff833..cae4261b3 100644 --- a/src/FacebookAds/Object/Values/AdSetDatePresetValues.php +++ b/src/FacebookAds/Object/Values/AdSetDatePresetValues.php @@ -34,7 +34,7 @@ class AdSetDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'LAST_WEEK_MON_SUN'; const LAST_WEEK_SUN_SAT = 'LAST_WEEK_SUN_SAT'; const LAST_YEAR = 'LAST_YEAR'; - const LIFETIME = 'LIFETIME'; + const MAXIMUM = 'MAXIMUM'; const THIS_MONTH = 'THIS_MONTH'; const THIS_QUARTER = 'THIS_QUARTER'; const THIS_WEEK_MON_TODAY = 'THIS_WEEK_MON_TODAY'; diff --git a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php index 86cb0c032..2a1469de2 100644 --- a/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +++ b/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php @@ -122,6 +122,7 @@ class AdVideoContainerTypeValues extends AbstractEnum { const MUSIC_CLIP_IN_AUDIO_DIGEST = 'MUSIC_CLIP_IN_AUDIO_DIGEST'; const MUSIC_CLIP_IN_COMMENT = 'MUSIC_CLIP_IN_COMMENT'; const MUSIC_CLIP_IN_LIGHTWEIGHT_STATUS = 'MUSIC_CLIP_IN_LIGHTWEIGHT_STATUS'; + const MUSIC_CLIP_IN_MSGR_NOTE = 'MUSIC_CLIP_IN_MSGR_NOTE'; const MUSIC_CLIP_IN_POLL_OPTION = 'MUSIC_CLIP_IN_POLL_OPTION'; const MUSIC_CLIP_ON_DATING_PROFILE = 'MUSIC_CLIP_ON_DATING_PROFILE'; const NEO_ASYNC_GAME_VIDEO = 'NEO_ASYNC_GAME_VIDEO'; diff --git a/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php b/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php index d5ca3b47a..4a98e0924 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php @@ -27,8 +27,12 @@ class AdsInsightsActionAttributionWindowsValues extends AbstractEnum { const VALUE_1D_VIEW = '1d_view'; const VALUE_28D_CLICK = '28d_click'; const VALUE_28D_VIEW = '28d_view'; + const VALUE_28D_VIEW_ALL_CONVERSIONS = '28d_view_all_conversions'; + const VALUE_28D_VIEW_FIRST_CONVERSION = '28d_view_first_conversion'; const VALUE_7D_CLICK = '7d_click'; const VALUE_7D_VIEW = '7d_view'; + const VALUE_7D_VIEW_ALL_CONVERSIONS = '7d_view_all_conversions'; + const VALUE_7D_VIEW_FIRST_CONVERSION = '7d_view_first_conversion'; const DDA = 'dda'; const VALUE_DEFAULT = 'default'; const SKAN_CLICK = 'skan_click'; diff --git a/src/FacebookAds/Object/Values/AdsInsightsActionBreakdownsValues.php b/src/FacebookAds/Object/Values/AdsInsightsActionBreakdownsValues.php index 309eccdf0..54e0fd495 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsActionBreakdownsValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsActionBreakdownsValues.php @@ -33,6 +33,8 @@ class AdsInsightsActionBreakdownsValues extends AbstractEnum { const ACTION_VIDEO_SOUND = 'action_video_sound'; const ACTION_VIDEO_TYPE = 'action_video_type'; const CONVERSION_DESTINATION = 'conversion_destination'; + const MATCHED_PERSONA_ID = 'matched_persona_id'; + const MATCHED_PERSONA_NAME = 'matched_persona_name'; const SIGNAL_SOURCE_BUCKET = 'signal_source_bucket'; const STANDARD_EVENT_CONTENT_TYPE = 'standard_event_content_type'; } diff --git a/src/FacebookAds/Object/Values/AdsInsightsDatePresetValues.php b/src/FacebookAds/Object/Values/AdsInsightsDatePresetValues.php index 292eaadf6..99365b46b 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsDatePresetValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsDatePresetValues.php @@ -34,7 +34,7 @@ class AdsInsightsDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'last_week_mon_sun'; const LAST_WEEK_SUN_SAT = 'last_week_sun_sat'; const LAST_YEAR = 'last_year'; - const LIFETIME = 'lifetime'; + const MAXIMUM = 'maximum'; const THIS_MONTH = 'this_month'; const THIS_QUARTER = 'this_quarter'; const THIS_WEEK_MON_TODAY = 'this_week_mon_today'; diff --git a/src/FacebookAds/Object/Values/AdsInsightsSummaryActionBreakdownsValues.php b/src/FacebookAds/Object/Values/AdsInsightsSummaryActionBreakdownsValues.php index e3f5165c7..02315e703 100644 --- a/src/FacebookAds/Object/Values/AdsInsightsSummaryActionBreakdownsValues.php +++ b/src/FacebookAds/Object/Values/AdsInsightsSummaryActionBreakdownsValues.php @@ -33,6 +33,8 @@ class AdsInsightsSummaryActionBreakdownsValues extends AbstractEnum { const ACTION_VIDEO_SOUND = 'action_video_sound'; const ACTION_VIDEO_TYPE = 'action_video_type'; const CONVERSION_DESTINATION = 'conversion_destination'; + const MATCHED_PERSONA_ID = 'matched_persona_id'; + const MATCHED_PERSONA_NAME = 'matched_persona_name'; const SIGNAL_SOURCE_BUCKET = 'signal_source_bucket'; const STANDARD_EVENT_CONTENT_TYPE = 'standard_event_content_type'; } diff --git a/src/FacebookAds/Object/Values/CampaignDatePresetValues.php b/src/FacebookAds/Object/Values/CampaignDatePresetValues.php index e28e48ebc..5a256f8c2 100644 --- a/src/FacebookAds/Object/Values/CampaignDatePresetValues.php +++ b/src/FacebookAds/Object/Values/CampaignDatePresetValues.php @@ -34,7 +34,7 @@ class CampaignDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'last_week_mon_sun'; const LAST_WEEK_SUN_SAT = 'last_week_sun_sat'; const LAST_YEAR = 'last_year'; - const LIFETIME = 'lifetime'; + const MAXIMUM = 'maximum'; const THIS_MONTH = 'this_month'; const THIS_QUARTER = 'this_quarter'; const THIS_WEEK_MON_TODAY = 'this_week_mon_today'; diff --git a/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php b/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php index 8865fc884..5d8b447f7 100644 --- a/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php +++ b/src/FacebookAds/Object/Values/CustomAudienceDataSourceSubTypeValues.php @@ -51,6 +51,7 @@ class CustomAudienceDataSourceSubTypeValues extends AbstractEnum { const INSTANT_ARTICLE_EVENTS = 'INSTANT_ARTICLE_EVENTS'; const LOOKALIKE_PLATFORM = 'LOOKALIKE_PLATFORM'; const MAIL_CHIMP_EMAIL_HASHES = 'MAIL_CHIMP_EMAIL_HASHES'; + const MARKETPLACE_LISTINGS = 'MARKETPLACE_LISTINGS'; const MESSENGER_ONSITE_SUBSCRIPTION = 'MESSENGER_ONSITE_SUBSCRIPTION'; const MOBILE_ADVERTISER_IDS = 'MOBILE_ADVERTISER_IDS'; const MOBILE_APP_COMBINATION_EVENTS = 'MOBILE_APP_COMBINATION_EVENTS'; diff --git a/src/FacebookAds/Object/Values/InsightsResultDatePresetValues.php b/src/FacebookAds/Object/Values/InsightsResultDatePresetValues.php index 5615e0312..0e7999d25 100644 --- a/src/FacebookAds/Object/Values/InsightsResultDatePresetValues.php +++ b/src/FacebookAds/Object/Values/InsightsResultDatePresetValues.php @@ -34,7 +34,7 @@ class InsightsResultDatePresetValues extends AbstractEnum { const LAST_WEEK_MON_SUN = 'last_week_mon_sun'; const LAST_WEEK_SUN_SAT = 'last_week_sun_sat'; const LAST_YEAR = 'last_year'; - const LIFETIME = 'lifetime'; + const MAXIMUM = 'maximum'; const THIS_MONTH = 'this_month'; const THIS_QUARTER = 'this_quarter'; const THIS_WEEK_MON_TODAY = 'this_week_mon_today'; diff --git a/src/FacebookAds/Object/Values/PageActionTypeValues.php b/src/FacebookAds/Object/Values/PageActionTypeValues.php new file mode 100644 index 000000000..c3fd6254b --- /dev/null +++ b/src/FacebookAds/Object/Values/PageActionTypeValues.php @@ -0,0 +1,26 @@ + Date: Mon, 8 Apr 2024 10:41:19 -0700 Subject: [PATCH 18/34] Fix undefined function GuzzleHttp\Promise\unwrap() (#601) Summary: Fixing GuzzleHttp compatibility. Function GuzzleHttp\Promise\unwrap() was removed in guzzlehttp/promises:2.0. https://github.com/guzzle/promises/blob/1.5/src/functions.php#L157 https://github.com/guzzle/promises/blob/2.0.1/CHANGELOG.md#removed Pull Request resolved: https://github.com/facebook/facebook-php-business-sdk/pull/601 Reviewed By: mengxuanzhangz Differential Revision: D55878434 Pulled By: stcheng fbshipit-source-id: 886c4c77d157fd812bcaf18495b59ae66c160dea --- src/FacebookAds/Object/ServerSide/BatchProcessor.php | 6 +++--- .../Object/ServerSide/BatchProcessorTest.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/FacebookAds/Object/ServerSide/BatchProcessor.php b/src/FacebookAds/Object/ServerSide/BatchProcessor.php index 8f3bbd13f..e8663f0ec 100644 --- a/src/FacebookAds/Object/ServerSide/BatchProcessor.php +++ b/src/FacebookAds/Object/ServerSide/BatchProcessor.php @@ -24,7 +24,7 @@ namespace FacebookAds\Object\ServerSide; -use GuzzleHttp\Promise; +use GuzzleHttp\Promise\Utils; class BatchProcessor { protected $batch_size; @@ -53,7 +53,7 @@ public function __construct($pixel_id, $batch_size = 50, $concurrent_requests = public function processEvents($event_request_params, $events) { $generator = $this->processEventsGenerator($event_request_params, $events); foreach ($generator as $promises) { - Promise\unwrap($promises); + Utils::unwrap($promises); } } @@ -94,7 +94,7 @@ public function processEventsGenerator($event_request_params, $events) { public function processEventRequests($event_requests_async) { $generator = $this->processEventRequestsGenerator($event_requests_async); foreach ($generator as $promises) { - Promise\unwrap($promises); + Utils::unwrap($promises); } } diff --git a/test/FacebookAdsTest/Object/ServerSide/BatchProcessorTest.php b/test/FacebookAdsTest/Object/ServerSide/BatchProcessorTest.php index 79d8060a0..acc3edc37 100644 --- a/test/FacebookAdsTest/Object/ServerSide/BatchProcessorTest.php +++ b/test/FacebookAdsTest/Object/ServerSide/BatchProcessorTest.php @@ -29,7 +29,7 @@ use FacebookAds\Object\ServerSide\UserData; use FacebookAds\Object\ServerSide\BatchProcessor; use FacebookAds\Api; -use GuzzleHttp\Promise; +use GuzzleHttp\Promise\Utils; use Mockery as m; class BatchProcessorTest extends AbstractUnitTestCase { @@ -114,7 +114,7 @@ public function testProcessEventsGenerator() { $iterations = 0; foreach ($generator as $promises) { $iterations += 1; - Promise\unwrap($promises); + Utils::unwrap($promises); } $this->assertEquals($iterations, 2); @@ -158,7 +158,7 @@ public function testProcessEventRequestsGenerator() { $iterations = 0; foreach ($generator as $promises) { $iterations += 1; - Promise\unwrap($promises); + Utils::unwrap($promises); } $this->assertEquals(3, $iterations); From f3eb099fa895ff6b5ddd98ba993982c2803b22d3 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Mon, 15 Apr 2024 11:22:25 -0700 Subject: [PATCH 19/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D56033507 fbshipit-source-id: 0d905f15789f9c0d18d4c8ad291539c44e00c62e --- .../AdAccountAdSetsPostAdSetCreateCpa.php | 4 +- ...countAdSetsPostAdSetCreateCpaAppEvents.php | 4 +- examples/AdAccountAdSetsPostCreateAdSet.php | 4 +- examples/AdAccountAdSetsPostDailyBudget20.php | 4 +- ...etsPostLifetimeBudget200Duration10Days.php | 4 +- ...ccountAdSetsPostOptimizePostEngagement.php | 4 +- .../AdgroupLeadsEdgeAdgroupLeadsFiltered.php | 2 +- examples/AdsPixelEventsPost.php | 2 +- src/FacebookAds/ApiConfig.php | 2 +- src/FacebookAds/Object/AdAccount.php | 71 +++++++++++++++ src/FacebookAds/Object/AdsPixel.php | 23 ----- src/FacebookAds/Object/Application.php | 28 +----- .../Object/CommerceMerchantSettings.php | 52 ----------- src/FacebookAds/Object/CommerceOrder.php | 34 ++++++- .../Object/Fields/AdAccountFields.php | 2 + .../Object/Fields/AdAssetFeedSpecFields.php | 2 + .../Fields/AdCreativeFeaturesSpecFields.php | 8 ++ .../Fields/AdCreativeSourcingSpecFields.php | 2 + src/FacebookAds/Object/Fields/AdSetFields.php | 2 + .../Fields/CommerceMerchantSettingsFields.php | 2 - .../Object/Fields/DestinationFields.php | 2 + .../Object/Fields/FlightFields.php | 2 + src/FacebookAds/Object/Fields/HotelFields.php | 2 + ...tyFields.php => IGUpcomingEventFields.php} | 14 ++- .../Fields/LocalServiceBusinessFields.php | 2 + src/FacebookAds/Object/Fields/PageFields.php | 2 + .../Fields/TargetingGeoLocationFields.php | 2 - ...tnerClientVerificationSubmissionFields.php | 4 +- src/FacebookAds/Object/IGUpcomingEvent.php | 91 +++++++++++++++++++ src/FacebookAds/Object/InstagramUser.php | 30 +++++- src/FacebookAds/Object/Page.php | 23 ----- .../Object/PageCommerceEligibility.php | 42 --------- src/FacebookAds/Object/ProductCatalog.php | 28 ++++++ .../TargetingGeoLocationLocationExpansion.php | 42 --------- ...ccountAdVolumeRecommendationTypeValues.php | 5 + .../Values/AdAccountContentTypeValues.php | 1 + .../Object/Values/AdAccountSubtypeValues.php | 1 + ...TargetingUnifiedWhitelistedTypesValues.php | 1 + .../Values/AdActivityEventTypeValues.php | 1 + ...AdAssetFeedSpecCallToActionTypesValues.php | 7 ++ .../AdCreativeCallToActionTypeValues.php | 7 ++ ...CreativeLinkDataCallToActionTypeValues.php | 7 ++ .../AdCreativeLinkDataFormatOptionValues.php | 1 + .../Object/Values/AdPreviewAdFormatValues.php | 3 + .../CustomAudienceContentTypeValues.php | 1 + .../Values/CustomAudienceSubtypeValues.php | 1 + .../Values/PageSubscribedFieldsValues.php | 1 + .../Values/ProductItemErrorTypeValues.php | 1 + ...atsAppBusinessAccountSubCategoryValues.php | 1 - ...cationSubmissionRejectionReasonsValues.php | 29 ++++++ ...ionSubmissionVerificationStatusValues.php} | 16 ++-- .../Object/WhatsAppBusinessAccount.php | 25 +++++ ...essPartnerClientVerificationSubmission.php | 4 + 53 files changed, 404 insertions(+), 251 deletions(-) rename src/FacebookAds/Object/Fields/{PageCommerceEligibilityFields.php => IGUpcomingEventFields.php} (68%) create mode 100644 src/FacebookAds/Object/IGUpcomingEvent.php delete mode 100644 src/FacebookAds/Object/PageCommerceEligibility.php delete mode 100644 src/FacebookAds/Object/TargetingGeoLocationLocationExpansion.php create mode 100644 src/FacebookAds/Object/Values/WhatsAppBusinessPartnerClientVerificationSubmissionRejectionReasonsValues.php rename src/FacebookAds/Object/{Fields/TargetingGeoLocationLocationExpansionFields.php => Values/WhatsAppBusinessPartnerClientVerificationSubmissionVerificationStatusValues.php} (59%) diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpa.php b/examples/AdAccountAdSetsPostAdSetCreateCpa.php index 11b392d08..159293325 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpa.php +++ b/examples/AdAccountAdSetsPostAdSetCreateCpa.php @@ -43,8 +43,8 @@ 'name' => 'A CPA Ad Set', 'campaign_id' => '', 'daily_budget' => '5000', - 'start_time' => '2024-03-20T14:31:58-0700', - 'end_time' => '2024-03-27T14:31:58-0700', + 'start_time' => '2024-04-08T11:26:05-0700', + 'end_time' => '2024-04-15T11:26:05-0700', 'billing_event' => 'IMPRESSIONS', 'optimization_goal' => 'REACH', 'bid_amount' => '1000', diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php index 6fc0ed287..af2168288 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php +++ b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php @@ -43,8 +43,8 @@ 'name' => 'A CPA Ad Set optimized for App Events', 'campaign_id' => '', 'daily_budget' => '300', - 'start_time' => '2024-03-20T14:32:42-0700', - 'end_time' => '2024-03-27T14:32:42-0700', + 'start_time' => '2024-04-08T11:26:49-0700', + 'end_time' => '2024-04-15T11:26:49-0700', 'billing_event' => 'IMPRESSIONS', 'optimization_goal' => 'OFFSITE_CONVERSIONS', 'bid_amount' => '100', diff --git a/examples/AdAccountAdSetsPostCreateAdSet.php b/examples/AdAccountAdSetsPostCreateAdSet.php index a2c30d77b..303ab57a3 100644 --- a/examples/AdAccountAdSetsPostCreateAdSet.php +++ b/examples/AdAccountAdSetsPostCreateAdSet.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First AdSet', 'lifetime_budget' => '20000', - 'start_time' => '2024-03-20T14:31:13-0700', - 'end_time' => '2024-03-27T14:31:13-0700', + 'start_time' => '2024-04-08T11:25:19-0700', + 'end_time' => '2024-04-15T11:25:19-0700', 'campaign_id' => '', 'bid_amount' => '500', 'billing_event' => 'IMPRESSIONS', diff --git a/examples/AdAccountAdSetsPostDailyBudget20.php b/examples/AdAccountAdSetsPostDailyBudget20.php index d33b75b04..594200388 100644 --- a/examples/AdAccountAdSetsPostDailyBudget20.php +++ b/examples/AdAccountAdSetsPostDailyBudget20.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'daily_budget' => '2000', - 'start_time' => '2024-03-13T14:32:15-0700', - 'end_time' => '2024-03-20T14:32:15-0700', + 'start_time' => '2024-04-01T11:26:23-0700', + 'end_time' => '2024-04-08T11:26:23-0700', 'campaign_id' => '', 'bid_amount' => '100', 'billing_event' => 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php index fad96b6a6..bb8933629 100644 --- a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php +++ b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'lifetime_budget' => '20000', - 'start_time' => '2024-03-13T14:32:24-0700', - 'end_time' => '2024-03-23T14:32:24-0700', + 'start_time' => '2024-04-01T11:26:32-0700', + 'end_time' => '2024-04-11T11:26:32-0700', 'campaign_id' => '', 'bid_amount' => '100', 'billing_event' => 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostOptimizePostEngagement.php b/examples/AdAccountAdSetsPostOptimizePostEngagement.php index b42a2ae2a..7f5a38781 100644 --- a/examples/AdAccountAdSetsPostOptimizePostEngagement.php +++ b/examples/AdAccountAdSetsPostOptimizePostEngagement.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'lifetime_budget' => '20000', - 'start_time' => '2024-03-13T14:32:33-0700', - 'end_time' => '2024-03-23T14:32:33-0700', + 'start_time' => '2024-04-01T11:26:40-0700', + 'end_time' => '2024-04-11T11:26:40-0700', 'campaign_id' => '', 'bid_amount' => '500', 'billing_event' => 'IMPRESSIONS', diff --git a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php b/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php index 3e8a1dd0e..67a44e4f8 100644 --- a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php +++ b/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php @@ -40,7 +40,7 @@ $fields = array( ); $params = array( - 'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1681144509)), + 'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1711391704)), ); echo json_encode((new Ad($id))->getLeads( $fields, diff --git a/examples/AdsPixelEventsPost.php b/examples/AdsPixelEventsPost.php index 55d05f03d..df944d5c3 100644 --- a/examples/AdsPixelEventsPost.php +++ b/examples/AdsPixelEventsPost.php @@ -39,7 +39,7 @@ $fields = array( ); $params = array( - 'data' => array(array('event_name' => 'PageView','event_time' => 1681748568,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))), + 'data' => array(array('event_name' => 'PageView','event_time' => 1711995835,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))), ); echo json_encode((new AdsPixel($id))->createEvent( $fields, diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index a2e4abc50..29cabbc16 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '19.0'; - const SDKVersion = '19.0.2'; + const SDKVersion = '19.0.3'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 03f6980da..3a43e56d2 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -1609,6 +1609,29 @@ public function createAsyncAdRequestSet(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } + public function getAudienceFunnel(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, + '/audience_funnel', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createBlockListDraft(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1889,6 +1912,29 @@ public function getConversionGoals(array $fields = array(), array $params = arra return $pending ? $request : $request->execute(); } + public function getCpaGuidance(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, + '/cpa_guidance', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getCustomAudiences(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2925,6 +2971,8 @@ public function getTargetingSearch(array $fields = array(), array $params = arra 'allow_only_fat_head_interests' => 'bool', 'app_store' => 'app_store_enum', 'countries' => 'list', + 'is_account_level_brand_safety_exclusion' => 'bool', + 'is_account_level_employer_exclusion' => 'bool', 'is_exclusion' => 'bool', 'limit_type' => 'limit_type_enum', 'objective' => 'objective_enum', @@ -3151,6 +3199,29 @@ public function deleteUsersOfAnyAudience(array $fields = array(), array $params return $pending ? $request : $request->execute(); } + public function getValueAdjustmentRuleCollections(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/value_adjustment_rule_collections', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getValueAdjustmentRules(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AdsPixel.php b/src/FacebookAds/Object/AdsPixel.php index 699f030b0..d4f95b25e 100644 --- a/src/FacebookAds/Object/AdsPixel.php +++ b/src/FacebookAds/Object/AdsPixel.php @@ -442,29 +442,6 @@ public function getStats(array $fields = array(), array $params = array(), $pend return $pending ? $request : $request->execute(); } - public function createTelemetry(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/telemetry', - 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/Application.php b/src/FacebookAds/Object/Application.php index b4e016cd5..55daffd92 100644 --- a/src/FacebookAds/Object/Application.php +++ b/src/FacebookAds/Object/Application.php @@ -28,7 +28,6 @@ use FacebookAds\Object\Values\ApplicationRequestTypeValues; use FacebookAds\Object\Values\ApplicationSupportedPlatformsValues; use FacebookAds\Object\Values\DACheckConnectionMethodValues; -use FacebookAds\Object\Values\EventTypeValues; /** * This class is auto-generated. @@ -192,6 +191,7 @@ public function createActivity(array $fields = array(), array $params = array(), 'page_id' => 'unsigned int', 'page_scoped_user_id' => 'unsigned int', 'receipt_data' => 'string', + 'sdk_version' => 'string', 'ud' => 'map', 'url_schemes' => 'list', 'user_id' => 'string', @@ -899,32 +899,6 @@ public function getDaChecks(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function getEvents(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'include_canceled' => 'bool', - 'type' => 'type_enum', - ); - $enums = array( - 'type_enum' => EventTypeValues::getInstance()->getValues(), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/events', - new Event(), - 'EDGE', - Event::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getIapPurchases(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/CommerceMerchantSettings.php b/src/FacebookAds/Object/CommerceMerchantSettings.php index 7bfac355e..48a8caa30 100644 --- a/src/FacebookAds/Object/CommerceMerchantSettings.php +++ b/src/FacebookAds/Object/CommerceMerchantSettings.php @@ -249,29 +249,6 @@ public function getReturns(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } - public function getSellerIssues(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, - '/seller_issues', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getSetupStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -394,35 +371,6 @@ public function getTaxSettings(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } - public function createWhatsappChannel(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'op' => 'op_enum', - 'whatsapp_business_accounts' => 'list', - ); - $enums = array( - 'op_enum' => array( - 'ADD', - 'REMOVE', - ), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/whatsapp_channel', - 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/CommerceOrder.php b/src/FacebookAds/Object/CommerceOrder.php index d0d18a2d6..d19e2c6f8 100644 --- a/src/FacebookAds/Object/CommerceOrder.php +++ b/src/FacebookAds/Object/CommerceOrder.php @@ -121,12 +121,12 @@ public function createCancellation(array $fields = array(), array $params = arra return $pending ? $request : $request->execute(); } - public function createFulfillOrder(array $fields = array(), array $params = array(), $pending = false) { + public function createItemUpdate(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( - 'idempotency_key' => 'string', 'items' => 'list', + 'merchant_order_reference' => 'string', ); $enums = array( ); @@ -135,7 +135,7 @@ public function createFulfillOrder(array $fields = array(), array $params = arra $this->api, $this->data['id'], RequestInterface::METHOD_POST, - '/fulfill_order', + '/item_updates', new CommerceOrder(), 'EDGE', CommerceOrder::getFieldsEnum()->getValues(), @@ -436,6 +436,34 @@ public function createUpdateShipment(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } + public function createUpdate(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'cancel_amount' => 'map', + 'fulfill_amount' => 'map', + 'merchant_order_reference' => 'string', + 'refund_amount' => 'map', + 'total_amount' => 'map', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/updates', + new CommerceOrder(), + 'EDGE', + CommerceOrder::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/Fields/AdAccountFields.php b/src/FacebookAds/Object/Fields/AdAccountFields.php index 5f7002875..0010a3da6 100644 --- a/src/FacebookAds/Object/Fields/AdAccountFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountFields.php @@ -31,6 +31,7 @@ class AdAccountFields extends AbstractEnum { const AMOUNT_SPENT = 'amount_spent'; const ATTRIBUTION_SPEC = 'attribution_spec'; const BALANCE = 'balance'; + const BRAND_SAFETY_CONTENT_FILTER_LEVELS = 'brand_safety_content_filter_levels'; const BUSINESS = 'business'; const BUSINESS_CITY = 'business_city'; const BUSINESS_COUNTRY_CODE = 'business_country_code'; @@ -103,6 +104,7 @@ public function getFieldTypes() { 'amount_spent' => 'string', 'attribution_spec' => 'list', 'balance' => 'string', + 'brand_safety_content_filter_levels' => 'list', 'business' => 'Business', 'business_city' => 'string', 'business_country_code' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php index 0fc9c1ca4..29a34da1f 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php @@ -40,6 +40,7 @@ class AdAssetFeedSpecFields extends AbstractEnum { const MESSAGE_EXTENSIONS = 'message_extensions'; const ONSITE_DESTINATIONS = 'onsite_destinations'; const OPTIMIZATION_TYPE = 'optimization_type'; + const PROMOTIONAL_METADATA = 'promotional_metadata'; const REASONS_TO_SHOP = 'reasons_to_shop'; const SHOPS_BUNDLE = 'shops_bundle'; const TITLES = 'titles'; @@ -65,6 +66,7 @@ public function getFieldTypes() { 'message_extensions' => 'list', 'onsite_destinations' => 'list', 'optimization_type' => 'string', + 'promotional_metadata' => 'Object', 'reasons_to_shop' => 'bool', 'shops_bundle' => 'bool', 'titles' => 'list', diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php index 1cba352fe..f225d283f 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php @@ -23,8 +23,11 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const ADVANTAGE_PLUS_CREATIVE = 'advantage_plus_creative'; + const APP_HIGHLIGHTS = 'app_highlights'; const AUDIO = 'audio'; const CAROUSEL_TO_VIDEO = 'carousel_to_video'; + const CATALOG_FEED_TAG = 'catalog_feed_tag'; + const CUSTOMIZE_PRODUCT_RECOMMENDATION = 'customize_product_recommendation'; const CV_TRANSFORMATION = 'cv_transformation'; const DESCRIPTION_AUTOMATION = 'description_automation'; const DHA_OPTIMIZATION = 'dha_optimization'; @@ -43,6 +46,7 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const PRODUCT_METADATA_AUTOMATION = 'product_metadata_automation'; const PRODUCT_TAGS = 'product_tags'; const PROFILE_CARD = 'profile_card'; + const SITE_EXTENSIONS = 'site_extensions'; const STANDARD_ENHANCEMENTS = 'standard_enhancements'; const STANDARD_ENHANCEMENTS_CATALOG = 'standard_enhancements_catalog'; const TEXT_GENERATION = 'text_generation'; @@ -53,8 +57,11 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { public function getFieldTypes() { return array( 'advantage_plus_creative' => 'AdCreativeFeatureDetails', + 'app_highlights' => 'AdCreativeFeatureDetails', 'audio' => 'AdCreativeFeatureDetails', 'carousel_to_video' => 'AdCreativeFeatureDetails', + 'catalog_feed_tag' => 'AdCreativeFeatureDetails', + 'customize_product_recommendation' => 'AdCreativeFeatureDetails', 'cv_transformation' => 'AdCreativeFeatureDetails', 'description_automation' => 'AdCreativeFeatureDetails', 'dha_optimization' => 'AdCreativeFeatureDetails', @@ -73,6 +80,7 @@ public function getFieldTypes() { 'product_metadata_automation' => 'AdCreativeFeatureDetails', 'product_tags' => 'AdCreativeFeatureDetails', 'profile_card' => 'AdCreativeFeatureDetails', + 'site_extensions' => 'AdCreativeFeatureDetails', 'standard_enhancements' => 'AdCreativeFeatureDetails', 'standard_enhancements_catalog' => 'AdCreativeFeatureDetails', 'text_generation' => 'AdCreativeFeatureDetails', diff --git a/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php index ca1de8979..e19ec1bf4 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php @@ -25,12 +25,14 @@ class AdCreativeSourcingSpecFields extends AbstractEnum { const ASSOCIATED_PRODUCT_SET_ID = 'associated_product_set_id'; const PROMOTION_METADATA_SPEC = 'promotion_metadata_spec'; const SITE_LINKS_SPEC = 'site_links_spec'; + const SOURCE_URL = 'source_url'; public function getFieldTypes() { return array( 'associated_product_set_id' => 'string', 'promotion_metadata_spec' => 'list', 'site_links_spec' => 'list', + 'source_url' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdSetFields.php b/src/FacebookAds/Object/Fields/AdSetFields.php index 3310972b0..c40e0c1b6 100644 --- a/src/FacebookAds/Object/Fields/AdSetFields.php +++ b/src/FacebookAds/Object/Fields/AdSetFields.php @@ -70,6 +70,7 @@ class AdSetFields extends AbstractEnum { const PROMOTED_OBJECT = 'promoted_object'; const RECOMMENDATIONS = 'recommendations'; const RECURRING_BUDGET_SEMANTICS = 'recurring_budget_semantics'; + const REGIONAL_REGULATION_IDENTITIES = 'regional_regulation_identities'; const REVIEW_FEEDBACK = 'review_feedback'; const RF_PREDICTION_ID = 'rf_prediction_id'; const SOURCE_ADSET = 'source_adset'; @@ -143,6 +144,7 @@ public function getFieldTypes() { 'promoted_object' => 'AdPromotedObject', 'recommendations' => 'list', 'recurring_budget_semantics' => 'bool', + 'regional_regulation_identities' => 'Object', 'review_feedback' => 'string', 'rf_prediction_id' => 'string', 'source_adset' => 'AdSet', diff --git a/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php b/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php index 525c786d9..8ccbecc04 100644 --- a/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php +++ b/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php @@ -46,7 +46,6 @@ class CommerceMerchantSettingsFields extends AbstractEnum { const SUPPORTED_CARD_TYPES = 'supported_card_types'; const TERMS = 'terms'; const TERMS_URL_BY_LOCALE = 'terms_url_by_locale'; - const WHATSAPP_CHANNEL = 'whatsapp_channel'; public function getFieldTypes() { return array( @@ -74,7 +73,6 @@ public function getFieldTypes() { 'supported_card_types' => 'list', 'terms' => 'string', 'terms_url_by_locale' => 'list>', - 'whatsapp_channel' => 'Object', ); } } diff --git a/src/FacebookAds/Object/Fields/DestinationFields.php b/src/FacebookAds/Object/Fields/DestinationFields.php index 7e96b2c2d..8864af438 100644 --- a/src/FacebookAds/Object/Fields/DestinationFields.php +++ b/src/FacebookAds/Object/Fields/DestinationFields.php @@ -35,6 +35,7 @@ class DestinationFields extends AbstractEnum { const PRICE = 'price'; const PRICE_CHANGE = 'price_change'; const SANITIZED_IMAGES = 'sanitized_images'; + const TAGS = 'tags'; const TYPES = 'types'; const UNIT_PRICE = 'unit_price'; const URL = 'url'; @@ -55,6 +56,7 @@ public function getFieldTypes() { 'price' => 'string', 'price_change' => 'string', 'sanitized_images' => 'list', + 'tags' => 'list', 'types' => 'list', 'unit_price' => 'Object', 'url' => 'string', diff --git a/src/FacebookAds/Object/Fields/FlightFields.php b/src/FacebookAds/Object/Fields/FlightFields.php index 66ec9d82d..bf95e9b3c 100644 --- a/src/FacebookAds/Object/Fields/FlightFields.php +++ b/src/FacebookAds/Object/Fields/FlightFields.php @@ -38,6 +38,7 @@ class FlightFields extends AbstractEnum { const ORIGIN_CITY = 'origin_city'; const PRICE = 'price'; const SANITIZED_IMAGES = 'sanitized_images'; + const TAGS = 'tags'; const UNIT_PRICE = 'unit_price'; const URL = 'url'; const VISIBILITY = 'visibility'; @@ -60,6 +61,7 @@ public function getFieldTypes() { 'origin_city' => 'string', 'price' => 'string', 'sanitized_images' => 'list', + 'tags' => 'list', 'unit_price' => 'Object', 'url' => 'string', 'visibility' => 'Visibility', diff --git a/src/FacebookAds/Object/Fields/HotelFields.php b/src/FacebookAds/Object/Fields/HotelFields.php index 4b9c38e84..73b192bc6 100644 --- a/src/FacebookAds/Object/Fields/HotelFields.php +++ b/src/FacebookAds/Object/Fields/HotelFields.php @@ -42,6 +42,7 @@ class HotelFields extends AbstractEnum { const SALE_PRICE = 'sale_price'; const SANITIZED_IMAGES = 'sanitized_images'; const STAR_RATING = 'star_rating'; + const TAGS = 'tags'; const UNIT_PRICE = 'unit_price'; const URL = 'url'; const VISIBILITY = 'visibility'; @@ -69,6 +70,7 @@ public function getFieldTypes() { 'sale_price' => 'string', 'sanitized_images' => 'list', 'star_rating' => 'float', + 'tags' => 'list', 'unit_price' => 'Object', 'url' => 'string', 'visibility' => 'Visibility', diff --git a/src/FacebookAds/Object/Fields/PageCommerceEligibilityFields.php b/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php similarity index 68% rename from src/FacebookAds/Object/Fields/PageCommerceEligibilityFields.php rename to src/FacebookAds/Object/Fields/IGUpcomingEventFields.php index 18c3c60c7..5fa6e0f09 100644 --- a/src/FacebookAds/Object/Fields/PageCommerceEligibilityFields.php +++ b/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php @@ -20,15 +20,19 @@ * */ -class PageCommerceEligibilityFields extends AbstractEnum { +class IGUpcomingEventFields extends AbstractEnum { - const OFFSITE = 'offsite'; - const ONSITE = 'onsite'; + const END_TIME = 'end_time'; + const ID = 'id'; + const START_TIME = 'start_time'; + const TITLE = 'title'; public function getFieldTypes() { return array( - 'offsite' => 'Object', - 'onsite' => 'Object', + 'end_time' => 'datetime', + 'id' => 'string', + 'start_time' => 'datetime', + 'title' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php b/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php index b4971cfa3..648a1121c 100644 --- a/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php +++ b/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php @@ -56,6 +56,7 @@ class LocalServiceBusinessFields extends AbstractEnum { const RETAILER_CATEGORY = 'retailer_category'; const SANITIZED_IMAGES = 'sanitized_images'; const SIZE = 'size'; + const TAGS = 'tags'; const TITLE = 'title'; const UNIT_PRICE = 'unit_price'; const URL = 'url'; @@ -98,6 +99,7 @@ public function getFieldTypes() { 'retailer_category' => 'string', 'sanitized_images' => 'list', 'size' => 'string', + 'tags' => 'list', 'title' => 'string', 'unit_price' => 'Object', 'url' => 'string', diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index 27b4bb2ac..c08680024 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -91,6 +91,7 @@ class PageFields extends AbstractEnum { const IS_COMMUNITY_PAGE = 'is_community_page'; const IS_ELIGIBLE_FOR_BRANDED_CONTENT = 'is_eligible_for_branded_content'; const IS_ELIGIBLE_FOR_DISABLE_CONNECT_IG_BTN_FOR_NON_PAGE_ADMIN_AM_WEB = 'is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web'; + const IS_ELIGIBLE_FOR_LIVE_BOOSTING_EXPANSION = 'is_eligible_for_live_boosting_expansion'; const IS_MESSENGER_BOT_GET_STARTED_ENABLED = 'is_messenger_bot_get_started_enabled'; const IS_MESSENGER_PLATFORM_BOT = 'is_messenger_platform_bot'; const IS_OWNED = 'is_owned'; @@ -244,6 +245,7 @@ public function getFieldTypes() { 'is_community_page' => 'bool', 'is_eligible_for_branded_content' => 'bool', 'is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web' => 'bool', + 'is_eligible_for_live_boosting_expansion' => 'bool', 'is_messenger_bot_get_started_enabled' => 'bool', 'is_messenger_platform_bot' => 'bool', 'is_owned' => 'bool', diff --git a/src/FacebookAds/Object/Fields/TargetingGeoLocationFields.php b/src/FacebookAds/Object/Fields/TargetingGeoLocationFields.php index 2095677d0..ca64a7802 100644 --- a/src/FacebookAds/Object/Fields/TargetingGeoLocationFields.php +++ b/src/FacebookAds/Object/Fields/TargetingGeoLocationFields.php @@ -30,7 +30,6 @@ class TargetingGeoLocationFields extends AbstractEnum { const GEO_MARKETS = 'geo_markets'; const LARGE_GEO_AREAS = 'large_geo_areas'; const LOCATION_CLUSTER_IDS = 'location_cluster_ids'; - const LOCATION_EXPANSION = 'location_expansion'; const LOCATION_TYPES = 'location_types'; const MEDIUM_GEO_AREAS = 'medium_geo_areas'; const METRO_AREAS = 'metro_areas'; @@ -53,7 +52,6 @@ public function getFieldTypes() { 'geo_markets' => 'list', 'large_geo_areas' => 'list', 'location_cluster_ids' => 'list', - 'location_expansion' => 'TargetingGeoLocationLocationExpansion', 'location_types' => 'list', 'medium_geo_areas' => 'list', 'metro_areas' => 'list', diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessPartnerClientVerificationSubmissionFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessPartnerClientVerificationSubmissionFields.php index 51bee605f..582b3fc1b 100644 --- a/src/FacebookAds/Object/Fields/WhatsAppBusinessPartnerClientVerificationSubmissionFields.php +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessPartnerClientVerificationSubmissionFields.php @@ -34,11 +34,11 @@ public function getFieldTypes() { return array( 'client_business_id' => 'string', 'id' => 'string', - 'rejection_reasons' => 'list', + 'rejection_reasons' => 'list', 'submitted_info' => 'Object', 'submitted_time' => 'datetime', 'update_time' => 'datetime', - 'verification_status' => 'string', + 'verification_status' => 'VerificationStatus', ); } } diff --git a/src/FacebookAds/Object/IGUpcomingEvent.php b/src/FacebookAds/Object/IGUpcomingEvent.php new file mode 100644 index 000000000..36e577ea4 --- /dev/null +++ b/src/FacebookAds/Object/IGUpcomingEvent.php @@ -0,0 +1,91 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new IGUpcomingEvent(), + 'NODE', + IGUpcomingEvent::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'end_time' => 'datetime', + 'start_time' => 'datetime', + 'title' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/', + new IGUpcomingEvent(), + 'NODE', + IGUpcomingEvent::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/InstagramUser.php b/src/FacebookAds/Object/InstagramUser.php index c801ef92d..d6a2ac724 100644 --- a/src/FacebookAds/Object/InstagramUser.php +++ b/src/FacebookAds/Object/InstagramUser.php @@ -147,9 +147,35 @@ public function getUpcomingEvents(array $fields = array(), array $params = array $this->data['id'], RequestInterface::METHOD_GET, '/upcoming_events', - new AbstractCrudObject(), + new IGUpcomingEvent(), 'EDGE', - array(), + IGUpcomingEvent::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createUpcomingEvent(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'end_time' => 'datetime', + 'start_time' => 'datetime', + 'title' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/upcoming_events', + new IGUpcomingEvent(), + 'EDGE', + IGUpcomingEvent::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 2d7c774c2..9c327e73d 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -770,29 +770,6 @@ public function createChatPlugin(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } - public function getCommerceEligibility(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, - '/commerce_eligibility', - new PageCommerceEligibility(), - 'EDGE', - PageCommerceEligibility::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getCommerceMerchantSettings(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/PageCommerceEligibility.php b/src/FacebookAds/Object/PageCommerceEligibility.php deleted file mode 100644 index 6d92e0bda..000000000 --- a/src/FacebookAds/Object/PageCommerceEligibility.php +++ /dev/null @@ -1,42 +0,0 @@ -execute(); } + public function createVersionItemsBatch(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'allow_upsert' => 'bool', + 'item_type' => 'string', + 'item_version' => 'string', + 'requests' => 'map', + 'version' => 'unsigned int', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/version_items_batch', + new ProductCatalog(), + 'EDGE', + ProductCatalog::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/TargetingGeoLocationLocationExpansion.php b/src/FacebookAds/Object/TargetingGeoLocationLocationExpansion.php deleted file mode 100644 index bd8ea93a6..000000000 --- a/src/FacebookAds/Object/TargetingGeoLocationLocationExpansion.php +++ /dev/null @@ -1,42 +0,0 @@ - 'bool', - ); - } + const APPROVED = 'APPROVED'; + const FAILED = 'FAILED'; + const PENDING = 'PENDING'; } diff --git a/src/FacebookAds/Object/WhatsAppBusinessAccount.php b/src/FacebookAds/Object/WhatsAppBusinessAccount.php index 245d88750..279498ee1 100644 --- a/src/FacebookAds/Object/WhatsAppBusinessAccount.php +++ b/src/FacebookAds/Object/WhatsAppBusinessAccount.php @@ -160,6 +160,8 @@ public function getConversationAnalytics(array $fields = array(), array $params $enums = array( 'conversation_categories_enum' => array( 'AUTHENTICATION', + 'AUTHENTICATION_INTERNATIONAL', + 'FIXED_TEMPLATE_NOTIFY', 'MARKETING', 'MARKETING_OPTIMIZED_DELIVERY', 'SERVICE', @@ -630,6 +632,29 @@ public function getSchedules(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } + public function createSetOboMobilityIntent(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/set_obo_mobility_intent', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/WhatsAppBusinessPartnerClientVerificationSubmission.php b/src/FacebookAds/Object/WhatsAppBusinessPartnerClientVerificationSubmission.php index 116059196..5991ec408 100644 --- a/src/FacebookAds/Object/WhatsAppBusinessPartnerClientVerificationSubmission.php +++ b/src/FacebookAds/Object/WhatsAppBusinessPartnerClientVerificationSubmission.php @@ -14,6 +14,8 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\WhatsAppBusinessPartnerClientVerificationSubmissionFields; +use FacebookAds\Object\Values\WhatsAppBusinessPartnerClientVerificationSubmissionRejectionReasonsValues; +use FacebookAds\Object\Values\WhatsAppBusinessPartnerClientVerificationSubmissionVerificationStatusValues; /** * This class is auto-generated. @@ -35,6 +37,8 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['RejectionReasons'] = WhatsAppBusinessPartnerClientVerificationSubmissionRejectionReasonsValues::getInstance()->getValues(); + $ref_enums['VerificationStatus'] = WhatsAppBusinessPartnerClientVerificationSubmissionVerificationStatusValues::getInstance()->getValues(); return $ref_enums; } From 5122e3280fbfb1e63203f7fbaba532a94396fe27 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Fri, 14 Jun 2024 10:18:24 -0700 Subject: [PATCH 20/34] Auto-generated php SDK code update Summary: ignore-conflict-markers Reviewed By: liliarizona Differential Revision: D58591423 fbshipit-source-id: 9695adc477600920ac121d0903eb72348a487035 --- .../AdAccountAdSetsPostAdSetCreateCpa.php | 4 +- ...countAdSetsPostAdSetCreateCpaAppEvents.php | 4 +- examples/AdAccountAdSetsPostCreateAdSet.php | 4 +- examples/AdAccountAdSetsPostDailyBudget20.php | 4 +- ...etsPostLifetimeBudget200Duration10Days.php | 4 +- ...ccountAdSetsPostOptimizePostEngagement.php | 4 +- .../AdgroupLeadsEdgeAdgroupLeadsFiltered.php | 2 +- examples/AdsPixelEventsPost.php | 2 +- src/FacebookAds/ApiConfig.php | 4 +- src/FacebookAds/Object/AMOneshopSettings.php | 42 ++ .../Object/ANBlockedBICategory.php | 42 ++ .../{PageSavedFilter.php => AREffect.php} | 12 +- src/FacebookAds/Object/Ad.php | 1 + src/FacebookAds/Object/AdAccount.php | 78 +-- .../AdAccountAAACompatibleAdObjects.php | 42 ++ .../Object/AdAccountAAASimilarCampaigns.php | 42 ++ .../Object/AdAccountASLSchedule.php | 42 ++ .../Object/AdAccountAdLimitsInsights.php | 42 ++ .../Object/AdAccountAdRulesCountByType.php | 42 ++ .../Object/AdAccountAdsRecommendedAudios.php | 42 ++ .../Object/AdAccountAllPaymentMethods.php | 42 ++ .../Object/AdAccountAppSetupRequirements.php | 42 ++ .../Object/AdAccountBankInfoList.php | 42 ++ .../Object/AdAccountBillingDatePreference.php | 42 ++ .../Object/AdAccountBusinessConstraints.php | 2 + ...AdAccountCampaignAttributionOptionInfo.php | 42 ++ .../Object/AdAccountCreationRequest.php | 88 +++ .../Object/AdAccountCustomAudienceLimits.php | 42 ++ ...countOptimizationGoalsAEMv2Eligibility.php | 44 ++ .../Object/AdAccountPaymentDetails.php | 42 ++ .../Object/AdAccountPaymentOptions.php | 42 ++ .../Object/AdAccountPrepayDetails.php | 42 ++ .../Object/AdAccountPromotionProgressBar.php | 42 ++ .../Object/AdAccountRecommendations.php | 42 ++ .../Object/AdAccountRelatedIcoStudy.php | 42 ++ .../Object/AdAccountSmartSuggestedAds.php | 42 ++ .../Object/AdAccountSpendLimit.php | 42 ++ .../Object/AdAccountSubsidyAmountDetails.php | 42 ++ .../Object/AdAccountSuggestedTag.php | 42 ++ .../Object/AdAccountURLForAssetExtraction.php | 42 ++ .../Object/AdAccountUserPermissions.php | 42 ++ .../Object/AdAccountUserSettings.php | 67 ++ .../Object/AdAccountYouthAdsAdvertiser.php | 42 ++ ...ssetFeedAdditionalDataPageNudgeMessage.php | 42 ++ .../Object/AdCampaignDeliveryStats.php | 42 ++ ...ncrementalConversionOptimizationConfig.php | 42 ++ .../Object/AdCampaignGroupMetricsMetadata.php | 42 ++ .../Object/AdCampaignGroupStats.php | 42 ++ .../Object/AdCampaignGroupStructureTree.php | 42 ++ .../Object/AdCampaignMetricsMetadata.php | 42 ++ src/FacebookAds/Object/AdCampaignMultiAds.php | 42 ++ ...MEExportConfig.php => AdCampaignStats.php} | 8 +- src/FacebookAds/Object/AdColumnSizes.php | 65 ++ src/FacebookAds/Object/AdContract.php | 42 ++ src/FacebookAds/Object/AdConversionValues.php | 42 ++ src/FacebookAds/Object/AdConversions.php | 42 ++ .../Object/AdCreationPackageConfig.php | 65 ++ .../Object/AdCreativeAssetGroupsSpec.php | 42 ++ .../Object/AdCreativeContextualMultiAds.php | 42 ++ .../AdCreativeFeatureActionMetadata.php | 42 ++ .../AdCreativeFeatureCustomizations.php | 42 ++ .../Object/AdCreativeGenerativeAssetSpec.php | 42 ++ .../AdCreativeHouseShopsAdsSellerContent.php | 42 ++ ...p => AdCreativeImageDataMediaElements.php} | 8 +- .../AdCreativeLinkDataCustomOverlaySpec.php | 54 ++ .../Object/AdCreativeLinkDataMoment.php | 44 ++ ...CreativeMarketingMessageStructuredSpec.php | 42 ++ ...AdCreativeRegionalRegulationDisclaimer.php | 42 ++ .../Object/AdCreativeRewardInfo.php | 42 ++ src/FacebookAds/Object/AdCreativeShopSpec.php | 42 ++ .../AdCreativeVideoDataCustomOverlaySpec.php | 50 ++ .../AdCreativeVideoDataMediaElements.php | 42 ++ .../Object/AdCreativeWhatsAppChannelSpec.php | 42 ++ .../Object/AdCustomDerivedMetrics.php | 65 ++ src/FacebookAds/Object/AdDefaultValues.php | 42 ++ src/FacebookAds/Object/AdDraft.php | 65 ++ src/FacebookAds/Object/AdExportPreset.php | 65 ++ src/FacebookAds/Object/AdKeywordStats.php | 49 ++ src/FacebookAds/Object/AdKpiShift.php | 42 ++ src/FacebookAds/Object/AdLightAdgroup.php | 65 ++ src/FacebookAds/Object/AdLightCampaign.php | 65 ++ .../Object/AdLightCampaignGroup.php | 65 ++ src/FacebookAds/Object/AdLimitSetting.php | 42 ++ .../Object/AdLimitsEnforcementData.php | 42 ++ .../AdNetworkAnalyticsAsyncQueryExport.php | 42 ++ src/FacebookAds/Object/AdProposal.php | 65 ++ src/FacebookAds/Object/AdSavedKeywords.php | 65 ++ src/FacebookAds/Object/AdSavedLocation.php | 65 ++ src/FacebookAds/Object/AdSavedReport.php | 65 ++ src/FacebookAds/Object/AdSet.php | 5 + src/FacebookAds/Object/AdTopline.php | 65 ++ src/FacebookAds/Object/AdToplineDetail.php | 65 ++ src/FacebookAds/Object/AdVideo.php | 6 +- .../Object/{Dataset.php => AdVolume.php} | 8 +- .../Object/AdgroupFacebookFeedback.php | 68 ++ .../Object/AdjacentContentDeliveryReport.php | 42 ++ src/FacebookAds/Object/AdoptablePet.php | 138 ++++ .../Object/AdsAnomalyDetection.php | 42 ++ src/FacebookAds/Object/AdsConversionGoal.php | 88 +++ .../Object/AdsCreationSavedState.php | 65 ++ .../Object/AdsCustomPivotsPreview.php | 42 ++ src/FacebookAds/Object/AdsDataPartner.php | 65 ++ src/FacebookAds/Object/AdsDataset.php | 42 ++ .../Object/AdsGuidanceQEExposure.php | 42 ++ src/FacebookAds/Object/AdsNamingTemplate.php | 67 ++ src/FacebookAds/Object/AdsPaymentCycle.php | 42 ++ src/FacebookAds/Object/AdsPivotRules.php | 65 ++ src/FacebookAds/Object/AdsPixel.php | 60 +- .../Object/AdsPixelCAPISetupQuality.php | 42 ++ .../Object/AdsPixelCapabilityOverride.php | 65 ++ .../AdsPixelDeliveryRecommendations.php | 42 ++ .../Object/AdsPixelDomainControlRule.php | 42 ++ .../Object/AdsPixelDomainLastFiredTime.php | 42 ++ .../Object/AdsPixelEventLastFiredTime.php | 42 ++ .../Object/AdsPixelEventPrediction.php | 42 ++ .../Object/AdsPixelEventSuggestionRule.php | 42 ++ src/FacebookAds/Object/AdsPixelItemPrice.php | 42 ++ .../Object/AdsPixelMicrodataStats.php | 42 ++ .../Object/AdsPixelRawFiresResult.php | 42 ++ .../Object/AdsPixelRealTimeEventLogResult.php | 42 ++ .../Object/AdsPixelRecentEventsResult.php | 42 ++ .../Object/AdsPixelSignalsIWLFeedbackNux.php | 42 ++ .../Object/AdsPixelSignalsIWLNux.php | 42 ++ src/FacebookAds/Object/AdsReportBuilder.php | 42 ++ .../Object/AdsReportBuilderExportCore.php | 65 ++ .../Object/AdsReportBuilderMMMReport.php | 65 ++ .../AdsReportBuilderMMMReportScheduler.php | 65 ++ .../Object/AdsReportBuilderSavedReport.php | 65 ++ src/FacebookAds/Object/AdsSegments.php | 42 ++ .../Object/AdsSignalDiagnosticIssue.php | 42 ++ .../Object/AdsStartYourDayWidget.php | 65 ++ src/FacebookAds/Object/AdsTabular.php | 42 ++ .../Object/AdsTargetingInsights.php | 42 ++ src/FacebookAds/Object/AdsTextSuggestions.php | 42 ++ src/FacebookAds/Object/AdsUserSettings.php | 65 ++ .../Object/AdsValueAdjustmentRule.php | 88 +++ .../AdsValueAdjustmentRuleCollection.php | 88 +++ src/FacebookAds/Object/AdvAInstance.php | 65 ++ .../Object/AdvertiserVerificationStatus.php | 42 ++ .../Object/AnalyticsCohortQueryResult.php | 42 ++ src/FacebookAds/Object/AnalyticsConfig.php | 42 ++ .../Object/AnalyticsEntityUserConfig.php | 42 ++ .../Object/AnalyticsFunnelQueryResult.php | 42 ++ .../Object/AnalyticsPlatformMetricsConfig.php | 42 ++ .../Object/AnalyticsQueryResult.php | 42 ++ .../Object/AnalyticsUserConfig.php | 65 ++ src/FacebookAds/Object/AppEventConfig.php | 66 ++ src/FacebookAds/Object/AppLinks.php | 65 ++ .../Object/AppOptimizedCustomEvents.php | 42 ++ src/FacebookAds/Object/AppPublisher.php | 42 ++ src/FacebookAds/Object/Application.php | 78 ++- src/FacebookAds/Object/ArAdsDataContainer.php | 65 ++ src/FacebookAds/Object/AudienceFunnel.php | 42 ++ src/FacebookAds/Object/AudienceOverlap.php | 42 ++ src/FacebookAds/Object/AudiencePermission.php | 42 ++ .../Object/AudienceSharingAccountValid.php | 42 ++ .../AudienceSharingRecipientAccounts.php | 42 ++ src/FacebookAds/Object/AudioAsset.php | 65 ++ src/FacebookAds/Object/AudioCopyright.php | 4 +- src/FacebookAds/Object/AudioIsrc.php | 65 ++ src/FacebookAds/Object/AudioRelease.php | 65 ++ .../Object/AudioVisualReferenceMatch.php | 42 ++ src/FacebookAds/Object/AuthLink.php | 42 ++ src/FacebookAds/Object/AutomotiveModel.php | 4 +- src/FacebookAds/Object/BAPIDomain.php | 42 ++ src/FacebookAds/Object/BCPCampaign.php | 65 ++ src/FacebookAds/Object/BCPCreatorIgUser.php | 65 ++ .../Object/BespokePartnerGuidanceLaser.php | 42 ++ src/FacebookAds/Object/BidSchedule.php | 65 ++ .../Object/BizInboxOffsiteEmailAccount.php | 88 +++ src/FacebookAds/Object/BlindPig.php | 65 ++ src/FacebookAds/Object/BlockedUserInfo.php | 42 ++ .../Object/BrandSafetyDownloadable.php | 65 ++ .../Object/BrandedContentAdError.php | 42 ++ .../BrandedContentEligibleSponsorIDs.php | 42 ++ src/FacebookAds/Object/Business.php | 629 +++++++++++++++--- .../BusinessAdsReportingReportSpecs.php | 42 ++ ...BusinessAdvertisableApplicationsResult.php | 42 ++ src/FacebookAds/Object/BusinessAgreement.php | 93 +++ src/FacebookAds/Object/BusinessAssetGroup.php | 71 -- src/FacebookAds/Object/BusinessCreative.php | 42 ++ .../Object/BusinessCreativeInsights.php | 42 ++ .../Object/BusinessFranchiseConfig.php | 65 ++ .../BusinessImageTBusinessFolderPathItem.php | 42 ++ ...sinessMediaAdPlacementValidationResult.php | 42 ++ src/FacebookAds/Object/BusinessObject.php | 42 ++ ...sinessObjectTransferOwnershipAgreement.php | 65 ++ .../Object/BusinessProductCatalogTOS.php | 42 ++ src/FacebookAds/Object/BusinessProject.php | 65 ++ src/FacebookAds/Object/BusinessRequest.php | 65 ++ .../Object/BusinessSettingLogsData.php | 42 ++ src/FacebookAds/Object/BusinessTag.php | 65 ++ .../Object/BusinessTrafficAnalysisReport.php | 42 ++ .../BusinessVideoTBusinessFolderPathItem.php | 42 ++ .../CASSSetupOfflineEventSetProgress.php | 42 ++ .../Object/CPASAdCreationTemplate.php | 65 ++ src/FacebookAds/Object/CPASLsbImageBank.php | 119 ++++ .../Object/CPASParentCatalogSettings.php | 65 ++ src/FacebookAds/Object/CPASSetup.php | 42 ++ .../Object/CPASSetupCatalogProgress.php | 42 ++ .../Object/CPASSetupPageStructureProgress.php | 42 ++ .../Object/CTWAWhatsAppNumbersInfo.php | 42 ++ .../Object/CTXOptimizationEligibility.php | 42 ++ .../Object/CalibratorExistingRule.php | 65 ++ src/FacebookAds/Object/CallAdsPhoneData.php | 65 ++ .../Object/CampaignActionsData.php | 42 ++ src/FacebookAds/Object/CanvasTemplate.php | 65 ++ .../Object/CatalogItemOverride.php | 65 ++ .../Object/CatalogItemRejectionReasons.php | 44 ++ .../Object/CatalogItemValidationErrorList.php | 42 ++ .../Object/CatalogSmartPixelSettings.php | 65 ++ .../CatalogWebsiteOnboardingSettings.php | 65 ++ .../Object/CatalogWebsiteSettings.php | 65 ++ .../ChinaBusinessOnboardingVettingRequest.php | 65 ++ .../Object/CloudbridgeDatasetStatus.php | 42 ++ .../CollaborativeAdsPartnerBusinesses.php | 42 ++ src/FacebookAds/Object/ColumnSuggestions.php | 42 ++ src/FacebookAds/Object/Comment.php | 2 +- .../Object/CommerceMerchantSettings.php | 4 +- src/FacebookAds/Object/CommerceOrder.php | 5 +- .../Object/ContactsMessengerSyncConfig.php | 42 ++ .../Object/ContentDeliveryReport.php | 42 ++ .../Object/ConversionHealthKPI.php | 42 ++ .../Object/CopyrightAttributionInsights.php | 42 ++ .../Object/CopyrightAudioAsset.php | 42 ++ .../Object/CopyrightMediaMisuse.php | 65 ++ src/FacebookAds/Object/CreativeAssetTag.php | 42 ++ .../Object/CreatorAssetCreative.php | 67 ++ src/FacebookAds/Object/CustomAudience.php | 2 +- .../Object/CustomAudienceCapabilities.php | 42 ++ ...ustomAudienceSharedAccountCampaignInfo.php | 42 ++ src/FacebookAds/Object/CustomConversion.php | 2 + .../Object/CustomConversionActivities.php | 42 ++ src/FacebookAds/Object/DeliveryInfo.php | 42 ++ src/FacebookAds/Object/DeliveryStatus.php | 42 ++ src/FacebookAds/Object/Destination.php | 4 +- src/FacebookAds/Object/DirectDebit.php | 42 ++ .../Object/DogNotificationSettings.php | 65 ++ src/FacebookAds/Object/Domain.php | 65 ++ src/FacebookAds/Object/DraftPost.php | 42 ++ src/FacebookAds/Object/DynamicARMetadata.php | 65 ++ src/FacebookAds/Object/DynamicContentSet.php | 65 ++ .../Object/DynamicItemDisplayBundle.php | 65 ++ .../Object/DynamicItemDisplayBundleFolder.php | 65 ++ .../Object/EducationExperience.php | 65 ++ src/FacebookAds/Object/EmailImport.php | 42 ++ src/FacebookAds/Object/EndStudyCriteria.php | 42 ++ src/FacebookAds/Object/EntWithSponsor.php | 42 ++ src/FacebookAds/Object/Event.php | 4 +- .../Object/EventExternalTicketInfo.php | 65 ++ .../Object/EventRegistrationSetting.php | 65 ++ src/FacebookAds/Object/EventSourceGroup.php | 4 +- src/FacebookAds/Object/EventTicketSetting.php | 65 ++ src/FacebookAds/Object/EventTicketTier.php | 65 ++ src/FacebookAds/Object/EventTour.php | 65 ++ src/FacebookAds/Object/ExpirablePost.php | 42 ++ src/FacebookAds/Object/ExtendedCredit.php | 2 +- .../Object/ExtendedCreditApplication.php | 65 ++ .../Object/ExtendedCreditEmail.php | 42 ++ src/FacebookAds/Object/ExtendedCreditInfo.php | 42 ++ ...ExternalEventSourceCPASEventsDebugging.php | 42 ++ ...rnalEventSourceCPASEventsDebuggingInfo.php | 42 ++ .../ExternalEventSourceDAStatsResult.php | 42 ++ .../Object/ExternalMerchantSettings.php | 65 ++ src/FacebookAds/Object/FAMEKumo.php | 65 ++ .../Object/FBImageCopyrightMatch.php | 65 ++ .../Object/FBLiteToNTTransitions.php | 42 ++ .../Object/FBPageAndInstagramAccount.php | 42 ++ src/FacebookAds/Object/FBPayButtonLogin.php | 42 ++ src/FacebookAds/Object/FantasyGame.php | 65 ++ src/FacebookAds/Object/FavoriteCatalog.php | 65 ++ ...Fields.php => AMOneshopSettingsFields.php} | 10 +- .../Fields/ANBlockedBICategoryFields.php | 32 + .../Object/Fields/AREffectFields.php | 42 ++ .../AdAccountAAACompatibleAdObjectsFields.php | 36 + .../AdAccountAAASimilarCampaignsFields.php | 36 + ...lds.php => AdAccountASLScheduleFields.php} | 16 +- ...hp => AdAccountAdLimitsInsightsFields.php} | 10 +- .../AdAccountAdRulesCountByTypeFields.php | 34 + .../AdAccountAdsRecommendedAudiosFields.php | 32 + .../AdAccountAllPaymentMethodsFields.php | 30 + .../AdAccountAppSetupRequirementsFields.php | 30 + .../Fields/AdAccountBankInfoListFields.php | 32 + .../AdAccountBillingDatePreferenceFields.php | 42 ++ .../AdAccountBusinessConstraintsFields.php | 2 +- ...untCampaignAttributionOptionInfoFields.php | 34 + .../Fields/AdAccountCreationRequestFields.php | 100 +++ .../AdAccountCustomAudienceLimitsFields.php | 40 ++ ...ptimizationGoalsAEMv2EligibilityFields.php | 34 + .../Fields/AdAccountPaymentDetailsFields.php | 42 ++ .../Fields/AdAccountPaymentOptionsFields.php | 38 ++ .../Fields/AdAccountPrepayDetailsFields.php | 38 ++ .../AdAccountPromotionProgressBarFields.php | 46 ++ .../Fields/AdAccountRecommendationsFields.php | 32 + .../Fields/AdAccountRelatedIcoStudyFields.php | 30 + .../AdAccountSmartSuggestedAdsFields.php | 38 ++ .../Fields/AdAccountSpendLimitFields.php | 44 ++ .../AdAccountSubsidyAmountDetailsFields.php | 36 + .../Fields/AdAccountSuggestedTagFields.php | 36 + .../AdAccountURLForAssetExtractionFields.php | 34 + .../Fields/AdAccountUserPermissionsFields.php | 50 ++ .../Fields/AdAccountUserSettingsFields.php | 138 ++++ .../AdAccountYouthAdsAdvertiserFields.php | 32 + ...edAdditionalDataPageNudgeMessageFields.php | 36 + .../Object/Fields/AdAssetFeedSpecFields.php | 2 + .../Fields/AdCampaignDeliveryStatsFields.php | 42 ++ ...ntalConversionOptimizationConfigFields.php | 50 ++ .../AdCampaignGroupMetricsMetadataFields.php | 34 + .../Fields/AdCampaignGroupStatsFields.php | 60 ++ .../AdCampaignGroupStructureTreeFields.php | 38 ++ .../AdCampaignMetricsMetadataFields.php | 42 ++ .../Fields/AdCampaignMultiAdsFields.php | 34 + .../Object/Fields/AdCampaignStatsFields.php | 78 +++ .../Object/Fields/AdColumnSizesFields.php | 48 ++ .../Object/Fields/AdContractFields.php | 112 ++++ .../Fields/AdConversionValuesFields.php | 36 + .../Object/Fields/AdConversionsFields.php | 38 ++ .../Fields/AdCreationPackageConfigFields.php | 42 ++ .../AdCreativeAssetGroupsSpecFields.php | 34 + .../AdCreativeBrandedContentAdsFields.php | 4 + .../AdCreativeContextualMultiAdsFields.php | 32 + .../AdCreativeFeatureActionMetadataFields.php | 32 + .../AdCreativeFeatureCustomizationsFields.php | 44 ++ .../Fields/AdCreativeFeaturesSpecFields.php | 10 + .../Object/Fields/AdCreativeFields.php | 6 +- .../AdCreativeGenerativeAssetSpecFields.php | 30 + ...eativeHouseShopsAdsSellerContentFields.php | 30 + ...AdCreativeImageDataMediaElementsFields.php | 38 ++ ...reativeLinkDataCustomOverlaySpecFields.php | 46 ++ .../Fields/AdCreativeLinkDataMomentFields.php | 34 + ...veMarketingMessageStructuredSpecFields.php | 42 ++ .../AdCreativePromotionMetadataSpecFields.php | 4 +- ...tiveRegionalRegulationDisclaimerFields.php | 30 + .../Fields/AdCreativeRewardInfoFields.php | 34 + .../Fields/AdCreativeShopSpecFields.php | 36 + ...eativeVideoDataCustomOverlaySpecFields.php | 50 ++ ...AdCreativeVideoDataMediaElementsFields.php | 34 + .../AdCreativeWhatsAppChannelSpecFields.php | 34 + .../Fields/AdCustomDerivedMetricsFields.php | 64 ++ .../Object/Fields/AdDefaultValuesFields.php | 32 + .../Object/Fields/AdDraftFields.php | 60 ++ .../Object/Fields/AdExportPresetFields.php | 42 ++ src/FacebookAds/Object/Fields/AdFields.php | 2 + .../Object/Fields/AdKeywordStatsFields.php | 70 ++ .../Object/Fields/AdKpiShiftFields.php | 42 ++ .../Object/Fields/AdLightAdgroupFields.php | 34 + .../Object/Fields/AdLightCampaignFields.php | 34 + .../Fields/AdLightCampaignGroupFields.php | 32 + .../Object/Fields/AdLimitSettingFields.php | 32 + .../Fields/AdLimitsEnforcementDataFields.php | 42 ++ ...NetworkAnalyticsAsyncQueryExportFields.php | 38 ++ .../Object/Fields/AdProposalFields.php | 68 ++ .../Object/Fields/AdRecommendationFields.php | 2 + .../Object/Fields/AdSavedKeywordsFields.php | 44 ++ .../Object/Fields/AdSavedLocationFields.php | 50 ++ .../Object/Fields/AdSavedReportFields.php | 66 ++ src/FacebookAds/Object/Fields/AdSetFields.php | 4 +- .../Object/Fields/AdToplineDetailFields.php | 58 ++ .../Object/Fields/AdToplineFields.php | 100 +++ .../Object/Fields/AdVolumeFields.php | 50 ++ .../Fields/AdgroupFacebookFeedbackFields.php | 34 + .../AdjacentContentDeliveryReportFields.php | 32 + .../Object/Fields/AdoptablePetFields.php | 88 +++ .../Object/Fields/AdsActionStatsFields.php | 28 + .../Fields/AdsAnomalyDetectionFields.php | 34 + .../Object/Fields/AdsConversionGoalFields.php | 46 ++ .../Fields/AdsCreationSavedStateFields.php | 40 ++ .../Fields/AdsCustomPivotsPreviewFields.php | 48 ++ .../Object/Fields/AdsDataPartnerFields.php | 36 + .../Object/Fields/AdsDatasetFields.php | 134 ++++ .../Fields/AdsGuidanceQEExposureFields.php | 32 + .../Object/Fields/AdsHistogramStatsFields.php | 28 + .../Object/Fields/AdsInsightsFields.php | 10 +- .../Object/Fields/AdsNamingTemplateFields.php | 48 ++ .../Object/Fields/AdsPaymentCycleFields.php | 42 ++ .../Object/Fields/AdsPivotRulesFields.php | 50 ++ .../Fields/AdsPixelCAPISetupQualityFields.php | 34 + .../AdsPixelCapabilityOverrideFields.php | 38 ++ .../AdsPixelDeliveryRecommendationsFields.php | 34 + .../AdsPixelDomainControlRuleFields.php | 34 + .../AdsPixelDomainLastFiredTimeFields.php | 34 + .../AdsPixelEventLastFiredTimeFields.php | 34 + .../Fields/AdsPixelEventPredictionFields.php | 36 + .../AdsPixelEventSuggestionRuleFields.php | 46 ++ .../Object/Fields/AdsPixelFields.php | 2 + .../Object/Fields/AdsPixelItemPriceFields.php | 34 + .../Fields/AdsPixelMicrodataStatsFields.php | 40 ++ .../Fields/AdsPixelRawFiresResultFields.php | 46 ++ .../AdsPixelRealTimeEventLogResultFields.php | 56 ++ .../AdsPixelRecentEventsResultFields.php | 34 + .../AdsPixelSignalsIWLFeedbackNuxFields.php | 32 + .../Fields/AdsPixelSignalsIWLNuxFields.php | 40 ++ .../AdsReportBuilderExportCoreFields.php | 62 ++ .../Object/Fields/AdsReportBuilderFields.php | 36 + .../AdsReportBuilderMMMReportFields.php | 46 ++ ...sReportBuilderMMMReportSchedulerFields.php | 40 ++ .../AdsReportBuilderSavedReportFields.php | 108 +++ .../Object/Fields/AdsSegmentsFields.php | 48 ++ .../Fields/AdsSignalDiagnosticIssueFields.php | 42 ++ .../Fields/AdsStartYourDayWidgetFields.php | 34 + .../Object/Fields/AdsTabularFields.php | 32 + .../Fields/AdsTargetingInsightsFields.php | 52 ++ .../Fields/AdsTextSuggestionsFields.php | 44 ++ .../Object/Fields/AdsUserSettingsFields.php | 140 ++++ ...AdsValueAdjustmentRuleCollectionFields.php | 34 + .../Fields/AdsValueAdjustmentRuleFields.php | 34 + .../Object/Fields/AdvAInstanceFields.php | 38 ++ .../AdvertiserVerificationStatusFields.php | 38 ++ .../AnalyticsCohortQueryResultFields.php | 38 ++ .../Object/Fields/AnalyticsConfigFields.php | 82 +++ .../AnalyticsEntityUserConfigFields.php | 32 + .../AnalyticsFunnelQueryResultFields.php | 38 ++ .../AnalyticsPlatformMetricsConfigFields.php | 48 ++ .../Fields/AnalyticsQueryResultFields.php | 40 ++ .../Fields/AnalyticsUserConfigFields.php | 36 + .../Object/Fields/AppEventConfigFields.php | 84 +++ .../Object/Fields/AppLinksFields.php | 48 ++ .../Fields/AppOptimizedCustomEventsFields.php | 36 + .../Object/Fields/AppPublisherFields.php | 44 ++ .../Fields/ArAdsDataContainerFields.php | 44 ++ .../Object/Fields/AudienceFunnelFields.php | 36 + .../Object/Fields/AudienceOverlapFields.php | 38 ++ .../Fields/AudiencePermissionFields.php | 36 + .../AudienceSharingAccountValidFields.php | 42 ++ ...AudienceSharingRecipientAccountsFields.php | 44 ++ .../Object/Fields/AudioAssetFields.php | 68 ++ .../Object/Fields/AudioCopyrightFields.php | 2 + .../Object/Fields/AudioIsrcFields.php | 48 ++ .../Object/Fields/AudioReleaseFields.php | 62 ++ .../AudioVisualReferenceMatchFields.php | 92 +++ .../Object/Fields/AuthLinkFields.php | 32 + .../Object/Fields/BAPIDomainFields.php | 38 ++ .../Object/Fields/BCPCampaignFields.php | 64 ++ .../Object/Fields/BCPCreatorIgUserFields.php | 42 ++ .../BespokePartnerGuidanceLaserFields.php | 40 ++ .../Object/Fields/BidScheduleFields.php | 46 ++ .../BizInboxOffsiteEmailAccountFields.php | 34 + .../Object/Fields/BlindPigFields.php | 34 + .../Object/Fields/BlockedUserInfoFields.php | 40 ++ .../Fields/BrandSafetyDownloadableFields.php | 44 ++ .../Fields/BrandedContentAdErrorFields.php | 44 ++ ...BrandedContentEligibleSponsorIDsFields.php | 36 + .../BrandedContentShadowIGMediaIDFields.php | 2 + .../BusinessAdsReportingReportSpecsFields.php | 108 +++ ...ssAdvertisableApplicationsResultFields.php | 42 ++ .../Object/Fields/BusinessAgreementFields.php | 34 + .../Object/Fields/BusinessCreativeFields.php | 52 ++ .../Fields/BusinessCreativeInsightsFields.php | 62 ++ .../Fields/BusinessFranchiseConfigFields.php | 56 ++ ...nessImageTBusinessFolderPathItemFields.php | 36 + ...MediaAdPlacementValidationResultFields.php | 38 ++ .../Object/Fields/BusinessObjectFields.php | 40 ++ ...ObjectTransferOwnershipAgreementFields.php | 38 ++ .../BusinessProductCatalogTOSFields.php | 34 + .../Object/Fields/BusinessProjectFields.php | 40 ++ .../Object/Fields/BusinessRequestFields.php | 48 ++ .../Fields/BusinessSettingLogsDataFields.php | 40 ++ .../Object/Fields/BusinessTagFields.php | 34 + .../BusinessTrafficAnalysisReportFields.php | 36 + ...nessVideoTBusinessFolderPathItemFields.php | 36 + ...CASSSetupOfflineEventSetProgressFields.php | 30 + .../Fields/CPASAdCreationTemplateFields.php | 44 ++ .../Object/Fields/CPASLsbImageBankFields.php | 40 ++ .../CPASParentCatalogSettingsFields.php | 38 ++ .../Fields/CPASSetupCatalogProgressFields.php | 40 ++ .../Object/Fields/CPASSetupFields.php | 30 + .../CPASSetupPageStructureProgressFields.php | 36 + .../Fields/CTWAWhatsAppNumbersInfoFields.php | 42 ++ .../CTXOptimizationEligibilityFields.php | 32 + .../Fields/CalibratorExistingRuleFields.php | 52 ++ .../Object/Fields/CallAdsPhoneDataFields.php | 42 ++ .../Fields/CampaignActionsDataFields.php | 30 + .../Object/Fields/CanvasFields.php | 2 +- .../Object/Fields/CanvasTemplateFields.php | 58 ++ .../Fields/CatalogItemOverrideFields.php | 38 ++ .../CatalogItemRejectionReasonsFields.php | 34 + .../CatalogItemValidationErrorListFields.php | 32 + .../CatalogSmartPixelSettingsFields.php | 68 ++ ...CatalogWebsiteOnboardingSettingsFields.php | 34 + .../Fields/CatalogWebsiteSettingsFields.php | 34 + ...BusinessOnboardingVettingRequestFields.php | 114 ++++ .../Fields/CloudbridgeDatasetStatusFields.php | 42 ++ ...ollaborativeAdsPartnerBusinessesFields.php | 34 + .../Object/Fields/ColumnSuggestionsFields.php | 38 ++ .../Fields/CommerceMerchantSettingsFields.php | 20 - .../Object/Fields/CommerceOrderFields.php | 2 + .../ContactsMessengerSyncConfigFields.php | 32 + .../Fields/ContentDeliveryReportFields.php | 40 ++ .../Fields/ConversionHealthKPIFields.php | 48 ++ .../CopyrightAttributionInsightsFields.php | 40 ++ .../Fields/CopyrightAudioAssetFields.php | 44 ++ .../Fields/CopyrightMediaMisuseFields.php | 64 ++ .../Object/Fields/CreativeAssetTagFields.php | 32 + .../Fields/CreatorAssetCreativeFields.php | 44 ++ .../CustomAudienceCapabilitiesFields.php | 32 + ...udienceSharedAccountCampaignInfoFields.php | 46 ++ .../CustomConversionActivitiesFields.php | 38 ++ .../Object/Fields/CustomConversionFields.php | 2 + .../Object/Fields/DeliveryInfoFields.php | 114 ++++ .../Object/Fields/DeliveryStatusFields.php | 34 + .../Object/Fields/DirectDebitFields.php | 50 ++ .../Fields/DogNotificationSettingsFields.php | 36 + .../Object/Fields/DomainFields.php | 36 + .../Object/Fields/DraftPostFields.php | 64 ++ .../Object/Fields/DynamicARMetadataFields.php | 54 ++ .../Object/Fields/DynamicContentSetFields.php | 36 + .../Fields/DynamicItemDisplayBundleFields.php | 44 ++ .../DynamicItemDisplayBundleFolderFields.php | 42 ++ .../Fields/EducationExperienceFields.php | 46 ++ .../Object/Fields/EmailImportFields.php | 34 + .../Object/Fields/EndStudyCriteriaFields.php | 30 + .../Object/Fields/EntWithSponsorFields.php | 40 ++ .../Fields/EventExternalTicketInfoFields.php | 38 ++ src/FacebookAds/Object/Fields/EventFields.php | 4 +- .../Fields/EventRegistrationSettingFields.php | 38 ++ .../Fields/EventTicketSettingFields.php | 34 + .../Object/Fields/EventTicketTierFields.php | 66 ++ .../Object/Fields/EventTourFields.php | 56 ++ .../Object/Fields/ExpirablePostFields.php | 70 ++ .../ExtendedCreditApplicationFields.php | 80 +++ .../Fields/ExtendedCreditEmailFields.php | 34 + .../Fields/ExtendedCreditInfoFields.php | 38 ++ .../ExtendedCreditInvoiceGroupFields.php | 2 +- ...alEventSourceCPASEventsDebuggingFields.php | 48 ++ ...entSourceCPASEventsDebuggingInfoFields.php | 36 + ...ExternalEventSourceDAStatsResultFields.php | 42 ++ .../Fields/ExternalMerchantSettingsFields.php | 36 + .../{DatasetFields.php => FAMEKumoFields.php} | 2 +- .../Fields/FBImageCopyrightMatchFields.php | 56 ++ .../Fields/FBLiteToNTTransitionsFields.php | 32 + .../FBPageAndInstagramAccountFields.php | 40 ++ .../Object/Fields/FBPayButtonLoginFields.php | 30 + .../Object/Fields/FantasyGameFields.php | 34 + .../Object/Fields/FavoriteCatalogFields.php | 34 + .../Object/Fields/FinanceObjectFields.php | 34 + .../Object/Fields/FranchiseProgramFields.php | 54 ++ .../Fields/FranchiseProgramMemberFields.php | 46 ++ .../Object/Fields/GenericVideoAssetFields.php | 122 ++++ .../Object/Fields/GeoGatingPolicyFields.php | 44 ++ src/FacebookAds/Object/Fields/HoursFields.php | 34 + .../IGAccessTokenForIGOnlyAPIFields.php | 38 ++ .../Object/Fields/IGBoostMediaAdFields.php | 36 + .../IGMediaBoostEligibilityInfoFields.php | 36 + .../Object/Fields/IGMediaFields.php | 2 + .../Fields/IGMediaForIGOnlyAPIFields.php | 56 ++ ...GProductTaggingInvalidationErrorFields.php | 36 + ...IGRefreshAccessTokenForIGOnlyAPIFields.php | 38 ++ .../IGResumableVideoUploadStatusFields.php | 34 + .../Fields/IGUserForIGOnlyAPIFields.php | 38 ++ .../Object/Fields/IPObjectFields.php | 34 + .../Fields/ImageCopyrightDisputeFields.php | 48 ++ .../Fields/ImageReferenceMatchFields.php | 64 ++ ...gramBoostableMediaForAccessTokenFields.php | 34 + .../InstagramRelatedProductTagsFields.php | 42 ++ .../Object/Fields/InstantArticleCTAFields.php | 40 ++ ...nstantArticleInsightsQueryResultFields.php | 38 ++ .../Fields/KeywordDeliveryReportFields.php | 48 ++ .../Object/Fields/LeadGenDataDraftFields.php | 60 ++ ...eadGenDirectCRMIntegrationConfigFields.php | 46 ++ .../LeadGenFormPreviewDetailsFields.php | 96 +++ .../LeadGenThankYouPageGatedFileFields.php | 38 ++ .../LeadGenThankYouPageGatedPromoFields.php | 36 + .../LinkedInstagramAccountDataFields.php | 42 ++ .../Object/Fields/LocationBasedItemFields.php | 56 ++ .../Object/Fields/LoomConfigFields.php | 32 + .../Fields/MCExperienceConfigForApiFields.php | 36 + .../Object/Fields/MIXInsightsResultFields.php | 72 ++ .../MarketingMessageTargetingFields.php | 40 ++ .../Fields/McomInvoiceBankAccountFields.php | 38 ++ .../Fields/McomInvoiceDetailsFields.php | 68 ++ .../Object/Fields/McomInvoiceListsFields.php | 36 + .../Object/Fields/McomInvoiceStatusFields.php | 54 ++ .../Fields/McomOnboardingStatusFields.php | 34 + .../Object/Fields/McomPayoutsFields.php | 44 ++ .../Object/Fields/MeasurementReportFields.php | 40 ++ .../MediaCopyrightAttributionFields.php | 62 ++ .../MediaCopyrightUpdateRecordFields.php | 44 ++ .../Fields/MerchantComplianceFields.php | 40 ++ .../Object/Fields/MerchantReportFields.php | 60 ++ .../Object/Fields/MessagingAppsInfoFields.php | 38 ++ .../Fields/MessengerCallSettingsFields.php | 32 + ...gerDestinationPageWelcomeMessageFields.php | 42 ++ .../Fields/MusicWorkCopyrightFields.php | 52 ++ .../Fields/NegativeKeywordListFields.php | 54 ++ ...flineConversionDataSetActivitiesFields.php | 48 ++ .../Fields/OfflineConversionDataSetFields.php | 2 - ...versionDataSetOptimizationStatusFields.php | 38 ++ .../Fields/OfflineProductItemFields.php | 62 ++ .../Fields/OfflineTermsOfServiceFields.php | 36 + ...iteSignalContainerBusinessObjectFields.php | 44 ++ .../Fields/OpenBridgeConfigurationFields.php | 4 +- .../Fields/OrderIDAttributionsFields.php | 48 ++ .../Object/Fields/OrganizationFields.php | 40 ++ .../Object/Fields/OwnedDomainFields.php | 40 ++ .../Fields/P2MInvoicePaymentsFields.php | 34 + .../Fields/PageAppWithLeadsAccessFields.php | 34 + .../Object/Fields/PageBroadcastFields.php | 36 + .../Object/Fields/PageCTSTopicFields.php | 42 ++ ...arAdvertiserBudgetRecommendationFields.php | 34 + .../PageCTXDefaultGreetingTextFields.php | 36 + .../Fields/PageCrmsWithLeadsAccessFields.php | 38 ++ ...ectIntegrationCrmWithLeadsAccessFields.php | 36 + src/FacebookAds/Object/Fields/PageFields.php | 4 +- .../PageGameBotQuotaInformationFields.php | 34 + .../Fields/PageGetStartedNullstateFields.php | 36 + .../PageInsightsAsyncExportRunFields.php | 48 ++ .../Fields/PageLeadsAccessConfigFields.php | 34 + .../Fields/PageLocationsBreakdownFields.php | 48 ++ ...PageMessageResponsivenessMetricsFields.php | 36 + .../PagePartnerWithLeadsAccessFields.php | 36 + .../Object/Fields/PagePublisherFields.php | 40 ++ .../Fields/PageUserPermissionsFields.php | 50 ++ .../Fields/PageUserWithLeadsAccessFields.php | 38 ++ .../Fields/PageVideosYouCanUseFields.php | 36 + .../Object/Fields/PanelAPIReportFields.php | 50 ++ .../Fields/ParentCatalogReportFields.php | 34 + .../Fields/PartnerAccountLinkingFields.php | 46 ++ .../Object/Fields/PartnerCategoryFields.php | 52 ++ .../Fields/PartnerIntegrationLinkedFields.php | 62 ++ .../PartnershipAdContentSearchMediaFields.php | 36 + .../Fields/PartnershipAdsIdentityFields.php | 34 + .../Fields/PaymentRequestDetailsFields.php | 48 ++ .../Fields/PersonalAdsPersonaFields.php | 40 ++ .../Object/Fields/PhotoMetadataFields.php | 54 ++ .../Object/Fields/PlaceTagFields.php | 36 + .../Fields/PlatformSessionKeyFields.php | 32 + .../Object/Fields/PreapprovalReviewFields.php | 40 ++ .../Object/Fields/PremiumMusicVideoFields.php | 46 ++ .../Object/Fields/PrivacyOptionFields.php | 42 ++ .../PrivateComputationEnvironmentFields.php | 42 ++ .../ProductCatalogExampleFeedFields.php | 32 + .../Fields/ProductCatalogFacetsFields.php | 34 + ...ductCatalogImageSettingsInternalFields.php | 36 + ...oductCatalogLocalizationSettingsFields.php | 36 + ...ctCatalogMicrodataStatsPixelInfoFields.php | 34 + .../ProductCatalogUserActionsFields.php | 32 + .../ProductCatalogUserPermissionsFields.php | 50 ++ .../Fields/ProductCatalogUserTasksFields.php | 34 + .../ProductDaEventSamplesBatchFields.php | 36 + .../ProductFeedRulePreviewSampleFields.php | 34 + .../ProductFeedUploadProgressFields.php | 40 ++ .../Object/Fields/ProductItemFields.php | 2 +- .../Fields/ProductItemInsightsFields.php | 40 ++ .../ProductItemInvalidationErrorFields.php | 30 + .../ProductItemLandingPageDataFields.php | 32 + .../Object/Fields/ProductItemOfferFields.php | 36 + .../Fields/ProductItemShippingFields.php | 40 ++ .../ProductItemSubscriptionInfoFields.php | 36 + .../Fields/ProductItemUnitPriceFields.php | 30 + .../Fields/ProductSetTaxonCategoryFields.php | 36 + .../Object/Fields/ProductSetUsageFields.php | 36 + .../Fields/ProductVisualVariantFields.php | 34 + .../Fields/PublisherBlockListFields.php | 4 +- .../Fields/PublisherDeliveryReportFields.php | 40 ++ .../Fields/PublisherWhiteListFields.php | 42 ++ .../Fields/RecommendedIGMediaFields.php | 34 + .../Fields/RecommendedPagePostFields.php | 36 + .../RegionalRegulationIdentitiesFields.php | 34 + .../Object/Fields/ReportingAudienceFields.php | 36 + .../Object/Fields/ResearchPollStudyFields.php | 36 + .../Object/Fields/ResellerGuidanceFields.php | 64 ++ .../Fields/RightsManagerDataExportFields.php | 44 ++ .../Fields/RightsManagerInsightsFields.php | 40 ++ src/FacebookAds/Object/Fields/RobotFields.php | 54 ++ .../SalesRightsInventoryManagementFields.php | 44 ++ .../Object/Fields/ScheduledPostFields.php | 64 ++ .../ScimCompanyUserPhoneNumberFields.php | 36 + ...adowIGMediaBoostedInsightsResultFields.php | 42 ++ .../Fields/ShadowIGMediaBuilderFields.php | 2 + .../Fields/SignalsIWLExtractorFields.php | 38 ++ .../SingleOwnerAdditionalProfileFields.php | 36 + .../Object/Fields/SiteLinkFields.php | 40 ++ .../Fields/SlicedEventSourceGroupFields.php | 38 ++ .../Fields/SmartPixelInsightsFields.php | 34 + .../Object/Fields/SocialWifiSiteFields.php | 32 + .../Object/Fields/SplitTestConfigFields.php | 44 ++ .../Object/Fields/StatusFields.php | 42 ++ .../Object/Fields/StreamFilterFields.php | 36 + .../Object/Fields/TaggableSubjectFields.php | 34 + .../Fields/TargetingAutomationFields.php | 2 + ...tingGeoLocationLocationExpansionFields.php | 34 + ...argetingMarketingMessageChannelsFields.php | 32 + ...irdPartyMeasurementReportDatasetFields.php | 40 ++ .../ThirdPartyPartnerLiftRequestFields.php | 56 ++ .../ThirdPartyPartnerPanelRequestFields.php | 56 ++ .../ThirdPartyPartnerPanelScheduledFields.php | 58 ++ ...rdPartyPartnerViewabilityRequestFields.php | 50 ++ .../Object/Fields/TimeSuggestionFields.php | 34 + .../Object/Fields/TimezoneOffsetFields.php | 40 ++ .../Object/Fields/TransactableItemFields.php | 70 ++ .../Object/Fields/TransactionFields.php | 74 +++ .../Object/Fields/UniqueAdCreativeFields.php | 34 + .../Object/Fields/UserContextFields.php | 32 + src/FacebookAds/Object/Fields/UserFields.php | 2 +- .../Object/Fields/UserMobileConfigFields.php | 34 + .../UserNotificationSeenStateDataFields.php | 34 + .../Fields/UserPaymentMethodsInfoFields.php | 44 ++ .../UserPaymentModulesOptionsFields.php | 38 ++ .../Fields/UserSetReportingRootFields.php | 36 + .../Object/Fields/VideoAssetFields.php | 122 ++++ .../Fields/VideoCopyrightMatchFields.php | 44 ++ .../Object/Fields/VideoGroupFields.php | 64 ++ .../Fields/VideoMetricsReportFields.php | 52 ++ .../Object/Fields/VideoStatsFields.php | 42 ++ .../Object/Fields/VideoTextQuestionFields.php | 38 ++ .../Object/Fields/VidwallaBroadcastFields.php | 34 + .../Object/Fields/WITUserFields.php | 36 + .../Fields/WearableDevicePublicKeyFields.php | 46 ++ .../Object/Fields/WebPublisherFields.php | 36 + .../WebsiteCreativeAssetSourceFields.php | 34 + .../WebsiteCreativeAssetSuggestionsFields.php | 38 ++ .../Fields/WhatsAppBusinessAccountFields.php | 4 + .../WhatsAppPaymentCapabilitiesFields.php | 34 + .../WhatsappSubscribedAppsInfoFields.php | 34 + .../Object/Fields/WhitehatFBDLRunFields.php | 46 ++ .../Object/Fields/WifiInformationFields.php | 36 + .../Object/Fields/WithAsset3DFields.php | 32 + .../Fields/WoodhengeSupporterFields.php | 42 ++ .../Object/Fields/WorkAccessCodeFields.php | 34 + .../Object/Fields/WorkExperienceFields.php | 50 ++ .../Object/Fields/WorkSkillFields.php | 34 + .../Object/Fields/WorkUserBadgesFields.php | 40 ++ src/FacebookAds/Object/FinanceObject.php | 42 ++ src/FacebookAds/Object/Flight.php | 4 +- src/FacebookAds/Object/FranchiseProgram.php | 65 ++ .../Object/FranchiseProgramMember.php | 65 ++ src/FacebookAds/Object/GenericVideoAsset.php | 42 ++ src/FacebookAds/Object/GeoGatingPolicy.php | 65 ++ src/FacebookAds/Object/Group.php | 8 +- src/FacebookAds/Object/HomeListing.php | 4 +- src/FacebookAds/Object/Hotel.php | 4 +- src/FacebookAds/Object/Hours.php | 65 ++ .../Object/IGAccessTokenForIGOnlyAPI.php | 68 ++ src/FacebookAds/Object/IGBoostMediaAd.php | 65 ++ src/FacebookAds/Object/IGMedia.php | 23 + .../Object/IGMediaBoostEligibilityInfo.php | 65 ++ .../Object/IGMediaForIGOnlyAPI.php | 88 +++ .../IGProductTaggingInvalidationError.php | 42 ++ .../IGRefreshAccessTokenForIGOnlyAPI.php | 67 ++ .../Object/IGResumableVideoUploadStatus.php | 42 ++ src/FacebookAds/Object/IGUser.php | 30 +- src/FacebookAds/Object/IGUserForIGOnlyAPI.php | 136 ++++ src/FacebookAds/Object/IPObject.php | 42 ++ .../Object/ImageCopyrightDispute.php | 65 ++ .../Object/ImageReferenceMatch.php | 65 ++ src/FacebookAds/Object/InsightsResult.php | 2 + .../InstagramBoostableMediaForAccessToken.php | 42 ++ .../Object/InstagramRelatedProductTags.php | 42 ++ src/FacebookAds/Object/InstagramUser.php | 4 +- src/FacebookAds/Object/InstantArticleCTA.php | 42 ++ .../InstantArticleInsightsQueryResult.php | 42 ++ .../Object/KeywordDeliveryReport.php | 42 ++ src/FacebookAds/Object/LeadGenDataDraft.php | 65 ++ .../LeadGenDirectCRMIntegrationConfig.php | 65 ++ .../Object/LeadGenFormPreviewDetails.php | 42 ++ .../Object/LeadGenThankYouPageGatedFile.php | 42 ++ .../Object/LeadGenThankYouPageGatedPromo.php | 42 ++ .../Object/LinkedInstagramAccountData.php | 42 ++ src/FacebookAds/Object/LiveVideo.php | 2 +- src/FacebookAds/Object/LocationBasedItem.php | 92 +++ src/FacebookAds/Object/LoomConfig.php | 42 ++ .../Object/MCExperienceConfigForApi.php | 42 ++ src/FacebookAds/Object/MIXInsightsResult.php | 42 ++ .../Object/MarketingMessageTargeting.php | 42 ++ .../Object/McomInvoiceBankAccount.php | 42 ++ src/FacebookAds/Object/McomInvoiceDetails.php | 42 ++ src/FacebookAds/Object/McomInvoiceLists.php | 42 ++ src/FacebookAds/Object/McomInvoiceStatus.php | 42 ++ .../Object/McomOnboardingStatus.php | 42 ++ src/FacebookAds/Object/McomPayouts.php | 42 ++ src/FacebookAds/Object/MeasurementReport.php | 65 ++ .../Object/MediaCopyrightAttribution.php | 65 ++ .../Object/MediaCopyrightUpdateRecord.php | 65 ++ src/FacebookAds/Object/MediaTitle.php | 4 +- src/FacebookAds/Object/MerchantCompliance.php | 42 ++ src/FacebookAds/Object/MerchantReport.php | 42 ++ src/FacebookAds/Object/MessagingAppsInfo.php | 42 ++ .../Object/MessengerCallSettings.php | 42 ++ ...MessengerDestinationPageWelcomeMessage.php | 42 ++ src/FacebookAds/Object/MusicWorkCopyright.php | 65 ++ .../Object/NegativeKeywordList.php | 90 +++ .../Object/OfflineConversionDataSet.php | 169 +---- .../OfflineConversionDataSetActivities.php | 42 ++ ...ineConversionDataSetOptimizationStatus.php | 42 ++ src/FacebookAds/Object/OfflineProductItem.php | 92 +++ .../Object/OfflineTermsOfService.php | 65 ++ .../OffsiteSignalContainerBusinessObject.php | 111 ++++ .../Object/OpenBridgeConfiguration.php | 2 +- .../Object/OrderIDAttributions.php | 42 ++ src/FacebookAds/Object/Organization.php | 65 ++ src/FacebookAds/Object/OwnedDomain.php | 65 ++ src/FacebookAds/Object/P2MInvoicePayments.php | 42 ++ src/FacebookAds/Object/Page.php | 171 +++-- .../Object/PageAppWithLeadsAccess.php | 42 ++ src/FacebookAds/Object/PageBroadcast.php | 65 ++ src/FacebookAds/Object/PageCTSTopic.php | 42 ++ ...tSimilarAdvertiserBudgetRecommendation.php | 42 ++ .../Object/PageCTXDefaultGreetingText.php | 42 ++ .../Object/PageCrmsWithLeadsAccess.php | 42 ++ ...ageDirectIntegrationCrmWithLeadsAccess.php | 42 ++ .../Object/PageGameBotQuotaInformation.php | 42 ++ .../Object/PageGetStartedNullstate.php | 42 ++ .../Object/PageInsightsAsyncExportRun.php | 65 ++ .../Object/PageLeadsAccessConfig.php | 65 ++ .../Object/PageLocationsBreakdown.php | 42 ++ .../PageMessageResponsivenessMetrics.php | 42 ++ .../Object/PagePartnerWithLeadsAccess.php | 42 ++ src/FacebookAds/Object/PagePost.php | 4 +- src/FacebookAds/Object/PagePublisher.php | 42 ++ .../Object/PageUserPermissions.php | 42 ++ .../Object/PageUserWithLeadsAccess.php | 42 ++ .../Object/PageVideosYouCanUse.php | 42 ++ src/FacebookAds/Object/PanelAPIReport.php | 65 ++ .../Object/ParentCatalogReport.php | 42 ++ .../Object/PartnerAccountLinking.php | 65 ++ src/FacebookAds/Object/PartnerCategory.php | 49 ++ .../Object/PartnerIntegrationLinked.php | 65 ++ .../PartnershipAdContentSearchMedia.php | 42 ++ .../Object/PartnershipAdsIdentity.php | 42 ++ .../Object/PaymentRequestDetails.php | 42 ++ src/FacebookAds/Object/PersonalAdsPersona.php | 65 ++ src/FacebookAds/Object/PhotoMetadata.php | 42 ++ src/FacebookAds/Object/PlaceTag.php | 65 ++ src/FacebookAds/Object/PlatformSessionKey.php | 42 ++ src/FacebookAds/Object/Post.php | 4 +- src/FacebookAds/Object/PreapprovalReview.php | 42 ++ src/FacebookAds/Object/PremiumMusicVideo.php | 42 ++ src/FacebookAds/Object/PrivacyOption.php | 42 ++ .../Object/PrivateComputationEnvironment.php | 65 ++ src/FacebookAds/Object/ProductCatalog.php | 48 +- .../Object/ProductCatalogExampleFeed.php | 42 ++ .../Object/ProductCatalogFacets.php | 42 ++ .../ProductCatalogImageSettingsInternal.php | 42 ++ .../ProductCatalogLocalizationSettings.php | 65 ++ .../ProductCatalogMicrodataStatsPixelInfo.php | 42 ++ .../Object/ProductCatalogUserActions.php | 42 ++ .../Object/ProductCatalogUserPermissions.php | 42 ++ .../Object/ProductCatalogUserTasks.php | 42 ++ .../Object/ProductDaEventSamplesBatch.php | 42 ++ .../Object/ProductFeedRulePreviewSample.php | 42 ++ .../Object/ProductFeedUploadProgress.php | 42 ++ .../Object/ProductItemInsights.php | 42 ++ .../Object/ProductItemInvalidationError.php | 42 ++ .../Object/ProductItemLandingPageData.php | 44 ++ src/FacebookAds/Object/ProductItemOffer.php | 65 ++ .../Object/ProductItemShipping.php | 42 ++ .../Object/ProductItemSubscriptionInfo.php | 42 ++ .../Object/ProductItemUnitPrice.php | 42 ++ .../Object/ProductSetTaxonCategory.php | 42 ++ src/FacebookAds/Object/ProductSetUsage.php | 65 ++ .../Object/ProductVisualVariant.php | 42 ++ src/FacebookAds/Object/PublisherBlockList.php | 6 +- .../Object/PublisherDeliveryReport.php | 42 ++ src/FacebookAds/Object/PublisherWhiteList.php | 65 ++ src/FacebookAds/Object/RecommendedIGMedia.php | 42 ++ .../Object/RecommendedPagePost.php | 42 ++ .../Object/RegionalRegulationIdentities.php | 42 ++ src/FacebookAds/Object/ReportingAudience.php | 42 ++ src/FacebookAds/Object/ResearchPollStudy.php | 65 ++ src/FacebookAds/Object/ResellerGuidance.php | 42 ++ .../Object/RightsManagerDataExport.php | 65 ++ .../Object/RightsManagerInsights.php | 42 ++ src/FacebookAds/Object/Robot.php | 65 ++ .../Object/SalesRightsInventoryManagement.php | 42 ++ src/FacebookAds/Object/ScheduledPost.php | 42 ++ .../Object/ScimCompanyUserPhoneNumber.php | 42 ++ .../ShadowIGMediaBoostedInsightsResult.php | 42 ++ .../Object/SignalsIWLExtractor.php | 65 ++ .../Object/SingleOwnerAdditionalProfile.php | 42 ++ src/FacebookAds/Object/SiteLink.php | 65 ++ .../Object/SlicedEventSourceGroup.php | 65 ++ src/FacebookAds/Object/SmartPixelInsights.php | 42 ++ src/FacebookAds/Object/SocialWifiSite.php | 42 ++ src/FacebookAds/Object/SplitTestConfig.php | 65 ++ src/FacebookAds/Object/Status.php | 92 +++ src/FacebookAds/Object/StreamFilter.php | 42 ++ src/FacebookAds/Object/TaggableSubject.php | 42 ++ .../TargetingGeoLocationLocationExpansion.php | 42 ++ .../TargetingMarketingMessageChannels.php | 42 ++ .../ThirdPartyMeasurementReportDataset.php | 65 ++ .../Object/ThirdPartyPartnerLiftRequest.php | 67 ++ .../Object/ThirdPartyPartnerPanelRequest.php | 69 ++ .../ThirdPartyPartnerPanelScheduled.php | 69 ++ .../ThirdPartyPartnerViewabilityRequest.php | 67 ++ src/FacebookAds/Object/TimeSuggestion.php | 42 ++ src/FacebookAds/Object/TimezoneOffset.php | 42 ++ src/FacebookAds/Object/TransactableItem.php | 92 +++ src/FacebookAds/Object/Transaction.php | 51 ++ src/FacebookAds/Object/UniqueAdCreative.php | 42 ++ src/FacebookAds/Object/User.php | 60 +- src/FacebookAds/Object/UserContext.php | 65 ++ src/FacebookAds/Object/UserMobileConfig.php | 42 ++ .../Object/UserNotificationSeenStateData.php | 42 ++ .../Object/UserPaymentMethodsInfo.php | 42 ++ .../Object/UserPaymentModulesOptions.php | 42 ++ .../Object/UserSetReportingRoot.php | 65 ++ .../AdAccountAdRulesHistoryActionValues.php | 3 + ...ccountAdVolumeRecommendationTypeValues.php | 21 +- ...AccountBusinessConstraintsStatusValues.php | 28 + .../Values/AdAccountContentTypeValues.php | 1 - ...DeliveryEstimateOptimizationGoalValues.php | 1 + ...AEMv2EligibilityOptimizationGoalValues.php | 53 ++ ...ttingsSydCampaignTrendsObjectiveValues.php | 46 ++ ...AdAssetFeedSpecCallToActionTypesValues.php | 1 + ...DeliveryEstimateOptimizationGoalValues.php | 1 + .../AdCreativeCallToActionTypeValues.php | 1 + ...CreativeLinkDataCallToActionTypeValues.php | 1 + ...CustomOverlaySpecBackgroundColorValues.php | 34 + ...iveLinkDataCustomOverlaySpecFontValues.php | 33 + ...eLinkDataCustomOverlaySpecOptionValues.php | 35 + ...inkDataCustomOverlaySpecPositionValues.php | 29 + ...inkDataCustomOverlaySpecTemplateValues.php | 26 + ...nkDataCustomOverlaySpecTextColorValues.php | 34 + .../AdCreativeLinkDataMomentTypeValues.php | 28 + ...stomOverlaySpecBackgroundOpacityValues.php | 27 + ...VideoDataCustomOverlaySpecOptionValues.php | 35 + ...deoDataCustomOverlaySpecPositionValues.php | 31 + ...deoDataCustomOverlaySpecTemplateValues.php | 26 + .../Object/Values/AdPreviewAdFormatValues.php | 1 + .../Values/AdRuleHistoryActionValues.php | 3 + .../Values/AdSetDestinationTypeValues.php | 2 +- .../Values/AdSetOptimizationGoalValues.php | 1 + ...AdSetRegionalRegulatedCategoriesValues.php | 27 + .../Object/Values/AdStudyTypeValues.php | 1 + .../Values/AdVideoContainerTypeValues.php | 3 +- .../AdoptablePetImageFetchStatusValues.php | 31 + .../Values/AdoptablePetVisibilityValues.php | 27 + .../Values/AdsInsightsBreakdownsValues.php | 3 + .../Values/AdsNamingTemplateLevelValues.php | 33 + .../Values/AdsPixelPermittedTasksValues.php | 28 + .../ApplicationOwnerPermissionsValues.php | 35 + .../ApplicationPartnerPermissionsValues.php | 35 + .../BusinessAgreementRequestStatusValues.php | 32 + .../Values/BusinessTimezoneIdValues.php | 506 ++++++++++++++ ...ogItemRejectionReasonsCapabilityValues.php | 30 + ...torAssetCreativeModerationStatusValues.php | 32 + .../CustomAudienceContentTypeValues.php | 1 - .../CustomAudienceDataSourceSubTypeValues.php | 2 + ...CustomConversionActionSourceTypeValues.php | 34 + .../Values/InsightsResultMetricValues.php | 215 ++++++ .../InstagramInsightsResultMetricValues.php | 4 - ...ocationBasedItemImageFetchStatusValues.php | 31 + .../LocationBasedItemVisibilityValues.php | 27 + ...flineProductItemImageFetchStatusValues.php | 31 + .../OfflineProductItemVisibilityValues.php | 27 + .../Values/PageCallToActionTypeValues.php | 1 + ...gDiagnosticGroupAffectedEntitiesValues.php | 1 + ...logDiagnosticGroupAffectedEntityValues.php | 1 + ...roductCatalogDiagnosticGroupTypeValues.php | 1 + ...oductCatalogDiagnosticGroupTypesValues.php | 1 + .../Values/ProductCatalogVerticalValues.php | 1 - .../Values/ProductItemErrorTypeValues.php | 18 + ...tItemLandingPageDataAvailabilityValues.php | 32 + ...irdPartyPartnerLiftRequestStatusValues.php | 30 + ...rdPartyPartnerPanelRequestStatusValues.php | 30 + ...rtyPartnerPanelRequestStudyTypeValues.php} | 10 +- ...PartyPartnerPanelScheduledStatusValues.php | 29 + ...yPartnerPanelScheduledStudyTypeValues.php} | 12 +- ...yPartnerViewabilityRequestStatusValues.php | 30 + ...TransactableItemImageFetchStatusValues.php | 31 + .../TransactableItemVisibilityValues.php | 27 + .../Values/TransactionProductTypeValues.php | 30 + .../VideoCopyrightMatchActionReasonValues.php | 33 + .../VideoCopyrightMatchActionValues.php | 30 + ...eoCopyrightMatchMatchContentTypeValues.php | 28 + ...sAppBusinessAccountDisplayFormatValues.php | 26 + .../WhatsAppBusinessAccountTasksValues.php | 1 + ...tionSubmissionVerificationStatusValues.php | 1 + src/FacebookAds/Object/Vehicle.php | 4 +- src/FacebookAds/Object/VehicleOffer.php | 4 +- src/FacebookAds/Object/VideoAsset.php | 94 +++ src/FacebookAds/Object/VideoCopyright.php | 4 +- .../Object/VideoCopyrightMatch.php | 71 ++ src/FacebookAds/Object/VideoGroup.php | 42 ++ src/FacebookAds/Object/VideoMetricsReport.php | 65 ++ src/FacebookAds/Object/VideoStats.php | 42 ++ src/FacebookAds/Object/VideoTextQuestion.php | 65 ++ src/FacebookAds/Object/VidwallaBroadcast.php | 65 ++ src/FacebookAds/Object/WITUser.php | 42 ++ .../Object/WearableDevicePublicKey.php | 65 ++ src/FacebookAds/Object/WebPublisher.php | 42 ++ .../Object/WebsiteCreativeAssetSource.php | 65 ++ .../WebsiteCreativeAssetSuggestions.php | 65 ++ .../Object/WhatsAppBusinessAccount.php | 32 +- .../Object/WhatsAppPaymentCapabilities.php | 42 ++ .../Object/WhatsappSubscribedAppsInfo.php | 42 ++ src/FacebookAds/Object/WhitehatFBDLRun.php | 65 ++ src/FacebookAds/Object/WifiInformation.php | 65 ++ src/FacebookAds/Object/WithAsset3D.php | 65 ++ src/FacebookAds/Object/WoodhengeSupporter.php | 65 ++ src/FacebookAds/Object/WorkAccessCode.php | 42 ++ src/FacebookAds/Object/WorkExperience.php | 65 ++ src/FacebookAds/Object/WorkSkill.php | 88 +++ src/FacebookAds/Object/WorkUserBadges.php | 42 ++ 994 files changed, 43215 insertions(+), 666 deletions(-) create mode 100644 src/FacebookAds/Object/AMOneshopSettings.php create mode 100644 src/FacebookAds/Object/ANBlockedBICategory.php rename src/FacebookAds/Object/{PageSavedFilter.php => AREffect.php} (82%) create mode 100644 src/FacebookAds/Object/AdAccountAAACompatibleAdObjects.php create mode 100644 src/FacebookAds/Object/AdAccountAAASimilarCampaigns.php create mode 100644 src/FacebookAds/Object/AdAccountASLSchedule.php create mode 100644 src/FacebookAds/Object/AdAccountAdLimitsInsights.php create mode 100644 src/FacebookAds/Object/AdAccountAdRulesCountByType.php create mode 100644 src/FacebookAds/Object/AdAccountAdsRecommendedAudios.php create mode 100644 src/FacebookAds/Object/AdAccountAllPaymentMethods.php create mode 100644 src/FacebookAds/Object/AdAccountAppSetupRequirements.php create mode 100644 src/FacebookAds/Object/AdAccountBankInfoList.php create mode 100644 src/FacebookAds/Object/AdAccountBillingDatePreference.php create mode 100644 src/FacebookAds/Object/AdAccountCampaignAttributionOptionInfo.php create mode 100644 src/FacebookAds/Object/AdAccountCreationRequest.php create mode 100644 src/FacebookAds/Object/AdAccountCustomAudienceLimits.php create mode 100644 src/FacebookAds/Object/AdAccountOptimizationGoalsAEMv2Eligibility.php create mode 100644 src/FacebookAds/Object/AdAccountPaymentDetails.php create mode 100644 src/FacebookAds/Object/AdAccountPaymentOptions.php create mode 100644 src/FacebookAds/Object/AdAccountPrepayDetails.php create mode 100644 src/FacebookAds/Object/AdAccountPromotionProgressBar.php create mode 100644 src/FacebookAds/Object/AdAccountRecommendations.php create mode 100644 src/FacebookAds/Object/AdAccountRelatedIcoStudy.php create mode 100644 src/FacebookAds/Object/AdAccountSmartSuggestedAds.php create mode 100644 src/FacebookAds/Object/AdAccountSpendLimit.php create mode 100644 src/FacebookAds/Object/AdAccountSubsidyAmountDetails.php create mode 100644 src/FacebookAds/Object/AdAccountSuggestedTag.php create mode 100644 src/FacebookAds/Object/AdAccountURLForAssetExtraction.php create mode 100644 src/FacebookAds/Object/AdAccountUserPermissions.php create mode 100644 src/FacebookAds/Object/AdAccountUserSettings.php create mode 100644 src/FacebookAds/Object/AdAccountYouthAdsAdvertiser.php create mode 100644 src/FacebookAds/Object/AdAssetFeedAdditionalDataPageNudgeMessage.php create mode 100644 src/FacebookAds/Object/AdCampaignDeliveryStats.php create mode 100644 src/FacebookAds/Object/AdCampaignGroupIncrementalConversionOptimizationConfig.php create mode 100644 src/FacebookAds/Object/AdCampaignGroupMetricsMetadata.php create mode 100644 src/FacebookAds/Object/AdCampaignGroupStats.php create mode 100644 src/FacebookAds/Object/AdCampaignGroupStructureTree.php create mode 100644 src/FacebookAds/Object/AdCampaignMetricsMetadata.php create mode 100644 src/FacebookAds/Object/AdCampaignMultiAds.php rename src/FacebookAds/Object/{FAMEExportConfig.php => AdCampaignStats.php} (80%) create mode 100644 src/FacebookAds/Object/AdColumnSizes.php create mode 100644 src/FacebookAds/Object/AdContract.php create mode 100644 src/FacebookAds/Object/AdConversionValues.php create mode 100644 src/FacebookAds/Object/AdConversions.php create mode 100644 src/FacebookAds/Object/AdCreationPackageConfig.php create mode 100644 src/FacebookAds/Object/AdCreativeAssetGroupsSpec.php create mode 100644 src/FacebookAds/Object/AdCreativeContextualMultiAds.php create mode 100644 src/FacebookAds/Object/AdCreativeFeatureActionMetadata.php create mode 100644 src/FacebookAds/Object/AdCreativeFeatureCustomizations.php create mode 100644 src/FacebookAds/Object/AdCreativeGenerativeAssetSpec.php create mode 100644 src/FacebookAds/Object/AdCreativeHouseShopsAdsSellerContent.php rename src/FacebookAds/Object/{CatalogSegmentAllMatchCountLaser.php => AdCreativeImageDataMediaElements.php} (76%) create mode 100644 src/FacebookAds/Object/AdCreativeLinkDataCustomOverlaySpec.php create mode 100644 src/FacebookAds/Object/AdCreativeLinkDataMoment.php create mode 100644 src/FacebookAds/Object/AdCreativeMarketingMessageStructuredSpec.php create mode 100644 src/FacebookAds/Object/AdCreativeRegionalRegulationDisclaimer.php create mode 100644 src/FacebookAds/Object/AdCreativeRewardInfo.php create mode 100644 src/FacebookAds/Object/AdCreativeShopSpec.php create mode 100644 src/FacebookAds/Object/AdCreativeVideoDataCustomOverlaySpec.php create mode 100644 src/FacebookAds/Object/AdCreativeVideoDataMediaElements.php create mode 100644 src/FacebookAds/Object/AdCreativeWhatsAppChannelSpec.php create mode 100644 src/FacebookAds/Object/AdCustomDerivedMetrics.php create mode 100644 src/FacebookAds/Object/AdDefaultValues.php create mode 100644 src/FacebookAds/Object/AdDraft.php create mode 100644 src/FacebookAds/Object/AdExportPreset.php create mode 100644 src/FacebookAds/Object/AdKeywordStats.php create mode 100644 src/FacebookAds/Object/AdKpiShift.php create mode 100644 src/FacebookAds/Object/AdLightAdgroup.php create mode 100644 src/FacebookAds/Object/AdLightCampaign.php create mode 100644 src/FacebookAds/Object/AdLightCampaignGroup.php create mode 100644 src/FacebookAds/Object/AdLimitSetting.php create mode 100644 src/FacebookAds/Object/AdLimitsEnforcementData.php create mode 100644 src/FacebookAds/Object/AdNetworkAnalyticsAsyncQueryExport.php create mode 100644 src/FacebookAds/Object/AdProposal.php create mode 100644 src/FacebookAds/Object/AdSavedKeywords.php create mode 100644 src/FacebookAds/Object/AdSavedLocation.php create mode 100644 src/FacebookAds/Object/AdSavedReport.php create mode 100644 src/FacebookAds/Object/AdTopline.php create mode 100644 src/FacebookAds/Object/AdToplineDetail.php rename src/FacebookAds/Object/{Dataset.php => AdVolume.php} (83%) create mode 100644 src/FacebookAds/Object/AdgroupFacebookFeedback.php create mode 100644 src/FacebookAds/Object/AdjacentContentDeliveryReport.php create mode 100644 src/FacebookAds/Object/AdoptablePet.php create mode 100644 src/FacebookAds/Object/AdsAnomalyDetection.php create mode 100644 src/FacebookAds/Object/AdsConversionGoal.php create mode 100644 src/FacebookAds/Object/AdsCreationSavedState.php create mode 100644 src/FacebookAds/Object/AdsCustomPivotsPreview.php create mode 100644 src/FacebookAds/Object/AdsDataPartner.php create mode 100644 src/FacebookAds/Object/AdsDataset.php create mode 100644 src/FacebookAds/Object/AdsGuidanceQEExposure.php create mode 100644 src/FacebookAds/Object/AdsNamingTemplate.php create mode 100644 src/FacebookAds/Object/AdsPaymentCycle.php create mode 100644 src/FacebookAds/Object/AdsPivotRules.php create mode 100644 src/FacebookAds/Object/AdsPixelCAPISetupQuality.php create mode 100644 src/FacebookAds/Object/AdsPixelCapabilityOverride.php create mode 100644 src/FacebookAds/Object/AdsPixelDeliveryRecommendations.php create mode 100644 src/FacebookAds/Object/AdsPixelDomainControlRule.php create mode 100644 src/FacebookAds/Object/AdsPixelDomainLastFiredTime.php create mode 100644 src/FacebookAds/Object/AdsPixelEventLastFiredTime.php create mode 100644 src/FacebookAds/Object/AdsPixelEventPrediction.php create mode 100644 src/FacebookAds/Object/AdsPixelEventSuggestionRule.php create mode 100644 src/FacebookAds/Object/AdsPixelItemPrice.php create mode 100644 src/FacebookAds/Object/AdsPixelMicrodataStats.php create mode 100644 src/FacebookAds/Object/AdsPixelRawFiresResult.php create mode 100644 src/FacebookAds/Object/AdsPixelRealTimeEventLogResult.php create mode 100644 src/FacebookAds/Object/AdsPixelRecentEventsResult.php create mode 100644 src/FacebookAds/Object/AdsPixelSignalsIWLFeedbackNux.php create mode 100644 src/FacebookAds/Object/AdsPixelSignalsIWLNux.php create mode 100644 src/FacebookAds/Object/AdsReportBuilder.php create mode 100644 src/FacebookAds/Object/AdsReportBuilderExportCore.php create mode 100644 src/FacebookAds/Object/AdsReportBuilderMMMReport.php create mode 100644 src/FacebookAds/Object/AdsReportBuilderMMMReportScheduler.php create mode 100644 src/FacebookAds/Object/AdsReportBuilderSavedReport.php create mode 100644 src/FacebookAds/Object/AdsSegments.php create mode 100644 src/FacebookAds/Object/AdsSignalDiagnosticIssue.php create mode 100644 src/FacebookAds/Object/AdsStartYourDayWidget.php create mode 100644 src/FacebookAds/Object/AdsTabular.php create mode 100644 src/FacebookAds/Object/AdsTargetingInsights.php create mode 100644 src/FacebookAds/Object/AdsTextSuggestions.php create mode 100644 src/FacebookAds/Object/AdsUserSettings.php create mode 100644 src/FacebookAds/Object/AdsValueAdjustmentRule.php create mode 100644 src/FacebookAds/Object/AdsValueAdjustmentRuleCollection.php create mode 100644 src/FacebookAds/Object/AdvAInstance.php create mode 100644 src/FacebookAds/Object/AdvertiserVerificationStatus.php create mode 100644 src/FacebookAds/Object/AnalyticsCohortQueryResult.php create mode 100644 src/FacebookAds/Object/AnalyticsConfig.php create mode 100644 src/FacebookAds/Object/AnalyticsEntityUserConfig.php create mode 100644 src/FacebookAds/Object/AnalyticsFunnelQueryResult.php create mode 100644 src/FacebookAds/Object/AnalyticsPlatformMetricsConfig.php create mode 100644 src/FacebookAds/Object/AnalyticsQueryResult.php create mode 100644 src/FacebookAds/Object/AnalyticsUserConfig.php create mode 100644 src/FacebookAds/Object/AppEventConfig.php create mode 100644 src/FacebookAds/Object/AppLinks.php create mode 100644 src/FacebookAds/Object/AppOptimizedCustomEvents.php create mode 100644 src/FacebookAds/Object/AppPublisher.php create mode 100644 src/FacebookAds/Object/ArAdsDataContainer.php create mode 100644 src/FacebookAds/Object/AudienceFunnel.php create mode 100644 src/FacebookAds/Object/AudienceOverlap.php create mode 100644 src/FacebookAds/Object/AudiencePermission.php create mode 100644 src/FacebookAds/Object/AudienceSharingAccountValid.php create mode 100644 src/FacebookAds/Object/AudienceSharingRecipientAccounts.php create mode 100644 src/FacebookAds/Object/AudioAsset.php create mode 100644 src/FacebookAds/Object/AudioIsrc.php create mode 100644 src/FacebookAds/Object/AudioRelease.php create mode 100644 src/FacebookAds/Object/AudioVisualReferenceMatch.php create mode 100644 src/FacebookAds/Object/AuthLink.php create mode 100644 src/FacebookAds/Object/BAPIDomain.php create mode 100644 src/FacebookAds/Object/BCPCampaign.php create mode 100644 src/FacebookAds/Object/BCPCreatorIgUser.php create mode 100644 src/FacebookAds/Object/BespokePartnerGuidanceLaser.php create mode 100644 src/FacebookAds/Object/BidSchedule.php create mode 100644 src/FacebookAds/Object/BizInboxOffsiteEmailAccount.php create mode 100644 src/FacebookAds/Object/BlindPig.php create mode 100644 src/FacebookAds/Object/BlockedUserInfo.php create mode 100644 src/FacebookAds/Object/BrandSafetyDownloadable.php create mode 100644 src/FacebookAds/Object/BrandedContentAdError.php create mode 100644 src/FacebookAds/Object/BrandedContentEligibleSponsorIDs.php create mode 100644 src/FacebookAds/Object/BusinessAdsReportingReportSpecs.php create mode 100644 src/FacebookAds/Object/BusinessAdvertisableApplicationsResult.php create mode 100644 src/FacebookAds/Object/BusinessAgreement.php create mode 100644 src/FacebookAds/Object/BusinessCreative.php create mode 100644 src/FacebookAds/Object/BusinessCreativeInsights.php create mode 100644 src/FacebookAds/Object/BusinessFranchiseConfig.php create mode 100644 src/FacebookAds/Object/BusinessImageTBusinessFolderPathItem.php create mode 100644 src/FacebookAds/Object/BusinessMediaAdPlacementValidationResult.php create mode 100644 src/FacebookAds/Object/BusinessObject.php create mode 100644 src/FacebookAds/Object/BusinessObjectTransferOwnershipAgreement.php create mode 100644 src/FacebookAds/Object/BusinessProductCatalogTOS.php create mode 100644 src/FacebookAds/Object/BusinessProject.php create mode 100644 src/FacebookAds/Object/BusinessRequest.php create mode 100644 src/FacebookAds/Object/BusinessSettingLogsData.php create mode 100644 src/FacebookAds/Object/BusinessTag.php create mode 100644 src/FacebookAds/Object/BusinessTrafficAnalysisReport.php create mode 100644 src/FacebookAds/Object/BusinessVideoTBusinessFolderPathItem.php create mode 100644 src/FacebookAds/Object/CASSSetupOfflineEventSetProgress.php create mode 100644 src/FacebookAds/Object/CPASAdCreationTemplate.php create mode 100644 src/FacebookAds/Object/CPASLsbImageBank.php create mode 100644 src/FacebookAds/Object/CPASParentCatalogSettings.php create mode 100644 src/FacebookAds/Object/CPASSetup.php create mode 100644 src/FacebookAds/Object/CPASSetupCatalogProgress.php create mode 100644 src/FacebookAds/Object/CPASSetupPageStructureProgress.php create mode 100644 src/FacebookAds/Object/CTWAWhatsAppNumbersInfo.php create mode 100644 src/FacebookAds/Object/CTXOptimizationEligibility.php create mode 100644 src/FacebookAds/Object/CalibratorExistingRule.php create mode 100644 src/FacebookAds/Object/CallAdsPhoneData.php create mode 100644 src/FacebookAds/Object/CampaignActionsData.php create mode 100644 src/FacebookAds/Object/CanvasTemplate.php create mode 100644 src/FacebookAds/Object/CatalogItemOverride.php create mode 100644 src/FacebookAds/Object/CatalogItemRejectionReasons.php create mode 100644 src/FacebookAds/Object/CatalogItemValidationErrorList.php create mode 100644 src/FacebookAds/Object/CatalogSmartPixelSettings.php create mode 100644 src/FacebookAds/Object/CatalogWebsiteOnboardingSettings.php create mode 100644 src/FacebookAds/Object/CatalogWebsiteSettings.php create mode 100644 src/FacebookAds/Object/ChinaBusinessOnboardingVettingRequest.php create mode 100644 src/FacebookAds/Object/CloudbridgeDatasetStatus.php create mode 100644 src/FacebookAds/Object/CollaborativeAdsPartnerBusinesses.php create mode 100644 src/FacebookAds/Object/ColumnSuggestions.php create mode 100644 src/FacebookAds/Object/ContactsMessengerSyncConfig.php create mode 100644 src/FacebookAds/Object/ContentDeliveryReport.php create mode 100644 src/FacebookAds/Object/ConversionHealthKPI.php create mode 100644 src/FacebookAds/Object/CopyrightAttributionInsights.php create mode 100644 src/FacebookAds/Object/CopyrightAudioAsset.php create mode 100644 src/FacebookAds/Object/CopyrightMediaMisuse.php create mode 100644 src/FacebookAds/Object/CreativeAssetTag.php create mode 100644 src/FacebookAds/Object/CreatorAssetCreative.php create mode 100644 src/FacebookAds/Object/CustomAudienceCapabilities.php create mode 100644 src/FacebookAds/Object/CustomAudienceSharedAccountCampaignInfo.php create mode 100644 src/FacebookAds/Object/CustomConversionActivities.php create mode 100644 src/FacebookAds/Object/DeliveryInfo.php create mode 100644 src/FacebookAds/Object/DeliveryStatus.php create mode 100644 src/FacebookAds/Object/DirectDebit.php create mode 100644 src/FacebookAds/Object/DogNotificationSettings.php create mode 100644 src/FacebookAds/Object/Domain.php create mode 100644 src/FacebookAds/Object/DraftPost.php create mode 100644 src/FacebookAds/Object/DynamicARMetadata.php create mode 100644 src/FacebookAds/Object/DynamicContentSet.php create mode 100644 src/FacebookAds/Object/DynamicItemDisplayBundle.php create mode 100644 src/FacebookAds/Object/DynamicItemDisplayBundleFolder.php create mode 100644 src/FacebookAds/Object/EducationExperience.php create mode 100644 src/FacebookAds/Object/EmailImport.php create mode 100644 src/FacebookAds/Object/EndStudyCriteria.php create mode 100644 src/FacebookAds/Object/EntWithSponsor.php create mode 100644 src/FacebookAds/Object/EventExternalTicketInfo.php create mode 100644 src/FacebookAds/Object/EventRegistrationSetting.php create mode 100644 src/FacebookAds/Object/EventTicketSetting.php create mode 100644 src/FacebookAds/Object/EventTicketTier.php create mode 100644 src/FacebookAds/Object/EventTour.php create mode 100644 src/FacebookAds/Object/ExpirablePost.php create mode 100644 src/FacebookAds/Object/ExtendedCreditApplication.php create mode 100644 src/FacebookAds/Object/ExtendedCreditEmail.php create mode 100644 src/FacebookAds/Object/ExtendedCreditInfo.php create mode 100644 src/FacebookAds/Object/ExternalEventSourceCPASEventsDebugging.php create mode 100644 src/FacebookAds/Object/ExternalEventSourceCPASEventsDebuggingInfo.php create mode 100644 src/FacebookAds/Object/ExternalEventSourceDAStatsResult.php create mode 100644 src/FacebookAds/Object/ExternalMerchantSettings.php create mode 100644 src/FacebookAds/Object/FAMEKumo.php create mode 100644 src/FacebookAds/Object/FBImageCopyrightMatch.php create mode 100644 src/FacebookAds/Object/FBLiteToNTTransitions.php create mode 100644 src/FacebookAds/Object/FBPageAndInstagramAccount.php create mode 100644 src/FacebookAds/Object/FBPayButtonLogin.php create mode 100644 src/FacebookAds/Object/FantasyGame.php create mode 100644 src/FacebookAds/Object/FavoriteCatalog.php rename src/FacebookAds/Object/Fields/{FAMEExportConfigFields.php => AMOneshopSettingsFields.php} (66%) create mode 100644 src/FacebookAds/Object/Fields/ANBlockedBICategoryFields.php create mode 100644 src/FacebookAds/Object/Fields/AREffectFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountAAACompatibleAdObjectsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountAAASimilarCampaignsFields.php rename src/FacebookAds/Object/Fields/{PageSavedFilterFields.php => AdAccountASLScheduleFields.php} (66%) rename src/FacebookAds/Object/Fields/{CatalogSegmentAllMatchCountLaserFields.php => AdAccountAdLimitsInsightsFields.php} (64%) create mode 100644 src/FacebookAds/Object/Fields/AdAccountAdRulesCountByTypeFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountAdsRecommendedAudiosFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountAllPaymentMethodsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountAppSetupRequirementsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountBankInfoListFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountBillingDatePreferenceFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountCampaignAttributionOptionInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountCreationRequestFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountCustomAudienceLimitsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountOptimizationGoalsAEMv2EligibilityFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountPaymentDetailsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountPaymentOptionsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountPrepayDetailsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountPromotionProgressBarFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountRelatedIcoStudyFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountSmartSuggestedAdsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountSpendLimitFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountSubsidyAmountDetailsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountSuggestedTagFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountURLForAssetExtractionFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountUserPermissionsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAccountYouthAdsAdvertiserFields.php create mode 100644 src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataPageNudgeMessageFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCampaignDeliveryStatsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCampaignGroupIncrementalConversionOptimizationConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCampaignGroupMetricsMetadataFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCampaignGroupStatsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCampaignGroupStructureTreeFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCampaignMetricsMetadataFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCampaignMultiAdsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCampaignStatsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdColumnSizesFields.php create mode 100644 src/FacebookAds/Object/Fields/AdContractFields.php create mode 100644 src/FacebookAds/Object/Fields/AdConversionValuesFields.php create mode 100644 src/FacebookAds/Object/Fields/AdConversionsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreationPackageConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeAssetGroupsSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeContextualMultiAdsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeFeatureActionMetadataFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeGenerativeAssetSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeHouseShopsAdsSellerContentFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeImageDataMediaElementsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeLinkDataCustomOverlaySpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeLinkDataMomentFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeRegionalRegulationDisclaimerFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeRewardInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeShopSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeVideoDataCustomOverlaySpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeVideoDataMediaElementsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCreativeWhatsAppChannelSpecFields.php create mode 100644 src/FacebookAds/Object/Fields/AdCustomDerivedMetricsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdDefaultValuesFields.php create mode 100644 src/FacebookAds/Object/Fields/AdDraftFields.php create mode 100644 src/FacebookAds/Object/Fields/AdExportPresetFields.php create mode 100644 src/FacebookAds/Object/Fields/AdKeywordStatsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdKpiShiftFields.php create mode 100644 src/FacebookAds/Object/Fields/AdLightAdgroupFields.php create mode 100644 src/FacebookAds/Object/Fields/AdLightCampaignFields.php create mode 100644 src/FacebookAds/Object/Fields/AdLightCampaignGroupFields.php create mode 100644 src/FacebookAds/Object/Fields/AdLimitSettingFields.php create mode 100644 src/FacebookAds/Object/Fields/AdLimitsEnforcementDataFields.php create mode 100644 src/FacebookAds/Object/Fields/AdNetworkAnalyticsAsyncQueryExportFields.php create mode 100644 src/FacebookAds/Object/Fields/AdProposalFields.php create mode 100644 src/FacebookAds/Object/Fields/AdSavedKeywordsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdSavedLocationFields.php create mode 100644 src/FacebookAds/Object/Fields/AdSavedReportFields.php create mode 100644 src/FacebookAds/Object/Fields/AdToplineDetailFields.php create mode 100644 src/FacebookAds/Object/Fields/AdToplineFields.php create mode 100644 src/FacebookAds/Object/Fields/AdVolumeFields.php create mode 100644 src/FacebookAds/Object/Fields/AdgroupFacebookFeedbackFields.php create mode 100644 src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php create mode 100644 src/FacebookAds/Object/Fields/AdoptablePetFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsAnomalyDetectionFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsConversionGoalFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsCreationSavedStateFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsCustomPivotsPreviewFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsDataPartnerFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsDatasetFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsGuidanceQEExposureFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsNamingTemplateFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPaymentCycleFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPivotRulesFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelCAPISetupQualityFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelCapabilityOverrideFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelDeliveryRecommendationsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelDomainControlRuleFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelDomainLastFiredTimeFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelEventLastFiredTimeFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelEventPredictionFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelEventSuggestionRuleFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelItemPriceFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelMicrodataStatsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelRawFiresResultFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelRealTimeEventLogResultFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelRecentEventsResultFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelSignalsIWLFeedbackNuxFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsPixelSignalsIWLNuxFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsReportBuilderExportCoreFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsReportBuilderFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsReportBuilderMMMReportFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsReportBuilderMMMReportSchedulerFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsReportBuilderSavedReportFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsSegmentsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsSignalDiagnosticIssueFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsStartYourDayWidgetFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsTabularFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsTargetingInsightsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsTextSuggestionsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsUserSettingsFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsValueAdjustmentRuleCollectionFields.php create mode 100644 src/FacebookAds/Object/Fields/AdsValueAdjustmentRuleFields.php create mode 100644 src/FacebookAds/Object/Fields/AdvAInstanceFields.php create mode 100644 src/FacebookAds/Object/Fields/AdvertiserVerificationStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/AnalyticsCohortQueryResultFields.php create mode 100644 src/FacebookAds/Object/Fields/AnalyticsConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/AnalyticsEntityUserConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/AnalyticsFunnelQueryResultFields.php create mode 100644 src/FacebookAds/Object/Fields/AnalyticsPlatformMetricsConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/AnalyticsQueryResultFields.php create mode 100644 src/FacebookAds/Object/Fields/AnalyticsUserConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/AppEventConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/AppLinksFields.php create mode 100644 src/FacebookAds/Object/Fields/AppOptimizedCustomEventsFields.php create mode 100644 src/FacebookAds/Object/Fields/AppPublisherFields.php create mode 100644 src/FacebookAds/Object/Fields/ArAdsDataContainerFields.php create mode 100644 src/FacebookAds/Object/Fields/AudienceFunnelFields.php create mode 100644 src/FacebookAds/Object/Fields/AudienceOverlapFields.php create mode 100644 src/FacebookAds/Object/Fields/AudiencePermissionFields.php create mode 100644 src/FacebookAds/Object/Fields/AudienceSharingAccountValidFields.php create mode 100644 src/FacebookAds/Object/Fields/AudienceSharingRecipientAccountsFields.php create mode 100644 src/FacebookAds/Object/Fields/AudioAssetFields.php create mode 100644 src/FacebookAds/Object/Fields/AudioIsrcFields.php create mode 100644 src/FacebookAds/Object/Fields/AudioReleaseFields.php create mode 100644 src/FacebookAds/Object/Fields/AudioVisualReferenceMatchFields.php create mode 100644 src/FacebookAds/Object/Fields/AuthLinkFields.php create mode 100644 src/FacebookAds/Object/Fields/BAPIDomainFields.php create mode 100644 src/FacebookAds/Object/Fields/BCPCampaignFields.php create mode 100644 src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php create mode 100644 src/FacebookAds/Object/Fields/BespokePartnerGuidanceLaserFields.php create mode 100644 src/FacebookAds/Object/Fields/BidScheduleFields.php create mode 100644 src/FacebookAds/Object/Fields/BizInboxOffsiteEmailAccountFields.php create mode 100644 src/FacebookAds/Object/Fields/BlindPigFields.php create mode 100644 src/FacebookAds/Object/Fields/BlockedUserInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/BrandSafetyDownloadableFields.php create mode 100644 src/FacebookAds/Object/Fields/BrandedContentAdErrorFields.php create mode 100644 src/FacebookAds/Object/Fields/BrandedContentEligibleSponsorIDsFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessAdsReportingReportSpecsFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessAdvertisableApplicationsResultFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessAgreementFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessCreativeFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessCreativeInsightsFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessFranchiseConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessImageTBusinessFolderPathItemFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessMediaAdPlacementValidationResultFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessObjectFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessObjectTransferOwnershipAgreementFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessProductCatalogTOSFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessProjectFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessRequestFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessSettingLogsDataFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessTagFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessTrafficAnalysisReportFields.php create mode 100644 src/FacebookAds/Object/Fields/BusinessVideoTBusinessFolderPathItemFields.php create mode 100644 src/FacebookAds/Object/Fields/CASSSetupOfflineEventSetProgressFields.php create mode 100644 src/FacebookAds/Object/Fields/CPASAdCreationTemplateFields.php create mode 100644 src/FacebookAds/Object/Fields/CPASLsbImageBankFields.php create mode 100644 src/FacebookAds/Object/Fields/CPASParentCatalogSettingsFields.php create mode 100644 src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php create mode 100644 src/FacebookAds/Object/Fields/CPASSetupFields.php create mode 100644 src/FacebookAds/Object/Fields/CPASSetupPageStructureProgressFields.php create mode 100644 src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/CTXOptimizationEligibilityFields.php create mode 100644 src/FacebookAds/Object/Fields/CalibratorExistingRuleFields.php create mode 100644 src/FacebookAds/Object/Fields/CallAdsPhoneDataFields.php create mode 100644 src/FacebookAds/Object/Fields/CampaignActionsDataFields.php create mode 100644 src/FacebookAds/Object/Fields/CanvasTemplateFields.php create mode 100644 src/FacebookAds/Object/Fields/CatalogItemOverrideFields.php create mode 100644 src/FacebookAds/Object/Fields/CatalogItemRejectionReasonsFields.php create mode 100644 src/FacebookAds/Object/Fields/CatalogItemValidationErrorListFields.php create mode 100644 src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php create mode 100644 src/FacebookAds/Object/Fields/CatalogWebsiteOnboardingSettingsFields.php create mode 100644 src/FacebookAds/Object/Fields/CatalogWebsiteSettingsFields.php create mode 100644 src/FacebookAds/Object/Fields/ChinaBusinessOnboardingVettingRequestFields.php create mode 100644 src/FacebookAds/Object/Fields/CloudbridgeDatasetStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/CollaborativeAdsPartnerBusinessesFields.php create mode 100644 src/FacebookAds/Object/Fields/ColumnSuggestionsFields.php create mode 100644 src/FacebookAds/Object/Fields/ContactsMessengerSyncConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/ContentDeliveryReportFields.php create mode 100644 src/FacebookAds/Object/Fields/ConversionHealthKPIFields.php create mode 100644 src/FacebookAds/Object/Fields/CopyrightAttributionInsightsFields.php create mode 100644 src/FacebookAds/Object/Fields/CopyrightAudioAssetFields.php create mode 100644 src/FacebookAds/Object/Fields/CopyrightMediaMisuseFields.php create mode 100644 src/FacebookAds/Object/Fields/CreativeAssetTagFields.php create mode 100644 src/FacebookAds/Object/Fields/CreatorAssetCreativeFields.php create mode 100644 src/FacebookAds/Object/Fields/CustomAudienceCapabilitiesFields.php create mode 100644 src/FacebookAds/Object/Fields/CustomAudienceSharedAccountCampaignInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/CustomConversionActivitiesFields.php create mode 100644 src/FacebookAds/Object/Fields/DeliveryInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/DeliveryStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/DirectDebitFields.php create mode 100644 src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php create mode 100644 src/FacebookAds/Object/Fields/DomainFields.php create mode 100644 src/FacebookAds/Object/Fields/DraftPostFields.php create mode 100644 src/FacebookAds/Object/Fields/DynamicARMetadataFields.php create mode 100644 src/FacebookAds/Object/Fields/DynamicContentSetFields.php create mode 100644 src/FacebookAds/Object/Fields/DynamicItemDisplayBundleFields.php create mode 100644 src/FacebookAds/Object/Fields/DynamicItemDisplayBundleFolderFields.php create mode 100644 src/FacebookAds/Object/Fields/EducationExperienceFields.php create mode 100644 src/FacebookAds/Object/Fields/EmailImportFields.php create mode 100644 src/FacebookAds/Object/Fields/EndStudyCriteriaFields.php create mode 100644 src/FacebookAds/Object/Fields/EntWithSponsorFields.php create mode 100644 src/FacebookAds/Object/Fields/EventExternalTicketInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/EventRegistrationSettingFields.php create mode 100644 src/FacebookAds/Object/Fields/EventTicketSettingFields.php create mode 100644 src/FacebookAds/Object/Fields/EventTicketTierFields.php create mode 100644 src/FacebookAds/Object/Fields/EventTourFields.php create mode 100644 src/FacebookAds/Object/Fields/ExpirablePostFields.php create mode 100644 src/FacebookAds/Object/Fields/ExtendedCreditApplicationFields.php create mode 100644 src/FacebookAds/Object/Fields/ExtendedCreditEmailFields.php create mode 100644 src/FacebookAds/Object/Fields/ExtendedCreditInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/ExternalEventSourceCPASEventsDebuggingFields.php create mode 100644 src/FacebookAds/Object/Fields/ExternalEventSourceCPASEventsDebuggingInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/ExternalEventSourceDAStatsResultFields.php create mode 100644 src/FacebookAds/Object/Fields/ExternalMerchantSettingsFields.php rename src/FacebookAds/Object/Fields/{DatasetFields.php => FAMEKumoFields.php} (93%) create mode 100644 src/FacebookAds/Object/Fields/FBImageCopyrightMatchFields.php create mode 100644 src/FacebookAds/Object/Fields/FBLiteToNTTransitionsFields.php create mode 100644 src/FacebookAds/Object/Fields/FBPageAndInstagramAccountFields.php create mode 100644 src/FacebookAds/Object/Fields/FBPayButtonLoginFields.php create mode 100644 src/FacebookAds/Object/Fields/FantasyGameFields.php create mode 100644 src/FacebookAds/Object/Fields/FavoriteCatalogFields.php create mode 100644 src/FacebookAds/Object/Fields/FinanceObjectFields.php create mode 100644 src/FacebookAds/Object/Fields/FranchiseProgramFields.php create mode 100644 src/FacebookAds/Object/Fields/FranchiseProgramMemberFields.php create mode 100644 src/FacebookAds/Object/Fields/GenericVideoAssetFields.php create mode 100644 src/FacebookAds/Object/Fields/GeoGatingPolicyFields.php create mode 100644 src/FacebookAds/Object/Fields/HoursFields.php create mode 100644 src/FacebookAds/Object/Fields/IGAccessTokenForIGOnlyAPIFields.php create mode 100644 src/FacebookAds/Object/Fields/IGBoostMediaAdFields.php create mode 100644 src/FacebookAds/Object/Fields/IGMediaBoostEligibilityInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php create mode 100644 src/FacebookAds/Object/Fields/IGProductTaggingInvalidationErrorFields.php create mode 100644 src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php create mode 100644 src/FacebookAds/Object/Fields/IGResumableVideoUploadStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php create mode 100644 src/FacebookAds/Object/Fields/IPObjectFields.php create mode 100644 src/FacebookAds/Object/Fields/ImageCopyrightDisputeFields.php create mode 100644 src/FacebookAds/Object/Fields/ImageReferenceMatchFields.php create mode 100644 src/FacebookAds/Object/Fields/InstagramBoostableMediaForAccessTokenFields.php create mode 100644 src/FacebookAds/Object/Fields/InstagramRelatedProductTagsFields.php create mode 100644 src/FacebookAds/Object/Fields/InstantArticleCTAFields.php create mode 100644 src/FacebookAds/Object/Fields/InstantArticleInsightsQueryResultFields.php create mode 100644 src/FacebookAds/Object/Fields/KeywordDeliveryReportFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenDataDraftFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenDirectCRMIntegrationConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenThankYouPageGatedFileFields.php create mode 100644 src/FacebookAds/Object/Fields/LeadGenThankYouPageGatedPromoFields.php create mode 100644 src/FacebookAds/Object/Fields/LinkedInstagramAccountDataFields.php create mode 100644 src/FacebookAds/Object/Fields/LocationBasedItemFields.php create mode 100644 src/FacebookAds/Object/Fields/LoomConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/MCExperienceConfigForApiFields.php create mode 100644 src/FacebookAds/Object/Fields/MIXInsightsResultFields.php create mode 100644 src/FacebookAds/Object/Fields/MarketingMessageTargetingFields.php create mode 100644 src/FacebookAds/Object/Fields/McomInvoiceBankAccountFields.php create mode 100644 src/FacebookAds/Object/Fields/McomInvoiceDetailsFields.php create mode 100644 src/FacebookAds/Object/Fields/McomInvoiceListsFields.php create mode 100644 src/FacebookAds/Object/Fields/McomInvoiceStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/McomOnboardingStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/McomPayoutsFields.php create mode 100644 src/FacebookAds/Object/Fields/MeasurementReportFields.php create mode 100644 src/FacebookAds/Object/Fields/MediaCopyrightAttributionFields.php create mode 100644 src/FacebookAds/Object/Fields/MediaCopyrightUpdateRecordFields.php create mode 100644 src/FacebookAds/Object/Fields/MerchantComplianceFields.php create mode 100644 src/FacebookAds/Object/Fields/MerchantReportFields.php create mode 100644 src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/MessengerCallSettingsFields.php create mode 100644 src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php create mode 100644 src/FacebookAds/Object/Fields/MusicWorkCopyrightFields.php create mode 100644 src/FacebookAds/Object/Fields/NegativeKeywordListFields.php create mode 100644 src/FacebookAds/Object/Fields/OfflineConversionDataSetActivitiesFields.php create mode 100644 src/FacebookAds/Object/Fields/OfflineConversionDataSetOptimizationStatusFields.php create mode 100644 src/FacebookAds/Object/Fields/OfflineProductItemFields.php create mode 100644 src/FacebookAds/Object/Fields/OfflineTermsOfServiceFields.php create mode 100644 src/FacebookAds/Object/Fields/OffsiteSignalContainerBusinessObjectFields.php create mode 100644 src/FacebookAds/Object/Fields/OrderIDAttributionsFields.php create mode 100644 src/FacebookAds/Object/Fields/OrganizationFields.php create mode 100644 src/FacebookAds/Object/Fields/OwnedDomainFields.php create mode 100644 src/FacebookAds/Object/Fields/P2MInvoicePaymentsFields.php create mode 100644 src/FacebookAds/Object/Fields/PageAppWithLeadsAccessFields.php create mode 100644 src/FacebookAds/Object/Fields/PageBroadcastFields.php create mode 100644 src/FacebookAds/Object/Fields/PageCTSTopicFields.php create mode 100644 src/FacebookAds/Object/Fields/PageCTXBudgetSimilarAdvertiserBudgetRecommendationFields.php create mode 100644 src/FacebookAds/Object/Fields/PageCTXDefaultGreetingTextFields.php create mode 100644 src/FacebookAds/Object/Fields/PageCrmsWithLeadsAccessFields.php create mode 100644 src/FacebookAds/Object/Fields/PageDirectIntegrationCrmWithLeadsAccessFields.php create mode 100644 src/FacebookAds/Object/Fields/PageGameBotQuotaInformationFields.php create mode 100644 src/FacebookAds/Object/Fields/PageGetStartedNullstateFields.php create mode 100644 src/FacebookAds/Object/Fields/PageInsightsAsyncExportRunFields.php create mode 100644 src/FacebookAds/Object/Fields/PageLeadsAccessConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/PageLocationsBreakdownFields.php create mode 100644 src/FacebookAds/Object/Fields/PageMessageResponsivenessMetricsFields.php create mode 100644 src/FacebookAds/Object/Fields/PagePartnerWithLeadsAccessFields.php create mode 100644 src/FacebookAds/Object/Fields/PagePublisherFields.php create mode 100644 src/FacebookAds/Object/Fields/PageUserPermissionsFields.php create mode 100644 src/FacebookAds/Object/Fields/PageUserWithLeadsAccessFields.php create mode 100644 src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php create mode 100644 src/FacebookAds/Object/Fields/PanelAPIReportFields.php create mode 100644 src/FacebookAds/Object/Fields/ParentCatalogReportFields.php create mode 100644 src/FacebookAds/Object/Fields/PartnerAccountLinkingFields.php create mode 100644 src/FacebookAds/Object/Fields/PartnerCategoryFields.php create mode 100644 src/FacebookAds/Object/Fields/PartnerIntegrationLinkedFields.php create mode 100644 src/FacebookAds/Object/Fields/PartnershipAdContentSearchMediaFields.php create mode 100644 src/FacebookAds/Object/Fields/PartnershipAdsIdentityFields.php create mode 100644 src/FacebookAds/Object/Fields/PaymentRequestDetailsFields.php create mode 100644 src/FacebookAds/Object/Fields/PersonalAdsPersonaFields.php create mode 100644 src/FacebookAds/Object/Fields/PhotoMetadataFields.php create mode 100644 src/FacebookAds/Object/Fields/PlaceTagFields.php create mode 100644 src/FacebookAds/Object/Fields/PlatformSessionKeyFields.php create mode 100644 src/FacebookAds/Object/Fields/PreapprovalReviewFields.php create mode 100644 src/FacebookAds/Object/Fields/PremiumMusicVideoFields.php create mode 100644 src/FacebookAds/Object/Fields/PrivacyOptionFields.php create mode 100644 src/FacebookAds/Object/Fields/PrivateComputationEnvironmentFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductCatalogFacetsFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductCatalogImageSettingsInternalFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductCatalogLocalizationSettingsFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductCatalogUserActionsFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductCatalogUserPermissionsFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductCatalogUserTasksFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductDaEventSamplesBatchFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductFeedRulePreviewSampleFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductFeedUploadProgressFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductItemInsightsFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductItemInvalidationErrorFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductItemLandingPageDataFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductItemOfferFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductItemShippingFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductItemSubscriptionInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductItemUnitPriceFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductSetTaxonCategoryFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductSetUsageFields.php create mode 100644 src/FacebookAds/Object/Fields/ProductVisualVariantFields.php create mode 100644 src/FacebookAds/Object/Fields/PublisherDeliveryReportFields.php create mode 100644 src/FacebookAds/Object/Fields/PublisherWhiteListFields.php create mode 100644 src/FacebookAds/Object/Fields/RecommendedIGMediaFields.php create mode 100644 src/FacebookAds/Object/Fields/RecommendedPagePostFields.php create mode 100644 src/FacebookAds/Object/Fields/RegionalRegulationIdentitiesFields.php create mode 100644 src/FacebookAds/Object/Fields/ReportingAudienceFields.php create mode 100644 src/FacebookAds/Object/Fields/ResearchPollStudyFields.php create mode 100644 src/FacebookAds/Object/Fields/ResellerGuidanceFields.php create mode 100644 src/FacebookAds/Object/Fields/RightsManagerDataExportFields.php create mode 100644 src/FacebookAds/Object/Fields/RightsManagerInsightsFields.php create mode 100644 src/FacebookAds/Object/Fields/RobotFields.php create mode 100644 src/FacebookAds/Object/Fields/SalesRightsInventoryManagementFields.php create mode 100644 src/FacebookAds/Object/Fields/ScheduledPostFields.php create mode 100644 src/FacebookAds/Object/Fields/ScimCompanyUserPhoneNumberFields.php create mode 100644 src/FacebookAds/Object/Fields/ShadowIGMediaBoostedInsightsResultFields.php create mode 100644 src/FacebookAds/Object/Fields/SignalsIWLExtractorFields.php create mode 100644 src/FacebookAds/Object/Fields/SingleOwnerAdditionalProfileFields.php create mode 100644 src/FacebookAds/Object/Fields/SiteLinkFields.php create mode 100644 src/FacebookAds/Object/Fields/SlicedEventSourceGroupFields.php create mode 100644 src/FacebookAds/Object/Fields/SmartPixelInsightsFields.php create mode 100644 src/FacebookAds/Object/Fields/SocialWifiSiteFields.php create mode 100644 src/FacebookAds/Object/Fields/SplitTestConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/StatusFields.php create mode 100644 src/FacebookAds/Object/Fields/StreamFilterFields.php create mode 100644 src/FacebookAds/Object/Fields/TaggableSubjectFields.php create mode 100644 src/FacebookAds/Object/Fields/TargetingGeoLocationLocationExpansionFields.php create mode 100644 src/FacebookAds/Object/Fields/TargetingMarketingMessageChannelsFields.php create mode 100644 src/FacebookAds/Object/Fields/ThirdPartyMeasurementReportDatasetFields.php create mode 100644 src/FacebookAds/Object/Fields/ThirdPartyPartnerLiftRequestFields.php create mode 100644 src/FacebookAds/Object/Fields/ThirdPartyPartnerPanelRequestFields.php create mode 100644 src/FacebookAds/Object/Fields/ThirdPartyPartnerPanelScheduledFields.php create mode 100644 src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php create mode 100644 src/FacebookAds/Object/Fields/TimeSuggestionFields.php create mode 100644 src/FacebookAds/Object/Fields/TimezoneOffsetFields.php create mode 100644 src/FacebookAds/Object/Fields/TransactableItemFields.php create mode 100644 src/FacebookAds/Object/Fields/TransactionFields.php create mode 100644 src/FacebookAds/Object/Fields/UniqueAdCreativeFields.php create mode 100644 src/FacebookAds/Object/Fields/UserContextFields.php create mode 100644 src/FacebookAds/Object/Fields/UserMobileConfigFields.php create mode 100644 src/FacebookAds/Object/Fields/UserNotificationSeenStateDataFields.php create mode 100644 src/FacebookAds/Object/Fields/UserPaymentMethodsInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/UserPaymentModulesOptionsFields.php create mode 100644 src/FacebookAds/Object/Fields/UserSetReportingRootFields.php create mode 100644 src/FacebookAds/Object/Fields/VideoAssetFields.php create mode 100644 src/FacebookAds/Object/Fields/VideoCopyrightMatchFields.php create mode 100644 src/FacebookAds/Object/Fields/VideoGroupFields.php create mode 100644 src/FacebookAds/Object/Fields/VideoMetricsReportFields.php create mode 100644 src/FacebookAds/Object/Fields/VideoStatsFields.php create mode 100644 src/FacebookAds/Object/Fields/VideoTextQuestionFields.php create mode 100644 src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php create mode 100644 src/FacebookAds/Object/Fields/WITUserFields.php create mode 100644 src/FacebookAds/Object/Fields/WearableDevicePublicKeyFields.php create mode 100644 src/FacebookAds/Object/Fields/WebPublisherFields.php create mode 100644 src/FacebookAds/Object/Fields/WebsiteCreativeAssetSourceFields.php create mode 100644 src/FacebookAds/Object/Fields/WebsiteCreativeAssetSuggestionsFields.php create mode 100644 src/FacebookAds/Object/Fields/WhatsAppPaymentCapabilitiesFields.php create mode 100644 src/FacebookAds/Object/Fields/WhatsappSubscribedAppsInfoFields.php create mode 100644 src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php create mode 100644 src/FacebookAds/Object/Fields/WifiInformationFields.php create mode 100644 src/FacebookAds/Object/Fields/WithAsset3DFields.php create mode 100644 src/FacebookAds/Object/Fields/WoodhengeSupporterFields.php create mode 100644 src/FacebookAds/Object/Fields/WorkAccessCodeFields.php create mode 100644 src/FacebookAds/Object/Fields/WorkExperienceFields.php create mode 100644 src/FacebookAds/Object/Fields/WorkSkillFields.php create mode 100644 src/FacebookAds/Object/Fields/WorkUserBadgesFields.php create mode 100644 src/FacebookAds/Object/FinanceObject.php create mode 100644 src/FacebookAds/Object/FranchiseProgram.php create mode 100644 src/FacebookAds/Object/FranchiseProgramMember.php create mode 100644 src/FacebookAds/Object/GenericVideoAsset.php create mode 100644 src/FacebookAds/Object/GeoGatingPolicy.php create mode 100644 src/FacebookAds/Object/Hours.php create mode 100644 src/FacebookAds/Object/IGAccessTokenForIGOnlyAPI.php create mode 100644 src/FacebookAds/Object/IGBoostMediaAd.php create mode 100644 src/FacebookAds/Object/IGMediaBoostEligibilityInfo.php create mode 100644 src/FacebookAds/Object/IGMediaForIGOnlyAPI.php create mode 100644 src/FacebookAds/Object/IGProductTaggingInvalidationError.php create mode 100644 src/FacebookAds/Object/IGRefreshAccessTokenForIGOnlyAPI.php create mode 100644 src/FacebookAds/Object/IGResumableVideoUploadStatus.php create mode 100644 src/FacebookAds/Object/IGUserForIGOnlyAPI.php create mode 100644 src/FacebookAds/Object/IPObject.php create mode 100644 src/FacebookAds/Object/ImageCopyrightDispute.php create mode 100644 src/FacebookAds/Object/ImageReferenceMatch.php create mode 100644 src/FacebookAds/Object/InstagramBoostableMediaForAccessToken.php create mode 100644 src/FacebookAds/Object/InstagramRelatedProductTags.php create mode 100644 src/FacebookAds/Object/InstantArticleCTA.php create mode 100644 src/FacebookAds/Object/InstantArticleInsightsQueryResult.php create mode 100644 src/FacebookAds/Object/KeywordDeliveryReport.php create mode 100644 src/FacebookAds/Object/LeadGenDataDraft.php create mode 100644 src/FacebookAds/Object/LeadGenDirectCRMIntegrationConfig.php create mode 100644 src/FacebookAds/Object/LeadGenFormPreviewDetails.php create mode 100644 src/FacebookAds/Object/LeadGenThankYouPageGatedFile.php create mode 100644 src/FacebookAds/Object/LeadGenThankYouPageGatedPromo.php create mode 100644 src/FacebookAds/Object/LinkedInstagramAccountData.php create mode 100644 src/FacebookAds/Object/LocationBasedItem.php create mode 100644 src/FacebookAds/Object/LoomConfig.php create mode 100644 src/FacebookAds/Object/MCExperienceConfigForApi.php create mode 100644 src/FacebookAds/Object/MIXInsightsResult.php create mode 100644 src/FacebookAds/Object/MarketingMessageTargeting.php create mode 100644 src/FacebookAds/Object/McomInvoiceBankAccount.php create mode 100644 src/FacebookAds/Object/McomInvoiceDetails.php create mode 100644 src/FacebookAds/Object/McomInvoiceLists.php create mode 100644 src/FacebookAds/Object/McomInvoiceStatus.php create mode 100644 src/FacebookAds/Object/McomOnboardingStatus.php create mode 100644 src/FacebookAds/Object/McomPayouts.php create mode 100644 src/FacebookAds/Object/MeasurementReport.php create mode 100644 src/FacebookAds/Object/MediaCopyrightAttribution.php create mode 100644 src/FacebookAds/Object/MediaCopyrightUpdateRecord.php create mode 100644 src/FacebookAds/Object/MerchantCompliance.php create mode 100644 src/FacebookAds/Object/MerchantReport.php create mode 100644 src/FacebookAds/Object/MessagingAppsInfo.php create mode 100644 src/FacebookAds/Object/MessengerCallSettings.php create mode 100644 src/FacebookAds/Object/MessengerDestinationPageWelcomeMessage.php create mode 100644 src/FacebookAds/Object/MusicWorkCopyright.php create mode 100644 src/FacebookAds/Object/NegativeKeywordList.php create mode 100644 src/FacebookAds/Object/OfflineConversionDataSetActivities.php create mode 100644 src/FacebookAds/Object/OfflineConversionDataSetOptimizationStatus.php create mode 100644 src/FacebookAds/Object/OfflineProductItem.php create mode 100644 src/FacebookAds/Object/OfflineTermsOfService.php create mode 100644 src/FacebookAds/Object/OffsiteSignalContainerBusinessObject.php create mode 100644 src/FacebookAds/Object/OrderIDAttributions.php create mode 100644 src/FacebookAds/Object/Organization.php create mode 100644 src/FacebookAds/Object/OwnedDomain.php create mode 100644 src/FacebookAds/Object/P2MInvoicePayments.php create mode 100644 src/FacebookAds/Object/PageAppWithLeadsAccess.php create mode 100644 src/FacebookAds/Object/PageBroadcast.php create mode 100644 src/FacebookAds/Object/PageCTSTopic.php create mode 100644 src/FacebookAds/Object/PageCTXBudgetSimilarAdvertiserBudgetRecommendation.php create mode 100644 src/FacebookAds/Object/PageCTXDefaultGreetingText.php create mode 100644 src/FacebookAds/Object/PageCrmsWithLeadsAccess.php create mode 100644 src/FacebookAds/Object/PageDirectIntegrationCrmWithLeadsAccess.php create mode 100644 src/FacebookAds/Object/PageGameBotQuotaInformation.php create mode 100644 src/FacebookAds/Object/PageGetStartedNullstate.php create mode 100644 src/FacebookAds/Object/PageInsightsAsyncExportRun.php create mode 100644 src/FacebookAds/Object/PageLeadsAccessConfig.php create mode 100644 src/FacebookAds/Object/PageLocationsBreakdown.php create mode 100644 src/FacebookAds/Object/PageMessageResponsivenessMetrics.php create mode 100644 src/FacebookAds/Object/PagePartnerWithLeadsAccess.php create mode 100644 src/FacebookAds/Object/PagePublisher.php create mode 100644 src/FacebookAds/Object/PageUserPermissions.php create mode 100644 src/FacebookAds/Object/PageUserWithLeadsAccess.php create mode 100644 src/FacebookAds/Object/PageVideosYouCanUse.php create mode 100644 src/FacebookAds/Object/PanelAPIReport.php create mode 100644 src/FacebookAds/Object/ParentCatalogReport.php create mode 100644 src/FacebookAds/Object/PartnerAccountLinking.php create mode 100644 src/FacebookAds/Object/PartnerCategory.php create mode 100644 src/FacebookAds/Object/PartnerIntegrationLinked.php create mode 100644 src/FacebookAds/Object/PartnershipAdContentSearchMedia.php create mode 100644 src/FacebookAds/Object/PartnershipAdsIdentity.php create mode 100644 src/FacebookAds/Object/PaymentRequestDetails.php create mode 100644 src/FacebookAds/Object/PersonalAdsPersona.php create mode 100644 src/FacebookAds/Object/PhotoMetadata.php create mode 100644 src/FacebookAds/Object/PlaceTag.php create mode 100644 src/FacebookAds/Object/PlatformSessionKey.php create mode 100644 src/FacebookAds/Object/PreapprovalReview.php create mode 100644 src/FacebookAds/Object/PremiumMusicVideo.php create mode 100644 src/FacebookAds/Object/PrivacyOption.php create mode 100644 src/FacebookAds/Object/PrivateComputationEnvironment.php create mode 100644 src/FacebookAds/Object/ProductCatalogExampleFeed.php create mode 100644 src/FacebookAds/Object/ProductCatalogFacets.php create mode 100644 src/FacebookAds/Object/ProductCatalogImageSettingsInternal.php create mode 100644 src/FacebookAds/Object/ProductCatalogLocalizationSettings.php create mode 100644 src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php create mode 100644 src/FacebookAds/Object/ProductCatalogUserActions.php create mode 100644 src/FacebookAds/Object/ProductCatalogUserPermissions.php create mode 100644 src/FacebookAds/Object/ProductCatalogUserTasks.php create mode 100644 src/FacebookAds/Object/ProductDaEventSamplesBatch.php create mode 100644 src/FacebookAds/Object/ProductFeedRulePreviewSample.php create mode 100644 src/FacebookAds/Object/ProductFeedUploadProgress.php create mode 100644 src/FacebookAds/Object/ProductItemInsights.php create mode 100644 src/FacebookAds/Object/ProductItemInvalidationError.php create mode 100644 src/FacebookAds/Object/ProductItemLandingPageData.php create mode 100644 src/FacebookAds/Object/ProductItemOffer.php create mode 100644 src/FacebookAds/Object/ProductItemShipping.php create mode 100644 src/FacebookAds/Object/ProductItemSubscriptionInfo.php create mode 100644 src/FacebookAds/Object/ProductItemUnitPrice.php create mode 100644 src/FacebookAds/Object/ProductSetTaxonCategory.php create mode 100644 src/FacebookAds/Object/ProductSetUsage.php create mode 100644 src/FacebookAds/Object/ProductVisualVariant.php create mode 100644 src/FacebookAds/Object/PublisherDeliveryReport.php create mode 100644 src/FacebookAds/Object/PublisherWhiteList.php create mode 100644 src/FacebookAds/Object/RecommendedIGMedia.php create mode 100644 src/FacebookAds/Object/RecommendedPagePost.php create mode 100644 src/FacebookAds/Object/RegionalRegulationIdentities.php create mode 100644 src/FacebookAds/Object/ReportingAudience.php create mode 100644 src/FacebookAds/Object/ResearchPollStudy.php create mode 100644 src/FacebookAds/Object/ResellerGuidance.php create mode 100644 src/FacebookAds/Object/RightsManagerDataExport.php create mode 100644 src/FacebookAds/Object/RightsManagerInsights.php create mode 100644 src/FacebookAds/Object/Robot.php create mode 100644 src/FacebookAds/Object/SalesRightsInventoryManagement.php create mode 100644 src/FacebookAds/Object/ScheduledPost.php create mode 100644 src/FacebookAds/Object/ScimCompanyUserPhoneNumber.php create mode 100644 src/FacebookAds/Object/ShadowIGMediaBoostedInsightsResult.php create mode 100644 src/FacebookAds/Object/SignalsIWLExtractor.php create mode 100644 src/FacebookAds/Object/SingleOwnerAdditionalProfile.php create mode 100644 src/FacebookAds/Object/SiteLink.php create mode 100644 src/FacebookAds/Object/SlicedEventSourceGroup.php create mode 100644 src/FacebookAds/Object/SmartPixelInsights.php create mode 100644 src/FacebookAds/Object/SocialWifiSite.php create mode 100644 src/FacebookAds/Object/SplitTestConfig.php create mode 100644 src/FacebookAds/Object/Status.php create mode 100644 src/FacebookAds/Object/StreamFilter.php create mode 100644 src/FacebookAds/Object/TaggableSubject.php create mode 100644 src/FacebookAds/Object/TargetingGeoLocationLocationExpansion.php create mode 100644 src/FacebookAds/Object/TargetingMarketingMessageChannels.php create mode 100644 src/FacebookAds/Object/ThirdPartyMeasurementReportDataset.php create mode 100644 src/FacebookAds/Object/ThirdPartyPartnerLiftRequest.php create mode 100644 src/FacebookAds/Object/ThirdPartyPartnerPanelRequest.php create mode 100644 src/FacebookAds/Object/ThirdPartyPartnerPanelScheduled.php create mode 100644 src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php create mode 100644 src/FacebookAds/Object/TimeSuggestion.php create mode 100644 src/FacebookAds/Object/TimezoneOffset.php create mode 100644 src/FacebookAds/Object/TransactableItem.php create mode 100644 src/FacebookAds/Object/Transaction.php create mode 100644 src/FacebookAds/Object/UniqueAdCreative.php create mode 100644 src/FacebookAds/Object/UserContext.php create mode 100644 src/FacebookAds/Object/UserMobileConfig.php create mode 100644 src/FacebookAds/Object/UserNotificationSeenStateData.php create mode 100644 src/FacebookAds/Object/UserPaymentMethodsInfo.php create mode 100644 src/FacebookAds/Object/UserPaymentModulesOptions.php create mode 100644 src/FacebookAds/Object/UserSetReportingRoot.php create mode 100644 src/FacebookAds/Object/Values/AdAccountBusinessConstraintsStatusValues.php create mode 100644 src/FacebookAds/Object/Values/AdAccountOptimizationGoalsAEMv2EligibilityOptimizationGoalValues.php create mode 100644 src/FacebookAds/Object/Values/AdAccountUserSettingsSydCampaignTrendsObjectiveValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeLinkDataCustomOverlaySpecBackgroundColorValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeLinkDataCustomOverlaySpecFontValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeLinkDataCustomOverlaySpecOptionValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeLinkDataCustomOverlaySpecPositionValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeLinkDataCustomOverlaySpecTemplateValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeLinkDataCustomOverlaySpecTextColorValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeLinkDataMomentTypeValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeVideoDataCustomOverlaySpecBackgroundOpacityValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeVideoDataCustomOverlaySpecOptionValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeVideoDataCustomOverlaySpecPositionValues.php create mode 100644 src/FacebookAds/Object/Values/AdCreativeVideoDataCustomOverlaySpecTemplateValues.php create mode 100644 src/FacebookAds/Object/Values/AdSetRegionalRegulatedCategoriesValues.php create mode 100644 src/FacebookAds/Object/Values/AdoptablePetImageFetchStatusValues.php create mode 100644 src/FacebookAds/Object/Values/AdoptablePetVisibilityValues.php create mode 100644 src/FacebookAds/Object/Values/AdsNamingTemplateLevelValues.php create mode 100644 src/FacebookAds/Object/Values/AdsPixelPermittedTasksValues.php create mode 100644 src/FacebookAds/Object/Values/ApplicationOwnerPermissionsValues.php create mode 100644 src/FacebookAds/Object/Values/ApplicationPartnerPermissionsValues.php create mode 100644 src/FacebookAds/Object/Values/BusinessAgreementRequestStatusValues.php create mode 100644 src/FacebookAds/Object/Values/BusinessTimezoneIdValues.php create mode 100644 src/FacebookAds/Object/Values/CatalogItemRejectionReasonsCapabilityValues.php create mode 100644 src/FacebookAds/Object/Values/CreatorAssetCreativeModerationStatusValues.php create mode 100644 src/FacebookAds/Object/Values/CustomConversionActionSourceTypeValues.php create mode 100644 src/FacebookAds/Object/Values/InsightsResultMetricValues.php create mode 100644 src/FacebookAds/Object/Values/LocationBasedItemImageFetchStatusValues.php create mode 100644 src/FacebookAds/Object/Values/LocationBasedItemVisibilityValues.php create mode 100644 src/FacebookAds/Object/Values/OfflineProductItemImageFetchStatusValues.php create mode 100644 src/FacebookAds/Object/Values/OfflineProductItemVisibilityValues.php create mode 100644 src/FacebookAds/Object/Values/ProductItemLandingPageDataAvailabilityValues.php create mode 100644 src/FacebookAds/Object/Values/ThirdPartyPartnerLiftRequestStatusValues.php create mode 100644 src/FacebookAds/Object/Values/ThirdPartyPartnerPanelRequestStatusValues.php rename src/FacebookAds/Object/Values/{OfflineConversionDataSetPermittedRolesValues.php => ThirdPartyPartnerPanelRequestStudyTypeValues.php} (69%) create mode 100644 src/FacebookAds/Object/Values/ThirdPartyPartnerPanelScheduledStatusValues.php rename src/FacebookAds/Object/Values/{OfflineConversionDataSetRelationshipTypeValues.php => ThirdPartyPartnerPanelScheduledStudyTypeValues.php} (65%) create mode 100644 src/FacebookAds/Object/Values/ThirdPartyPartnerViewabilityRequestStatusValues.php create mode 100644 src/FacebookAds/Object/Values/TransactableItemImageFetchStatusValues.php create mode 100644 src/FacebookAds/Object/Values/TransactableItemVisibilityValues.php create mode 100644 src/FacebookAds/Object/Values/TransactionProductTypeValues.php create mode 100644 src/FacebookAds/Object/Values/VideoCopyrightMatchActionReasonValues.php create mode 100644 src/FacebookAds/Object/Values/VideoCopyrightMatchActionValues.php create mode 100644 src/FacebookAds/Object/Values/VideoCopyrightMatchMatchContentTypeValues.php create mode 100644 src/FacebookAds/Object/Values/WhatsAppBusinessAccountDisplayFormatValues.php create mode 100644 src/FacebookAds/Object/VideoAsset.php create mode 100644 src/FacebookAds/Object/VideoCopyrightMatch.php create mode 100644 src/FacebookAds/Object/VideoGroup.php create mode 100644 src/FacebookAds/Object/VideoMetricsReport.php create mode 100644 src/FacebookAds/Object/VideoStats.php create mode 100644 src/FacebookAds/Object/VideoTextQuestion.php create mode 100644 src/FacebookAds/Object/VidwallaBroadcast.php create mode 100644 src/FacebookAds/Object/WITUser.php create mode 100644 src/FacebookAds/Object/WearableDevicePublicKey.php create mode 100644 src/FacebookAds/Object/WebPublisher.php create mode 100644 src/FacebookAds/Object/WebsiteCreativeAssetSource.php create mode 100644 src/FacebookAds/Object/WebsiteCreativeAssetSuggestions.php create mode 100644 src/FacebookAds/Object/WhatsAppPaymentCapabilities.php create mode 100644 src/FacebookAds/Object/WhatsappSubscribedAppsInfo.php create mode 100644 src/FacebookAds/Object/WhitehatFBDLRun.php create mode 100644 src/FacebookAds/Object/WifiInformation.php create mode 100644 src/FacebookAds/Object/WithAsset3D.php create mode 100644 src/FacebookAds/Object/WoodhengeSupporter.php create mode 100644 src/FacebookAds/Object/WorkAccessCode.php create mode 100644 src/FacebookAds/Object/WorkExperience.php create mode 100644 src/FacebookAds/Object/WorkSkill.php create mode 100644 src/FacebookAds/Object/WorkUserBadges.php diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpa.php b/examples/AdAccountAdSetsPostAdSetCreateCpa.php index 159293325..9d95bf0f5 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpa.php +++ b/examples/AdAccountAdSetsPostAdSetCreateCpa.php @@ -43,8 +43,8 @@ 'name' => 'A CPA Ad Set', 'campaign_id' => '', 'daily_budget' => '5000', - 'start_time' => '2024-04-08T11:26:05-0700', - 'end_time' => '2024-04-15T11:26:05-0700', + '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', diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php index af2168288..b41a80e0a 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php +++ b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php @@ -43,8 +43,8 @@ 'name' => 'A CPA Ad Set optimized for App Events', 'campaign_id' => '', 'daily_budget' => '300', - 'start_time' => '2024-04-08T11:26:49-0700', - 'end_time' => '2024-04-15T11:26:49-0700', + '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', diff --git a/examples/AdAccountAdSetsPostCreateAdSet.php b/examples/AdAccountAdSetsPostCreateAdSet.php index 303ab57a3..1c23b3561 100644 --- a/examples/AdAccountAdSetsPostCreateAdSet.php +++ b/examples/AdAccountAdSetsPostCreateAdSet.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First AdSet', 'lifetime_budget' => '20000', - 'start_time' => '2024-04-08T11:25:19-0700', - 'end_time' => '2024-04-15T11:25:19-0700', + 'start_time' => '2024-06-18T16:38:30-0700', + 'end_time' => '2024-06-25T16:38:30-0700', 'campaign_id' => '', 'bid_amount' => '500', 'billing_event' => 'IMPRESSIONS', diff --git a/examples/AdAccountAdSetsPostDailyBudget20.php b/examples/AdAccountAdSetsPostDailyBudget20.php index 594200388..ef1a005dd 100644 --- a/examples/AdAccountAdSetsPostDailyBudget20.php +++ b/examples/AdAccountAdSetsPostDailyBudget20.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'daily_budget' => '2000', - 'start_time' => '2024-04-01T11:26:23-0700', - 'end_time' => '2024-04-08T11:26:23-0700', + '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', diff --git a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php index bb8933629..ed8368921 100644 --- a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php +++ b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'lifetime_budget' => '20000', - 'start_time' => '2024-04-01T11:26:32-0700', - 'end_time' => '2024-04-11T11:26:32-0700', + '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', diff --git a/examples/AdAccountAdSetsPostOptimizePostEngagement.php b/examples/AdAccountAdSetsPostOptimizePostEngagement.php index 7f5a38781..c6e48fe39 100644 --- a/examples/AdAccountAdSetsPostOptimizePostEngagement.php +++ b/examples/AdAccountAdSetsPostOptimizePostEngagement.php @@ -42,8 +42,8 @@ $params = array( 'name' => 'My First Adset', 'lifetime_budget' => '20000', - 'start_time' => '2024-04-01T11:26:40-0700', - 'end_time' => '2024-04-11T11:26:40-0700', + 'start_time' => '2024-06-11T16:39:52-0700', + 'end_time' => '2024-06-21T16:39:52-0700', 'campaign_id' => '', 'bid_amount' => '500', 'billing_event' => 'IMPRESSIONS', diff --git a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php b/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php index 67a44e4f8..9a215c444 100644 --- a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php +++ b/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php @@ -40,7 +40,7 @@ $fields = array( ); $params = array( - 'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1711391704)), + 'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1717544918)), ); echo json_encode((new Ad($id))->getLeads( $fields, diff --git a/examples/AdsPixelEventsPost.php b/examples/AdsPixelEventsPost.php index df944d5c3..06a104c44 100644 --- a/examples/AdsPixelEventsPost.php +++ b/examples/AdsPixelEventsPost.php @@ -39,7 +39,7 @@ $fields = array( ); $params = array( - 'data' => array(array('event_name' => 'PageView','event_time' => 1711995835,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))), + '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, diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 29cabbc16..0db45d0b0 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -9,7 +9,7 @@ namespace FacebookAds; class ApiConfig { - const APIVersion = '19.0'; - const SDKVersion = '19.0.3'; + const APIVersion = '20.0'; + const SDKVersion = '20.0.0'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/AMOneshopSettings.php b/src/FacebookAds/Object/AMOneshopSettings.php new file mode 100644 index 000000000..b3cee37b0 --- /dev/null +++ b/src/FacebookAds/Object/AMOneshopSettings.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/', - new PageSavedFilter(), + new AREffect(), 'NODE', - PageSavedFilter::getFieldsEnum()->getValues(), + AREffect::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Ad.php b/src/FacebookAds/Object/Ad.php index a974a95ac..d876e490c 100644 --- a/src/FacebookAds/Object/Ad.php +++ b/src/FacebookAds/Object/Ad.php @@ -477,6 +477,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'bid_amount' => 'int', 'conversion_domain' => 'string', 'creative' => 'AdCreative', + 'creative_asset_groups_spec' => 'Object', 'display_sequence' => 'unsigned int', 'draft_adgroup_id' => 'string', 'engagement_audience' => 'bool', diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 3a43e56d2..255a8b418 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -63,6 +63,7 @@ use FacebookAds\Object\Values\AdSetOperatorValues; use FacebookAds\Object\Values\AdSetOptimizationGoalValues; use FacebookAds\Object\Values\AdSetOptimizationSubEventValues; +use FacebookAds\Object\Values\AdSetRegionalRegulatedCategoriesValues; use FacebookAds\Object\Values\AdSetStatusValues; use FacebookAds\Object\Values\AdSetTuneForCategoryValues; use FacebookAds\Object\Values\AdStatusValues; @@ -98,6 +99,7 @@ use FacebookAds\Object\Values\CustomAudienceContentTypeValues; use FacebookAds\Object\Values\CustomAudienceCustomerFileSourceValues; use FacebookAds\Object\Values\CustomAudienceSubtypeValues; +use FacebookAds\Object\Values\CustomConversionActionSourceTypeValues; use FacebookAds\Object\Values\CustomConversionCustomEventTypeValues; use FacebookAds\Object\Values\ReachFrequencyPredictionActionValues; use FacebookAds\Object\Values\ReachFrequencyPredictionBuyingTypeValues; @@ -320,9 +322,9 @@ public function getAdSavedKeywords(array $fields = array(), array $params = arra $this->data['id'], RequestInterface::METHOD_GET, '/ad_saved_keywords', - new AbstractCrudObject(), + new AdSavedKeywords(), 'EDGE', - array(), + AdSavedKeywords::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -415,6 +417,7 @@ public function createAdCreative(array $fields = array(), array $params = array( 'call_to_action' => 'Object', 'categorization_criteria' => 'categorization_criteria_enum', 'category_media_source' => 'category_media_source_enum', + 'contextual_multi_ads' => 'map', 'degrees_of_freedom_spec' => 'map', 'destination_set_id' => 'string', 'dynamic_ad_voice' => 'dynamic_ad_voice_enum', @@ -432,7 +435,6 @@ public function createAdCreative(array $fields = array(), array $params = array( 'is_dco_internal' => 'bool', 'link_og_id' => 'string', 'link_url' => 'string', - 'messenger_sponsored_message' => 'string', 'name' => 'string', 'object_id' => 'unsigned int', 'object_story_id' => 'string', @@ -440,6 +442,7 @@ public function createAdCreative(array $fields = array(), array $params = array( 'object_type' => 'string', 'object_url' => 'string', 'omnichannel_link_spec' => 'map', + 'page_welcome_message' => 'string', 'place_page_set_id' => 'string', 'platform_customizations' => 'Object', 'playable_asset_id' => 'string', @@ -808,6 +811,7 @@ public function createAd(array $fields = array(), array $params = array(), $pend 'bid_amount' => 'int', 'conversion_domain' => 'string', 'creative' => 'AdCreative', + 'creative_asset_groups_spec' => 'Object', 'date_format' => 'string', 'display_sequence' => 'unsigned int', 'draft_adgroup_id' => 'string', @@ -855,9 +859,9 @@ public function getAdsReportingMmmReports(array $fields = array(), array $params $this->data['id'], RequestInterface::METHOD_GET, '/ads_reporting_mmm_reports', - new AbstractCrudObject(), + new AdsReportBuilderMMMReport(), 'EDGE', - array(), + AdsReportBuilderMMMReport::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -878,9 +882,9 @@ public function getAdsReportingMmmSchedulers(array $fields = array(), array $par $this->data['id'], RequestInterface::METHOD_GET, '/ads_reporting_mmm_schedulers', - new AbstractCrudObject(), + new AdsReportBuilderMMMReportScheduler(), 'EDGE', - array(), + AdsReportBuilderMMMReportScheduler::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -892,7 +896,7 @@ public function getAdsVolume(array $fields = array(), array $params = array(), $ $this->assureId(); $param_types = array( - 'page_id' => 'int', + 'page_id' => 'string', 'recommendation_type' => 'recommendation_type_enum', 'show_breakdown_by_actor' => 'bool', ); @@ -1013,6 +1017,8 @@ public function createAdSet(array $fields = array(), array $params = array(), $p 'pacing_type' => 'list', 'promoted_object' => 'Object', 'rb_prediction_id' => 'string', + 'regional_regulated_categories' => 'list', + 'regional_regulation_identities' => 'map', 'rf_prediction_id' => 'string', 'source_adset_id' => 'string', 'start_time' => 'datetime', @@ -1034,6 +1040,7 @@ public function createAdSet(array $fields = array(), array $params = array(), $p 'multi_optimization_goal_weight_enum' => AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues(), 'optimization_goal_enum' => AdSetOptimizationGoalValues::getInstance()->getValues(), 'optimization_sub_event_enum' => AdSetOptimizationSubEventValues::getInstance()->getValues(), + 'regional_regulated_categories_enum' => AdSetRegionalRegulatedCategoriesValues::getInstance()->getValues(), 'status_enum' => AdSetStatusValues::getInstance()->getValues(), 'tune_for_category_enum' => AdSetTuneForCategoryValues::getInstance()->getValues(), ); @@ -1213,7 +1220,6 @@ public function createAdVideo(array $fields = array(), array $params = array(), $this->assureId(); $param_types = array( - 'adaptive_type' => 'string', 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', @@ -1261,7 +1267,6 @@ public function createAdVideo(array $fields = array(), array $params = array(), 'original_fov' => 'unsigned int', 'original_projection_type' => 'original_projection_type_enum', 'publish_event_id' => 'unsigned int', - 'react_mode_metadata' => 'string', 'referenced_sticker_id' => 'string', 'replace_video_id' => 'string', 'slideshow_spec' => 'map', @@ -1622,9 +1627,9 @@ public function getAudienceFunnel(array $fields = array(), array $params = array $this->data['id'], RequestInterface::METHOD_GET, '/audience_funnel', - new AbstractCrudObject(), + new AudienceFunnel(), 'EDGE', - array(), + AudienceFunnel::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1694,9 +1699,9 @@ public function getBusinessProjects(array $fields = array(), array $params = arr $this->data['id'], RequestInterface::METHOD_GET, '/businessprojects', - new AbstractCrudObject(), + new BusinessProject(), 'EDGE', - array(), + BusinessProject::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1902,9 +1907,9 @@ public function getConversionGoals(array $fields = array(), array $params = arra $this->data['id'], RequestInterface::METHOD_GET, '/conversion_goals', - new AbstractCrudObject(), + new AdsConversionGoal(), 'EDGE', - array(), + AdsConversionGoal::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1925,9 +1930,9 @@ public function getCpaGuidance(array $fields = array(), array $params = array(), $this->data['id'], RequestInterface::METHOD_GET, '/cpa_guidance', - new AbstractCrudObject(), + new BespokePartnerGuidanceLaser(), 'EDGE', - array(), + BespokePartnerGuidanceLaser::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -2100,6 +2105,7 @@ public function createCustomConversion(array $fields = array(), array $params = $this->assureId(); $param_types = array( + 'action_source_type' => 'action_source_type_enum', 'advanced_rule' => 'string', 'custom_event_type' => 'custom_event_type_enum', 'default_conversion_value' => 'float', @@ -2109,6 +2115,7 @@ public function createCustomConversion(array $fields = array(), array $params = 'rule' => 'string', ); $enums = array( + 'action_source_type_enum' => CustomConversionActionSourceTypeValues::getInstance()->getValues(), 'custom_event_type_enum' => CustomConversionCustomEventTypeValues::getInstance()->getValues(), ); @@ -2414,7 +2421,7 @@ public function getIosFourteenCampaignLimits(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function createManagedPartnerAd(array $fields = array(), array $params = array(), $pending = false) { + public function createMAnAgeDPartnerAd(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2549,29 +2556,6 @@ public function getMinimumBudgets(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function getOfflineConversionDataSets(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, - '/offline_conversion_data_sets', - new OfflineConversionDataSet(), - 'EDGE', - OfflineConversionDataSet::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getOnBehalfRequests(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -3076,7 +3060,7 @@ public function getTargetingSuggestions(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getTargetingValidation(array $fields = array(), array $params = array(), $pending = false) { + public function getTargetingValidATIOn(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -3212,9 +3196,9 @@ public function getValueAdjustmentRuleCollections(array $fields = array(), array $this->data['id'], RequestInterface::METHOD_GET, '/value_adjustment_rule_collections', - new AbstractCrudObject(), + new AdsValueAdjustmentRuleCollection(), 'EDGE', - array(), + AdsValueAdjustmentRuleCollection::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -3235,9 +3219,9 @@ public function getValueAdjustmentRules(array $fields = array(), array $params = $this->data['id'], RequestInterface::METHOD_GET, '/value_adjustment_rules', - new AbstractCrudObject(), + new AdsValueAdjustmentRule(), 'EDGE', - array(), + AdsValueAdjustmentRule::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/AdAccountAAACompatibleAdObjects.php b/src/FacebookAds/Object/AdAccountAAACompatibleAdObjects.php new file mode 100644 index 000000000..f65ad328d --- /dev/null +++ b/src/FacebookAds/Object/AdAccountAAACompatibleAdObjects.php @@ -0,0 +1,42 @@ +getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/AdAccountCampaignAttributionOptionInfo.php b/src/FacebookAds/Object/AdAccountCampaignAttributionOptionInfo.php new file mode 100644 index 000000000..1d251802b --- /dev/null +++ b/src/FacebookAds/Object/AdAccountCampaignAttributionOptionInfo.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/adaccounts', + new AdAccount(), + 'EDGE', + AdAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdAccountCreationRequest(), + 'NODE', + AdAccountCreationRequest::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdAccountCustomAudienceLimits.php b/src/FacebookAds/Object/AdAccountCustomAudienceLimits.php new file mode 100644 index 000000000..b872f93f5 --- /dev/null +++ b/src/FacebookAds/Object/AdAccountCustomAudienceLimits.php @@ -0,0 +1,42 @@ +getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/AdAccountPaymentDetails.php b/src/FacebookAds/Object/AdAccountPaymentDetails.php new file mode 100644 index 000000000..4f22cdda4 --- /dev/null +++ b/src/FacebookAds/Object/AdAccountPaymentDetails.php @@ -0,0 +1,42 @@ +getValues(); + return $ref_enums; + } + + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdAccountUserSettings(), + 'NODE', + AdAccountUserSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdAccountYouthAdsAdvertiser.php b/src/FacebookAds/Object/AdAccountYouthAdsAdvertiser.php new file mode 100644 index 000000000..c2669ad6c --- /dev/null +++ b/src/FacebookAds/Object/AdAccountYouthAdsAdvertiser.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdColumnSizes(), + 'NODE', + AdColumnSizes::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdContract.php b/src/FacebookAds/Object/AdContract.php new file mode 100644 index 000000000..129c233e7 --- /dev/null +++ b/src/FacebookAds/Object/AdContract.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdCreationPackageConfig(), + 'NODE', + AdCreationPackageConfig::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdCreativeAssetGroupsSpec.php b/src/FacebookAds/Object/AdCreativeAssetGroupsSpec.php new file mode 100644 index 000000000..3b468a3f7 --- /dev/null +++ b/src/FacebookAds/Object/AdCreativeAssetGroupsSpec.php @@ -0,0 +1,42 @@ +getValues(); + $ref_enums['Font'] = AdCreativeLinkDataCustomOverlaySpecFontValues::getInstance()->getValues(); + $ref_enums['Option'] = AdCreativeLinkDataCustomOverlaySpecOptionValues::getInstance()->getValues(); + $ref_enums['Position'] = AdCreativeLinkDataCustomOverlaySpecPositionValues::getInstance()->getValues(); + $ref_enums['Template'] = AdCreativeLinkDataCustomOverlaySpecTemplateValues::getInstance()->getValues(); + $ref_enums['TextColor'] = AdCreativeLinkDataCustomOverlaySpecTextColorValues::getInstance()->getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/AdCreativeLinkDataMoment.php b/src/FacebookAds/Object/AdCreativeLinkDataMoment.php new file mode 100644 index 000000000..cda52cddb --- /dev/null +++ b/src/FacebookAds/Object/AdCreativeLinkDataMoment.php @@ -0,0 +1,44 @@ +getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/AdCreativeMarketingMessageStructuredSpec.php b/src/FacebookAds/Object/AdCreativeMarketingMessageStructuredSpec.php new file mode 100644 index 000000000..4829c7e62 --- /dev/null +++ b/src/FacebookAds/Object/AdCreativeMarketingMessageStructuredSpec.php @@ -0,0 +1,42 @@ +getValues(); + $ref_enums['Option'] = AdCreativeVideoDataCustomOverlaySpecOptionValues::getInstance()->getValues(); + $ref_enums['Position'] = AdCreativeVideoDataCustomOverlaySpecPositionValues::getInstance()->getValues(); + $ref_enums['Template'] = AdCreativeVideoDataCustomOverlaySpecTemplateValues::getInstance()->getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/AdCreativeVideoDataMediaElements.php b/src/FacebookAds/Object/AdCreativeVideoDataMediaElements.php new file mode 100644 index 000000000..32d09ec5e --- /dev/null +++ b/src/FacebookAds/Object/AdCreativeVideoDataMediaElements.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdCustomDerivedMetrics(), + 'NODE', + AdCustomDerivedMetrics::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdDefaultValues.php b/src/FacebookAds/Object/AdDefaultValues.php new file mode 100644 index 000000000..a5f9951b0 --- /dev/null +++ b/src/FacebookAds/Object/AdDefaultValues.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdDraft(), + 'NODE', + AdDraft::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdExportPreset.php b/src/FacebookAds/Object/AdExportPreset.php new file mode 100644 index 000000000..dbc1b107b --- /dev/null +++ b/src/FacebookAds/Object/AdExportPreset.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdExportPreset(), + 'NODE', + AdExportPreset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdKeywordStats.php b/src/FacebookAds/Object/AdKeywordStats.php new file mode 100644 index 000000000..1719f9ae5 --- /dev/null +++ b/src/FacebookAds/Object/AdKeywordStats.php @@ -0,0 +1,49 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdLightAdgroup(), + 'NODE', + AdLightAdgroup::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdLightCampaign.php b/src/FacebookAds/Object/AdLightCampaign.php new file mode 100644 index 000000000..265b1dd01 --- /dev/null +++ b/src/FacebookAds/Object/AdLightCampaign.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdLightCampaign(), + 'NODE', + AdLightCampaign::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdLightCampaignGroup.php b/src/FacebookAds/Object/AdLightCampaignGroup.php new file mode 100644 index 000000000..b8efe17f7 --- /dev/null +++ b/src/FacebookAds/Object/AdLightCampaignGroup.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdLightCampaignGroup(), + 'NODE', + AdLightCampaignGroup::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdLimitSetting.php b/src/FacebookAds/Object/AdLimitSetting.php new file mode 100644 index 000000000..3537bc97c --- /dev/null +++ b/src/FacebookAds/Object/AdLimitSetting.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdProposal(), + 'NODE', + AdProposal::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdSavedKeywords.php b/src/FacebookAds/Object/AdSavedKeywords.php new file mode 100644 index 000000000..716486f0f --- /dev/null +++ b/src/FacebookAds/Object/AdSavedKeywords.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdSavedKeywords(), + 'NODE', + AdSavedKeywords::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdSavedLocation.php b/src/FacebookAds/Object/AdSavedLocation.php new file mode 100644 index 000000000..4f8a902fc --- /dev/null +++ b/src/FacebookAds/Object/AdSavedLocation.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdSavedLocation(), + 'NODE', + AdSavedLocation::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdSavedReport.php b/src/FacebookAds/Object/AdSavedReport.php new file mode 100644 index 000000000..5d74ec054 --- /dev/null +++ b/src/FacebookAds/Object/AdSavedReport.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdSavedReport(), + 'NODE', + AdSavedReport::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdSet.php b/src/FacebookAds/Object/AdSet.php index cc58fdeeb..ccdcfe2ae 100644 --- a/src/FacebookAds/Object/AdSet.php +++ b/src/FacebookAds/Object/AdSet.php @@ -30,6 +30,7 @@ use FacebookAds\Object\Values\AdSetOperatorValues; use FacebookAds\Object\Values\AdSetOptimizationGoalValues; use FacebookAds\Object\Values\AdSetOptimizationSubEventValues; +use FacebookAds\Object\Values\AdSetRegionalRegulatedCategoriesValues; use FacebookAds\Object\Values\AdSetStatusOptionValues; use FacebookAds\Object\Values\AdSetStatusValues; use FacebookAds\Object\Values\AdSetTuneForCategoryValues; @@ -87,6 +88,7 @@ protected static function getReferencedEnums() { $ref_enums['FullFunnelExplorationMode'] = AdSetFullFunnelExplorationModeValues::getInstance()->getValues(); $ref_enums['MultiOptimizationGoalWeight'] = AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues(); $ref_enums['OptimizationSubEvent'] = AdSetOptimizationSubEventValues::getInstance()->getValues(); + $ref_enums['RegionalRegulatedCategories'] = AdSetRegionalRegulatedCategoriesValues::getInstance()->getValues(); $ref_enums['TuneForCategory'] = AdSetTuneForCategoryValues::getInstance()->getValues(); $ref_enums['Operator'] = AdSetOperatorValues::getInstance()->getValues(); $ref_enums['StatusOption'] = AdSetStatusOptionValues::getInstance()->getValues(); @@ -651,6 +653,8 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'pacing_type' => 'list', 'promoted_object' => 'Object', 'rb_prediction_id' => 'string', + 'regional_regulated_categories' => 'list', + 'regional_regulation_identities' => 'map', 'rf_prediction_id' => 'string', 'start_time' => 'datetime', 'status' => 'status_enum', @@ -670,6 +674,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'multi_optimization_goal_weight_enum' => AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues(), 'optimization_goal_enum' => AdSetOptimizationGoalValues::getInstance()->getValues(), 'optimization_sub_event_enum' => AdSetOptimizationSubEventValues::getInstance()->getValues(), + 'regional_regulated_categories_enum' => AdSetRegionalRegulatedCategoriesValues::getInstance()->getValues(), 'status_enum' => AdSetStatusValues::getInstance()->getValues(), 'tune_for_category_enum' => AdSetTuneForCategoryValues::getInstance()->getValues(), ); diff --git a/src/FacebookAds/Object/AdTopline.php b/src/FacebookAds/Object/AdTopline.php new file mode 100644 index 000000000..b6d619b6b --- /dev/null +++ b/src/FacebookAds/Object/AdTopline.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdTopline(), + 'NODE', + AdTopline::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdToplineDetail.php b/src/FacebookAds/Object/AdToplineDetail.php new file mode 100644 index 000000000..3e21a2ad7 --- /dev/null +++ b/src/FacebookAds/Object/AdToplineDetail.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdToplineDetail(), + 'NODE', + AdToplineDetail::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdVideo.php b/src/FacebookAds/Object/AdVideo.php index 7c5066100..0a2403795 100644 --- a/src/FacebookAds/Object/AdVideo.php +++ b/src/FacebookAds/Object/AdVideo.php @@ -239,7 +239,7 @@ public function createComment(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } - public function getCrosspostSharedPages(array $fields = array(), array $params = array(), $pending = false) { + public function getCrosspostShareDPages(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -448,9 +448,9 @@ public function getTags(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/tags', - new AbstractCrudObject(), + new TaggableSubject(), 'EDGE', - array(), + TaggableSubject::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Dataset.php b/src/FacebookAds/Object/AdVolume.php similarity index 83% rename from src/FacebookAds/Object/Dataset.php rename to src/FacebookAds/Object/AdVolume.php index c5afd793e..9b3a33510 100644 --- a/src/FacebookAds/Object/Dataset.php +++ b/src/FacebookAds/Object/AdVolume.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\DatasetFields; +use FacebookAds\Object\Fields\AdVolumeFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class Dataset extends AbstractCrudObject { +class AdVolume extends AbstractObject { /** - * @return DatasetFields + * @return AdVolumeFields */ public static function getFieldsEnum() { - return DatasetFields::getInstance(); + return AdVolumeFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/AdgroupFacebookFeedback.php b/src/FacebookAds/Object/AdgroupFacebookFeedback.php new file mode 100644 index 000000000..bd940706a --- /dev/null +++ b/src/FacebookAds/Object/AdgroupFacebookFeedback.php @@ -0,0 +1,68 @@ +assureId(); + + $param_types = array( + 'order' => 'order_enum', + ); + $enums = array( + 'order_enum' => CommentOrderValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/comments', + new Comment(), + 'EDGE', + Comment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdjacentContentDeliveryReport.php b/src/FacebookAds/Object/AdjacentContentDeliveryReport.php new file mode 100644 index 000000000..96b39dba9 --- /dev/null +++ b/src/FacebookAds/Object/AdjacentContentDeliveryReport.php @@ -0,0 +1,42 @@ +getValues(); + $ref_enums['Visibility'] = AdoptablePetVisibilityValues::getInstance()->getValues(); + return $ref_enums; + } + + + public function getAugmentedRealitiesMetadata(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, + '/augmented_realities_metadata', + new DynamicARMetadata(), + 'EDGE', + DynamicARMetadata::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), + 'EDGE', + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getVideosMetadata(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, + '/videos_metadata', + new DynamicVideoMetadata(), + 'EDGE', + DynamicVideoMetadata::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdoptablePet(), + 'NODE', + AdoptablePet::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsAnomalyDetection.php b/src/FacebookAds/Object/AdsAnomalyDetection.php new file mode 100644 index 000000000..d7c35e81a --- /dev/null +++ b/src/FacebookAds/Object/AdsAnomalyDetection.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/conversion_events', + 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(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsConversionGoal(), + 'NODE', + AdsConversionGoal::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsCreationSavedState.php b/src/FacebookAds/Object/AdsCreationSavedState.php new file mode 100644 index 000000000..c96544956 --- /dev/null +++ b/src/FacebookAds/Object/AdsCreationSavedState.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsCreationSavedState(), + 'NODE', + AdsCreationSavedState::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsCustomPivotsPreview.php b/src/FacebookAds/Object/AdsCustomPivotsPreview.php new file mode 100644 index 000000000..f2c0311e3 --- /dev/null +++ b/src/FacebookAds/Object/AdsCustomPivotsPreview.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsDataPartner(), + 'NODE', + AdsDataPartner::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsDataset.php b/src/FacebookAds/Object/AdsDataset.php new file mode 100644 index 000000000..483053626 --- /dev/null +++ b/src/FacebookAds/Object/AdsDataset.php @@ -0,0 +1,42 @@ +getValues(); + return $ref_enums; + } + + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsNamingTemplate(), + 'NODE', + AdsNamingTemplate::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsPaymentCycle.php b/src/FacebookAds/Object/AdsPaymentCycle.php new file mode 100644 index 000000000..e4e5247d5 --- /dev/null +++ b/src/FacebookAds/Object/AdsPaymentCycle.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsPivotRules(), + 'NODE', + AdsPivotRules::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsPixel.php b/src/FacebookAds/Object/AdsPixel.php index d4f95b25e..e6265287b 100644 --- a/src/FacebookAds/Object/AdsPixel.php +++ b/src/FacebookAds/Object/AdsPixel.php @@ -17,6 +17,7 @@ use FacebookAds\Object\Values\AdsPixelAutomaticMatchingFieldsValues; use FacebookAds\Object\Values\AdsPixelDataUseSettingValues; use FacebookAds\Object\Values\AdsPixelFirstPartyCookieStatusValues; +use FacebookAds\Object\Values\AdsPixelPermittedTasksValues; use FacebookAds\Object\Values\AdsPixelSortByValues; use FacebookAds\Object\Values\AdsPixelStatsResultAggregationValues; use FacebookAds\Object\Values\AdsPixelTasksValues; @@ -55,6 +56,7 @@ protected static function getReferencedEnums() { $ref_enums['AutomaticMatchingFields'] = AdsPixelAutomaticMatchingFieldsValues::getInstance()->getValues(); $ref_enums['DataUseSetting'] = AdsPixelDataUseSettingValues::getInstance()->getValues(); $ref_enums['FirstPartyCookieStatus'] = AdsPixelFirstPartyCookieStatusValues::getInstance()->getValues(); + $ref_enums['PermittedTasks'] = AdsPixelPermittedTasksValues::getInstance()->getValues(); $ref_enums['Tasks'] = AdsPixelTasksValues::getInstance()->getValues(); return $ref_enums; } @@ -84,6 +86,30 @@ public function getAdAccounts(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } + public function deleteAgencies(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'business' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/agencies', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getAgencies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -107,6 +133,32 @@ public function getAgencies(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function createAgency(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'business' => 'string', + 'permitted_tasks' => 'list', + ); + $enums = array( + 'permitted_tasks_enum' => AdsPixelPermittedTasksValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/agencies', + new AdsPixel(), + 'EDGE', + AdsPixel::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createAhpConfig(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -316,7 +368,7 @@ public function createShadowTrafficHelper(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function deleteSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function deleteShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -341,7 +393,7 @@ public function deleteSharedAccounts(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function getShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -365,7 +417,7 @@ public function getSharedAccounts(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function createSharedAccount(array $fields = array(), array $params = array(), $pending = false) { + public function createShareDAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -390,7 +442,7 @@ public function createSharedAccount(array $fields = array(), array $params = arr return $pending ? $request : $request->execute(); } - public function getSharedAgencies(array $fields = array(), array $params = array(), $pending = false) { + public function getShareDAgencies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/AdsPixelCAPISetupQuality.php b/src/FacebookAds/Object/AdsPixelCAPISetupQuality.php new file mode 100644 index 000000000..64c532fc7 --- /dev/null +++ b/src/FacebookAds/Object/AdsPixelCAPISetupQuality.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsPixelCapabilityOverride(), + 'NODE', + AdsPixelCapabilityOverride::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsPixelDeliveryRecommendations.php b/src/FacebookAds/Object/AdsPixelDeliveryRecommendations.php new file mode 100644 index 000000000..ea9b40b5b --- /dev/null +++ b/src/FacebookAds/Object/AdsPixelDeliveryRecommendations.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsReportBuilderExportCore(), + 'NODE', + AdsReportBuilderExportCore::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsReportBuilderMMMReport.php b/src/FacebookAds/Object/AdsReportBuilderMMMReport.php new file mode 100644 index 000000000..600bc0fa7 --- /dev/null +++ b/src/FacebookAds/Object/AdsReportBuilderMMMReport.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsReportBuilderMMMReport(), + 'NODE', + AdsReportBuilderMMMReport::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsReportBuilderMMMReportScheduler.php b/src/FacebookAds/Object/AdsReportBuilderMMMReportScheduler.php new file mode 100644 index 000000000..7d5397b51 --- /dev/null +++ b/src/FacebookAds/Object/AdsReportBuilderMMMReportScheduler.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsReportBuilderMMMReportScheduler(), + 'NODE', + AdsReportBuilderMMMReportScheduler::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsReportBuilderSavedReport.php b/src/FacebookAds/Object/AdsReportBuilderSavedReport.php new file mode 100644 index 000000000..b9f596289 --- /dev/null +++ b/src/FacebookAds/Object/AdsReportBuilderSavedReport.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsReportBuilderSavedReport(), + 'NODE', + AdsReportBuilderSavedReport::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsSegments.php b/src/FacebookAds/Object/AdsSegments.php new file mode 100644 index 000000000..560370912 --- /dev/null +++ b/src/FacebookAds/Object/AdsSegments.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsStartYourDayWidget(), + 'NODE', + AdsStartYourDayWidget::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsTabular.php b/src/FacebookAds/Object/AdsTabular.php new file mode 100644 index 000000000..a5aa7770c --- /dev/null +++ b/src/FacebookAds/Object/AdsTabular.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsUserSettings(), + 'NODE', + AdsUserSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsValueAdjustmentRule.php b/src/FacebookAds/Object/AdsValueAdjustmentRule.php new file mode 100644 index 000000000..54da4f6b7 --- /dev/null +++ b/src/FacebookAds/Object/AdsValueAdjustmentRule.php @@ -0,0 +1,88 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/criterias', + 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(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsValueAdjustmentRule(), + 'NODE', + AdsValueAdjustmentRule::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdsValueAdjustmentRuleCollection.php b/src/FacebookAds/Object/AdsValueAdjustmentRuleCollection.php new file mode 100644 index 000000000..71a7f569a --- /dev/null +++ b/src/FacebookAds/Object/AdsValueAdjustmentRuleCollection.php @@ -0,0 +1,88 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/personas', + 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(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdsValueAdjustmentRuleCollection(), + 'NODE', + AdsValueAdjustmentRuleCollection::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdvAInstance.php b/src/FacebookAds/Object/AdvAInstance.php new file mode 100644 index 000000000..e504e0aca --- /dev/null +++ b/src/FacebookAds/Object/AdvAInstance.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AdvAInstance(), + 'NODE', + AdvAInstance::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AdvertiserVerificationStatus.php b/src/FacebookAds/Object/AdvertiserVerificationStatus.php new file mode 100644 index 000000000..e34200478 --- /dev/null +++ b/src/FacebookAds/Object/AdvertiserVerificationStatus.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AnalyticsUserConfig(), + 'NODE', + AnalyticsUserConfig::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AppEventConfig.php b/src/FacebookAds/Object/AppEventConfig.php new file mode 100644 index 000000000..d7a672325 --- /dev/null +++ b/src/FacebookAds/Object/AppEventConfig.php @@ -0,0 +1,66 @@ +assureId(); + + $param_types = array( + 'event_name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AppEventConfig(), + 'NODE', + AppEventConfig::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AppLinks.php b/src/FacebookAds/Object/AppLinks.php new file mode 100644 index 000000000..a4117003d --- /dev/null +++ b/src/FacebookAds/Object/AppLinks.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AppLinks(), + 'NODE', + AppLinks::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AppOptimizedCustomEvents.php b/src/FacebookAds/Object/AppOptimizedCustomEvents.php new file mode 100644 index 000000000..81974a330 --- /dev/null +++ b/src/FacebookAds/Object/AppOptimizedCustomEvents.php @@ -0,0 +1,42 @@ +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; } @@ -899,11 +903,11 @@ public function getDaChecks(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function getIapPurchases(array $fields = array(), array $params = array(), $pending = false) { + public function createDomainReport(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( - 'order_id' => 'string', + 'tracking_domains' => 'list', ); $enums = array( ); @@ -911,8 +915,8 @@ public function getIapPurchases(array $fields = array(), array $params = array() $request = new ApiRequest( $this->api, $this->data['id'], - RequestInterface::METHOD_GET, - '/iap_purchases', + RequestInterface::METHOD_POST, + '/domain_reports', new AbstractCrudObject(), 'EDGE', array(), @@ -923,10 +927,11 @@ public function getIapPurchases(array $fields = array(), array $params = array() return $pending ? $request : $request->execute(); } - public function getInsightsPushSchedule(array $fields = array(), array $params = array(), $pending = false) { + public function getIapPurchases(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'order_id' => 'string', ); $enums = array( ); @@ -935,7 +940,7 @@ public function getInsightsPushSchedule(array $fields = array(), array $params = $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/insights_push_schedule', + '/iap_purchases', new AbstractCrudObject(), 'EDGE', array(), @@ -982,9 +987,9 @@ public function getLinkedDataset(array $fields = array(), array $params = array( $this->data['id'], RequestInterface::METHOD_GET, '/linked_dataset', - new AbstractCrudObject(), + new AdsDataset(), 'EDGE', - array(), + AdsDataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1542,6 +1547,63 @@ public function createUpload(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } + public function createWhatsAppBusinessSolution(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'owner_permissions' => 'list', + 'partner_app_id' => 'string', + 'partner_permissions' => 'list', + 'solution_name' => 'string', + ); + $enums = array( + 'owner_permissions_enum' => ApplicationOwnerPermissionsValues::getInstance()->getValues(), + 'partner_permissions_enum' => ApplicationPartnerPermissionsValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/whatsapp_business_solution', + new Application(), + 'EDGE', + Application::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getWhatsAppBusinessSolutions(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'role' => 'role_enum', + ); + $enums = array( + 'role_enum' => array( + 'OWNER', + 'PARTNER', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/whatsapp_business_solutions', + 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/ArAdsDataContainer.php b/src/FacebookAds/Object/ArAdsDataContainer.php new file mode 100644 index 000000000..7acc9dc0d --- /dev/null +++ b/src/FacebookAds/Object/ArAdsDataContainer.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ArAdsDataContainer(), + 'NODE', + ArAdsDataContainer::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AudienceFunnel.php b/src/FacebookAds/Object/AudienceFunnel.php new file mode 100644 index 000000000..d01451aaf --- /dev/null +++ b/src/FacebookAds/Object/AudienceFunnel.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AudioAsset(), + 'NODE', + AudioAsset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AudioCopyright.php b/src/FacebookAds/Object/AudioCopyright.php index 474d8d510..c47de61b1 100644 --- a/src/FacebookAds/Object/AudioCopyright.php +++ b/src/FacebookAds/Object/AudioCopyright.php @@ -52,9 +52,9 @@ public function getUpdateRecords(array $fields = array(), array $params = array( $this->data['id'], RequestInterface::METHOD_GET, '/update_records', - new AbstractCrudObject(), + new MediaCopyrightUpdateRecord(), 'EDGE', - array(), + MediaCopyrightUpdateRecord::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/AudioIsrc.php b/src/FacebookAds/Object/AudioIsrc.php new file mode 100644 index 000000000..b225e4d48 --- /dev/null +++ b/src/FacebookAds/Object/AudioIsrc.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AudioIsrc(), + 'NODE', + AudioIsrc::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AudioRelease.php b/src/FacebookAds/Object/AudioRelease.php new file mode 100644 index 000000000..615f32184 --- /dev/null +++ b/src/FacebookAds/Object/AudioRelease.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new AudioRelease(), + 'NODE', + AudioRelease::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/AudioVisualReferenceMatch.php b/src/FacebookAds/Object/AudioVisualReferenceMatch.php new file mode 100644 index 000000000..77cf8b8e2 --- /dev/null +++ b/src/FacebookAds/Object/AudioVisualReferenceMatch.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/augmented_realities_metadata', - new AbstractCrudObject(), + new DynamicARMetadata(), 'EDGE', - array(), + DynamicARMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/BAPIDomain.php b/src/FacebookAds/Object/BAPIDomain.php new file mode 100644 index 000000000..ae8e76a74 --- /dev/null +++ b/src/FacebookAds/Object/BAPIDomain.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BCPCampaign(), + 'NODE', + BCPCampaign::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BCPCreatorIgUser.php b/src/FacebookAds/Object/BCPCreatorIgUser.php new file mode 100644 index 000000000..7fd9d3698 --- /dev/null +++ b/src/FacebookAds/Object/BCPCreatorIgUser.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BCPCreatorIgUser(), + 'NODE', + BCPCreatorIgUser::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BespokePartnerGuidanceLaser.php b/src/FacebookAds/Object/BespokePartnerGuidanceLaser.php new file mode 100644 index 000000000..382ace738 --- /dev/null +++ b/src/FacebookAds/Object/BespokePartnerGuidanceLaser.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BidSchedule(), + 'NODE', + BidSchedule::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BizInboxOffsiteEmailAccount.php b/src/FacebookAds/Object/BizInboxOffsiteEmailAccount.php new file mode 100644 index 000000000..ddfa6cce3 --- /dev/null +++ b/src/FacebookAds/Object/BizInboxOffsiteEmailAccount.php @@ -0,0 +1,88 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/assigned_users', + new AssignedUser(), + 'EDGE', + AssignedUser::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BizInboxOffsiteEmailAccount(), + 'NODE', + BizInboxOffsiteEmailAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BlindPig.php b/src/FacebookAds/Object/BlindPig.php new file mode 100644 index 000000000..64fa3f34f --- /dev/null +++ b/src/FacebookAds/Object/BlindPig.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BlindPig(), + 'NODE', + BlindPig::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BlockedUserInfo.php b/src/FacebookAds/Object/BlockedUserInfo.php new file mode 100644 index 000000000..604dc5321 --- /dev/null +++ b/src/FacebookAds/Object/BlockedUserInfo.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BrandSafetyDownloadable(), + 'NODE', + BrandSafetyDownloadable::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BrandedContentAdError.php b/src/FacebookAds/Object/BrandedContentAdError.php new file mode 100644 index 000000000..de82f4c0a --- /dev/null +++ b/src/FacebookAds/Object/BrandedContentAdError.php @@ -0,0 +1,42 @@ +getValues(); $ref_enums['PermittedTasks'] = BusinessPermittedTasksValues::getInstance()->getValues(); $ref_enums['SurveyBusinessType'] = BusinessSurveyBusinessTypeValues::getInstance()->getValues(); + $ref_enums['TimezoneId'] = BusinessTimezoneIdValues::getInstance()->getValues(); $ref_enums['PagePermittedTasks'] = BusinessPagePermittedTasksValues::getInstance()->getValues(); $ref_enums['SubverticalV2'] = BusinessSubverticalV2Values::getInstance()->getValues(); $ref_enums['VerticalV2'] = BusinessVerticalV2Values::getInstance()->getValues(); @@ -387,9 +390,9 @@ public function getAdsReportingMmmReports(array $fields = array(), array $params $this->data['id'], RequestInterface::METHOD_GET, '/ads_reporting_mmm_reports', - new AbstractCrudObject(), + new AdsReportBuilderMMMReport(), 'EDGE', - array(), + AdsReportBuilderMMMReport::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -410,9 +413,9 @@ public function getAdsReportingMmmSchedulers(array $fields = array(), array $par $this->data['id'], RequestInterface::METHOD_GET, '/ads_reporting_mmm_schedulers', - new AbstractCrudObject(), + new AdsReportBuilderMMMReportScheduler(), 'EDGE', - array(), + AdsReportBuilderMMMReportScheduler::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -682,9 +685,9 @@ public function getBusinessProjects(array $fields = array(), array $params = arr $this->data['id'], RequestInterface::METHOD_GET, '/businessprojects', - new AbstractCrudObject(), + new BusinessProject(), 'EDGE', - array(), + BusinessProject::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -800,9 +803,9 @@ public function getClientOffsiteSignalContainerBusinessObjects(array $fields = a $this->data['id'], RequestInterface::METHOD_GET, '/client_offsite_signal_container_business_objects', - new AbstractCrudObject(), + new OffsiteSignalContainerBusinessObject(), 'EDGE', - array(), + OffsiteSignalContainerBusinessObject::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1203,6 +1206,7 @@ public function createCustomConversion(array $fields = array(), array $params = $this->assureId(); $param_types = array( + 'action_source_type' => 'action_source_type_enum', 'advanced_rule' => 'string', 'custom_event_type' => 'custom_event_type_enum', 'default_conversion_value' => 'float', @@ -1212,6 +1216,7 @@ public function createCustomConversion(array $fields = array(), array $params = 'rule' => 'string', ); $enums = array( + 'action_source_type_enum' => CustomConversionActionSourceTypeValues::getInstance()->getValues(), 'custom_event_type_enum' => CustomConversionCustomEventTypeValues::getInstance()->getValues(), ); @@ -1316,9 +1321,9 @@ public function getExtendedCreditApplications(array $fields = array(), array $pa $this->data['id'], RequestInterface::METHOD_GET, '/extendedcreditapplications', - new AbstractCrudObject(), + new ExtendedCreditApplication(), 'EDGE', - array(), + ExtendedCreditApplication::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1475,7 +1480,7 @@ public function getInstagramBusinessAccounts(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function deleteManagedBusinesses(array $fields = array(), array $params = array(), $pending = false) { + public function deleteMAnAgeDBusinesses(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1499,7 +1504,7 @@ public function deleteManagedBusinesses(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function createManagedBusiness(array $fields = array(), array $params = array(), $pending = false) { + public function createMAnAgeDBusiness(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1510,11 +1515,12 @@ public function createManagedBusiness(array $fields = array(), array $params = a 'survey_business_type' => 'survey_business_type_enum', 'survey_num_assets' => 'unsigned int', 'survey_num_people' => 'unsigned int', - 'timezone_id' => 'unsigned int', + 'timezone_id' => 'timezone_id_enum', 'vertical' => 'vertical_enum', ); $enums = array( 'survey_business_type_enum' => BusinessSurveyBusinessTypeValues::getInstance()->getValues(), + 'timezone_id_enum' => BusinessTimezoneIdValues::getInstance()->getValues(), 'vertical_enum' => BusinessVerticalValues::getInstance()->getValues(), ); @@ -1533,7 +1539,7 @@ public function createManagedBusiness(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } - public function createManagedPartnerBusinessSetup(array $fields = array(), array $params = array(), $pending = false) { + public function createMAnAgeDPartnerBusinessSetup(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1563,7 +1569,7 @@ public function createManagedPartnerBusinessSetup(array $fields = array(), array return $pending ? $request : $request->execute(); } - public function deleteManagedPartnerBusinesses(array $fields = array(), array $params = array(), $pending = false) { + public function deleteMAnAgeDPartnerBusinesses(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1588,7 +1594,7 @@ public function deleteManagedPartnerBusinesses(array $fields = array(), array $p return $pending ? $request : $request->execute(); } - public function createManagedPartnerBusiness(array $fields = array(), array $params = array(), $pending = false) { + public function createMAnAgeDPartnerBusiness(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1611,7 +1617,7 @@ public function createManagedPartnerBusiness(array $fields = array(), array $par 'survey_business_type' => 'survey_business_type_enum', 'survey_num_assets' => 'unsigned int', 'survey_num_people' => 'unsigned int', - 'timezone_id' => 'unsigned int', + 'timezone_id' => 'timezone_id_enum', 'vertical' => 'vertical_enum', ); $enums = array( @@ -1626,6 +1632,489 @@ public function createManagedPartnerBusiness(array $fields = array(), array $par 'APP_DEVELOPER', 'PUBLISHER', ), + 'timezone_id_enum' => array( + '0', + '1', + '2', + '3', + '4', + '5', + '6', + '7', + '8', + '9', + '10', + '11', + '12', + '13', + '14', + '15', + '16', + '17', + '18', + '19', + '20', + '21', + '22', + '23', + '24', + '25', + '26', + '27', + '28', + '29', + '30', + '31', + '32', + '33', + '34', + '35', + '36', + '37', + '38', + '39', + '40', + '41', + '42', + '43', + '44', + '45', + '46', + '47', + '48', + '49', + '50', + '51', + '52', + '53', + '54', + '55', + '56', + '57', + '58', + '59', + '60', + '61', + '62', + '63', + '64', + '65', + '66', + '67', + '68', + '69', + '70', + '71', + '72', + '73', + '74', + '75', + '76', + '77', + '78', + '79', + '80', + '81', + '82', + '83', + '84', + '85', + '86', + '87', + '88', + '89', + '90', + '91', + '92', + '93', + '94', + '95', + '96', + '97', + '98', + '99', + '100', + '101', + '102', + '103', + '104', + '105', + '106', + '107', + '108', + '109', + '110', + '111', + '112', + '113', + '114', + '115', + '116', + '117', + '118', + '119', + '120', + '121', + '122', + '123', + '124', + '125', + '126', + '127', + '128', + '129', + '130', + '131', + '132', + '133', + '134', + '135', + '136', + '137', + '138', + '139', + '140', + '141', + '142', + '143', + '144', + '145', + '146', + '147', + '148', + '149', + '150', + '151', + '152', + '153', + '154', + '155', + '156', + '157', + '158', + '159', + '160', + '161', + '162', + '163', + '164', + '165', + '166', + '167', + '168', + '169', + '170', + '171', + '172', + '173', + '174', + '175', + '176', + '177', + '178', + '179', + '180', + '181', + '182', + '183', + '184', + '185', + '186', + '187', + '188', + '189', + '190', + '191', + '192', + '193', + '194', + '195', + '196', + '197', + '198', + '199', + '200', + '201', + '202', + '203', + '204', + '205', + '206', + '207', + '208', + '209', + '210', + '211', + '212', + '213', + '214', + '215', + '216', + '217', + '218', + '219', + '220', + '221', + '222', + '223', + '224', + '225', + '226', + '227', + '228', + '229', + '230', + '231', + '232', + '233', + '234', + '235', + '236', + '237', + '238', + '239', + '240', + '241', + '242', + '243', + '244', + '245', + '246', + '247', + '248', + '249', + '250', + '251', + '252', + '253', + '254', + '255', + '256', + '257', + '258', + '259', + '260', + '261', + '262', + '263', + '264', + '265', + '266', + '267', + '268', + '269', + '270', + '271', + '272', + '273', + '274', + '275', + '276', + '277', + '278', + '279', + '280', + '281', + '282', + '283', + '284', + '285', + '286', + '287', + '288', + '289', + '290', + '291', + '292', + '293', + '294', + '295', + '296', + '297', + '298', + '299', + '300', + '301', + '302', + '303', + '304', + '305', + '306', + '307', + '308', + '309', + '310', + '311', + '312', + '313', + '314', + '315', + '316', + '317', + '318', + '319', + '320', + '321', + '322', + '323', + '324', + '325', + '326', + '327', + '328', + '329', + '330', + '331', + '332', + '333', + '334', + '335', + '336', + '337', + '338', + '339', + '340', + '341', + '342', + '343', + '344', + '345', + '346', + '347', + '348', + '349', + '350', + '351', + '352', + '353', + '354', + '355', + '356', + '357', + '358', + '359', + '360', + '361', + '362', + '363', + '364', + '365', + '366', + '367', + '368', + '369', + '370', + '371', + '372', + '373', + '374', + '375', + '376', + '377', + '378', + '379', + '380', + '381', + '382', + '383', + '384', + '385', + '386', + '387', + '388', + '389', + '390', + '391', + '392', + '393', + '394', + '395', + '396', + '397', + '398', + '399', + '400', + '401', + '402', + '403', + '404', + '405', + '406', + '407', + '408', + '409', + '410', + '411', + '412', + '413', + '414', + '415', + '416', + '417', + '418', + '419', + '420', + '421', + '422', + '423', + '424', + '425', + '426', + '427', + '428', + '429', + '430', + '431', + '432', + '433', + '434', + '435', + '436', + '437', + '438', + '439', + '440', + '441', + '442', + '443', + '444', + '445', + '446', + '447', + '448', + '449', + '450', + '451', + '452', + '453', + '454', + '455', + '456', + '457', + '458', + '459', + '460', + '461', + '462', + '463', + '464', + '465', + '466', + '467', + '468', + '469', + '470', + '471', + '472', + '473', + '474', + '475', + '476', + '477', + '478', + '479', + '480', + ), 'vertical_enum' => array( 'ADVERTISING', 'AUTOMOTIVE', @@ -1681,60 +2170,9 @@ public function getNegativeKeywordLists(array $fields = array(), array $params = $this->data['id'], RequestInterface::METHOD_GET, '/negative_keyword_lists', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function getOfflineConversionDataSets(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, - '/offline_conversion_data_sets', - new OfflineConversionDataSet(), + new NegativeKeywordList(), 'EDGE', - OfflineConversionDataSet::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function createOfflineConversionDataSet(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'auto_assign_to_new_accounts_only' => 'bool', - 'description' => 'string', - 'enable_auto_assign_to_accounts' => 'bool', - 'is_mta_use' => 'bool', - 'name' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/offline_conversion_data_sets', - new OfflineConversionDataSet(), - 'EDGE', - OfflineConversionDataSet::getFieldsEnum()->getValues(), + NegativeKeywordList::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1769,13 +2207,13 @@ public function createOpenBridgeConfiguration(array $fields = array(), array $pa $this->assureId(); $param_types = array( - 'access_key' => 'string', 'active' => 'bool', 'endpoint' => 'string', 'fallback_domain' => 'string', 'fallback_domain_enabled' => 'bool', 'host_business_id' => 'unsigned int', 'host_external_id' => 'string', + 'instance_id' => 'string', 'pixel_id' => 'unsigned int', ); $enums = array( @@ -1949,15 +2387,17 @@ public function createOwnedBusiness(array $fields = array(), array $params = arr 'page_permitted_tasks' => 'list', 'sales_rep_email' => 'string', 'shared_page_id' => 'string', + 'should_generate_name' => 'bool', 'survey_business_type' => 'survey_business_type_enum', 'survey_num_assets' => 'unsigned int', 'survey_num_people' => 'unsigned int', - 'timezone_id' => 'unsigned int', + 'timezone_id' => 'timezone_id_enum', 'vertical' => 'vertical_enum', ); $enums = array( 'page_permitted_tasks_enum' => BusinessPagePermittedTasksValues::getInstance()->getValues(), 'survey_business_type_enum' => BusinessSurveyBusinessTypeValues::getInstance()->getValues(), + 'timezone_id_enum' => BusinessTimezoneIdValues::getInstance()->getValues(), 'vertical_enum' => BusinessVerticalValues::getInstance()->getValues(), ); @@ -2012,9 +2452,9 @@ public function getOwnedOffsiteSignalContainerBusinessObjects(array $fields = ar $this->data['id'], RequestInterface::METHOD_GET, '/owned_offsite_signal_container_business_objects', - new AbstractCrudObject(), + new OffsiteSignalContainerBusinessObject(), 'EDGE', - array(), + OffsiteSignalContainerBusinessObject::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -2213,9 +2653,9 @@ public function getPartnerAccountLinking(array $fields = array(), array $params $this->data['id'], RequestInterface::METHOD_GET, '/partner_account_linking', - new AbstractCrudObject(), + new PartnerAccountLinking(), 'EDGE', - array(), + PartnerAccountLinking::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -2367,7 +2807,7 @@ public function getPendingOwnedPages(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getPendingSharedOffsiteSignalContainerBusinessObjects(array $fields = array(), array $params = array(), $pending = false) { + public function getPendingShareDOffsiteSignalContainerBusinessObjects(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2380,9 +2820,9 @@ public function getPendingSharedOffsiteSignalContainerBusinessObjects(array $fie $this->data['id'], RequestInterface::METHOD_GET, '/pending_shared_offsite_signal_container_business_objects', - new AbstractCrudObject(), + new OffsiteSignalContainerBusinessObject(), 'EDGE', - array(), + OffsiteSignalContainerBusinessObject::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -2517,6 +2957,29 @@ public function getReceivedAudienceSharingRequests(array $fields = array(), arra return $pending ? $request : $request->execute(); } + public function getResellerGuidances(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, + '/reseller_guidances', + new ResellerGuidance(), + 'EDGE', + ResellerGuidance::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSelfCertifiedWhatsappBusinessSubmissions(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2541,7 +3004,7 @@ public function getSelfCertifiedWhatsappBusinessSubmissions(array $fields = arra return $pending ? $request : $request->execute(); } - public function createSetupManagedPartnerAdAccount(array $fields = array(), array $params = array(), $pending = false) { + public function createSetupMAnAgeDPartnerAdAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2712,9 +3175,9 @@ public function getThirdPartyMeasurementReportDataset(array $fields = array(), a $this->data['id'], RequestInterface::METHOD_GET, '/third_party_measurement_report_dataset', - new AbstractCrudObject(), + new ThirdPartyMeasurementReportDataset(), 'EDGE', - array(), + ThirdPartyMeasurementReportDataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -2727,7 +3190,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $param_types = array( 'ad_placements_validation_only' => 'bool', - 'adaptive_type' => 'string', 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', @@ -2775,7 +3237,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'original_fov' => 'unsigned int', 'original_projection_type' => 'original_projection_type_enum', 'publish_event_id' => 'unsigned int', - 'react_mode_metadata' => 'string', 'referenced_sticker_id' => 'string', 'replace_video_id' => 'string', 'slideshow_spec' => 'map', diff --git a/src/FacebookAds/Object/BusinessAdsReportingReportSpecs.php b/src/FacebookAds/Object/BusinessAdsReportingReportSpecs.php new file mode 100644 index 000000000..fe291381b --- /dev/null +++ b/src/FacebookAds/Object/BusinessAdsReportingReportSpecs.php @@ -0,0 +1,42 @@ +getValues(); + return $ref_enums; + } + + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BusinessAgreement(), + 'NODE', + BusinessAgreement::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'asset_id' => 'unsigned int', + 'request_status' => 'request_status_enum', + ); + $enums = array( + 'request_status_enum' => BusinessAgreementRequestStatusValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/', + new BusinessAgreement(), + 'NODE', + BusinessAgreement::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BusinessAssetGroup.php b/src/FacebookAds/Object/BusinessAssetGroup.php index 1c5acd6d0..36f4410af 100644 --- a/src/FacebookAds/Object/BusinessAssetGroup.php +++ b/src/FacebookAds/Object/BusinessAssetGroup.php @@ -411,77 +411,6 @@ public function createContainedInstagramAccount(array $fields = array(), array $ return $pending ? $request : $request->execute(); } - public function deleteContainedOfflineConversionDataSets(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'asset_id' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_DELETE, - '/contained_offline_conversion_data_sets', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function getContainedOfflineConversionDataSets(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, - '/contained_offline_conversion_data_sets', - new OfflineConversionDataSet(), - 'EDGE', - OfflineConversionDataSet::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function createContainedOfflineConversionDataSet(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'asset_id' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/contained_offline_conversion_data_sets', - new BusinessAssetGroup(), - 'EDGE', - BusinessAssetGroup::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function deleteContainedPages(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/BusinessCreative.php b/src/FacebookAds/Object/BusinessCreative.php new file mode 100644 index 000000000..87fbd94d9 --- /dev/null +++ b/src/FacebookAds/Object/BusinessCreative.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BusinessFranchiseConfig(), + 'NODE', + BusinessFranchiseConfig::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BusinessImageTBusinessFolderPathItem.php b/src/FacebookAds/Object/BusinessImageTBusinessFolderPathItem.php new file mode 100644 index 000000000..c41fb9d37 --- /dev/null +++ b/src/FacebookAds/Object/BusinessImageTBusinessFolderPathItem.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BusinessObjectTransferOwnershipAgreement(), + 'NODE', + BusinessObjectTransferOwnershipAgreement::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BusinessProductCatalogTOS.php b/src/FacebookAds/Object/BusinessProductCatalogTOS.php new file mode 100644 index 000000000..39d8ce858 --- /dev/null +++ b/src/FacebookAds/Object/BusinessProductCatalogTOS.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BusinessProject(), + 'NODE', + BusinessProject::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BusinessRequest.php b/src/FacebookAds/Object/BusinessRequest.php new file mode 100644 index 000000000..e7e6a5cc5 --- /dev/null +++ b/src/FacebookAds/Object/BusinessRequest.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BusinessRequest(), + 'NODE', + BusinessRequest::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BusinessSettingLogsData.php b/src/FacebookAds/Object/BusinessSettingLogsData.php new file mode 100644 index 000000000..27b1f1aec --- /dev/null +++ b/src/FacebookAds/Object/BusinessSettingLogsData.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new BusinessTag(), + 'NODE', + BusinessTag::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/BusinessTrafficAnalysisReport.php b/src/FacebookAds/Object/BusinessTrafficAnalysisReport.php new file mode 100644 index 000000000..c6d6eaabc --- /dev/null +++ b/src/FacebookAds/Object/BusinessTrafficAnalysisReport.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CPASAdCreationTemplate(), + 'NODE', + CPASAdCreationTemplate::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CPASLsbImageBank.php b/src/FacebookAds/Object/CPASLsbImageBank.php new file mode 100644 index 000000000..e6b92b0dc --- /dev/null +++ b/src/FacebookAds/Object/CPASLsbImageBank.php @@ -0,0 +1,119 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/backup_images', + new ProductImage(), + 'EDGE', + ProductImage::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CPASLsbImageBank(), + 'NODE', + CPASLsbImageBank::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'backup_image_urls' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/', + new CPASLsbImageBank(), + 'NODE', + CPASLsbImageBank::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CPASParentCatalogSettings.php b/src/FacebookAds/Object/CPASParentCatalogSettings.php new file mode 100644 index 000000000..92eaf341c --- /dev/null +++ b/src/FacebookAds/Object/CPASParentCatalogSettings.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CPASParentCatalogSettings(), + 'NODE', + CPASParentCatalogSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CPASSetup.php b/src/FacebookAds/Object/CPASSetup.php new file mode 100644 index 000000000..78202d502 --- /dev/null +++ b/src/FacebookAds/Object/CPASSetup.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CalibratorExistingRule(), + 'NODE', + CalibratorExistingRule::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CallAdsPhoneData.php b/src/FacebookAds/Object/CallAdsPhoneData.php new file mode 100644 index 000000000..a4e412c58 --- /dev/null +++ b/src/FacebookAds/Object/CallAdsPhoneData.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CallAdsPhoneData(), + 'NODE', + CallAdsPhoneData::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CampaignActionsData.php b/src/FacebookAds/Object/CampaignActionsData.php new file mode 100644 index 000000000..77d2a9f8b --- /dev/null +++ b/src/FacebookAds/Object/CampaignActionsData.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CanvasTemplate(), + 'NODE', + CanvasTemplate::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CatalogItemOverride.php b/src/FacebookAds/Object/CatalogItemOverride.php new file mode 100644 index 000000000..324425b8a --- /dev/null +++ b/src/FacebookAds/Object/CatalogItemOverride.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CatalogItemOverride(), + 'NODE', + CatalogItemOverride::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CatalogItemRejectionReasons.php b/src/FacebookAds/Object/CatalogItemRejectionReasons.php new file mode 100644 index 000000000..b97054c12 --- /dev/null +++ b/src/FacebookAds/Object/CatalogItemRejectionReasons.php @@ -0,0 +1,44 @@ +getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/CatalogItemValidationErrorList.php b/src/FacebookAds/Object/CatalogItemValidationErrorList.php new file mode 100644 index 000000000..eeaffadf5 --- /dev/null +++ b/src/FacebookAds/Object/CatalogItemValidationErrorList.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CatalogSmartPixelSettings(), + 'NODE', + CatalogSmartPixelSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CatalogWebsiteOnboardingSettings.php b/src/FacebookAds/Object/CatalogWebsiteOnboardingSettings.php new file mode 100644 index 000000000..481fdaa45 --- /dev/null +++ b/src/FacebookAds/Object/CatalogWebsiteOnboardingSettings.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CatalogWebsiteOnboardingSettings(), + 'NODE', + CatalogWebsiteOnboardingSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CatalogWebsiteSettings.php b/src/FacebookAds/Object/CatalogWebsiteSettings.php new file mode 100644 index 000000000..5c52c4033 --- /dev/null +++ b/src/FacebookAds/Object/CatalogWebsiteSettings.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CatalogWebsiteSettings(), + 'NODE', + CatalogWebsiteSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ChinaBusinessOnboardingVettingRequest.php b/src/FacebookAds/Object/ChinaBusinessOnboardingVettingRequest.php new file mode 100644 index 000000000..dbe824850 --- /dev/null +++ b/src/FacebookAds/Object/ChinaBusinessOnboardingVettingRequest.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ChinaBusinessOnboardingVettingRequest(), + 'NODE', + ChinaBusinessOnboardingVettingRequest::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CloudbridgeDatasetStatus.php b/src/FacebookAds/Object/CloudbridgeDatasetStatus.php new file mode 100644 index 000000000..7b1aa3248 --- /dev/null +++ b/src/FacebookAds/Object/CloudbridgeDatasetStatus.php @@ -0,0 +1,42 @@ +getValues(); $ref_enums['CommentPrivacyValue'] = CommentCommentPrivacyValueValues::getInstance()->getValues(); $ref_enums['Filter'] = CommentFilterValues::getInstance()->getValues(); $ref_enums['LiveFilter'] = CommentLiveFilterValues::getInstance()->getValues(); - $ref_enums['Order'] = CommentOrderValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/CommerceMerchantSettings.php b/src/FacebookAds/Object/CommerceMerchantSettings.php index 48a8caa30..ff35b9c03 100644 --- a/src/FacebookAds/Object/CommerceMerchantSettings.php +++ b/src/FacebookAds/Object/CommerceMerchantSettings.php @@ -146,7 +146,7 @@ public function getCommerceTransactions(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getOrderManagementApps(array $fields = array(), array $params = array(), $pending = false) { + public function getOrderMAnAgeMEntApps(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -169,7 +169,7 @@ public function getOrderManagementApps(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function createOrderManagementApp(array $fields = array(), array $params = array(), $pending = false) { + public function createOrderMAnAgeMEntApp(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/CommerceOrder.php b/src/FacebookAds/Object/CommerceOrder.php index d19e2c6f8..05fe34c38 100644 --- a/src/FacebookAds/Object/CommerceOrder.php +++ b/src/FacebookAds/Object/CommerceOrder.php @@ -51,7 +51,6 @@ public function createAcknowledgeOrder(array $fields = array(), array $params = $param_types = array( 'idempotency_key' => 'string', 'merchant_order_reference' => 'string', - 'return_error_response' => 'bool', ); $enums = array( ); @@ -94,7 +93,7 @@ public function getCancellations(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } - public function createCancellation(array $fields = array(), array $params = array(), $pending = false) { + public function createCanCellATIOn(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -215,7 +214,7 @@ public function getPromotionDetails(array $fields = array(), array $params = arr return $pending ? $request : $request->execute(); } - public function getPromotions(array $fields = array(), array $params = array(), $pending = false) { + public function getPromoTIOns(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/ContactsMessengerSyncConfig.php b/src/FacebookAds/Object/ContactsMessengerSyncConfig.php new file mode 100644 index 000000000..ce3c75582 --- /dev/null +++ b/src/FacebookAds/Object/ContactsMessengerSyncConfig.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CopyrightMediaMisuse(), + 'NODE', + CopyrightMediaMisuse::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CreativeAssetTag.php b/src/FacebookAds/Object/CreativeAssetTag.php new file mode 100644 index 000000000..7902cc2ab --- /dev/null +++ b/src/FacebookAds/Object/CreativeAssetTag.php @@ -0,0 +1,42 @@ +getValues(); + return $ref_enums; + } + + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new CreatorAssetCreative(), + 'NODE', + CreatorAssetCreative::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/CustomAudience.php b/src/FacebookAds/Object/CustomAudience.php index cc29148f6..b340c359e 100644 --- a/src/FacebookAds/Object/CustomAudience.php +++ b/src/FacebookAds/Object/CustomAudience.php @@ -246,7 +246,7 @@ public function getSessions(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function getSharedAccountInfo(array $fields = array(), array $params = array(), $pending = false) { + public function getShareDAccountInfo(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/CustomAudienceCapabilities.php b/src/FacebookAds/Object/CustomAudienceCapabilities.php new file mode 100644 index 000000000..b0d7eb2ce --- /dev/null +++ b/src/FacebookAds/Object/CustomAudienceCapabilities.php @@ -0,0 +1,42 @@ +getValues(); + $ref_enums['ActionSourceType'] = CustomConversionActionSourceTypeValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/CustomConversionActivities.php b/src/FacebookAds/Object/CustomConversionActivities.php new file mode 100644 index 000000000..4ba4d6da9 --- /dev/null +++ b/src/FacebookAds/Object/CustomConversionActivities.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/augmented_realities_metadata', - new AbstractCrudObject(), + new DynamicARMetadata(), 'EDGE', - array(), + DynamicARMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/DirectDebit.php b/src/FacebookAds/Object/DirectDebit.php new file mode 100644 index 000000000..99510586a --- /dev/null +++ b/src/FacebookAds/Object/DirectDebit.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new DogNotificationSettings(), + 'NODE', + DogNotificationSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Domain.php b/src/FacebookAds/Object/Domain.php new file mode 100644 index 000000000..9530e0963 --- /dev/null +++ b/src/FacebookAds/Object/Domain.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new Domain(), + 'NODE', + Domain::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/DraftPost.php b/src/FacebookAds/Object/DraftPost.php new file mode 100644 index 000000000..0d3d5826b --- /dev/null +++ b/src/FacebookAds/Object/DraftPost.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new DynamicARMetadata(), + 'NODE', + DynamicARMetadata::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/DynamicContentSet.php b/src/FacebookAds/Object/DynamicContentSet.php new file mode 100644 index 000000000..054b92de1 --- /dev/null +++ b/src/FacebookAds/Object/DynamicContentSet.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new DynamicContentSet(), + 'NODE', + DynamicContentSet::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/DynamicItemDisplayBundle.php b/src/FacebookAds/Object/DynamicItemDisplayBundle.php new file mode 100644 index 000000000..4d4e3d561 --- /dev/null +++ b/src/FacebookAds/Object/DynamicItemDisplayBundle.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new DynamicItemDisplayBundle(), + 'NODE', + DynamicItemDisplayBundle::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/DynamicItemDisplayBundleFolder.php b/src/FacebookAds/Object/DynamicItemDisplayBundleFolder.php new file mode 100644 index 000000000..ea0dbfa61 --- /dev/null +++ b/src/FacebookAds/Object/DynamicItemDisplayBundleFolder.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new DynamicItemDisplayBundleFolder(), + 'NODE', + DynamicItemDisplayBundleFolder::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/EducationExperience.php b/src/FacebookAds/Object/EducationExperience.php new file mode 100644 index 000000000..d4c5525a6 --- /dev/null +++ b/src/FacebookAds/Object/EducationExperience.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new EducationExperience(), + 'NODE', + EducationExperience::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/EmailImport.php b/src/FacebookAds/Object/EmailImport.php new file mode 100644 index 000000000..063314b37 --- /dev/null +++ b/src/FacebookAds/Object/EmailImport.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/ticket_tiers', - new AbstractCrudObject(), + new EventTicketTier(), 'EDGE', - array(), + EventTicketTier::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/EventExternalTicketInfo.php b/src/FacebookAds/Object/EventExternalTicketInfo.php new file mode 100644 index 000000000..131b47425 --- /dev/null +++ b/src/FacebookAds/Object/EventExternalTicketInfo.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new EventExternalTicketInfo(), + 'NODE', + EventExternalTicketInfo::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/EventRegistrationSetting.php b/src/FacebookAds/Object/EventRegistrationSetting.php new file mode 100644 index 000000000..0893e6004 --- /dev/null +++ b/src/FacebookAds/Object/EventRegistrationSetting.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new EventRegistrationSetting(), + 'NODE', + EventRegistrationSetting::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/EventSourceGroup.php b/src/FacebookAds/Object/EventSourceGroup.php index efe711a31..3b19c10cd 100644 --- a/src/FacebookAds/Object/EventSourceGroup.php +++ b/src/FacebookAds/Object/EventSourceGroup.php @@ -46,7 +46,7 @@ protected static function getReferencedEnums() { } - public function getSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function getShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -69,7 +69,7 @@ public function getSharedAccounts(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function createSharedAccount(array $fields = array(), array $params = array(), $pending = false) { + public function createShareDAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/EventTicketSetting.php b/src/FacebookAds/Object/EventTicketSetting.php new file mode 100644 index 000000000..05e9fb382 --- /dev/null +++ b/src/FacebookAds/Object/EventTicketSetting.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new EventTicketSetting(), + 'NODE', + EventTicketSetting::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/EventTicketTier.php b/src/FacebookAds/Object/EventTicketTier.php new file mode 100644 index 000000000..72a69d4e7 --- /dev/null +++ b/src/FacebookAds/Object/EventTicketTier.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new EventTicketTier(), + 'NODE', + EventTicketTier::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/EventTour.php b/src/FacebookAds/Object/EventTour.php new file mode 100644 index 000000000..a3138bf82 --- /dev/null +++ b/src/FacebookAds/Object/EventTour.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new EventTour(), + 'NODE', + EventTour::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ExpirablePost.php b/src/FacebookAds/Object/ExpirablePost.php new file mode 100644 index 000000000..502cc2d51 --- /dev/null +++ b/src/FacebookAds/Object/ExpirablePost.php @@ -0,0 +1,42 @@ +execute(); } - public function createWhatsappCreditSharingAndAttach(array $fields = array(), array $params = array(), $pending = false) { + public function createWhatsAppCreditSharingAnDAttach(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/ExtendedCreditApplication.php b/src/FacebookAds/Object/ExtendedCreditApplication.php new file mode 100644 index 000000000..d08b1050d --- /dev/null +++ b/src/FacebookAds/Object/ExtendedCreditApplication.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ExtendedCreditApplication(), + 'NODE', + ExtendedCreditApplication::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ExtendedCreditEmail.php b/src/FacebookAds/Object/ExtendedCreditEmail.php new file mode 100644 index 000000000..88bf6c633 --- /dev/null +++ b/src/FacebookAds/Object/ExtendedCreditEmail.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ExternalMerchantSettings(), + 'NODE', + ExternalMerchantSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/FAMEKumo.php b/src/FacebookAds/Object/FAMEKumo.php new file mode 100644 index 000000000..325129b85 --- /dev/null +++ b/src/FacebookAds/Object/FAMEKumo.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new FAMEKumo(), + 'NODE', + FAMEKumo::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/FBImageCopyrightMatch.php b/src/FacebookAds/Object/FBImageCopyrightMatch.php new file mode 100644 index 000000000..65f182ef5 --- /dev/null +++ b/src/FacebookAds/Object/FBImageCopyrightMatch.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new FBImageCopyrightMatch(), + 'NODE', + FBImageCopyrightMatch::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/FBLiteToNTTransitions.php b/src/FacebookAds/Object/FBLiteToNTTransitions.php new file mode 100644 index 000000000..e6edbd5a0 --- /dev/null +++ b/src/FacebookAds/Object/FBLiteToNTTransitions.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new FantasyGame(), + 'NODE', + FantasyGame::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/FavoriteCatalog.php b/src/FacebookAds/Object/FavoriteCatalog.php new file mode 100644 index 000000000..4e57f107c --- /dev/null +++ b/src/FacebookAds/Object/FavoriteCatalog.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new FavoriteCatalog(), + 'NODE', + FavoriteCatalog::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Fields/FAMEExportConfigFields.php b/src/FacebookAds/Object/Fields/AMOneshopSettingsFields.php similarity index 66% rename from src/FacebookAds/Object/Fields/FAMEExportConfigFields.php rename to src/FacebookAds/Object/Fields/AMOneshopSettingsFields.php index 9609c067e..9e758aa61 100644 --- a/src/FacebookAds/Object/Fields/FAMEExportConfigFields.php +++ b/src/FacebookAds/Object/Fields/AMOneshopSettingsFields.php @@ -20,19 +20,11 @@ * */ -class FAMEExportConfigFields extends AbstractEnum { +class AMOneshopSettingsFields extends AbstractEnum { - const CAN_EDIT = 'can_edit'; - const COLUMN_ID = 'column_id'; - const DISPLAY_NAME = 'display_name'; - const FORMAT = 'format'; public function getFieldTypes() { return array( - 'can_edit' => 'bool', - 'column_id' => 'string', - 'display_name' => 'string', - 'format' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/ANBlockedBICategoryFields.php b/src/FacebookAds/Object/Fields/ANBlockedBICategoryFields.php new file mode 100644 index 000000000..9ace99151 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ANBlockedBICategoryFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AREffectFields.php b/src/FacebookAds/Object/Fields/AREffectFields.php new file mode 100644 index 000000000..43586a8e3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AREffectFields.php @@ -0,0 +1,42 @@ + 'datetime', + 'id' => 'string', + 'last_modified_time' => 'datetime', + 'name' => 'string', + 'status' => 'string', + 'surfaces' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountAAACompatibleAdObjectsFields.php b/src/FacebookAds/Object/Fields/AdAccountAAACompatibleAdObjectsFields.php new file mode 100644 index 000000000..a30af9d4e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountAAACompatibleAdObjectsFields.php @@ -0,0 +1,36 @@ + 'list', + 'campaign_group_ids' => 'list', + 'campaign_ids' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountAAASimilarCampaignsFields.php b/src/FacebookAds/Object/Fields/AdAccountAAASimilarCampaignsFields.php new file mode 100644 index 000000000..7054bce09 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountAAASimilarCampaignsFields.php @@ -0,0 +1,36 @@ + 'unsigned int', + 'similar_campaigns_info' => 'list>', + 'used_campaign_slots' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageSavedFilterFields.php b/src/FacebookAds/Object/Fields/AdAccountASLScheduleFields.php similarity index 66% rename from src/FacebookAds/Object/Fields/PageSavedFilterFields.php rename to src/FacebookAds/Object/Fields/AdAccountASLScheduleFields.php index 10e6c00fe..fb1be8438 100644 --- a/src/FacebookAds/Object/Fields/PageSavedFilterFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountASLScheduleFields.php @@ -20,25 +20,19 @@ * */ -class PageSavedFilterFields extends AbstractEnum { +class AdAccountASLScheduleFields extends AbstractEnum { - const DISPLAY_NAME = 'display_name'; - const FILTERS = 'filters'; + const AD_ACCOUNT = 'ad_account'; const ID = 'id'; - const PAGE_ID = 'page_id'; - const SECTION = 'section'; const TIME_CREATED = 'time_created'; const TIME_UPDATED = 'time_updated'; public function getFieldTypes() { return array( - 'display_name' => 'string', - 'filters' => 'list', + 'ad_account' => 'AdAccount', 'id' => 'string', - 'page_id' => 'string', - 'section' => 'string', - 'time_created' => 'int', - 'time_updated' => 'int', + 'time_created' => 'datetime', + 'time_updated' => 'datetime', ); } } diff --git a/src/FacebookAds/Object/Fields/CatalogSegmentAllMatchCountLaserFields.php b/src/FacebookAds/Object/Fields/AdAccountAdLimitsInsightsFields.php similarity index 64% rename from src/FacebookAds/Object/Fields/CatalogSegmentAllMatchCountLaserFields.php rename to src/FacebookAds/Object/Fields/AdAccountAdLimitsInsightsFields.php index 6557226b3..518fec971 100644 --- a/src/FacebookAds/Object/Fields/CatalogSegmentAllMatchCountLaserFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountAdLimitsInsightsFields.php @@ -20,23 +20,15 @@ * */ -class CatalogSegmentAllMatchCountLaserFields extends AbstractEnum { +class AdAccountAdLimitsInsightsFields extends AbstractEnum { const DATE_START = 'date_start'; const DATE_STOP = 'date_stop'; - const EVENT = 'event'; - const SOURCE = 'source'; - const TOTAL_MATCHED_CONTENT_IDS = 'total_matched_content_ids'; - const UNIQUE_MATCHED_CONTENT_IDS = 'unique_matched_content_ids'; public function getFieldTypes() { return array( 'date_start' => 'string', 'date_stop' => 'string', - 'event' => 'string', - 'source' => 'ExternalEventSource', - 'total_matched_content_ids' => 'int', - 'unique_matched_content_ids' => 'int', ); } } diff --git a/src/FacebookAds/Object/Fields/AdAccountAdRulesCountByTypeFields.php b/src/FacebookAds/Object/Fields/AdAccountAdRulesCountByTypeFields.php new file mode 100644 index 000000000..45afd1b62 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountAdRulesCountByTypeFields.php @@ -0,0 +1,34 @@ + 'int', + 'evaluation_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountAdsRecommendedAudiosFields.php b/src/FacebookAds/Object/Fields/AdAccountAdsRecommendedAudiosFields.php new file mode 100644 index 000000000..8f90a7294 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountAdsRecommendedAudiosFields.php @@ -0,0 +1,32 @@ + 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountAllPaymentMethodsFields.php b/src/FacebookAds/Object/Fields/AdAccountAllPaymentMethodsFields.php new file mode 100644 index 000000000..725911033 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountAllPaymentMethodsFields.php @@ -0,0 +1,30 @@ + 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountBillingDatePreferenceFields.php b/src/FacebookAds/Object/Fields/AdAccountBillingDatePreferenceFields.php new file mode 100644 index 000000000..7f9efbdd9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountBillingDatePreferenceFields.php @@ -0,0 +1,42 @@ + 'AdAccount', + 'day_of_month' => 'int', + 'id' => 'string', + 'next_bill_date' => 'datetime', + 'time_created' => 'datetime', + 'time_effective' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php b/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php index e69608af1..8b560e5dc 100644 --- a/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountBusinessConstraintsFields.php @@ -32,7 +32,7 @@ public function getFieldTypes() { 'audience_controls' => 'Object', 'campaigns_with_error' => 'list', 'placement_controls' => 'Object', - 'status' => 'string', + 'status' => 'Status', ); } } diff --git a/src/FacebookAds/Object/Fields/AdAccountCampaignAttributionOptionInfoFields.php b/src/FacebookAds/Object/Fields/AdAccountCampaignAttributionOptionInfoFields.php new file mode 100644 index 000000000..c629f165f --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountCampaignAttributionOptionInfoFields.php @@ -0,0 +1,34 @@ + 'bool', + 'value' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountCreationRequestFields.php b/src/FacebookAds/Object/Fields/AdAccountCreationRequestFields.php new file mode 100644 index 000000000..6b88c938f --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountCreationRequestFields.php @@ -0,0 +1,100 @@ + 'string', + 'ad_accounts_info' => 'list', + 'additional_comment' => 'string', + 'address_in_chinese' => 'string', + 'address_in_english' => 'Object', + 'address_in_local_language' => 'string', + 'advertiser_business' => 'Business', + 'appeal_reason' => 'Object', + 'business' => 'Business', + 'business_registration_id' => 'string', + 'chinese_legal_entity_name' => 'string', + 'contact' => 'Object', + 'creator' => 'User', + 'credit_card_id' => 'string', + 'disapproval_reasons' => 'list', + 'english_legal_entity_name' => 'string', + 'extended_credit_id' => 'string', + 'id' => 'string', + 'is_smb' => 'bool', + 'is_test' => 'bool', + 'legal_entity_name_in_local_language' => 'string', + 'oe_request_id' => 'string', + 'official_website_url' => 'string', + 'planning_agency_business' => 'Business', + 'planning_agency_business_id' => 'string', + 'promotable_app_ids' => 'list', + 'promotable_page_ids' => 'list', + 'promotable_urls' => 'list', + 'request_change_reasons' => 'list', + 'status' => 'string', + 'subvertical' => 'string', + 'subvertical_v2' => 'string', + 'time_created' => 'datetime', + 'vertical' => 'string', + 'vertical_v2' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountCustomAudienceLimitsFields.php b/src/FacebookAds/Object/Fields/AdAccountCustomAudienceLimitsFields.php new file mode 100644 index 000000000..ee6ceed54 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountCustomAudienceLimitsFields.php @@ -0,0 +1,40 @@ + 'int', + 'audience_update_quota_left' => 'float', + 'has_hit_audience_update_limit' => 'bool', + 'next_audience_update_available_time' => 'string', + 'rate_limit_reset_time' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountOptimizationGoalsAEMv2EligibilityFields.php b/src/FacebookAds/Object/Fields/AdAccountOptimizationGoalsAEMv2EligibilityFields.php new file mode 100644 index 000000000..792078384 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountOptimizationGoalsAEMv2EligibilityFields.php @@ -0,0 +1,34 @@ + 'bool', + 'optimization_goal' => 'OptimizationGoal', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountPaymentDetailsFields.php b/src/FacebookAds/Object/Fields/AdAccountPaymentDetailsFields.php new file mode 100644 index 000000000..4aee6eafb --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountPaymentDetailsFields.php @@ -0,0 +1,42 @@ + 'CurrencyAmount', + 'create_date' => 'int', + 'id' => 'string', + 'last_action_status' => 'string', + 'metadata' => 'Object', + 'payment_details_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountPaymentOptionsFields.php b/src/FacebookAds/Object/Fields/AdAccountPaymentOptionsFields.php new file mode 100644 index 000000000..2b649f15a --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountPaymentOptionsFields.php @@ -0,0 +1,38 @@ + 'list', + 'available_card_types' => 'list', + 'available_payment_options' => 'list', + 'existing_payment_methods' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountPrepayDetailsFields.php b/src/FacebookAds/Object/Fields/AdAccountPrepayDetailsFields.php new file mode 100644 index 000000000..999fc131c --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountPrepayDetailsFields.php @@ -0,0 +1,38 @@ + 'CurrencyAmount', + 'max_acceptable_amount' => 'CurrencyAmount', + 'min_acceptable_amount' => 'CurrencyAmount', + 'should_collect_business_details' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountPromotionProgressBarFields.php b/src/FacebookAds/Object/Fields/AdAccountPromotionProgressBarFields.php new file mode 100644 index 000000000..4c0642707 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountPromotionProgressBarFields.php @@ -0,0 +1,46 @@ + 'bool', + 'coupon_currency' => 'string', + 'coupon_value' => 'int', + 'expiration_time' => 'datetime', + 'progress_completed' => 'bool', + 'promotion_type' => 'string', + 'spend_requirement_in_cent' => 'int', + 'spend_since_enrollment' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php b/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php new file mode 100644 index 000000000..a9c2b8ecc --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php @@ -0,0 +1,32 @@ + 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountRelatedIcoStudyFields.php b/src/FacebookAds/Object/Fields/AdAccountRelatedIcoStudyFields.php new file mode 100644 index 000000000..8be5fdd93 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountRelatedIcoStudyFields.php @@ -0,0 +1,30 @@ + 'string', + 'description' => 'string', + 'guidance_spec' => 'list', + 'thumbnail_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountSpendLimitFields.php b/src/FacebookAds/Object/Fields/AdAccountSpendLimitFields.php new file mode 100644 index 000000000..035975aef --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountSpendLimitFields.php @@ -0,0 +1,44 @@ + 'string', + 'group_id' => 'string', + 'limit_id' => 'string', + 'limit_value' => 'string', + 'time_created' => 'unsigned int', + 'time_start' => 'unsigned int', + 'time_stop' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountSubsidyAmountDetailsFields.php b/src/FacebookAds/Object/Fields/AdAccountSubsidyAmountDetailsFields.php new file mode 100644 index 000000000..1a41e1b98 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountSubsidyAmountDetailsFields.php @@ -0,0 +1,36 @@ + 'CurrencyAmount', + 'fee_amount' => 'CurrencyAmount', + 'total_amount' => 'CurrencyAmount', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountSuggestedTagFields.php b/src/FacebookAds/Object/Fields/AdAccountSuggestedTagFields.php new file mode 100644 index 000000000..9cb38b5f0 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountSuggestedTagFields.php @@ -0,0 +1,36 @@ + 'int', + 'x' => 'float', + 'y' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountURLForAssetExtractionFields.php b/src/FacebookAds/Object/Fields/AdAccountURLForAssetExtractionFields.php new file mode 100644 index 000000000..4f2388613 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountURLForAssetExtractionFields.php @@ -0,0 +1,34 @@ + 'string', + 'source_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountUserPermissionsFields.php b/src/FacebookAds/Object/Fields/AdAccountUserPermissionsFields.php new file mode 100644 index 000000000..3ae960366 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountUserPermissionsFields.php @@ -0,0 +1,50 @@ + 'Business', + 'business_persona' => 'Object', + 'created_by' => 'User', + 'created_time' => 'datetime', + 'email' => 'string', + 'status' => 'string', + 'tasks' => 'list', + 'updated_by' => 'User', + 'updated_time' => 'datetime', + 'user' => 'User', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php b/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php new file mode 100644 index 000000000..1ecfab531 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php @@ -0,0 +1,138 @@ + 'bool', + 'aco_sticky_settings' => 'list>', + 'ad_account' => 'AdAccount', + 'ad_object_export_format' => 'string', + 'auto_review_video_caption' => 'bool', + 'campaign_overview_columns' => 'list', + 'column_suggestion_status' => 'string', + 'default_account_overview_agegender_metrics' => 'list', + 'default_account_overview_location_metrics' => 'list', + 'default_account_overview_metrics' => 'list', + 'default_account_overview_time_metrics' => 'list', + 'default_builtin_column_preset' => 'string', + 'default_nam_time_range' => 'string', + 'draft_mode_enabled' => 'bool', + 'export_deleted_items_with_delivery' => 'bool', + 'export_summary_row' => 'bool', + 'has_seen_groups_column_flexing_experience' => 'bool', + 'has_seen_leads_column_flexing_experience' => 'bool', + 'has_seen_shops_ads_metrics_onboarding_tour' => 'bool', + 'has_seen_shops_column_flexing_experience' => 'bool', + 'hidden_optimization_tips' => 'list>', + 'id' => 'string', + 'is_3p_auth_setting_set' => 'bool', + 'is_text_variation_nux_close' => 'bool', + 'last_used_columns' => 'Object', + 'last_used_pe_filters' => 'list', + 'last_used_website_urls' => 'list', + 'outlier_preferences' => 'Object', + 'pinned_ad_object_ids' => 'list', + 'rb_export_format' => 'string', + 'rb_export_raw_data' => 'bool', + 'rb_export_summary_row' => 'bool', + 'saip_advertiser_setup_optimisation_guidance_overall_state' => 'string', + 'saip_advertiser_setup_optimisation_guidance_state' => 'list>', + 'shops_ads_metrics_onboarding_tour_close_count' => 'int', + 'shops_ads_metrics_onboarding_tour_last_action_time' => 'datetime', + 'should_default_image_auto_crop' => 'bool', + 'should_default_image_auto_crop_for_tail' => 'bool', + 'should_default_image_auto_crop_optimization' => 'bool', + 'should_default_image_dof_toggle' => 'bool', + 'should_default_image_lpp_ads_to_square' => 'bool', + 'should_default_instagram_profile_card_optimization' => 'bool', + 'should_default_text_swapping_optimization' => 'bool', + 'should_logout_of_3p_sourcing' => 'bool', + 'show_archived_data' => 'bool', + 'show_text_variation_nux_tooltip' => 'bool', + 'syd_campaign_trends_activemetric' => 'string', + 'syd_campaign_trends_attribution' => 'string', + 'syd_campaign_trends_metrics' => 'list', + 'syd_campaign_trends_objective' => 'SydCampaignTrendsObjective', + 'syd_campaign_trends_time_range' => 'string', + 'syd_landing_page_opt_in_status' => 'string', + 'text_variations_opt_in_type' => 'string', + 'user' => 'User', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountYouthAdsAdvertiserFields.php b/src/FacebookAds/Object/Fields/AdAccountYouthAdsAdvertiserFields.php new file mode 100644 index 000000000..91e2a89ea --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAccountYouthAdsAdvertiserFields.php @@ -0,0 +1,32 @@ + 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataPageNudgeMessageFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataPageNudgeMessageFields.php new file mode 100644 index 000000000..84ff96b82 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdAssetFeedAdditionalDataPageNudgeMessageFields.php @@ -0,0 +1,36 @@ + 'bool', + 'quick_replies' => 'list', + 'text' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php index 29a34da1f..b40cd14a1 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php @@ -44,6 +44,7 @@ class AdAssetFeedSpecFields extends AbstractEnum { const REASONS_TO_SHOP = 'reasons_to_shop'; const SHOPS_BUNDLE = 'shops_bundle'; const TITLES = 'titles'; + const UPCOMING_EVENTS = 'upcoming_events'; const VIDEOS = 'videos'; public function getFieldTypes() { @@ -70,6 +71,7 @@ public function getFieldTypes() { 'reasons_to_shop' => 'bool', 'shops_bundle' => 'bool', 'titles' => 'list', + 'upcoming_events' => 'list', 'videos' => 'list', ); } diff --git a/src/FacebookAds/Object/Fields/AdCampaignDeliveryStatsFields.php b/src/FacebookAds/Object/Fields/AdCampaignDeliveryStatsFields.php new file mode 100644 index 000000000..fec50ed6f --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCampaignDeliveryStatsFields.php @@ -0,0 +1,42 @@ + 'int', + 'current_average_cost' => 'float', + 'last_significant_edit_ts' => 'int', + 'learning_stage_exit_info' => 'Object', + 'learning_stage_info' => 'AdCampaignLearningStageInfo', + 'unsupported_features' => 'list>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCampaignGroupIncrementalConversionOptimizationConfigFields.php b/src/FacebookAds/Object/Fields/AdCampaignGroupIncrementalConversionOptimizationConfigFields.php new file mode 100644 index 000000000..8fe745223 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCampaignGroupIncrementalConversionOptimizationConfigFields.php @@ -0,0 +1,50 @@ + 'string', + 'ad_study_end_time' => 'datetime', + 'ad_study_id' => 'string', + 'ad_study_name' => 'string', + 'ad_study_start_time' => 'datetime', + 'cell_id' => 'string', + 'cell_name' => 'string', + 'holdout_size' => 'float', + 'ico_type' => 'string', + 'objectives' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCampaignGroupMetricsMetadataFields.php b/src/FacebookAds/Object/Fields/AdCampaignGroupMetricsMetadataFields.php new file mode 100644 index 000000000..65f8a9311 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCampaignGroupMetricsMetadataFields.php @@ -0,0 +1,34 @@ + 'list', + 'duplication_flow_tips' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCampaignGroupStatsFields.php b/src/FacebookAds/Object/Fields/AdCampaignGroupStatsFields.php new file mode 100644 index 000000000..d39b50dea --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCampaignGroupStatsFields.php @@ -0,0 +1,60 @@ + 'map', + 'campaign_group_id' => 'string', + 'clicks' => 'unsigned int', + 'end_time' => 'datetime', + 'impressions' => 'unsigned int', + 'inline_actions' => 'map', + 'social_clicks' => 'unsigned int', + 'social_impressions' => 'unsigned int', + 'social_spent' => 'unsigned int', + 'social_unique_clicks' => 'unsigned int', + 'social_unique_impressions' => 'unsigned int', + 'spent' => 'unsigned int', + 'start_time' => 'datetime', + 'unique_clicks' => 'unsigned int', + 'unique_impressions' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCampaignGroupStructureTreeFields.php b/src/FacebookAds/Object/Fields/AdCampaignGroupStructureTreeFields.php new file mode 100644 index 000000000..dbf8eac2b --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCampaignGroupStructureTreeFields.php @@ -0,0 +1,38 @@ + 'list', + 'id' => 'string', + 'name' => 'string', + 'time_updated' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCampaignMetricsMetadataFields.php b/src/FacebookAds/Object/Fields/AdCampaignMetricsMetadataFields.php new file mode 100644 index 000000000..5f2e7305e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCampaignMetricsMetadataFields.php @@ -0,0 +1,42 @@ + 'list', + 'creation_flow_tips' => 'list', + 'default_opted_in_placements' => 'list', + 'delivery_growth_optimizations' => 'list', + 'duplication_flow_tips' => 'list', + 'edit_flow_tips' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCampaignMultiAdsFields.php b/src/FacebookAds/Object/Fields/AdCampaignMultiAdsFields.php new file mode 100644 index 000000000..ad9e57582 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCampaignMultiAdsFields.php @@ -0,0 +1,34 @@ + 'string', + 'source_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCampaignStatsFields.php b/src/FacebookAds/Object/Fields/AdCampaignStatsFields.php new file mode 100644 index 000000000..0a1ce917a --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCampaignStatsFields.php @@ -0,0 +1,78 @@ + 'string', + 'actions' => 'Object', + 'adgroup_id' => 'string', + 'campaign_id' => 'string', + 'campaign_ids' => 'list', + 'clicks' => 'unsigned int', + 'end_time' => 'Object', + 'id' => 'string', + 'impressions' => 'string', + 'inline_actions' => 'map', + 'io_number' => 'unsigned int', + 'is_completed' => 'bool', + 'line_number' => 'unsigned int', + 'newsfeed_position' => 'Object', + 'social_clicks' => 'unsigned int', + 'social_impressions' => 'string', + 'social_spent' => 'unsigned int', + 'social_unique_clicks' => 'unsigned int', + 'social_unique_impressions' => 'string', + 'spent' => 'int', + 'start_time' => 'Object', + 'topline_id' => 'string', + 'unique_clicks' => 'unsigned int', + 'unique_impressions' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdColumnSizesFields.php b/src/FacebookAds/Object/Fields/AdColumnSizesFields.php new file mode 100644 index 000000000..f978ab1ca --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdColumnSizesFields.php @@ -0,0 +1,48 @@ + 'AdAccount', + 'app_id' => 'string', + 'columns' => 'list>', + 'id' => 'string', + 'owner' => 'User', + 'page' => 'string', + 'report' => 'string', + 'tab' => 'string', + 'view' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdContractFields.php b/src/FacebookAds/Object/Fields/AdContractFields.php new file mode 100644 index 000000000..4f9f5e418 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdContractFields.php @@ -0,0 +1,112 @@ + 'string', + 'account_mgr_fbid' => 'string', + 'account_mgr_name' => 'string', + 'adops_person_name' => 'string', + 'advertiser_address_fbid' => 'string', + 'advertiser_fbid' => 'string', + 'advertiser_name' => 'string', + 'agency_discount' => 'float', + 'agency_name' => 'string', + 'bill_to_address_fbid' => 'string', + 'bill_to_fbid' => 'string', + 'campaign_name' => 'string', + 'created_by' => 'string', + 'created_date' => 'unsigned int', + 'customer_io' => 'string', + 'io_number' => 'unsigned int', + 'io_terms' => 'string', + 'io_type' => 'string', + 'last_updated_by' => 'string', + 'last_updated_date' => 'unsigned int', + 'max_end_date' => 'unsigned int', + 'mdc_fbid' => 'string', + 'media_plan_number' => 'string', + 'min_start_date' => 'unsigned int', + 'msa_contract' => 'string', + 'payment_terms' => 'string', + 'rev_hold_flag' => 'bool', + 'rev_hold_released_by' => 'int', + 'rev_hold_released_on' => 'unsigned int', + 'salesrep_fbid' => 'string', + 'salesrep_name' => 'string', + 'sold_to_address_fbid' => 'string', + 'sold_to_fbid' => 'string', + 'status' => 'string', + 'subvertical' => 'string', + 'thirdparty_billed' => 'unsigned int', + 'thirdparty_uid' => 'string', + 'thirdparty_url' => 'string', + 'vat_country' => 'string', + 'version' => 'unsigned int', + 'vertical' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdConversionValuesFields.php b/src/FacebookAds/Object/Fields/AdConversionValuesFields.php new file mode 100644 index 000000000..81bbf2153 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdConversionValuesFields.php @@ -0,0 +1,36 @@ + 'string', + 'campaign_id' => 'string', + 'values' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdConversionsFields.php b/src/FacebookAds/Object/Fields/AdConversionsFields.php new file mode 100644 index 000000000..2538b4686 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdConversionsFields.php @@ -0,0 +1,38 @@ + 'string', + 'adgroup_id' => 'string', + 'campaign_id' => 'string', + 'values' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreationPackageConfigFields.php b/src/FacebookAds/Object/Fields/AdCreationPackageConfigFields.php new file mode 100644 index 000000000..73abd726b --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreationPackageConfigFields.php @@ -0,0 +1,42 @@ + 'string', + 'id' => 'string', + 'is_eligible_for_default_opt_in' => 'bool', + 'objective' => 'string', + 'package_id' => 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeAssetGroupsSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeAssetGroupsSpecFields.php new file mode 100644 index 000000000..ec41faad3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeAssetGroupsSpecFields.php @@ -0,0 +1,34 @@ + 'list', + 'origin' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php index e98a38610..e2bc4ee32 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php @@ -23,7 +23,9 @@ class AdCreativeBrandedContentAdsFields extends AbstractEnum { const AD_FORMAT = 'ad_format'; + const CONTENT_SEARCH_INPUT = 'content_search_input'; const CREATOR_AD_PERMISSION_TYPE = 'creator_ad_permission_type'; + 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 PARTNERS = 'partners'; @@ -33,7 +35,9 @@ class AdCreativeBrandedContentAdsFields extends AbstractEnum { public function getFieldTypes() { return array( 'ad_format' => 'int', + 'content_search_input' => 'string', 'creator_ad_permission_type' => 'string', + 'facebook_boost_post_access_token' => 'string', 'instagram_boost_post_access_token' => 'string', 'is_mca_internal' => 'bool', 'partners' => 'list', diff --git a/src/FacebookAds/Object/Fields/AdCreativeContextualMultiAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeContextualMultiAdsFields.php new file mode 100644 index 000000000..ac8994127 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeContextualMultiAdsFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureActionMetadataFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureActionMetadataFields.php new file mode 100644 index 000000000..5cfe3edd6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureActionMetadataFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php new file mode 100644 index 000000000..8ec11eb08 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php @@ -0,0 +1,44 @@ + 'string', + 'catalog_feed_tag_name' => 'string', + 'font_name' => 'string', + 'product_recommendation_type' => 'string', + 'showcase_card_display' => 'string', + 'text_style' => 'string', + 'video_crop_style' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php index f225d283f..2e9f705d9 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php @@ -22,6 +22,8 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { + const ADAPT_TO_PLACEMENT = 'adapt_to_placement'; + const ADS_WITH_BENEFITS = 'ads_with_benefits'; const ADVANTAGE_PLUS_CREATIVE = 'advantage_plus_creative'; const APP_HIGHLIGHTS = 'app_highlights'; const AUDIO = 'audio'; @@ -31,9 +33,11 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const CV_TRANSFORMATION = 'cv_transformation'; const DESCRIPTION_AUTOMATION = 'description_automation'; const DHA_OPTIMIZATION = 'dha_optimization'; + const FEED_CAPTION_OPTIMIZATION = 'feed_caption_optimization'; const IG_GLADOS_FEED = 'ig_glados_feed'; const IMAGE_AUTO_CROP = 'image_auto_crop'; const IMAGE_BACKGROUND_GEN = 'image_background_gen'; + const IMAGE_BRIGHTNESS_AND_CONTRAST = 'image_brightness_and_contrast'; const IMAGE_ENHANCEMENT = 'image_enhancement'; const IMAGE_TEMPLATES = 'image_templates'; const IMAGE_TOUCHUPS = 'image_touchups'; @@ -52,10 +56,13 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const TEXT_GENERATION = 'text_generation'; const TEXT_OPTIMIZATIONS = 'text_optimizations'; const VIDEO_AUTO_CROP = 'video_auto_crop'; + const VIDEO_FILTERING = 'video_filtering'; const VIDEO_HIGHLIGHT = 'video_highlight'; public function getFieldTypes() { return array( + 'adapt_to_placement' => 'AdCreativeFeatureDetails', + 'ads_with_benefits' => 'AdCreativeFeatureDetails', 'advantage_plus_creative' => 'AdCreativeFeatureDetails', 'app_highlights' => 'AdCreativeFeatureDetails', 'audio' => 'AdCreativeFeatureDetails', @@ -65,9 +72,11 @@ public function getFieldTypes() { 'cv_transformation' => 'AdCreativeFeatureDetails', 'description_automation' => 'AdCreativeFeatureDetails', 'dha_optimization' => 'AdCreativeFeatureDetails', + 'feed_caption_optimization' => 'AdCreativeFeatureDetails', 'ig_glados_feed' => 'AdCreativeFeatureDetails', 'image_auto_crop' => 'AdCreativeFeatureDetails', 'image_background_gen' => 'AdCreativeFeatureDetails', + 'image_brightness_and_contrast' => 'AdCreativeFeatureDetails', 'image_enhancement' => 'AdCreativeFeatureDetails', 'image_templates' => 'AdCreativeFeatureDetails', 'image_touchups' => 'AdCreativeFeatureDetails', @@ -86,6 +95,7 @@ public function getFieldTypes() { 'text_generation' => 'AdCreativeFeatureDetails', 'text_optimizations' => 'AdCreativeFeatureDetails', 'video_auto_crop' => 'AdCreativeFeatureDetails', + 'video_filtering' => 'AdCreativeFeatureDetails', 'video_highlight' => 'AdCreativeFeatureDetails', ); } diff --git a/src/FacebookAds/Object/Fields/AdCreativeFields.php b/src/FacebookAds/Object/Fields/AdCreativeFields.php index 157c720c0..eb428b550 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFields.php @@ -37,6 +37,7 @@ class AdCreativeFields extends AbstractEnum { const CATEGORIZATION_CRITERIA = 'categorization_criteria'; const CATEGORY_MEDIA_SOURCE = 'category_media_source'; const COLLABORATIVE_ADS_LSB_IMAGE_BANK_ID = 'collaborative_ads_lsb_image_bank_id'; + const CONTEXTUAL_MULTI_ADS = 'contextual_multi_ads'; const CREATIVE_SOURCING_SPEC = 'creative_sourcing_spec'; const DEGREES_OF_FREEDOM_SPEC = 'degrees_of_freedom_spec'; const DESTINATION_SET_ID = 'destination_set_id'; @@ -62,7 +63,6 @@ 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'; @@ -71,6 +71,7 @@ class AdCreativeFields extends AbstractEnum { const OBJECT_TYPE = 'object_type'; const OBJECT_URL = 'object_url'; const OMNICHANNEL_LINK_SPEC = 'omnichannel_link_spec'; + const PAGE_WELCOME_MESSAGE = 'page_welcome_message'; const PHOTO_ALBUM_SOURCE_OBJECT_STORY_ID = 'photo_album_source_object_story_id'; const PLACE_PAGE_SET_ID = 'place_page_set_id'; const PLATFORM_CUSTOMIZATIONS = 'platform_customizations'; @@ -109,6 +110,7 @@ public function getFieldTypes() { 'categorization_criteria' => 'string', 'category_media_source' => 'string', 'collaborative_ads_lsb_image_bank_id' => 'string', + 'contextual_multi_ads' => 'AdCreativeContextualMultiAds', 'creative_sourcing_spec' => 'AdCreativeSourcingSpec', 'degrees_of_freedom_spec' => 'AdCreativeDegreesOfFreedomSpec', 'destination_set_id' => 'string', @@ -134,7 +136,6 @@ 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', @@ -143,6 +144,7 @@ public function getFieldTypes() { 'object_type' => 'ObjectType', 'object_url' => 'string', 'omnichannel_link_spec' => 'AdCreativeOmnichannelLinkSpec', + 'page_welcome_message' => 'string', 'photo_album_source_object_story_id' => 'string', 'place_page_set_id' => 'string', 'platform_customizations' => 'AdCreativePlatformCustomization', diff --git a/src/FacebookAds/Object/Fields/AdCreativeGenerativeAssetSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeGenerativeAssetSpecFields.php new file mode 100644 index 000000000..692764ea1 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeGenerativeAssetSpecFields.php @@ -0,0 +1,30 @@ + 'string', + 'element_type' => 'string', + 'x' => 'float', + 'y' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataCustomOverlaySpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataCustomOverlaySpecFields.php new file mode 100644 index 000000000..556f165ea --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataCustomOverlaySpecFields.php @@ -0,0 +1,46 @@ + 'BackgroundColor', + 'float_with_margin' => 'bool', + 'font' => 'Font', + 'option' => 'Option', + 'position' => 'Position', + 'render_with_icon' => 'bool', + 'template' => 'Template', + 'text_color' => 'TextColor', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataMomentFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataMomentFields.php new file mode 100644 index 000000000..88a2ccdc6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataMomentFields.php @@ -0,0 +1,34 @@ + 'string', + 'type' => 'Type', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php new file mode 100644 index 000000000..5ce4ea571 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php @@ -0,0 +1,42 @@ + 'list', + 'footer' => 'string', + 'greeting' => 'string', + 'language' => 'string', + 'referenced_adgroup_id' => 'string', + 'whats_app_business_phone_number_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativePromotionMetadataSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativePromotionMetadataSpecFields.php index 2eff0e819..c0e22fd9e 100644 --- a/src/FacebookAds/Object/Fields/AdCreativePromotionMetadataSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativePromotionMetadataSpecFields.php @@ -32,13 +32,13 @@ class AdCreativePromotionMetadataSpecFields extends AbstractEnum { public function getFieldTypes() { return array( - 'end_date' => 'datetime', + 'end_date' => 'int', 'id' => 'string', 'promotion_source' => 'string', 'promotion_type' => 'string', 'promotion_value' => 'float', 'required_code' => 'string', - 'start_date' => 'datetime', + 'start_date' => 'int', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeRegionalRegulationDisclaimerFields.php b/src/FacebookAds/Object/Fields/AdCreativeRegionalRegulationDisclaimerFields.php new file mode 100644 index 000000000..569eaae52 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeRegionalRegulationDisclaimerFields.php @@ -0,0 +1,30 @@ + 'string', + 'reward_program_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeShopSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeShopSpecFields.php new file mode 100644 index 000000000..8743d15c6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeShopSpecFields.php @@ -0,0 +1,36 @@ + 'string', + 'landing_view' => 'string', + 'shop_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeVideoDataCustomOverlaySpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeVideoDataCustomOverlaySpecFields.php new file mode 100644 index 000000000..638a23f56 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeVideoDataCustomOverlaySpecFields.php @@ -0,0 +1,50 @@ + 'string', + 'background_opacity' => 'BackgroundOpacity', + 'duration' => 'int', + 'float_with_margin' => 'bool', + 'full_width' => 'bool', + 'option' => 'Option', + 'position' => 'Position', + 'start' => 'int', + 'template' => 'Template', + 'text_color' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeVideoDataMediaElementsFields.php b/src/FacebookAds/Object/Fields/AdCreativeVideoDataMediaElementsFields.php new file mode 100644 index 000000000..d61e601cd --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeVideoDataMediaElementsFields.php @@ -0,0 +1,34 @@ + 'string', + 'element_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCreativeWhatsAppChannelSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeWhatsAppChannelSpecFields.php new file mode 100644 index 000000000..5592871c7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCreativeWhatsAppChannelSpecFields.php @@ -0,0 +1,34 @@ + 'string', + 'channel_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdCustomDerivedMetricsFields.php b/src/FacebookAds/Object/Fields/AdCustomDerivedMetricsFields.php new file mode 100644 index 000000000..beca9182c --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdCustomDerivedMetricsFields.php @@ -0,0 +1,64 @@ + 'string', + 'business' => 'Business', + 'creation_time' => 'datetime', + 'creator' => 'Profile', + 'custom_derived_metric_type' => 'string', + 'deletion_time' => 'datetime', + 'deletor' => 'Profile', + 'description' => 'string', + 'format_type' => 'string', + 'formula' => 'string', + 'has_attribution_windows' => 'bool', + 'has_inline_attribution_window' => 'bool', + 'id' => 'string', + 'name' => 'string', + 'permission' => 'string', + 'saved_report_id' => 'string', + 'scope' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdDefaultValuesFields.php b/src/FacebookAds/Object/Fields/AdDefaultValuesFields.php new file mode 100644 index 000000000..7d28e89a1 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdDefaultValuesFields.php @@ -0,0 +1,32 @@ + 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdDraftFields.php b/src/FacebookAds/Object/Fields/AdDraftFields.php new file mode 100644 index 000000000..0b49257c6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdDraftFields.php @@ -0,0 +1,60 @@ + 'string', + 'api_version' => 'string', + 'async_request_set' => 'AdAsyncRequestSet', + 'author_id' => 'string', + 'created_by' => 'string', + 'draft_version' => 'string', + 'id' => 'string', + 'is_active' => 'bool', + 'name' => 'string', + 'ownership_type' => 'string', + 'publish_status' => 'Object', + 'state' => 'string', + 'summary' => 'string', + 'time_created' => 'datetime', + 'time_updated' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdExportPresetFields.php b/src/FacebookAds/Object/Fields/AdExportPresetFields.php new file mode 100644 index 000000000..14b605703 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdExportPresetFields.php @@ -0,0 +1,42 @@ + 'datetime', + 'fields' => 'list', + 'id' => 'string', + 'name' => 'string', + 'owner' => 'User', + 'updated_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdFields.php b/src/FacebookAds/Object/Fields/AdFields.php index 6d98a1e72..c107ea804 100644 --- a/src/FacebookAds/Object/Fields/AdFields.php +++ b/src/FacebookAds/Object/Fields/AdFields.php @@ -40,6 +40,7 @@ class AdFields extends AbstractEnum { const CONVERSION_SPECS = 'conversion_specs'; const CREATED_TIME = 'created_time'; const CREATIVE = 'creative'; + const CREATIVE_ASSET_GROUPS_SPEC = 'creative_asset_groups_spec'; const DEMOLINK_HASH = 'demolink_hash'; const DISPLAY_SEQUENCE = 'display_sequence'; const EFFECTIVE_STATUS = 'effective_status'; @@ -87,6 +88,7 @@ public function getFieldTypes() { 'conversion_specs' => 'list', 'created_time' => 'datetime', 'creative' => 'AdCreative', + 'creative_asset_groups_spec' => 'AdCreativeAssetGroupsSpec', 'demolink_hash' => 'string', 'display_sequence' => 'int', 'effective_status' => 'EffectiveStatus', diff --git a/src/FacebookAds/Object/Fields/AdKeywordStatsFields.php b/src/FacebookAds/Object/Fields/AdKeywordStatsFields.php new file mode 100644 index 000000000..f5ef19199 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdKeywordStatsFields.php @@ -0,0 +1,70 @@ + 'list', + 'clicks' => 'unsigned int', + 'cost_per_total_action' => 'float', + 'cost_per_unique_click' => 'float', + 'cpc' => 'float', + 'cpm' => 'float', + 'cpp' => 'float', + 'ctr' => 'float', + 'frequency' => 'float', + 'id' => 'string', + 'impressions' => 'unsigned int', + 'name' => 'string', + 'reach' => 'unsigned int', + 'spend' => 'float', + 'total_actions' => 'unsigned int', + 'total_unique_actions' => 'unsigned int', + 'unique_actions' => 'list', + 'unique_clicks' => 'unsigned int', + 'unique_ctr' => 'float', + 'unique_impressions' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdKpiShiftFields.php b/src/FacebookAds/Object/Fields/AdKpiShiftFields.php new file mode 100644 index 000000000..99f335202 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdKpiShiftFields.php @@ -0,0 +1,42 @@ + 'AdSet', + 'cost_per_result_shift' => 'float', + 'enough_effective_days' => 'bool', + 'result_indicator' => 'string', + 'result_shift' => 'float', + 'spend_shift' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdLightAdgroupFields.php b/src/FacebookAds/Object/Fields/AdLightAdgroupFields.php new file mode 100644 index 000000000..655ef5943 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdLightAdgroupFields.php @@ -0,0 +1,34 @@ + 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdLightCampaignFields.php b/src/FacebookAds/Object/Fields/AdLightCampaignFields.php new file mode 100644 index 000000000..eaa7b983d --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdLightCampaignFields.php @@ -0,0 +1,34 @@ + 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdLightCampaignGroupFields.php b/src/FacebookAds/Object/Fields/AdLightCampaignGroupFields.php new file mode 100644 index 000000000..bcf6bd345 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdLightCampaignGroupFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdLimitSettingFields.php b/src/FacebookAds/Object/Fields/AdLimitSettingFields.php new file mode 100644 index 000000000..42ac5a88c --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdLimitSettingFields.php @@ -0,0 +1,32 @@ + 'list>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdLimitsEnforcementDataFields.php b/src/FacebookAds/Object/Fields/AdLimitsEnforcementDataFields.php new file mode 100644 index 000000000..2f7908996 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdLimitsEnforcementDataFields.php @@ -0,0 +1,42 @@ + 'int', + 'ad_limit_on_scope' => 'int', + 'ad_volume_on_page' => 'int', + 'ad_volume_on_scope' => 'int', + 'is_admin' => 'bool', + 'page_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdNetworkAnalyticsAsyncQueryExportFields.php b/src/FacebookAds/Object/Fields/AdNetworkAnalyticsAsyncQueryExportFields.php new file mode 100644 index 000000000..90bc6aa89 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdNetworkAnalyticsAsyncQueryExportFields.php @@ -0,0 +1,38 @@ + 'Object', + 'export_link' => 'string', + 'query_id' => 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdProposalFields.php b/src/FacebookAds/Object/Fields/AdProposalFields.php new file mode 100644 index 000000000..0bb3fc645 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdProposalFields.php @@ -0,0 +1,68 @@ + 'string', + 'adaccount' => 'AdAccount', + 'creation_time' => 'datetime', + 'creator' => 'User', + 'delivery_interface' => 'string', + 'expiration_time' => 'datetime', + 'has_conflict' => 'bool', + 'id' => 'string', + 'kpi_metric' => 'string', + 'message' => 'string', + 'name' => 'string', + 'proposal_dts_template' => 'string', + 'proposal_template_name' => 'string', + 'recommendation' => 'string', + 'review_time' => 'datetime', + 'reviewed_by' => 'User', + 'send_time' => 'datetime', + 'status' => 'string', + 'use_testing' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdRecommendationFields.php b/src/FacebookAds/Object/Fields/AdRecommendationFields.php index b7f6e9e07..cd593d7d0 100644 --- a/src/FacebookAds/Object/Fields/AdRecommendationFields.php +++ b/src/FacebookAds/Object/Fields/AdRecommendationFields.php @@ -29,6 +29,7 @@ class AdRecommendationFields extends AbstractEnum { const MESSAGE = 'message'; const RECOMMENDATION_DATA = 'recommendation_data'; const TITLE = 'title'; + const VALUE = 'value'; public function getFieldTypes() { return array( @@ -39,6 +40,7 @@ public function getFieldTypes() { 'message' => 'string', 'recommendation_data' => 'AdRecommendationData', 'title' => 'string', + 'value' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdSavedKeywordsFields.php b/src/FacebookAds/Object/Fields/AdSavedKeywordsFields.php new file mode 100644 index 000000000..f09c38f31 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdSavedKeywordsFields.php @@ -0,0 +1,44 @@ + 'AdAccount', + 'id' => 'string', + 'keywords' => 'AdKeywords', + 'name' => 'string', + 'run_status' => 'string', + 'time_created' => 'datetime', + 'time_updated' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdSavedLocationFields.php b/src/FacebookAds/Object/Fields/AdSavedLocationFields.php new file mode 100644 index 000000000..36715d510 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdSavedLocationFields.php @@ -0,0 +1,50 @@ + 'list', + 'countries' => 'list', + 'country_groups' => 'list', + 'custom_locations' => 'list', + 'geo_markets' => 'list', + 'id' => 'string', + 'location_sentences' => 'list', + 'name' => 'string', + 'regions' => 'list', + 'zips' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdSavedReportFields.php b/src/FacebookAds/Object/Fields/AdSavedReportFields.php new file mode 100644 index 000000000..e693032c6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdSavedReportFields.php @@ -0,0 +1,66 @@ + 'Application', + 'breakdowns' => 'list', + 'builtin_column_set' => 'string', + 'creation_source' => 'string', + 'date_interval' => 'Object', + 'date_preset' => 'string', + 'format_version' => 'int', + 'id' => 'string', + 'insights_section' => 'Object', + 'is_shared_unread' => 'bool', + 'level' => 'string', + 'name' => 'string', + 'normalized_filter' => 'list', + 'sort' => 'list', + 'user_attribution_windows' => 'list', + 'user_columns' => 'list', + 'user_filter' => 'list', + 'user_owner' => 'User', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdSetFields.php b/src/FacebookAds/Object/Fields/AdSetFields.php index c40e0c1b6..44a142245 100644 --- a/src/FacebookAds/Object/Fields/AdSetFields.php +++ b/src/FacebookAds/Object/Fields/AdSetFields.php @@ -70,6 +70,7 @@ class AdSetFields extends AbstractEnum { const PROMOTED_OBJECT = 'promoted_object'; const RECOMMENDATIONS = 'recommendations'; const RECURRING_BUDGET_SEMANTICS = 'recurring_budget_semantics'; + const REGIONAL_REGULATED_CATEGORIES = 'regional_regulated_categories'; const REGIONAL_REGULATION_IDENTITIES = 'regional_regulation_identities'; const REVIEW_FEEDBACK = 'review_feedback'; const RF_PREDICTION_ID = 'rf_prediction_id'; @@ -144,7 +145,8 @@ public function getFieldTypes() { 'promoted_object' => 'AdPromotedObject', 'recommendations' => 'list', 'recurring_budget_semantics' => 'bool', - 'regional_regulation_identities' => 'Object', + 'regional_regulated_categories' => 'list', + 'regional_regulation_identities' => 'RegionalRegulationIdentities', 'review_feedback' => 'string', 'rf_prediction_id' => 'string', 'source_adset' => 'AdSet', diff --git a/src/FacebookAds/Object/Fields/AdToplineDetailFields.php b/src/FacebookAds/Object/Fields/AdToplineDetailFields.php new file mode 100644 index 000000000..e981e57a7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdToplineDetailFields.php @@ -0,0 +1,58 @@ + 'int', + 'ad_account_id' => 'string', + 'flight_end_date' => 'datetime', + 'flight_start_date' => 'datetime', + 'id' => 'string', + 'io_number' => 'int', + 'line_number' => 'int', + 'price' => 'float', + 'quantity' => 'float', + 'sf_detail_line_id' => 'string', + 'subline_id' => 'string', + 'targets' => 'string', + 'time_created' => 'datetime', + 'time_updated' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdToplineFields.php b/src/FacebookAds/Object/Fields/AdToplineFields.php new file mode 100644 index 000000000..42e023e9c --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdToplineFields.php @@ -0,0 +1,100 @@ + 'string', + 'client_approval_date' => 'datetime', + 'created_by' => 'string', + 'created_date' => 'datetime', + 'description' => 'string', + 'flight_end_date' => 'datetime', + 'flight_start_date' => 'datetime', + 'func_cap_amount' => 'string', + 'func_cap_amount_with_offset' => 'string', + 'func_line_amount' => 'string', + 'func_line_amount_with_offset' => 'string', + 'func_price' => 'string', + 'func_price_with_offset' => 'string', + 'gender' => 'string', + 'id' => 'string', + 'impressions' => 'int', + 'io_number' => 'int', + 'is_bonus_line' => 'int', + 'keywords' => 'string', + 'last_updated_by' => 'string', + 'last_updated_date' => 'datetime', + 'line_number' => 'int', + 'line_position' => 'int', + 'line_type' => 'string', + 'location' => 'string', + 'max_age' => 'string', + 'max_budget' => 'string', + 'min_age' => 'string', + 'price_per_trp' => 'string', + 'product_type' => 'string', + 'rev_assurance_approval_date' => 'datetime', + 'targets' => 'string', + 'trp_updated_time' => 'int', + 'trp_value' => 'string', + 'uom' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdVolumeFields.php b/src/FacebookAds/Object/Fields/AdVolumeFields.php new file mode 100644 index 000000000..7caaf536b --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdVolumeFields.php @@ -0,0 +1,50 @@ + 'list', + 'ads_running_or_in_review_count' => 'unsigned int', + 'future_limit_activation_date' => 'string', + 'future_limit_on_ads_running_or_in_review' => 'unsigned int', + 'individual_accounts_ad_volume' => 'int', + 'is_gpa_page' => 'bool', + 'limit_on_ads_running_or_in_review' => 'unsigned int', + 'owning_business_ad_volume' => 'int', + 'partner_business_ad_volume' => 'int', + 'user_role' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdgroupFacebookFeedbackFields.php b/src/FacebookAds/Object/Fields/AdgroupFacebookFeedbackFields.php new file mode 100644 index 000000000..af171c3f0 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdgroupFacebookFeedbackFields.php @@ -0,0 +1,34 @@ + 'string', + 'preview' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php b/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php new file mode 100644 index 000000000..1332e8c0d --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php @@ -0,0 +1,32 @@ + 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdoptablePetFields.php b/src/FacebookAds/Object/Fields/AdoptablePetFields.php new file mode 100644 index 000000000..57b98ff54 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdoptablePetFields.php @@ -0,0 +1,88 @@ + 'string', + 'adoption_application_form_url' => 'string', + 'age_bucket' => 'string', + 'animal_type' => 'string', + 'applinks' => 'CatalogItemAppLinks', + 'availability' => 'string', + 'breed' => 'string', + 'category_specific_fields' => 'CatalogSubVerticalList', + 'coat_length' => 'string', + 'color' => 'string', + 'currency' => 'string', + 'description' => 'string', + 'features' => 'list', + 'gender' => 'string', + 'id' => 'string', + 'image_fetch_status' => 'ImageFetchStatus', + 'images' => 'list', + 'name' => 'string', + 'price' => 'string', + 'sanitized_images' => 'list', + 'secondary_color' => 'string', + 'shelter_email' => 'string', + 'shelter_name' => 'string', + 'shelter_page_id' => 'Page', + 'shelter_phone' => 'string', + 'size' => 'string', + 'tertiary_color' => 'string', + 'url' => 'string', + 'visibility' => 'Visibility', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsActionStatsFields.php b/src/FacebookAds/Object/Fields/AdsActionStatsFields.php index bedfffb0a..9d0b8c72b 100644 --- a/src/FacebookAds/Object/Fields/AdsActionStatsFields.php +++ b/src/FacebookAds/Object/Fields/AdsActionStatsFields.php @@ -23,12 +23,26 @@ class AdsActionStatsFields extends AbstractEnum { const FIELD_1D_CLICK = '1d_click'; + const FIELD_1D_CLICK_ALL_CONVERSIONS = '1d_click_all_conversions'; + const FIELD_1D_CLICK_FIRST_CONVERSION = '1d_click_first_conversion'; const FIELD_1D_EV = '1d_ev'; + const FIELD_1D_EV_ALL_CONVERSIONS = '1d_ev_all_conversions'; + const FIELD_1D_EV_FIRST_CONVERSION = '1d_ev_first_conversion'; const FIELD_1D_VIEW = '1d_view'; + const FIELD_1D_VIEW_ALL_CONVERSIONS = '1d_view_all_conversions'; + const FIELD_1D_VIEW_FIRST_CONVERSION = '1d_view_first_conversion'; const FIELD_28D_CLICK = '28d_click'; + const FIELD_28D_CLICK_ALL_CONVERSIONS = '28d_click_all_conversions'; + const FIELD_28D_CLICK_FIRST_CONVERSION = '28d_click_first_conversion'; const FIELD_28D_VIEW = '28d_view'; + const FIELD_28D_VIEW_ALL_CONVERSIONS = '28d_view_all_conversions'; + const FIELD_28D_VIEW_FIRST_CONVERSION = '28d_view_first_conversion'; const FIELD_7D_CLICK = '7d_click'; + const FIELD_7D_CLICK_ALL_CONVERSIONS = '7d_click_all_conversions'; + const FIELD_7D_CLICK_FIRST_CONVERSION = '7d_click_first_conversion'; const FIELD_7D_VIEW = '7d_view'; + const FIELD_7D_VIEW_ALL_CONVERSIONS = '7d_view_all_conversions'; + const FIELD_7D_VIEW_FIRST_CONVERSION = '7d_view_first_conversion'; const ACTION_BRAND = 'action_brand'; const ACTION_CANVAS_COMPONENT_ID = 'action_canvas_component_id'; const ACTION_CANVAS_COMPONENT_NAME = 'action_canvas_component_name'; @@ -62,12 +76,26 @@ class AdsActionStatsFields extends AbstractEnum { public function getFieldTypes() { return array( '1d_click' => 'string', + '1d_click_all_conversions' => 'string', + '1d_click_first_conversion' => 'string', '1d_ev' => 'string', + '1d_ev_all_conversions' => 'string', + '1d_ev_first_conversion' => 'string', '1d_view' => 'string', + '1d_view_all_conversions' => 'string', + '1d_view_first_conversion' => 'string', '28d_click' => 'string', + '28d_click_all_conversions' => 'string', + '28d_click_first_conversion' => 'string', '28d_view' => 'string', + '28d_view_all_conversions' => 'string', + '28d_view_first_conversion' => 'string', '7d_click' => 'string', + '7d_click_all_conversions' => 'string', + '7d_click_first_conversion' => 'string', '7d_view' => 'string', + '7d_view_all_conversions' => 'string', + '7d_view_first_conversion' => 'string', 'action_brand' => 'string', 'action_canvas_component_id' => 'string', 'action_canvas_component_name' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdsAnomalyDetectionFields.php b/src/FacebookAds/Object/Fields/AdsAnomalyDetectionFields.php new file mode 100644 index 000000000..da9f05200 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsAnomalyDetectionFields.php @@ -0,0 +1,34 @@ + 'list', + 'day' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsConversionGoalFields.php b/src/FacebookAds/Object/Fields/AdsConversionGoalFields.php new file mode 100644 index 000000000..3b21b357f --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsConversionGoalFields.php @@ -0,0 +1,46 @@ + 'string', + 'conversion_event_value_source' => 'string', + 'description' => 'string', + 'goal_creation_method' => 'string', + 'id' => 'string', + 'name' => 'string', + 'performance_goal' => 'string', + 'update_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsCreationSavedStateFields.php b/src/FacebookAds/Object/Fields/AdsCreationSavedStateFields.php new file mode 100644 index 000000000..dcdeaa317 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsCreationSavedStateFields.php @@ -0,0 +1,40 @@ + 'AdAccount', + 'id' => 'string', + 'serialized_store_data' => 'string', + 'time_updated' => 'datetime', + 'user' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsCustomPivotsPreviewFields.php b/src/FacebookAds/Object/Fields/AdsCustomPivotsPreviewFields.php new file mode 100644 index 000000000..45d3f7e48 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsCustomPivotsPreviewFields.php @@ -0,0 +1,48 @@ + 'string', + 'account_name' => 'string', + 'ad_id' => 'string', + 'ad_name' => 'string', + 'adset_id' => 'string', + 'adset_name' => 'string', + 'campaign_id' => 'string', + 'campaign_name' => 'string', + 'custom_breakdown' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsDataPartnerFields.php b/src/FacebookAds/Object/Fields/AdsDataPartnerFields.php new file mode 100644 index 000000000..c44cafcfb --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsDataPartnerFields.php @@ -0,0 +1,36 @@ + 'string', + 'name' => 'string', + 'rev_share_policies' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsDatasetFields.php b/src/FacebookAds/Object/Fields/AdsDatasetFields.php new file mode 100644 index 000000000..54fd38510 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsDatasetFields.php @@ -0,0 +1,134 @@ + 'bool', + 'collection_rate' => 'float', + 'config' => 'string', + 'creation_time' => 'datetime', + 'creator' => 'User', + 'dataset_id' => 'string', + 'description' => 'string', + 'duplicate_entries' => 'int', + 'enable_auto_assign_to_accounts' => 'bool', + 'enable_automatic_events' => 'bool', + 'enable_automatic_matching' => 'bool', + 'enable_real_time_event_log' => 'bool', + 'event_stats' => 'string', + 'event_time_max' => 'int', + 'event_time_min' => 'int', + 'first_party_cookie_status' => 'string', + 'has_bapi_domains' => 'bool', + 'has_catalog_microdata_activity' => 'bool', + 'has_ofa_redacted_keys' => 'bool', + 'has_sent_pii' => 'bool', + 'id' => 'string', + 'is_consolidated_container' => 'bool', + 'is_created_by_business' => 'bool', + 'is_crm' => 'bool', + 'is_eligible_for_sharing_to_ad_account' => 'bool', + 'is_eligible_for_sharing_to_business' => 'bool', + 'is_eligible_for_value_optimization' => 'bool', + 'is_mta_use' => 'bool', + 'is_restricted_use' => 'bool', + 'is_unavailable' => 'bool', + 'last_fired_time' => 'datetime', + 'last_upload_app' => 'string', + 'last_upload_app_changed_time' => 'int', + 'last_upload_time' => 'int', + 'late_upload_reminder_eligibility' => 'bool', + 'match_rate_approx' => 'int', + 'matched_entries' => 'int', + 'name' => 'string', + 'no_ads_tracked_for_weekly_uploaded_events_reminder_eligibility' => 'bool', + 'num_active_ad_set_tracked' => 'int', + 'num_recent_offline_conversions_uploaded' => 'int', + 'num_uploads' => 'int', + 'owner_ad_account' => 'AdAccount', + 'owner_business' => 'Business', + 'percentage_of_late_uploads_in_external_suboptimal_window' => 'int', + 'permissions' => 'OfflineConversionDataSetPermissions', + 'server_last_fired_time' => 'datetime', + 'show_automatic_events' => 'bool', + 'upload_rate' => 'float', + 'upload_reminder_eligibility' => 'bool', + 'usage' => 'OfflineConversionDataSetUsage', + 'valid_entries' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsGuidanceQEExposureFields.php b/src/FacebookAds/Object/Fields/AdsGuidanceQEExposureFields.php new file mode 100644 index 000000000..b15c0829b --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsGuidanceQEExposureFields.php @@ -0,0 +1,32 @@ + 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php b/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php index 316a3b9b4..04d1035b6 100644 --- a/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php +++ b/src/FacebookAds/Object/Fields/AdsHistogramStatsFields.php @@ -23,12 +23,26 @@ class AdsHistogramStatsFields extends AbstractEnum { const FIELD_1D_CLICK = '1d_click'; + const FIELD_1D_CLICK_ALL_CONVERSIONS = '1d_click_all_conversions'; + const FIELD_1D_CLICK_FIRST_CONVERSION = '1d_click_first_conversion'; const FIELD_1D_EV = '1d_ev'; + const FIELD_1D_EV_ALL_CONVERSIONS = '1d_ev_all_conversions'; + const FIELD_1D_EV_FIRST_CONVERSION = '1d_ev_first_conversion'; const FIELD_1D_VIEW = '1d_view'; + const FIELD_1D_VIEW_ALL_CONVERSIONS = '1d_view_all_conversions'; + const FIELD_1D_VIEW_FIRST_CONVERSION = '1d_view_first_conversion'; const FIELD_28D_CLICK = '28d_click'; + const FIELD_28D_CLICK_ALL_CONVERSIONS = '28d_click_all_conversions'; + const FIELD_28D_CLICK_FIRST_CONVERSION = '28d_click_first_conversion'; const FIELD_28D_VIEW = '28d_view'; + const FIELD_28D_VIEW_ALL_CONVERSIONS = '28d_view_all_conversions'; + const FIELD_28D_VIEW_FIRST_CONVERSION = '28d_view_first_conversion'; const FIELD_7D_CLICK = '7d_click'; + const FIELD_7D_CLICK_ALL_CONVERSIONS = '7d_click_all_conversions'; + const FIELD_7D_CLICK_FIRST_CONVERSION = '7d_click_first_conversion'; const FIELD_7D_VIEW = '7d_view'; + const FIELD_7D_VIEW_ALL_CONVERSIONS = '7d_view_all_conversions'; + const FIELD_7D_VIEW_FIRST_CONVERSION = '7d_view_first_conversion'; const ACTION_BRAND = 'action_brand'; const ACTION_CANVAS_COMPONENT_ID = 'action_canvas_component_id'; const ACTION_CANVAS_COMPONENT_NAME = 'action_canvas_component_name'; @@ -62,12 +76,26 @@ class AdsHistogramStatsFields extends AbstractEnum { public function getFieldTypes() { return array( '1d_click' => 'list', + '1d_click_all_conversions' => 'list', + '1d_click_first_conversion' => 'list', '1d_ev' => 'list', + '1d_ev_all_conversions' => 'list', + '1d_ev_first_conversion' => 'list', '1d_view' => 'list', + '1d_view_all_conversions' => 'list', + '1d_view_first_conversion' => 'list', '28d_click' => 'list', + '28d_click_all_conversions' => 'list', + '28d_click_first_conversion' => 'list', '28d_view' => 'list', + '28d_view_all_conversions' => 'list', + '28d_view_first_conversion' => 'list', '7d_click' => 'list', + '7d_click_all_conversions' => 'list', + '7d_click_first_conversion' => 'list', '7d_view' => 'list', + '7d_view_all_conversions' => 'list', + '7d_view_first_conversion' => 'list', 'action_brand' => 'string', 'action_canvas_component_id' => 'string', 'action_canvas_component_name' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdsInsightsFields.php b/src/FacebookAds/Object/Fields/AdsInsightsFields.php index 163d1fb69..2a5677c9f 100644 --- a/src/FacebookAds/Object/Fields/AdsInsightsFields.php +++ b/src/FacebookAds/Object/Fields/AdsInsightsFields.php @@ -31,6 +31,7 @@ class AdsInsightsFields extends AbstractEnum { const AD_ID = 'ad_id'; const AD_IMPRESSION_ACTIONS = 'ad_impression_actions'; const AD_NAME = 'ad_name'; + const ADJUSTED_OFFLINE_PURCHASE = 'adjusted_offline_purchase'; const ADSET_END = 'adset_end'; const ADSET_ID = 'adset_id'; const ADSET_NAME = 'adset_name'; @@ -51,7 +52,6 @@ class AdsInsightsFields extends AbstractEnum { const CATALOG_SEGMENT_VALUE_OMNI_PURCHASE_ROAS = 'catalog_segment_value_omni_purchase_roas'; const CATALOG_SEGMENT_VALUE_WEBSITE_PURCHASE_ROAS = 'catalog_segment_value_website_purchase_roas'; const CLICKS = 'clicks'; - const CONVERSION_LEAD_RATE = 'conversion_lead_rate'; const CONVERSION_RATE_RANKING = 'conversion_rate_ranking'; const CONVERSION_VALUES = 'conversion_values'; const CONVERSIONS = 'conversions'; @@ -62,7 +62,6 @@ class AdsInsightsFields extends AbstractEnum { const COST_PER_ACTION_TYPE = 'cost_per_action_type'; const COST_PER_AD_CLICK = 'cost_per_ad_click'; const COST_PER_CONVERSION = 'cost_per_conversion'; - const COST_PER_CONVERSION_LEAD = 'cost_per_conversion_lead'; const COST_PER_DDA_COUNTBY_CONVS = 'cost_per_dda_countby_convs'; const COST_PER_ESTIMATED_AD_RECALLERS = 'cost_per_estimated_ad_recallers'; const COST_PER_INLINE_LINK_CLICK = 'cost_per_inline_link_click'; @@ -113,6 +112,7 @@ class AdsInsightsFields extends AbstractEnum { const MARKETING_MESSAGES_WEBSITE_PURCHASE_VALUES = 'marketing_messages_website_purchase_values'; const MOBILE_APP_PURCHASE_ROAS = 'mobile_app_purchase_roas'; const OBJECTIVE = 'objective'; + const ONSITE_CONVERSION_MESSAGING_DETECTED_PURCHASE_DEDUPED = 'onsite_conversion_messaging_detected_purchase_deduped'; const OPTIMIZATION_GOAL = 'optimization_goal'; const OUTBOUND_CLICKS = 'outbound_clicks'; const OUTBOUND_CLICKS_CTR = 'outbound_clicks_ctr'; @@ -121,6 +121,7 @@ class AdsInsightsFields extends AbstractEnum { const QUALIFYING_QUESTION_QUALIFY_ANSWER_RATE = 'qualifying_question_qualify_answer_rate'; const QUALITY_RANKING = 'quality_ranking'; const REACH = 'reach'; + const SHOPS_ASSISTED_PURCHASES = 'shops_assisted_purchases'; const SOCIAL_SPEND = 'social_spend'; const SPEND = 'spend'; const TOTAL_POSTBACKS = 'total_postbacks'; @@ -169,6 +170,7 @@ public function getFieldTypes() { 'ad_id' => 'string', 'ad_impression_actions' => 'list', 'ad_name' => 'string', + 'adjusted_offline_purchase' => 'list', 'adset_end' => 'string', 'adset_id' => 'string', 'adset_name' => 'string', @@ -189,7 +191,6 @@ public function getFieldTypes() { 'catalog_segment_value_omni_purchase_roas' => 'list', 'catalog_segment_value_website_purchase_roas' => 'list', 'clicks' => 'string', - 'conversion_lead_rate' => 'string', 'conversion_rate_ranking' => 'string', 'conversion_values' => 'list', 'conversions' => 'list', @@ -200,7 +201,6 @@ public function getFieldTypes() { 'cost_per_action_type' => 'list', 'cost_per_ad_click' => 'list', 'cost_per_conversion' => 'list', - 'cost_per_conversion_lead' => 'string', 'cost_per_dda_countby_convs' => 'string', 'cost_per_estimated_ad_recallers' => 'string', 'cost_per_inline_link_click' => 'string', @@ -251,6 +251,7 @@ public function getFieldTypes() { 'marketing_messages_website_purchase_values' => 'string', 'mobile_app_purchase_roas' => 'list', 'objective' => 'string', + 'onsite_conversion_messaging_detected_purchase_deduped' => 'list', 'optimization_goal' => 'string', 'outbound_clicks' => 'list', 'outbound_clicks_ctr' => 'list', @@ -259,6 +260,7 @@ public function getFieldTypes() { 'qualifying_question_qualify_answer_rate' => 'string', 'quality_ranking' => 'string', 'reach' => 'string', + 'shops_assisted_purchases' => 'string', 'social_spend' => 'string', 'spend' => 'string', 'total_postbacks' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdsNamingTemplateFields.php b/src/FacebookAds/Object/Fields/AdsNamingTemplateFields.php new file mode 100644 index 000000000..2d0a04428 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsNamingTemplateFields.php @@ -0,0 +1,48 @@ + 'list>>>>', + 'api_version' => 'string', + 'field_order' => 'list', + 'id' => 'string', + 'level' => 'Level', + 'separator' => 'string', + 'template_version' => 'string', + 'user_defined_fields' => 'list>>>', + 'value_separator' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPaymentCycleFields.php b/src/FacebookAds/Object/Fields/AdsPaymentCycleFields.php new file mode 100644 index 000000000..b36accbdf --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPaymentCycleFields.php @@ -0,0 +1,42 @@ + 'string', + 'created_time' => 'datetime', + 'multiplier' => 'unsigned int', + 'requested_threshold_amount' => 'unsigned int', + 'threshold_amount' => 'unsigned int', + 'updated_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPivotRulesFields.php b/src/FacebookAds/Object/Fields/AdsPivotRulesFields.php new file mode 100644 index 000000000..1249f95b8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPivotRulesFields.php @@ -0,0 +1,50 @@ + 'datetime', + 'creator' => 'Profile', + 'description' => 'string', + 'id' => 'string', + 'name' => 'string', + 'permission' => 'string', + 'rules' => 'list', + 'scope' => 'string', + 'update_by' => 'Profile', + 'update_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelCAPISetupQualityFields.php b/src/FacebookAds/Object/Fields/AdsPixelCAPISetupQualityFields.php new file mode 100644 index 000000000..836d65001 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelCAPISetupQualityFields.php @@ -0,0 +1,34 @@ + 'Object', + 'event_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelCapabilityOverrideFields.php b/src/FacebookAds/Object/Fields/AdsPixelCapabilityOverrideFields.php new file mode 100644 index 000000000..3fd7d9053 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelCapabilityOverrideFields.php @@ -0,0 +1,38 @@ + 'string', + 'id' => 'string', + 'override_value' => 'string', + 'reason' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelDeliveryRecommendationsFields.php b/src/FacebookAds/Object/Fields/AdsPixelDeliveryRecommendationsFields.php new file mode 100644 index 000000000..22e5ebc1e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelDeliveryRecommendationsFields.php @@ -0,0 +1,34 @@ + 'string', + 'optimization_goal' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelDomainControlRuleFields.php b/src/FacebookAds/Object/Fields/AdsPixelDomainControlRuleFields.php new file mode 100644 index 000000000..665f07799 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelDomainControlRuleFields.php @@ -0,0 +1,34 @@ + 'list', + 'type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelDomainLastFiredTimeFields.php b/src/FacebookAds/Object/Fields/AdsPixelDomainLastFiredTimeFields.php new file mode 100644 index 000000000..89adb92db --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelDomainLastFiredTimeFields.php @@ -0,0 +1,34 @@ + 'string', + 'last_fired_time' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelEventLastFiredTimeFields.php b/src/FacebookAds/Object/Fields/AdsPixelEventLastFiredTimeFields.php new file mode 100644 index 000000000..ca53d9576 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelEventLastFiredTimeFields.php @@ -0,0 +1,34 @@ + 'string', + 'last_fired_time' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelEventPredictionFields.php b/src/FacebookAds/Object/Fields/AdsPixelEventPredictionFields.php new file mode 100644 index 000000000..815981ffd --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelEventPredictionFields.php @@ -0,0 +1,36 @@ + 'bool', + 'event_type' => 'string', + 'rule' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelEventSuggestionRuleFields.php b/src/FacebookAds/Object/Fields/AdsPixelEventSuggestionRuleFields.php new file mode 100644 index 000000000..b5465e3a9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelEventSuggestionRuleFields.php @@ -0,0 +1,46 @@ + 'int', + 'dismissed' => 'bool', + 'end_time' => 'datetime', + 'event_type' => 'string', + 'rank' => 'int', + 'rule' => 'string', + 'sample_urls' => 'list', + 'start_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelFields.php b/src/FacebookAds/Object/Fields/AdsPixelFields.php index b09ff1d09..81efbde13 100644 --- a/src/FacebookAds/Object/Fields/AdsPixelFields.php +++ b/src/FacebookAds/Object/Fields/AdsPixelFields.php @@ -37,6 +37,7 @@ class AdsPixelFields extends AbstractEnum { const EVENT_TIME_MAX = 'event_time_max'; const EVENT_TIME_MIN = 'event_time_min'; const FIRST_PARTY_COOKIE_STATUS = 'first_party_cookie_status'; + const HAS_1P_PIXEL_EVENT = 'has_1p_pixel_event'; const ID = 'id'; const IS_CONSOLIDATED_CONTAINER = 'is_consolidated_container'; const IS_CREATED_BY_BUSINESS = 'is_created_by_business'; @@ -73,6 +74,7 @@ public function getFieldTypes() { 'event_time_max' => 'int', 'event_time_min' => 'int', 'first_party_cookie_status' => 'string', + 'has_1p_pixel_event' => 'bool', 'id' => 'string', 'is_consolidated_container' => 'bool', 'is_created_by_business' => 'bool', diff --git a/src/FacebookAds/Object/Fields/AdsPixelItemPriceFields.php b/src/FacebookAds/Object/Fields/AdsPixelItemPriceFields.php new file mode 100644 index 000000000..40bc04540 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelItemPriceFields.php @@ -0,0 +1,34 @@ + 'string', + 'item_price_coverage' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelMicrodataStatsFields.php b/src/FacebookAds/Object/Fields/AdsPixelMicrodataStatsFields.php new file mode 100644 index 000000000..80817e1ea --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelMicrodataStatsFields.php @@ -0,0 +1,40 @@ + 'list', + 'errors_stats_for_time_ranges' => 'list', + 'has_valid_events' => 'bool', + 'suggested_allowed_domains_count_max' => 'int', + 'suggested_trusted_domains' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelRawFiresResultFields.php b/src/FacebookAds/Object/Fields/AdsPixelRawFiresResultFields.php new file mode 100644 index 000000000..2738f6449 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelRawFiresResultFields.php @@ -0,0 +1,46 @@ + 'string', + 'device_type' => 'string', + 'event' => 'string', + 'event_detection_method' => 'string', + 'event_src' => 'string', + 'placed_url' => 'string', + 'timestamp' => 'datetime', + 'user_pii_keys' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelRealTimeEventLogResultFields.php b/src/FacebookAds/Object/Fields/AdsPixelRealTimeEventLogResultFields.php new file mode 100644 index 000000000..2b026623b --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelRealTimeEventLogResultFields.php @@ -0,0 +1,56 @@ + 'string', + 'dedup_data' => 'string', + 'device_type' => 'string', + 'domain_control_rule_rejection' => 'string', + 'event' => 'string', + 'event_detection_method' => 'string', + 'in_iframe' => 'bool', + 'matched_rule_conditions' => 'string', + 'resolved_link' => 'string', + 'source_rule_condition' => 'string', + 'timestamp' => 'string', + 'trace_id' => 'string', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelRecentEventsResultFields.php b/src/FacebookAds/Object/Fields/AdsPixelRecentEventsResultFields.php new file mode 100644 index 000000000..526a6c520 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelRecentEventsResultFields.php @@ -0,0 +1,34 @@ + 'int', + 'event' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelSignalsIWLFeedbackNuxFields.php b/src/FacebookAds/Object/Fields/AdsPixelSignalsIWLFeedbackNuxFields.php new file mode 100644 index 000000000..e3f53f83e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelSignalsIWLFeedbackNuxFields.php @@ -0,0 +1,32 @@ + 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsPixelSignalsIWLNuxFields.php b/src/FacebookAds/Object/Fields/AdsPixelSignalsIWLNuxFields.php new file mode 100644 index 000000000..3a46d5fd6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsPixelSignalsIWLNuxFields.php @@ -0,0 +1,40 @@ + 'string', + 'content' => 'string', + 'content_color' => 'string', + 'content_size' => 'string', + 'img_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsReportBuilderExportCoreFields.php b/src/FacebookAds/Object/Fields/AdsReportBuilderExportCoreFields.php new file mode 100644 index 000000000..982ef2306 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsReportBuilderExportCoreFields.php @@ -0,0 +1,62 @@ + 'int', + 'async_report_url' => 'string', + 'async_status' => 'string', + 'client_creation_value' => 'string', + 'expiry_time' => 'datetime', + 'export_download_time' => 'datetime', + 'export_format' => 'string', + 'export_name' => 'string', + 'export_type' => 'string', + 'has_seen' => 'bool', + 'id' => 'string', + 'is_sharing' => 'bool', + 'link_sharing_expiration_time' => 'datetime', + 'link_sharing_uri' => 'string', + 'time_completed' => 'datetime', + 'time_start' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsReportBuilderFields.php b/src/FacebookAds/Object/Fields/AdsReportBuilderFields.php new file mode 100644 index 000000000..1393ba97e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsReportBuilderFields.php @@ -0,0 +1,36 @@ + 'Object', + 'rows' => 'list', + 'skan_readiness_status' => 'list>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsReportBuilderMMMReportFields.php b/src/FacebookAds/Object/Fields/AdsReportBuilderMMMReportFields.php new file mode 100644 index 000000000..c774a1ea6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsReportBuilderMMMReportFields.php @@ -0,0 +1,46 @@ + 'string', + 'export_format' => 'string', + 'export_name' => 'string', + 'export_type' => 'string', + 'has_seen' => 'bool', + 'id' => 'string', + 'mmm_status' => 'string', + 'time_start' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsReportBuilderMMMReportSchedulerFields.php b/src/FacebookAds/Object/Fields/AdsReportBuilderMMMReportSchedulerFields.php new file mode 100644 index 000000000..6a9d41b49 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsReportBuilderMMMReportSchedulerFields.php @@ -0,0 +1,40 @@ + 'list', + 'filtering' => 'list', + 'id' => 'string', + 'report_name' => 'string', + 'schedule_frequency' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsReportBuilderSavedReportFields.php b/src/FacebookAds/Object/Fields/AdsReportBuilderSavedReportFields.php new file mode 100644 index 000000000..44e29329d --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsReportBuilderSavedReportFields.php @@ -0,0 +1,108 @@ + 'string', + 'ad_account_id' => 'string', + 'attribution_windows' => 'list', + 'comparison_date_interval' => 'Object', + 'creation_source' => 'string', + 'creation_time' => 'datetime', + 'currency' => 'string', + 'date_interval' => 'Object', + 'date_preset' => 'string', + 'default_attribution_windows' => 'list', + 'dimension_groups' => 'list>', + 'dimensions' => 'list', + 'filtering' => 'list', + 'formatting' => 'list>>', + 'id' => 'string', + 'last_access_by' => 'Profile', + 'last_access_time' => 'datetime', + 'last_report_snapshot_id' => 'string', + 'last_report_snapshot_time' => 'datetime', + 'last_shared_report_expiration' => 'datetime', + 'limit' => 'int', + 'locked_dimensions' => 'int', + 'metrics' => 'list', + 'report_name' => 'string', + 'report_snapshot_async_percent_completion' => 'int', + 'report_snapshot_async_status' => 'string', + 'schedule_frequency' => 'string', + 'scope' => 'string', + 'show_deprecate_aw_banner' => 'bool', + 'sorting' => 'list', + 'start_date' => 'string', + 'status' => 'string', + 'subscribers' => 'list', + 'update_by' => 'Profile', + 'update_time' => 'datetime', + 'user' => 'Profile', + 'user_dimensions' => 'list', + 'user_metrics' => 'list', + 'view_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsSegmentsFields.php b/src/FacebookAds/Object/Fields/AdsSegmentsFields.php new file mode 100644 index 000000000..4288adbba --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsSegmentsFields.php @@ -0,0 +1,48 @@ + 'int', + 'daily_impressions' => 'int', + 'description' => 'string', + 'id' => 'string', + 'name' => 'string', + 'path' => 'list', + 'popularity' => 'float', + 'projected_cpm' => 'int', + 'projected_daily_revenue' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsSignalDiagnosticIssueFields.php b/src/FacebookAds/Object/Fields/AdsSignalDiagnosticIssueFields.php new file mode 100644 index 000000000..9ef3213f7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsSignalDiagnosticIssueFields.php @@ -0,0 +1,42 @@ + 'AdsPixel', + 'data_source_type' => 'string', + 'diagnostic_type' => 'string', + 'event_name' => 'string', + 'traffic_anomaly_drop_percentage' => 'float', + 'traffic_anomaly_drop_timestamp' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsStartYourDayWidgetFields.php b/src/FacebookAds/Object/Fields/AdsStartYourDayWidgetFields.php new file mode 100644 index 000000000..60d6281f4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsStartYourDayWidgetFields.php @@ -0,0 +1,34 @@ + 'string', + 'widget_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsTabularFields.php b/src/FacebookAds/Object/Fields/AdsTabularFields.php new file mode 100644 index 000000000..9800fbd1f --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsTabularFields.php @@ -0,0 +1,32 @@ + 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsTargetingInsightsFields.php b/src/FacebookAds/Object/Fields/AdsTargetingInsightsFields.php new file mode 100644 index 000000000..5ab1cc2d0 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsTargetingInsightsFields.php @@ -0,0 +1,52 @@ + 'int', + 'clicks' => 'unsigned int', + 'conversion_cost' => 'float', + 'conversions' => 'unsigned int', + 'description' => 'string', + 'id' => 'string', + 'impressions' => 'string', + 'name' => 'string', + 'revenue' => 'float', + 'spend' => 'float', + 'type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsTextSuggestionsFields.php b/src/FacebookAds/Object/Fields/AdsTextSuggestionsFields.php new file mode 100644 index 000000000..c7d02a529 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsTextSuggestionsFields.php @@ -0,0 +1,44 @@ + 'string', + 'bodies' => 'list', + 'descriptions' => 'list', + 'inactive_session_tally' => 'int', + 'long' => 'list', + 'short' => 'list', + 'titles' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php b/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php new file mode 100644 index 000000000..3bbb8285f --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php @@ -0,0 +1,140 @@ + 'bool', + 'adgroup_name_template' => 'Object', + 'ads_tool_visits' => 'list', + 'aplusc_carousel_cda_opt_in_status' => 'string', + 'aplusc_carousel_inline_comment_opt_in_status' => 'string', + 'aplusc_epa_opt_in_status' => 'string', + 'aplusc_opt_out_friction' => 'list', + 'autoflow_lite_opt_in_status' => 'string', + 'autoflow_lite_should_opt_in' => 'bool', + 'blended_ads_creation_defaulting_opt_in_status' => 'string', + 'bookmarked_pages' => 'list', + 'campaign_group_name_template' => 'Object', + 'campaign_name_template' => 'Object', + 'carousel_to_video_opt_in_status' => 'string', + 'connected_sources_catalog_opt_in_status' => 'string', + 'default_creation_mode' => 'string', + 'export_format_default' => 'string', + 'focus_mode_default' => 'string', + 'gen_ai_alpha_test_status' => 'int', + 'id' => 'string', + 'image_expansion_opt_in_status' => 'string', + 'is_ads_ai_consented' => 'bool', + 'is_cbo_default_on' => 'bool', + 'is_se_removal_guidance_dismissed' => 'bool', + 'last_used_post_format' => 'string', + 'last_visited_time' => 'datetime', + 'multi_ads_settings' => 'list>', + 'music_on_reels_opt_in' => 'list>', + 'muted_cbo_midflight_education_messages' => 'list', + 'onsite_destination_optimization_opt_in' => 'string', + 'open_tabs' => 'list', + 'previously_seen_recommendations' => 'list', + 'product_extensions_opt_in' => 'string', + 'selected_ad_account' => 'AdAccount', + 'selected_comparison_timerange' => 'Object', + 'selected_metric_cic' => 'string', + 'selected_metrics_cic' => 'list', + 'selected_page' => 'Page', + 'selected_page_section' => 'string', + 'selected_power_editor_pane' => 'string', + 'selected_stat_range' => 'Object', + 'should_export_filter_empty_cols' => 'string', + 'should_export_rows_without_unsupported_feature' => 'string', + 'should_not_auto_expand_tree_table' => 'bool', + 'should_not_show_cbo_campaign_toggle_off_confirmation_message' => 'bool', + 'should_not_show_publish_message_on_editor_close' => 'bool', + 'show_original_videos_opt_in' => 'string', + 'static_ad_product_extensions_opt_in' => 'string', + 'sticky_setting_after_default_on' => 'string', + 'syd_campaign_trends_metric' => 'string', + 'total_coupon_syd_dismissals' => 'int', + 'total_coupon_upsell_dismissals' => 'int', + 'use_pe_create_flow' => 'bool', + 'use_stepper_primary_entry' => 'bool', + 'user' => 'User', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsValueAdjustmentRuleCollectionFields.php b/src/FacebookAds/Object/Fields/AdsValueAdjustmentRuleCollectionFields.php new file mode 100644 index 000000000..ef3bf0c0a --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsValueAdjustmentRuleCollectionFields.php @@ -0,0 +1,34 @@ + 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdsValueAdjustmentRuleFields.php b/src/FacebookAds/Object/Fields/AdsValueAdjustmentRuleFields.php new file mode 100644 index 000000000..487a66c74 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdsValueAdjustmentRuleFields.php @@ -0,0 +1,34 @@ + 'int', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdvAInstanceFields.php b/src/FacebookAds/Object/Fields/AdvAInstanceFields.php new file mode 100644 index 000000000..af6f781b0 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdvAInstanceFields.php @@ -0,0 +1,38 @@ + 'string', + 'instance_type' => 'string', + 'name' => 'string', + 'owner_business' => 'Business', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdvertiserVerificationStatusFields.php b/src/FacebookAds/Object/Fields/AdvertiserVerificationStatusFields.php new file mode 100644 index 000000000..2ff42c900 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AdvertiserVerificationStatusFields.php @@ -0,0 +1,38 @@ + 'string', + 'grace_period_ends_at' => 'datetime', + 'ufac_redirect_uri' => 'string', + 'verification_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AnalyticsCohortQueryResultFields.php b/src/FacebookAds/Object/Fields/AnalyticsCohortQueryResultFields.php new file mode 100644 index 000000000..14ed97fd1 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AnalyticsCohortQueryResultFields.php @@ -0,0 +1,38 @@ + 'Object', + 'error' => 'Object', + 'query_id' => 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AnalyticsConfigFields.php b/src/FacebookAds/Object/Fields/AnalyticsConfigFields.php new file mode 100644 index 000000000..452b54f72 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AnalyticsConfigFields.php @@ -0,0 +1,82 @@ + 'bool', + 'breakdowns_config' => 'list', + 'builtin_fields_config' => 'list', + 'deprecated_events_config' => 'list', + 'events_config' => 'list', + 'ios_purchase_validation_secret' => 'string', + 'is_any_role_able_to_see_restricted_insights' => 'bool', + 'is_implicit_purchase_logging_on_android_supported' => 'bool', + 'is_implicit_purchase_logging_on_ios_supported' => 'bool', + 'is_track_ios_app_uninstall_supported' => 'bool', + 'journey_backfill_status' => 'string', + 'journey_conversion_events' => 'list', + 'journey_enabled' => 'bool', + 'journey_impacting_change_time' => 'datetime', + 'journey_timeout' => 'string', + 'latest_sdk_versions' => 'map', + 'log_android_implicit_purchase_events' => 'bool', + 'log_automatic_analytics_events' => 'bool', + 'log_implicit_purchase_events' => 'bool', + 'prev_journey_conversion_events' => 'list', + 'query_approximation_accuracy_level' => 'string', + 'query_currency' => 'string', + 'query_timezone' => 'string', + 'recent_events_update_time' => 'datetime', + 'session_timeout_interval' => 'unsigned int', + 'track_ios_app_uninstall' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AnalyticsEntityUserConfigFields.php b/src/FacebookAds/Object/Fields/AnalyticsEntityUserConfigFields.php new file mode 100644 index 000000000..86c67d0b4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AnalyticsEntityUserConfigFields.php @@ -0,0 +1,32 @@ + 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AnalyticsFunnelQueryResultFields.php b/src/FacebookAds/Object/Fields/AnalyticsFunnelQueryResultFields.php new file mode 100644 index 000000000..fb3b1db36 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AnalyticsFunnelQueryResultFields.php @@ -0,0 +1,38 @@ + 'Object', + 'error' => 'Object', + 'query_id' => 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AnalyticsPlatformMetricsConfigFields.php b/src/FacebookAds/Object/Fields/AnalyticsPlatformMetricsConfigFields.php new file mode 100644 index 000000000..bb431483b --- /dev/null +++ b/src/FacebookAds/Object/Fields/AnalyticsPlatformMetricsConfigFields.php @@ -0,0 +1,48 @@ + 'bool', + 'has_api_calls' => 'bool', + 'has_app_invites' => 'bool', + 'has_fb_login' => 'bool', + 'has_game_requests' => 'bool', + 'has_payments' => 'bool', + 'has_referrals' => 'bool', + 'has_stories' => 'bool', + 'has_structured_requests' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AnalyticsQueryResultFields.php b/src/FacebookAds/Object/Fields/AnalyticsQueryResultFields.php new file mode 100644 index 000000000..79e9a1ef4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AnalyticsQueryResultFields.php @@ -0,0 +1,40 @@ + 'Object', + 'datapoints' => 'list', + 'error' => 'Object', + 'query_id' => 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AnalyticsUserConfigFields.php b/src/FacebookAds/Object/Fields/AnalyticsUserConfigFields.php new file mode 100644 index 000000000..b940f90b2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AnalyticsUserConfigFields.php @@ -0,0 +1,36 @@ + 'Object', + 'flags' => 'list>', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AppEventConfigFields.php b/src/FacebookAds/Object/Fields/AppEventConfigFields.php new file mode 100644 index 000000000..729da516e --- /dev/null +++ b/src/FacebookAds/Object/Fields/AppEventConfigFields.php @@ -0,0 +1,84 @@ + 'list', + 'builtin_fields_config' => 'list', + 'deprecated_events_config' => 'list', + 'events_config' => 'list', + 'id' => 'string', + 'ios_purchase_validation_secret' => 'string', + 'is_any_role_able_to_see_restricted_insights' => 'bool', + 'is_implicit_purchase_logging_on_android_supported' => 'bool', + 'is_implicit_purchase_logging_on_ios_supported' => 'bool', + 'is_track_android_app_uninstall_supported' => 'bool', + 'is_track_ios_app_uninstall_supported' => 'bool', + 'journey_backfill_status' => 'string', + 'journey_conversion_events' => 'list', + 'journey_enabled' => 'bool', + 'journey_timeout' => 'string', + 'latest_sdk_versions' => 'map', + 'log_android_implicit_purchase_events' => 'bool', + 'log_automatic_analytics_events' => 'bool', + 'log_implicit_purchase_events' => 'bool', + 'prev_journey_conversion_events' => 'list', + 'query_approximation_accuracy_level' => 'string', + 'query_currency' => 'string', + 'query_timezone' => 'string', + 'recent_events_update_time' => 'datetime', + 'session_timeout_interval' => 'unsigned int', + 'track_android_app_uninstall' => 'bool', + 'track_ios_app_uninstall' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AppLinksFields.php b/src/FacebookAds/Object/Fields/AppLinksFields.php new file mode 100644 index 000000000..2a48546e7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AppLinksFields.php @@ -0,0 +1,48 @@ + 'list', + 'id' => 'string', + 'ios' => 'list', + 'ipad' => 'list', + 'iphone' => 'list', + 'web' => 'WebAppLink', + 'windows' => 'list', + 'windows_phone' => 'list', + 'windows_universal' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AppOptimizedCustomEventsFields.php b/src/FacebookAds/Object/Fields/AppOptimizedCustomEventsFields.php new file mode 100644 index 000000000..120a2d6ed --- /dev/null +++ b/src/FacebookAds/Object/Fields/AppOptimizedCustomEventsFields.php @@ -0,0 +1,36 @@ + 'int', + 'app_name' => 'string', + 'event_names' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AppPublisherFields.php b/src/FacebookAds/Object/Fields/AppPublisherFields.php new file mode 100644 index 000000000..cd30c85df --- /dev/null +++ b/src/FacebookAds/Object/Fields/AppPublisherFields.php @@ -0,0 +1,44 @@ + 'string', + 'icon_url' => 'string', + 'id' => 'string', + 'name' => 'string', + 'platform' => 'string', + 'store_name' => 'string', + 'store_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ArAdsDataContainerFields.php b/src/FacebookAds/Object/Fields/ArAdsDataContainerFields.php new file mode 100644 index 000000000..dfc1b80e6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ArAdsDataContainerFields.php @@ -0,0 +1,44 @@ + 'string', + 'creation_time' => 'datetime', + 'effect' => 'list', + 'id' => 'string', + 'is_published' => 'bool', + 'last_modified_time' => 'datetime', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AudienceFunnelFields.php b/src/FacebookAds/Object/Fields/AudienceFunnelFields.php new file mode 100644 index 000000000..5cd85add7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AudienceFunnelFields.php @@ -0,0 +1,36 @@ + 'string', + 'audience_type_param_tags' => 'list>', + 'custom_audience_groups_info' => 'list>>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AudienceOverlapFields.php b/src/FacebookAds/Object/Fields/AudienceOverlapFields.php new file mode 100644 index 000000000..f6993ac7a --- /dev/null +++ b/src/FacebookAds/Object/Fields/AudienceOverlapFields.php @@ -0,0 +1,38 @@ + 'int', + 'id' => 'string', + 'name' => 'string', + 'overlap' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AudiencePermissionFields.php b/src/FacebookAds/Object/Fields/AudiencePermissionFields.php new file mode 100644 index 000000000..cbd979794 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AudiencePermissionFields.php @@ -0,0 +1,36 @@ + 'CustomAudience', + 'share_account_id' => 'string', + 'share_account_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AudienceSharingAccountValidFields.php b/src/FacebookAds/Object/Fields/AudienceSharingAccountValidFields.php new file mode 100644 index 000000000..d9b5a6585 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AudienceSharingAccountValidFields.php @@ -0,0 +1,42 @@ + 'string', + 'account_type' => 'string', + 'business_id' => 'string', + 'business_name' => 'string', + 'can_ad_account_use_lookalike_container' => 'bool', + 'sharing_agreement_status' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AudienceSharingRecipientAccountsFields.php b/src/FacebookAds/Object/Fields/AudienceSharingRecipientAccountsFields.php new file mode 100644 index 000000000..7f5a9d0ba --- /dev/null +++ b/src/FacebookAds/Object/Fields/AudienceSharingRecipientAccountsFields.php @@ -0,0 +1,44 @@ + 'string', + 'account_name' => 'string', + 'account_type' => 'string', + 'business_id' => 'string', + 'business_name' => 'string', + 'can_ad_account_use_lookalike_container' => 'bool', + 'sharing_agreement_status' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AudioAssetFields.php b/src/FacebookAds/Object/Fields/AudioAssetFields.php new file mode 100644 index 000000000..8f9078b17 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AudioAssetFields.php @@ -0,0 +1,68 @@ + 'string', + 'all_ddex_main_artists' => 'string', + 'audio_cluster_id' => 'string', + 'cover_image_source' => 'string', + 'display_artist' => 'string', + 'download_hd_url' => 'string', + 'download_sd_url' => 'string', + 'duration_in_ms' => 'int', + 'freeform_genre' => 'string', + 'grid' => 'string', + 'id' => 'string', + 'is_test' => 'bool', + 'original_release_date' => 'datetime', + 'owner' => 'Page', + 'parental_warning_type' => 'string', + 'subtitle' => 'string', + 'title' => 'string', + 'title_with_featured_artists' => 'string', + 'upc' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AudioCopyrightFields.php b/src/FacebookAds/Object/Fields/AudioCopyrightFields.php index ea293a20f..aa176b3ef 100644 --- a/src/FacebookAds/Object/Fields/AudioCopyrightFields.php +++ b/src/FacebookAds/Object/Fields/AudioCopyrightFields.php @@ -29,6 +29,7 @@ class AudioCopyrightFields extends AbstractEnum { const ISRC = 'isrc'; const MATCH_RULE = 'match_rule'; const OWNERSHIP_COUNTRIES = 'ownership_countries'; + const OWNERSHIP_DETAILS = 'ownership_details'; const REFERENCE_FILE_STATUS = 'reference_file_status'; const RIDGE_MONITORING_STATUS = 'ridge_monitoring_status'; const TAGS = 'tags'; @@ -45,6 +46,7 @@ public function getFieldTypes() { 'isrc' => 'string', 'match_rule' => 'VideoCopyrightRule', 'ownership_countries' => 'list', + 'ownership_details' => 'list>', 'reference_file_status' => 'string', 'ridge_monitoring_status' => 'string', 'tags' => 'list', diff --git a/src/FacebookAds/Object/Fields/AudioIsrcFields.php b/src/FacebookAds/Object/Fields/AudioIsrcFields.php new file mode 100644 index 000000000..817680856 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AudioIsrcFields.php @@ -0,0 +1,48 @@ + 'string', + 'all_kg_main_artists' => 'string', + 'artist_profile_picture_url' => 'string', + 'id' => 'string', + 'isrc' => 'string', + 'publishing_rights_data' => 'Object', + 'top_searchable_artist_id' => 'string', + 'top_searchable_artist_name' => 'string', + 'top_searchable_artist_profile_pic_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AudioReleaseFields.php b/src/FacebookAds/Object/Fields/AudioReleaseFields.php new file mode 100644 index 000000000..a8dbecf8d --- /dev/null +++ b/src/FacebookAds/Object/Fields/AudioReleaseFields.php @@ -0,0 +1,62 @@ + 'string', + 'asset_availability_status' => 'list>', + 'audio_availability_status' => 'string', + 'audio_release_image_uri' => 'string', + 'created_time' => 'datetime', + 'displayed_artist' => 'string', + 'ean' => 'string', + 'genre' => 'string', + 'grid' => 'string', + 'id' => 'string', + 'isrc' => 'string', + 'label_name' => 'string', + 'original_release_date' => 'datetime', + 'parental_warning_type' => 'string', + 'proprietary_id' => 'string', + 'upc' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AudioVisualReferenceMatchFields.php b/src/FacebookAds/Object/Fields/AudioVisualReferenceMatchFields.php new file mode 100644 index 000000000..f1200bc64 --- /dev/null +++ b/src/FacebookAds/Object/Fields/AudioVisualReferenceMatchFields.php @@ -0,0 +1,92 @@ + 'list', + 'audio_current_conflict_resolved_segments' => 'list', + 'audio_segment_resolution_history' => 'list', + 'conflict_type' => 'string', + 'conflicting_countries' => 'list', + 'country_resolution_history' => 'list>>', + 'creation_time' => 'datetime', + 'current_conflict_resolved_countries' => 'list>', + 'displayed_match_state' => 'string', + 'dispute_form_data_entries_with_translations' => 'list', + 'expiration_time' => 'datetime', + 'id' => 'string', + 'is_disputable' => 'bool', + 'match_state' => 'string', + 'matched_overlap_percentage' => 'float', + 'matched_owner_match_duration_in_sec' => 'float', + 'matched_reference_owner' => 'Profile', + 'modification_history' => 'list', + 'num_matches_on_matched_side' => 'unsigned int', + 'num_matches_on_ref_side' => 'unsigned int', + 'ref_owner_match_duration_in_sec' => 'float', + 'reference_overlap_percentage' => 'float', + 'reference_owner' => 'Profile', + 'rejection_form_data_entries_with_translations' => 'list', + 'resolution_details' => 'string', + 'resolution_reason' => 'string', + 'update_time' => 'datetime', + 'views_on_matched_side' => 'unsigned int', + 'visual_conflicting_segments' => 'list', + 'visual_current_conflict_resolved_segments' => 'list', + 'visual_segment_resolution_history' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AuthLinkFields.php b/src/FacebookAds/Object/Fields/AuthLinkFields.php new file mode 100644 index 000000000..b9e2fff1b --- /dev/null +++ b/src/FacebookAds/Object/Fields/AuthLinkFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BAPIDomainFields.php b/src/FacebookAds/Object/Fields/BAPIDomainFields.php new file mode 100644 index 000000000..de8dfe486 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BAPIDomainFields.php @@ -0,0 +1,38 @@ + 'string', + 'in_cool_down_until' => 'int', + 'is_eligible_for_vo' => 'bool', + 'is_in_cool_down' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BCPCampaignFields.php b/src/FacebookAds/Object/Fields/BCPCampaignFields.php new file mode 100644 index 000000000..1f4781b5e --- /dev/null +++ b/src/FacebookAds/Object/Fields/BCPCampaignFields.php @@ -0,0 +1,64 @@ + 'bool', + 'application_deadline' => 'string', + 'campaign_goal' => 'string', + 'campaign_goal_other' => 'string', + 'content_delivery_deadline' => 'string', + 'content_delivery_start_date' => 'string', + 'content_requirements' => 'list>', + 'content_requirements_description' => 'string', + 'currency' => 'string', + 'deal_negotiation_type' => 'string', + 'description' => 'string', + 'has_free_product' => 'bool', + 'id' => 'string', + 'name' => 'string', + 'payment_amount_for_ads' => 'unsigned int', + 'payment_amount_for_content' => 'unsigned int', + 'payment_description' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php b/src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php new file mode 100644 index 000000000..06ed6102e --- /dev/null +++ b/src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php @@ -0,0 +1,42 @@ + 'string', + 'id' => 'string', + 'is_paid_partnership_messages_enabled' => 'bool', + 'messaging_id' => 'string', + 'portfolio_url' => 'string', + 'username' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BespokePartnerGuidanceLaserFields.php b/src/FacebookAds/Object/Fields/BespokePartnerGuidanceLaserFields.php new file mode 100644 index 000000000..3a07baf4a --- /dev/null +++ b/src/FacebookAds/Object/Fields/BespokePartnerGuidanceLaserFields.php @@ -0,0 +1,40 @@ + 'Business', + 'campaign_group' => 'Campaign', + 'cpa_improvement' => 'float', + 'guidance_type' => 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BidScheduleFields.php b/src/FacebookAds/Object/Fields/BidScheduleFields.php new file mode 100644 index 000000000..f1fa546f8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BidScheduleFields.php @@ -0,0 +1,46 @@ + 'string', + 'bid_recurrence_type' => 'string', + 'bid_timezone' => 'string', + 'bid_value' => 'int', + 'id' => 'string', + 'status' => 'string', + 'time_end' => 'datetime', + 'time_start' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BizInboxOffsiteEmailAccountFields.php b/src/FacebookAds/Object/Fields/BizInboxOffsiteEmailAccountFields.php new file mode 100644 index 000000000..dcba6a3de --- /dev/null +++ b/src/FacebookAds/Object/Fields/BizInboxOffsiteEmailAccountFields.php @@ -0,0 +1,34 @@ + 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BlindPigFields.php b/src/FacebookAds/Object/Fields/BlindPigFields.php new file mode 100644 index 000000000..4f4715053 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BlindPigFields.php @@ -0,0 +1,34 @@ + 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BlockedUserInfoFields.php b/src/FacebookAds/Object/Fields/BlockedUserInfoFields.php new file mode 100644 index 000000000..58e8fabe3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BlockedUserInfoFields.php @@ -0,0 +1,40 @@ + 'datetime', + 'block_type' => 'string', + 'fbid' => 'string', + 'name' => 'string', + 'username' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BrandSafetyDownloadableFields.php b/src/FacebookAds/Object/Fields/BrandSafetyDownloadableFields.php new file mode 100644 index 000000000..d95811dae --- /dev/null +++ b/src/FacebookAds/Object/Fields/BrandSafetyDownloadableFields.php @@ -0,0 +1,44 @@ + 'string', + 'async_job_percent_complete' => 'int', + 'async_job_status' => 'string', + 'file_name' => 'string', + 'id' => 'string', + 'request_surface' => 'string', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BrandedContentAdErrorFields.php b/src/FacebookAds/Object/Fields/BrandedContentAdErrorFields.php new file mode 100644 index 000000000..1c0bc1e35 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BrandedContentAdErrorFields.php @@ -0,0 +1,44 @@ + 'list', + 'error_code' => 'int', + 'error_description' => 'string', + 'error_message' => 'string', + 'error_placement' => 'string', + 'error_severity' => 'string', + 'help_center_id' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BrandedContentEligibleSponsorIDsFields.php b/src/FacebookAds/Object/Fields/BrandedContentEligibleSponsorIDsFields.php new file mode 100644 index 000000000..87afb40b1 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BrandedContentEligibleSponsorIDsFields.php @@ -0,0 +1,36 @@ + 'Page', + 'ig_account_v2' => 'IGUser', + 'ig_approval_needed' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BrandedContentShadowIGMediaIDFields.php b/src/FacebookAds/Object/Fields/BrandedContentShadowIGMediaIDFields.php index af5e6d8fa..63013682e 100644 --- a/src/FacebookAds/Object/Fields/BrandedContentShadowIGMediaIDFields.php +++ b/src/FacebookAds/Object/Fields/BrandedContentShadowIGMediaIDFields.php @@ -23,6 +23,7 @@ class BrandedContentShadowIGMediaIDFields extends AbstractEnum { const ELIGIBILITY_ERRORS = 'eligibility_errors'; + const HAS_PERMISSION_FOR_PARTNERSHIP_AD = 'has_permission_for_partnership_ad'; const ID = 'id'; const OWNER_ID = 'owner_id'; const PERMALINK = 'permalink'; @@ -30,6 +31,7 @@ class BrandedContentShadowIGMediaIDFields extends AbstractEnum { public function getFieldTypes() { return array( 'eligibility_errors' => 'list', + 'has_permission_for_partnership_ad' => 'bool', 'id' => 'string', 'owner_id' => 'string', 'permalink' => 'string', diff --git a/src/FacebookAds/Object/Fields/BusinessAdsReportingReportSpecsFields.php b/src/FacebookAds/Object/Fields/BusinessAdsReportingReportSpecsFields.php new file mode 100644 index 000000000..e0a92c958 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessAdsReportingReportSpecsFields.php @@ -0,0 +1,108 @@ + 'string', + 'ad_account_id' => 'string', + 'ad_account_ids' => 'list', + 'ad_accounts' => 'list', + 'attribution_windows' => 'list', + 'business' => 'Business', + 'business_asset_group' => 'BusinessAssetGroup', + 'comparison_date_interval' => 'Object', + 'creation_source' => 'string', + 'creation_time' => 'datetime', + 'currency' => 'string', + 'date_preset' => 'string', + 'default_attribution_windows' => 'list', + 'filtering' => 'list', + 'formatting' => 'list>>', + 'id' => 'string', + 'last_access_by' => 'Profile', + 'last_access_time' => 'datetime', + 'last_report_snapshot_id' => 'string', + 'last_report_snapshot_time' => 'datetime', + 'last_shared_report_expiration' => 'datetime', + 'limit' => 'int', + 'locked_dimensions' => 'int', + 'report_name' => 'string', + 'report_snapshot_async_percent_completion' => 'int', + 'report_snapshot_async_status' => 'string', + 'schedule_frequency' => 'string', + 'scope' => 'string', + 'show_deprecate_aw_banner' => 'bool', + 'sorting' => 'list', + 'start_date' => 'string', + 'status' => 'string', + 'subscribers' => 'list', + 'update_by' => 'Profile', + 'update_time' => 'datetime', + 'user' => 'Profile', + 'user_dimensions' => 'list', + 'user_metrics' => 'list', + 'view_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessAdvertisableApplicationsResultFields.php b/src/FacebookAds/Object/Fields/BusinessAdvertisableApplicationsResultFields.php new file mode 100644 index 000000000..01c7ee5fc --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessAdvertisableApplicationsResultFields.php @@ -0,0 +1,42 @@ + 'bool', + 'business' => 'Business', + 'has_insight_permission' => 'bool', + 'id' => 'string', + 'name' => 'string', + 'photo_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessAgreementFields.php b/src/FacebookAds/Object/Fields/BusinessAgreementFields.php new file mode 100644 index 000000000..cde1b6594 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessAgreementFields.php @@ -0,0 +1,34 @@ + 'string', + 'request_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessCreativeFields.php b/src/FacebookAds/Object/Fields/BusinessCreativeFields.php new file mode 100644 index 000000000..1427238de --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessCreativeFields.php @@ -0,0 +1,52 @@ + 'datetime', + 'duration' => 'int', + 'hash' => 'string', + 'height' => 'int', + 'id' => 'string', + 'name' => 'string', + 'thumbnail' => 'string', + 'type' => 'string', + 'url' => 'string', + 'video_id' => 'string', + 'width' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessCreativeInsightsFields.php b/src/FacebookAds/Object/Fields/BusinessCreativeInsightsFields.php new file mode 100644 index 000000000..ef4eee55e --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessCreativeInsightsFields.php @@ -0,0 +1,62 @@ + 'list', + 'age' => 'string', + 'country' => 'string', + 'date_end' => 'string', + 'date_start' => 'string', + 'device_platform' => 'string', + 'gender' => 'string', + 'impressions' => 'int', + 'inline_link_clicks' => 'int', + 'objective' => 'string', + 'optimization_goal' => 'string', + 'platform_position' => 'string', + 'publisher_platform' => 'string', + 'quality_ranking' => 'string', + 'video_play_actions' => 'list', + 'video_thruplay_watched_actions' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessFranchiseConfigFields.php b/src/FacebookAds/Object/Fields/BusinessFranchiseConfigFields.php new file mode 100644 index 000000000..a41966eb7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessFranchiseConfigFields.php @@ -0,0 +1,56 @@ + 'int', + 'agency_business' => 'Business', + 'agency_business_asset_group' => 'BusinessAssetGroup', + 'brand_name' => 'string', + 'business' => 'Business', + 'business_vertical' => 'string', + 'id' => 'string', + 'partner_count' => 'int', + 'pending_agency_business' => 'string', + 'program_count' => 'int', + 'shared_business_asset_group' => 'BusinessAssetGroup', + 'shared_creative_folder_count' => 'int', + 'shared_custom_audience_count' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessImageTBusinessFolderPathItemFields.php b/src/FacebookAds/Object/Fields/BusinessImageTBusinessFolderPathItemFields.php new file mode 100644 index 000000000..56937161a --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessImageTBusinessFolderPathItemFields.php @@ -0,0 +1,36 @@ + 'string', + 'parent_folder_id' => 'string', + 'type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessMediaAdPlacementValidationResultFields.php b/src/FacebookAds/Object/Fields/BusinessMediaAdPlacementValidationResultFields.php new file mode 100644 index 000000000..f751eede6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessMediaAdPlacementValidationResultFields.php @@ -0,0 +1,38 @@ + 'string', + 'ad_placement_label' => 'string', + 'error_messages' => 'list', + 'is_valid' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessObjectFields.php b/src/FacebookAds/Object/Fields/BusinessObjectFields.php new file mode 100644 index 000000000..a90d74ab5 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessObjectFields.php @@ -0,0 +1,40 @@ + 'Object', + 'asset_type' => 'string', + 'id' => 'string', + 'name' => 'string', + 'picture' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessObjectTransferOwnershipAgreementFields.php b/src/FacebookAds/Object/Fields/BusinessObjectTransferOwnershipAgreementFields.php new file mode 100644 index 000000000..fc07f032e --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessObjectTransferOwnershipAgreementFields.php @@ -0,0 +1,38 @@ + 'string', + 'receiving_business' => 'Business', + 'requesting_business' => 'Business', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessProductCatalogTOSFields.php b/src/FacebookAds/Object/Fields/BusinessProductCatalogTOSFields.php new file mode 100644 index 000000000..16016715f --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessProductCatalogTOSFields.php @@ -0,0 +1,34 @@ + 'bool', + 'content' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessProjectFields.php b/src/FacebookAds/Object/Fields/BusinessProjectFields.php new file mode 100644 index 000000000..0cf735ea4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessProjectFields.php @@ -0,0 +1,40 @@ + 'Business', + 'created_time' => 'datetime', + 'creator' => 'Object', + 'id' => 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessRequestFields.php b/src/FacebookAds/Object/Fields/BusinessRequestFields.php new file mode 100644 index 000000000..68de3d9e8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessRequestFields.php @@ -0,0 +1,48 @@ + 'Business', + 'creation_time' => 'datetime', + 'id' => 'string', + 'object_id' => 'string', + 'object_type' => 'string', + 'permitted_tasks' => 'list', + 'request_status' => 'string', + 'request_type' => 'string', + 'requestor' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessSettingLogsDataFields.php b/src/FacebookAds/Object/Fields/BusinessSettingLogsDataFields.php new file mode 100644 index 000000000..8216ba387 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessSettingLogsDataFields.php @@ -0,0 +1,40 @@ + 'Object', + 'event_object' => 'Object', + 'event_time' => 'string', + 'event_type' => 'string', + 'extra_data' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessTagFields.php b/src/FacebookAds/Object/Fields/BusinessTagFields.php new file mode 100644 index 000000000..9a3c2e110 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessTagFields.php @@ -0,0 +1,34 @@ + 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessTrafficAnalysisReportFields.php b/src/FacebookAds/Object/Fields/BusinessTrafficAnalysisReportFields.php new file mode 100644 index 000000000..b0dbcdbdc --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessTrafficAnalysisReportFields.php @@ -0,0 +1,36 @@ + 'list', + 'event_category' => 'list', + 'traffic_analysis_impressions' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/BusinessVideoTBusinessFolderPathItemFields.php b/src/FacebookAds/Object/Fields/BusinessVideoTBusinessFolderPathItemFields.php new file mode 100644 index 000000000..76db81ed3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/BusinessVideoTBusinessFolderPathItemFields.php @@ -0,0 +1,36 @@ + 'string', + 'parent_folder_id' => 'string', + 'type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CASSSetupOfflineEventSetProgressFields.php b/src/FacebookAds/Object/Fields/CASSSetupOfflineEventSetProgressFields.php new file mode 100644 index 000000000..410ce9aa2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CASSSetupOfflineEventSetProgressFields.php @@ -0,0 +1,30 @@ + 'string', + 'id' => 'string', + 'is_unused_template' => 'bool', + 'name' => 'string', + 'optimization_goal' => 'string', + 'targeting_type' => 'string', + 'template_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CPASLsbImageBankFields.php b/src/FacebookAds/Object/Fields/CPASLsbImageBankFields.php new file mode 100644 index 000000000..8dd33c842 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CPASLsbImageBankFields.php @@ -0,0 +1,40 @@ + 'string', + 'catalog_segment_proxy_id' => 'string', + 'id' => 'string', + 'agency_business_id' => 'unsigned int', + 'backup_image_urls' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CPASParentCatalogSettingsFields.php b/src/FacebookAds/Object/Fields/CPASParentCatalogSettingsFields.php new file mode 100644 index 000000000..a16645dc4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CPASParentCatalogSettingsFields.php @@ -0,0 +1,38 @@ + 'list', + 'default_currency' => 'string', + 'disable_use_as_parent_catalog' => 'bool', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php b/src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php new file mode 100644 index 000000000..eb3334b84 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php @@ -0,0 +1,40 @@ + 'int', + 'child_catalog_issues' => 'list', + 'id' => 'string', + 'issues' => 'list', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CPASSetupFields.php b/src/FacebookAds/Object/Fields/CPASSetupFields.php new file mode 100644 index 000000000..22ef2c988 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CPASSetupFields.php @@ -0,0 +1,30 @@ + 'string', + 'issues' => 'list', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php b/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php new file mode 100644 index 000000000..c403ff4d5 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php @@ -0,0 +1,42 @@ + 'bool', + 'formatted_whatsapp_number' => 'string', + 'is_business_number' => 'bool', + 'page_whatsapp_number_id' => 'string', + 'whatsapp_number' => 'string', + 'whatsapp_smb_device' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CTXOptimizationEligibilityFields.php b/src/FacebookAds/Object/Fields/CTXOptimizationEligibilityFields.php new file mode 100644 index 000000000..6b28884a6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CTXOptimizationEligibilityFields.php @@ -0,0 +1,32 @@ + 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CalibratorExistingRuleFields.php b/src/FacebookAds/Object/Fields/CalibratorExistingRuleFields.php new file mode 100644 index 000000000..31c283916 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CalibratorExistingRuleFields.php @@ -0,0 +1,52 @@ + 'int', + 'creation_source' => 'string', + 'creation_time' => 'datetime', + 'creator' => 'string', + 'event_type' => 'string', + 'id' => 'string', + 'rule' => 'string', + 'rule_type' => 'string', + 'sample_urls' => 'list', + 'status' => 'string', + 'transforms' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CallAdsPhoneDataFields.php b/src/FacebookAds/Object/Fields/CallAdsPhoneDataFields.php new file mode 100644 index 000000000..4fe5cda1a --- /dev/null +++ b/src/FacebookAds/Object/Fields/CallAdsPhoneDataFields.php @@ -0,0 +1,42 @@ + 'string', + 'callback_variant' => 'string', + 'destination_website_url' => 'string', + 'id' => 'string', + 'page' => 'Page', + 'phone_number' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CampaignActionsDataFields.php b/src/FacebookAds/Object/Fields/CampaignActionsDataFields.php new file mode 100644 index 000000000..c299032b2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CampaignActionsDataFields.php @@ -0,0 +1,30 @@ + 'string', 'owner' => 'Page', 'property_list' => 'list', - 'source_template' => 'Object', + 'source_template' => 'CanvasTemplate', 'store_url' => 'string', 'style_list' => 'list', 'tags' => 'list', diff --git a/src/FacebookAds/Object/Fields/CanvasTemplateFields.php b/src/FacebookAds/Object/Fields/CanvasTemplateFields.php new file mode 100644 index 000000000..3adb6e308 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CanvasTemplateFields.php @@ -0,0 +1,58 @@ + 'list>>>', + 'description' => 'string', + 'document' => 'Canvas', + 'id' => 'string', + 'is_multi_tab_supportable' => 'bool', + 'is_new' => 'bool', + 'name' => 'string', + 'objectives' => 'list>', + 'owner_id' => 'User', + 'required_capabilities' => 'list', + 'snapshot_photo' => 'Photo', + 'status' => 'string', + 'sub_verticals' => 'list', + 'verticals' => 'list>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CatalogItemOverrideFields.php b/src/FacebookAds/Object/Fields/CatalogItemOverrideFields.php new file mode 100644 index 000000000..16ae23882 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CatalogItemOverrideFields.php @@ -0,0 +1,38 @@ + 'string', + 'local_info' => 'ProductItemLocalInfo', + 'override_type' => 'string', + 'override_value' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CatalogItemRejectionReasonsFields.php b/src/FacebookAds/Object/Fields/CatalogItemRejectionReasonsFields.php new file mode 100644 index 000000000..3cbd855d0 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CatalogItemRejectionReasonsFields.php @@ -0,0 +1,34 @@ + 'Capability', + 'rejection_information' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CatalogItemValidationErrorListFields.php b/src/FacebookAds/Object/Fields/CatalogItemValidationErrorListFields.php new file mode 100644 index 000000000..abd82a0d4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CatalogItemValidationErrorListFields.php @@ -0,0 +1,32 @@ + 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php b/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php new file mode 100644 index 000000000..14ca5c072 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php @@ -0,0 +1,68 @@ + 'list', + 'available_property_filters' => 'list', + 'catalog' => 'ProductCatalog', + 'cbb_custom_override_filters' => 'list', + 'cbb_default_filter' => 'list>>', + 'cbb_default_filter_crawl_params' => 'string', + 'cbb_override_type_field_mapping' => 'list>>', + 'defaults' => 'list>', + 'filters' => 'list>>', + 'id' => 'string', + 'is_cbb_enabled' => 'bool', + 'is_create_enabled' => 'bool', + 'is_delete_enabled' => 'bool', + 'is_update_enabled' => 'bool', + 'microdata_format_precedence' => 'list', + 'pixel' => 'AdsPixel', + 'property_filter' => 'list', + 'retention_time_sec' => 'int', + 'trusted_domains' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CatalogWebsiteOnboardingSettingsFields.php b/src/FacebookAds/Object/Fields/CatalogWebsiteOnboardingSettingsFields.php new file mode 100644 index 000000000..95f329601 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CatalogWebsiteOnboardingSettingsFields.php @@ -0,0 +1,34 @@ + 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CatalogWebsiteSettingsFields.php b/src/FacebookAds/Object/Fields/CatalogWebsiteSettingsFields.php new file mode 100644 index 000000000..207633953 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CatalogWebsiteSettingsFields.php @@ -0,0 +1,34 @@ + 'string', + 'is_allowed_to_crawl' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ChinaBusinessOnboardingVettingRequestFields.php b/src/FacebookAds/Object/Fields/ChinaBusinessOnboardingVettingRequestFields.php new file mode 100644 index 000000000..e6c9afdae --- /dev/null +++ b/src/FacebookAds/Object/Fields/ChinaBusinessOnboardingVettingRequestFields.php @@ -0,0 +1,114 @@ + 'string', + 'ad_account_limit' => 'int', + 'ad_account_number' => 'string', + 'ad_accounts_info' => 'list', + 'business_manager_id' => 'string', + 'business_registration' => 'string', + 'business_registration_id' => 'string', + 'chinese_address' => 'string', + 'chinese_legal_entity_name' => 'string', + 'city' => 'string', + 'contact' => 'string', + 'coupon_code' => 'string', + 'disapprove_reason' => 'string', + 'english_business_name' => 'string', + 'id' => 'string', + 'official_website_url' => 'string', + 'org_ad_account_count' => 'int', + 'payment_type' => 'string', + 'planning_agency_id' => 'string', + 'planning_agency_name' => 'string', + 'promotable_app_ids' => 'list', + 'promotable_page_ids' => 'list', + 'promotable_pages' => 'list', + 'promotable_urls' => 'list', + 'request_changes_reason' => 'string', + 'reviewed_user' => 'string', + 'spend_limit' => 'int', + 'status' => 'string', + 'subvertical' => 'string', + 'subvertical_v2' => 'string', + 'supporting_document' => 'string', + 'time_changes_requested' => 'datetime', + 'time_created' => 'datetime', + 'time_updated' => 'datetime', + 'time_zone' => 'string', + 'used_reseller_link' => 'bool', + 'user_id' => 'string', + 'user_name' => 'string', + 'vertical' => 'string', + 'vertical_v2' => 'string', + 'viewed_by_reseller' => 'bool', + 'zip_code' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CloudbridgeDatasetStatusFields.php b/src/FacebookAds/Object/Fields/CloudbridgeDatasetStatusFields.php new file mode 100644 index 000000000..16a27cb7e --- /dev/null +++ b/src/FacebookAds/Object/Fields/CloudbridgeDatasetStatusFields.php @@ -0,0 +1,42 @@ + 'list', + 'app_sensitive_params' => 'list>>', + 'app_unverified_event' => 'list', + 'has_app_associated' => 'bool', + 'is_app_prohibited' => 'bool', + 'is_dataset' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CollaborativeAdsPartnerBusinessesFields.php b/src/FacebookAds/Object/Fields/CollaborativeAdsPartnerBusinessesFields.php new file mode 100644 index 000000000..cede3392c --- /dev/null +++ b/src/FacebookAds/Object/Fields/CollaborativeAdsPartnerBusinessesFields.php @@ -0,0 +1,34 @@ + 'list', + 'dedicated_partner_business_info' => 'Business', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ColumnSuggestionsFields.php b/src/FacebookAds/Object/Fields/ColumnSuggestionsFields.php new file mode 100644 index 000000000..72e2710fc --- /dev/null +++ b/src/FacebookAds/Object/Fields/ColumnSuggestionsFields.php @@ -0,0 +1,38 @@ + 'Object', + 'format' => 'list', + 'objective' => 'list', + 'optimization_goals' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php b/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php index 8ccbecc04..6b126d583 100644 --- a/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php +++ b/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php @@ -22,57 +22,37 @@ class CommerceMerchantSettingsFields extends AbstractEnum { - const BRAINTREE_MERCHANT_ID = 'braintree_merchant_id'; const CHECKOUT_MESSAGE = 'checkout_message'; const CONTACT_EMAIL = 'contact_email'; const CTA = 'cta'; - const DISABLE_CHECKOUT_URLS = 'disable_checkout_urls'; const DISPLAY_NAME = 'display_name'; - const EXTERNAL_MERCHANT_ID = 'external_merchant_id'; const FACEBOOK_CHANNEL = 'facebook_channel'; - const FEATURE_ELIGIBILITY = 'feature_eligibility'; - const HAS_DISCOUNT_CODE = 'has_discount_code'; - const HAS_ONSITE_INTENT = 'has_onsite_intent'; const ID = 'id'; const INSTAGRAM_CHANNEL = 'instagram_channel'; - const MERCHANT_ALERT_EMAIL = 'merchant_alert_email'; const MERCHANT_PAGE = 'merchant_page'; const MERCHANT_STATUS = 'merchant_status'; const ONSITE_COMMERCE_MERCHANT = 'onsite_commerce_merchant'; const PAYMENT_PROVIDER = 'payment_provider'; - const PRIVACY_URL_BY_LOCALE = 'privacy_url_by_locale'; const REVIEW_REJECTION_MESSAGES = 'review_rejection_messages'; const REVIEW_REJECTION_REASONS = 'review_rejection_reasons'; - const SUPPORTED_CARD_TYPES = 'supported_card_types'; const TERMS = 'terms'; - const TERMS_URL_BY_LOCALE = 'terms_url_by_locale'; public function getFieldTypes() { return array( - 'braintree_merchant_id' => 'string', 'checkout_message' => 'string', 'contact_email' => 'string', 'cta' => 'string', - 'disable_checkout_urls' => 'bool', 'display_name' => 'string', - 'external_merchant_id' => 'string', 'facebook_channel' => 'Object', - 'feature_eligibility' => 'Object', - 'has_discount_code' => 'bool', - 'has_onsite_intent' => 'bool', 'id' => 'string', 'instagram_channel' => 'Object', - 'merchant_alert_email' => 'string', 'merchant_page' => 'Profile', 'merchant_status' => 'string', 'onsite_commerce_merchant' => 'Object', 'payment_provider' => 'string', - 'privacy_url_by_locale' => 'list>', 'review_rejection_messages' => 'list', 'review_rejection_reasons' => 'list', - 'supported_card_types' => 'list', 'terms' => 'string', - 'terms_url_by_locale' => 'list>', ); } } diff --git a/src/FacebookAds/Object/Fields/CommerceOrderFields.php b/src/FacebookAds/Object/Fields/CommerceOrderFields.php index 892b03bfe..720b9146b 100644 --- a/src/FacebookAds/Object/Fields/CommerceOrderFields.php +++ b/src/FacebookAds/Object/Fields/CommerceOrderFields.php @@ -24,6 +24,7 @@ class CommerceOrderFields extends AbstractEnum { const BUYER_DETAILS = 'buyer_details'; const CHANNEL = 'channel'; + const CONTAINS_BOPIS_ITEMS = 'contains_bopis_items'; const CREATED = 'created'; const ESTIMATED_PAYMENT_DETAILS = 'estimated_payment_details'; const ID = 'id'; @@ -40,6 +41,7 @@ public function getFieldTypes() { return array( 'buyer_details' => 'Object', 'channel' => 'string', + 'contains_bopis_items' => 'bool', 'created' => 'string', 'estimated_payment_details' => 'Object', 'id' => 'string', diff --git a/src/FacebookAds/Object/Fields/ContactsMessengerSyncConfigFields.php b/src/FacebookAds/Object/Fields/ContactsMessengerSyncConfigFields.php new file mode 100644 index 000000000..2233f7b5f --- /dev/null +++ b/src/FacebookAds/Object/Fields/ContactsMessengerSyncConfigFields.php @@ -0,0 +1,32 @@ + 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ContentDeliveryReportFields.php b/src/FacebookAds/Object/Fields/ContentDeliveryReportFields.php new file mode 100644 index 000000000..51b5dc96f --- /dev/null +++ b/src/FacebookAds/Object/Fields/ContentDeliveryReportFields.php @@ -0,0 +1,40 @@ + 'string', + 'content_url' => 'string', + 'creator_name' => 'string', + 'creator_url' => 'string', + 'estimated_impressions' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ConversionHealthKPIFields.php b/src/FacebookAds/Object/Fields/ConversionHealthKPIFields.php new file mode 100644 index 000000000..89aaba285 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ConversionHealthKPIFields.php @@ -0,0 +1,48 @@ + 'string', + 'impacted_browsers_match_rate' => 'float', + 'impacted_browsers_match_rate_mom_trend' => 'float', + 'impacted_browsers_traffic_share' => 'float', + 'impacted_browsers_traffic_share_mom_trend' => 'float', + 'match_rate' => 'float', + 'match_rate_mom_trend' => 'float', + 'match_rate_vertical_benchmark' => 'float', + 'match_rate_vs_benchmark_mom_trend' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CopyrightAttributionInsightsFields.php b/src/FacebookAds/Object/Fields/CopyrightAttributionInsightsFields.php new file mode 100644 index 000000000..d8c351071 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CopyrightAttributionInsightsFields.php @@ -0,0 +1,40 @@ + 'int', + 'l7_attribution_page_view_delta' => 'float', + 'l7_attribution_video_view' => 'int', + 'l7_attribution_video_view_delta' => 'float', + 'metrics_ending_date' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CopyrightAudioAssetFields.php b/src/FacebookAds/Object/Fields/CopyrightAudioAssetFields.php new file mode 100644 index 000000000..b0b9dd9b4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CopyrightAudioAssetFields.php @@ -0,0 +1,44 @@ + 'string', + 'audio_library_policy' => 'list>>>', + 'creation_time' => 'datetime', + 'id' => 'string', + 'reference_files' => 'list', + 'title' => 'string', + 'update_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CopyrightMediaMisuseFields.php b/src/FacebookAds/Object/Fields/CopyrightMediaMisuseFields.php new file mode 100644 index 000000000..65b233aa4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CopyrightMediaMisuseFields.php @@ -0,0 +1,64 @@ + 'list', + 'creation_time' => 'datetime', + 'disabled_audio_segments' => 'list', + 'disabled_video_segments' => 'list', + 'entire_file_issue' => 'bool', + 'entire_file_issue_reasons' => 'list', + 'expiration_time' => 'datetime', + 'id' => 'string', + 'media_asset_id' => 'string', + 'reasons' => 'list', + 'requested_audio_segments' => 'list', + 'requested_video_segments' => 'list', + 'resolution_type' => 'string', + 'status' => 'string', + 'update_time' => 'datetime', + 'video_copyright' => 'VideoCopyright', + 'video_segments' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CreativeAssetTagFields.php b/src/FacebookAds/Object/Fields/CreativeAssetTagFields.php new file mode 100644 index 000000000..1b57763c3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CreativeAssetTagFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CreatorAssetCreativeFields.php b/src/FacebookAds/Object/Fields/CreatorAssetCreativeFields.php new file mode 100644 index 000000000..a30592130 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CreatorAssetCreativeFields.php @@ -0,0 +1,44 @@ + 'string', + 'image_url' => 'string', + 'moderation_status' => 'string', + 'product_item_retailer_id' => 'string', + 'product_url' => 'string', + 'retailer_id' => 'string', + 'video_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CustomAudienceCapabilitiesFields.php b/src/FacebookAds/Object/Fields/CustomAudienceCapabilitiesFields.php new file mode 100644 index 000000000..4d8c2beb2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/CustomAudienceCapabilitiesFields.php @@ -0,0 +1,32 @@ + 'map', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CustomAudienceSharedAccountCampaignInfoFields.php b/src/FacebookAds/Object/Fields/CustomAudienceSharedAccountCampaignInfoFields.php new file mode 100644 index 000000000..b1435c4eb --- /dev/null +++ b/src/FacebookAds/Object/Fields/CustomAudienceSharedAccountCampaignInfoFields.php @@ -0,0 +1,46 @@ + 'string', + 'account_name' => 'string', + 'adset_excluding_count' => 'unsigned int', + 'adset_including_count' => 'unsigned int', + 'campaign_delivery_status' => 'string', + 'campaign_objective' => 'string', + 'campaign_pages' => 'list', + 'campaign_schedule' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CustomConversionActivitiesFields.php b/src/FacebookAds/Object/Fields/CustomConversionActivitiesFields.php new file mode 100644 index 000000000..3a1c0357e --- /dev/null +++ b/src/FacebookAds/Object/Fields/CustomConversionActivitiesFields.php @@ -0,0 +1,38 @@ + 'unsigned int', + 'data' => 'string', + 'event_type' => 'string', + 'timestamp' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CustomConversionFields.php b/src/FacebookAds/Object/Fields/CustomConversionFields.php index 4853b4e30..9d740241f 100644 --- a/src/FacebookAds/Object/Fields/CustomConversionFields.php +++ b/src/FacebookAds/Object/Fields/CustomConversionFields.php @@ -41,6 +41,7 @@ class CustomConversionFields extends AbstractEnum { const PIXEL = 'pixel'; const RETENTION_DAYS = 'retention_days'; const RULE = 'rule'; + const ACTION_SOURCE_TYPE = 'action_source_type'; const ADVANCED_RULE = 'advanced_rule'; const EVENT_SOURCE_ID = 'event_source_id'; const CUSTOM_CONVERSION_ID = 'custom_conversion_id'; @@ -66,6 +67,7 @@ public function getFieldTypes() { 'pixel' => 'AdsPixel', 'retention_days' => 'unsigned int', 'rule' => 'string', + 'action_source_type' => 'ActionSourceType', 'advanced_rule' => 'string', 'event_source_id' => 'string', 'custom_conversion_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/DeliveryInfoFields.php b/src/FacebookAds/Object/Fields/DeliveryInfoFields.php new file mode 100644 index 000000000..161da5784 --- /dev/null +++ b/src/FacebookAds/Object/Fields/DeliveryInfoFields.php @@ -0,0 +1,114 @@ + 'int', + 'active_day_parted_campaign_count' => 'int', + 'ad_penalty_map' => 'list>', + 'are_all_daily_budgets_spent' => 'bool', + 'credit_needed_ads_count' => 'int', + 'eligible_for_delivery_insights' => 'bool', + 'end_time' => 'datetime', + 'has_account_hit_spend_limit' => 'bool', + 'has_campaign_group_hit_spend_limit' => 'bool', + 'has_no_active_ads' => 'bool', + 'has_no_ads' => 'bool', + 'inactive_ads_count' => 'int', + 'inactive_campaign_count' => 'int', + 'is_account_closed' => 'bool', + 'is_account_disabled' => 'bool', + 'is_ad_uneconomical' => 'bool', + 'is_adfarm_penalized' => 'bool', + 'is_adgroup_partially_rejected' => 'bool', + 'is_campaign_accelerated' => 'bool', + 'is_campaign_completed' => 'bool', + 'is_campaign_day_parted' => 'bool', + 'is_campaign_disabled' => 'bool', + 'is_campaign_group_disabled' => 'bool', + 'is_clickbait_penalized' => 'bool', + 'is_daily_budget_spent' => 'bool', + 'is_engagement_bait_penalized' => 'bool', + 'is_lqwe_penalized' => 'bool', + 'is_reach_and_frequency_misconfigured' => 'bool', + 'is_sensationalism_penalized' => 'bool', + 'is_split_test_active' => 'bool', + 'is_split_test_valid' => 'bool', + 'lift_study_time_period' => 'string', + 'needs_credit' => 'bool', + 'needs_tax_number' => 'bool', + 'non_deleted_ads_count' => 'int', + 'not_delivering_campaign_count' => 'int', + 'pending_ads_count' => 'int', + 'reach_frequency_campaign_underdelivery_reason' => 'string', + 'rejected_ads_count' => 'int', + 'start_time' => 'datetime', + 'status' => 'string', + 'text_penalty_level' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DeliveryStatusFields.php b/src/FacebookAds/Object/Fields/DeliveryStatusFields.php new file mode 100644 index 000000000..1dbdf66e6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/DeliveryStatusFields.php @@ -0,0 +1,34 @@ + 'string', + 'substatuses' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DirectDebitFields.php b/src/FacebookAds/Object/Fields/DirectDebitFields.php new file mode 100644 index 000000000..7afb1cb04 --- /dev/null +++ b/src/FacebookAds/Object/Fields/DirectDebitFields.php @@ -0,0 +1,50 @@ + 'string', + 'bank_code_last_4' => 'string', + 'bank_name' => 'string', + 'default_receiving_method_products' => 'list', + 'display_string' => 'string', + 'id' => 'string', + 'last_four_digits' => 'string', + 'onboarding_url' => 'string', + 'owner_name' => 'string', + 'status' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php b/src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php new file mode 100644 index 000000000..69b3f55ca --- /dev/null +++ b/src/FacebookAds/Object/Fields/DogNotificationSettingsFields.php @@ -0,0 +1,36 @@ + 'string', + 'id' => 'string', + 'subscription_status_per_channel' => 'list>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DomainFields.php b/src/FacebookAds/Object/Fields/DomainFields.php new file mode 100644 index 000000000..282038e56 --- /dev/null +++ b/src/FacebookAds/Object/Fields/DomainFields.php @@ -0,0 +1,36 @@ + 'string', + 'name' => 'string', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DraftPostFields.php b/src/FacebookAds/Object/Fields/DraftPostFields.php new file mode 100644 index 000000000..85594ae40 --- /dev/null +++ b/src/FacebookAds/Object/Fields/DraftPostFields.php @@ -0,0 +1,64 @@ + 'User', + 'creation_time' => 'datetime', + 'feed_audience_description' => 'string', + 'feed_targeting' => 'Targeting', + 'id' => 'string', + 'is_post_in_good_state' => 'bool', + 'message' => 'string', + 'modified_time' => 'datetime', + 'og_action_summary' => 'string', + 'permalink_url' => 'string', + 'place' => 'Place', + 'privacy_description' => 'string', + 'scheduled_failure_notice' => 'string', + 'scheduled_publish_time' => 'datetime', + 'story_token' => 'string', + 'thumbnail' => 'string', + 'video_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DynamicARMetadataFields.php b/src/FacebookAds/Object/Fields/DynamicARMetadataFields.php new file mode 100644 index 000000000..9378c1cfd --- /dev/null +++ b/src/FacebookAds/Object/Fields/DynamicARMetadataFields.php @@ -0,0 +1,54 @@ + 'list', + 'container_effect_enum' => 'int', + 'effect_icon_url' => 'string', + 'effect_id' => 'string', + 'id' => 'string', + 'platforms' => 'list', + 'scale_factor' => 'list', + 'shadow_texture_url' => 'string', + 'source_url' => 'string', + 'state' => 'string', + 'tags' => 'list', + 'variant_picker_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DynamicContentSetFields.php b/src/FacebookAds/Object/Fields/DynamicContentSetFields.php new file mode 100644 index 000000000..fab72b640 --- /dev/null +++ b/src/FacebookAds/Object/Fields/DynamicContentSetFields.php @@ -0,0 +1,36 @@ + 'string', + 'id' => 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DynamicItemDisplayBundleFields.php b/src/FacebookAds/Object/Fields/DynamicItemDisplayBundleFields.php new file mode 100644 index 000000000..82f05dcc4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/DynamicItemDisplayBundleFields.php @@ -0,0 +1,44 @@ + 'list>', + 'description' => 'string', + 'id' => 'string', + 'name' => 'string', + 'product_set' => 'ProductSet', + 'text_tokens' => 'list>', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DynamicItemDisplayBundleFolderFields.php b/src/FacebookAds/Object/Fields/DynamicItemDisplayBundleFolderFields.php new file mode 100644 index 000000000..8999f6ade --- /dev/null +++ b/src/FacebookAds/Object/Fields/DynamicItemDisplayBundleFolderFields.php @@ -0,0 +1,42 @@ + 'string', + 'id' => 'string', + 'name' => 'string', + 'product_catalog' => 'ProductCatalog', + 'product_set' => 'ProductSet', + 'valid_labels' => 'list>>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/EducationExperienceFields.php b/src/FacebookAds/Object/Fields/EducationExperienceFields.php new file mode 100644 index 000000000..0302d04b7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/EducationExperienceFields.php @@ -0,0 +1,46 @@ + 'list', + 'concentration' => 'list', + 'degree' => 'Page', + 'id' => 'string', + 'school' => 'Page', + 'type' => 'string', + 'with' => 'list', + 'year' => 'Page', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/EmailImportFields.php b/src/FacebookAds/Object/Fields/EmailImportFields.php new file mode 100644 index 000000000..848af0fe9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/EmailImportFields.php @@ -0,0 +1,34 @@ + 'list', + 'total' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/EndStudyCriteriaFields.php b/src/FacebookAds/Object/Fields/EndStudyCriteriaFields.php new file mode 100644 index 000000000..19f6c1608 --- /dev/null +++ b/src/FacebookAds/Object/Fields/EndStudyCriteriaFields.php @@ -0,0 +1,30 @@ + 'string', + 'owner_linked_instagram_user_v1_id' => 'string', + 'owner_picture' => 'string', + 'post_id' => 'string', + 'post_info' => 'Post', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/EventExternalTicketInfoFields.php b/src/FacebookAds/Object/Fields/EventExternalTicketInfoFields.php new file mode 100644 index 000000000..e86221cef --- /dev/null +++ b/src/FacebookAds/Object/Fields/EventExternalTicketInfoFields.php @@ -0,0 +1,38 @@ + 'string', + 'max_sales_price' => 'CurrencyAmount', + 'min_sales_price' => 'CurrencyAmount', + 'sales_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/EventFields.php b/src/FacebookAds/Object/Fields/EventFields.php index fbb55564d..78a928fea 100644 --- a/src/FacebookAds/Object/Fields/EventFields.php +++ b/src/FacebookAds/Object/Fields/EventFields.php @@ -86,10 +86,10 @@ public function getFieldTypes() { 'owner' => 'Object', 'parent_group' => 'Group', 'place' => 'Place', - 'registration_setting' => 'Object', + 'registration_setting' => 'EventRegistrationSetting', 'scheduled_publish_time' => 'string', 'start_time' => 'string', - 'ticket_setting' => 'Object', + 'ticket_setting' => 'EventTicketSetting', 'ticket_uri' => 'string', 'ticket_uri_start_sales_time' => 'string', 'ticketing_privacy_uri' => 'string', diff --git a/src/FacebookAds/Object/Fields/EventRegistrationSettingFields.php b/src/FacebookAds/Object/Fields/EventRegistrationSettingFields.php new file mode 100644 index 000000000..261d9fd12 --- /dev/null +++ b/src/FacebookAds/Object/Fields/EventRegistrationSettingFields.php @@ -0,0 +1,38 @@ + 'string', + 'questions' => 'string', + 'target_type' => 'string', + 'ticket_tier_ids' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/EventTicketSettingFields.php b/src/FacebookAds/Object/Fields/EventTicketSettingFields.php new file mode 100644 index 000000000..4b28a22a5 --- /dev/null +++ b/src/FacebookAds/Object/Fields/EventTicketSettingFields.php @@ -0,0 +1,34 @@ + 'string', + 'ticket_delivery_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/EventTicketTierFields.php b/src/FacebookAds/Object/Fields/EventTicketTierFields.php new file mode 100644 index 000000000..bf9971709 --- /dev/null +++ b/src/FacebookAds/Object/Fields/EventTicketTierFields.php @@ -0,0 +1,66 @@ + 'string', + 'description' => 'string', + 'end_sales_time' => 'datetime', + 'end_show_time' => 'datetime', + 'fee_settings' => 'string', + 'id' => 'string', + 'maximum_quantity' => 'int', + 'metadata' => 'string', + 'minimum_quantity' => 'int', + 'name' => 'string', + 'price' => 'int', + 'priority' => 'int', + 'retailer_id' => 'string', + 'seating_map_image_url' => 'string', + 'start_sales_time' => 'datetime', + 'start_show_time' => 'datetime', + 'status' => 'string', + 'total_quantity' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/EventTourFields.php b/src/FacebookAds/Object/Fields/EventTourFields.php new file mode 100644 index 000000000..92c209690 --- /dev/null +++ b/src/FacebookAds/Object/Fields/EventTourFields.php @@ -0,0 +1,56 @@ + 'string', + 'dominant_color' => 'string', + 'end_time' => 'string', + 'id' => 'string', + 'is_past' => 'bool', + 'last_event_timestamp' => 'int', + 'name' => 'string', + 'num_events' => 'int', + 'photo' => 'Photo', + 'scheduled_publish_timestamp' => 'int', + 'start_time' => 'string', + 'ticketing_uri' => 'string', + 'video' => 'AdVideo', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ExpirablePostFields.php b/src/FacebookAds/Object/Fields/ExpirablePostFields.php new file mode 100644 index 000000000..10975e8e4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ExpirablePostFields.php @@ -0,0 +1,70 @@ + 'User', + 'can_republish' => 'bool', + 'content_type' => 'string', + 'creation_time' => 'datetime', + 'expiration' => 'Object', + 'feed_audience_description' => 'string', + 'feed_targeting' => 'Targeting', + 'id' => 'string', + 'is_post_in_good_state' => 'bool', + 'message' => 'string', + 'modified_time' => 'datetime', + 'og_action_summary' => 'string', + 'permalink_url' => 'string', + 'place' => 'Place', + 'privacy_description' => 'string', + 'scheduled_failure_notice' => 'string', + 'scheduled_publish_time' => 'datetime', + 'story_token' => 'string', + 'thumbnail' => 'string', + 'video_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ExtendedCreditApplicationFields.php b/src/FacebookAds/Object/Fields/ExtendedCreditApplicationFields.php new file mode 100644 index 000000000..a529ff20f --- /dev/null +++ b/src/FacebookAds/Object/Fields/ExtendedCreditApplicationFields.php @@ -0,0 +1,80 @@ + 'string', + 'city' => 'string', + 'cnpj' => 'string', + 'country' => 'string', + 'display_currency' => 'string', + 'duns_number' => 'string', + 'id' => 'string', + 'invoice_email_address' => 'string', + 'is_umi' => 'bool', + 'legal_entity_name' => 'string', + 'original_online_limit' => 'CurrencyAmount', + 'phone_number' => 'string', + 'postal_code' => 'string', + 'product_types' => 'list', + 'proposed_credit_limit' => 'CurrencyAmount', + 'registration_number' => 'string', + 'run_id' => 'string', + 'state' => 'string', + 'status' => 'string', + 'street1' => 'string', + 'street2' => 'string', + 'submitter' => 'User', + 'tax_exempt_status' => 'string', + 'tax_id' => 'string', + 'terms' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ExtendedCreditEmailFields.php b/src/FacebookAds/Object/Fields/ExtendedCreditEmailFields.php new file mode 100644 index 000000000..f9856df9b --- /dev/null +++ b/src/FacebookAds/Object/Fields/ExtendedCreditEmailFields.php @@ -0,0 +1,34 @@ + 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ExtendedCreditInfoFields.php b/src/FacebookAds/Object/Fields/ExtendedCreditInfoFields.php new file mode 100644 index 000000000..4888e4623 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ExtendedCreditInfoFields.php @@ -0,0 +1,38 @@ + 'string', + 'credit_revoked' => 'bool', + 'credit_used' => 'string', + 'using_biz_ec' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ExtendedCreditInvoiceGroupFields.php b/src/FacebookAds/Object/Fields/ExtendedCreditInvoiceGroupFields.php index 9b6a3d32e..1c2a3ea70 100644 --- a/src/FacebookAds/Object/Fields/ExtendedCreditInvoiceGroupFields.php +++ b/src/FacebookAds/Object/Fields/ExtendedCreditInvoiceGroupFields.php @@ -37,7 +37,7 @@ public function getFieldTypes() { 'auto_enroll' => 'bool', 'bill_to_address' => 'CRMAddress', 'customer_po_number' => 'string', - 'email' => 'Object', + 'email' => 'ExtendedCreditEmail', 'emails' => 'list', 'id' => 'string', 'liable_address' => 'CRMAddress', diff --git a/src/FacebookAds/Object/Fields/ExternalEventSourceCPASEventsDebuggingFields.php b/src/FacebookAds/Object/Fields/ExternalEventSourceCPASEventsDebuggingFields.php new file mode 100644 index 000000000..bf808bbe4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ExternalEventSourceCPASEventsDebuggingFields.php @@ -0,0 +1,48 @@ + 'int', + 'app_version' => 'string', + 'content_url' => 'string', + 'device_os' => 'string', + 'diagnostic' => 'string', + 'event_name' => 'string', + 'event_time' => 'int', + 'missing_ids' => 'string', + 'severity' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ExternalEventSourceCPASEventsDebuggingInfoFields.php b/src/FacebookAds/Object/Fields/ExternalEventSourceCPASEventsDebuggingInfoFields.php new file mode 100644 index 000000000..afaae5302 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ExternalEventSourceCPASEventsDebuggingInfoFields.php @@ -0,0 +1,36 @@ + 'int', + 'diagnostic' => 'string', + 'event_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ExternalEventSourceDAStatsResultFields.php b/src/FacebookAds/Object/Fields/ExternalEventSourceDAStatsResultFields.php new file mode 100644 index 000000000..469eba4d3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ExternalEventSourceDAStatsResultFields.php @@ -0,0 +1,42 @@ + '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/ExternalMerchantSettingsFields.php b/src/FacebookAds/Object/Fields/ExternalMerchantSettingsFields.php new file mode 100644 index 000000000..931e5ecde --- /dev/null +++ b/src/FacebookAds/Object/Fields/ExternalMerchantSettingsFields.php @@ -0,0 +1,36 @@ + 'string', + 'external_platform' => 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/DatasetFields.php b/src/FacebookAds/Object/Fields/FAMEKumoFields.php similarity index 93% rename from src/FacebookAds/Object/Fields/DatasetFields.php rename to src/FacebookAds/Object/Fields/FAMEKumoFields.php index e41cbdfb4..0bbdf15cd 100644 --- a/src/FacebookAds/Object/Fields/DatasetFields.php +++ b/src/FacebookAds/Object/Fields/FAMEKumoFields.php @@ -20,7 +20,7 @@ * */ -class DatasetFields extends AbstractEnum { +class FAMEKumoFields extends AbstractEnum { const ID = 'id'; diff --git a/src/FacebookAds/Object/Fields/FBImageCopyrightMatchFields.php b/src/FacebookAds/Object/Fields/FBImageCopyrightMatchFields.php new file mode 100644 index 000000000..4a7280721 --- /dev/null +++ b/src/FacebookAds/Object/Fields/FBImageCopyrightMatchFields.php @@ -0,0 +1,56 @@ + 'datetime', + 'applied_actions' => 'list>', + 'audit_log' => 'list', + 'available_ui_actions' => 'list', + 'expiration_days' => 'int', + 'id' => 'string', + 'is_business_page_match' => 'bool', + 'last_modified_time' => 'datetime', + 'match_data' => 'list', + 'match_status' => 'string', + 'ownership_countries' => 'VideoCopyrightGeoGate', + 'reference_owner' => 'Profile', + 'time_to_appeal' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/FBLiteToNTTransitionsFields.php b/src/FacebookAds/Object/Fields/FBLiteToNTTransitionsFields.php new file mode 100644 index 000000000..661a45365 --- /dev/null +++ b/src/FacebookAds/Object/Fields/FBLiteToNTTransitionsFields.php @@ -0,0 +1,32 @@ + 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/FBPageAndInstagramAccountFields.php b/src/FacebookAds/Object/Fields/FBPageAndInstagramAccountFields.php new file mode 100644 index 000000000..1a7e7aca0 --- /dev/null +++ b/src/FacebookAds/Object/Fields/FBPageAndInstagramAccountFields.php @@ -0,0 +1,40 @@ + 'list', + 'bc_permission_status' => 'string', + 'bc_permissions' => 'list>', + 'is_managed' => 'bool', + 'matched_by' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/FBPayButtonLoginFields.php b/src/FacebookAds/Object/Fields/FBPayButtonLoginFields.php new file mode 100644 index 000000000..7eabd552f --- /dev/null +++ b/src/FacebookAds/Object/Fields/FBPayButtonLoginFields.php @@ -0,0 +1,30 @@ + 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/FavoriteCatalogFields.php b/src/FacebookAds/Object/Fields/FavoriteCatalogFields.php new file mode 100644 index 000000000..2dd8046fa --- /dev/null +++ b/src/FacebookAds/Object/Fields/FavoriteCatalogFields.php @@ -0,0 +1,34 @@ + 'ProductCatalog', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/FinanceObjectFields.php b/src/FacebookAds/Object/Fields/FinanceObjectFields.php new file mode 100644 index 000000000..ea431d0b9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/FinanceObjectFields.php @@ -0,0 +1,34 @@ + 'string', + 'user' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/FranchiseProgramFields.php b/src/FacebookAds/Object/Fields/FranchiseProgramFields.php new file mode 100644 index 000000000..cdd8c65f6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/FranchiseProgramFields.php @@ -0,0 +1,54 @@ + 'BusinessAssetGroup', + 'creator_business' => 'Business', + 'description' => 'string', + 'end_date' => 'datetime', + 'id' => 'string', + 'name' => 'string', + 'program_access_type' => 'string', + 'program_approval_type' => 'string', + 'program_image_link' => 'string', + 'program_url' => 'string', + 'shared_custom_audience' => 'CustomAudience', + 'start_date' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/FranchiseProgramMemberFields.php b/src/FacebookAds/Object/Fields/FranchiseProgramMemberFields.php new file mode 100644 index 000000000..288fab392 --- /dev/null +++ b/src/FacebookAds/Object/Fields/FranchiseProgramMemberFields.php @@ -0,0 +1,46 @@ + 'Business', + 'end_date' => 'datetime', + 'id' => 'string', + 'join_date' => 'datetime', + 'member_ad_account' => 'AdAccount', + 'member_user' => 'User', + 'membership_status' => 'string', + 'page' => 'Page', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/GenericVideoAssetFields.php b/src/FacebookAds/Object/Fields/GenericVideoAssetFields.php new file mode 100644 index 000000000..138bc8e61 --- /dev/null +++ b/src/FacebookAds/Object/Fields/GenericVideoAssetFields.php @@ -0,0 +1,122 @@ + 'string', + 'broadcast_planned_start_time' => 'datetime', + 'can_viewer_edit' => 'bool', + 'copyright_monitoring_status' => 'string', + 'created_time' => 'datetime', + 'creator' => 'User', + 'description' => 'string', + 'download_hd_url' => 'string', + 'download_sd_url' => 'string', + 'embeddable' => 'bool', + 'expiration' => 'Object', + 'feed_type' => 'string', + 'id' => 'string', + 'is_crossposting_eligible' => 'bool', + 'is_crossposting_within_bm_eligible' => 'bool', + 'is_crossposting_within_bm_enabled' => 'bool', + 'is_episode' => 'bool', + 'is_featured' => 'bool', + 'is_live_premiere' => 'bool', + 'is_video_asset' => 'bool', + 'last_added_time' => 'datetime', + 'latest_creator' => 'User', + 'latest_owned_description' => 'string', + 'latest_owned_title' => 'string', + 'length' => 'float', + 'live_status' => 'string', + 'no_story' => 'bool', + 'owner_name' => 'string', + 'owner_picture' => 'string', + 'owner_post_state' => 'string', + 'permalink_url' => 'string', + 'picture' => 'string', + 'posts_count' => 'unsigned int', + 'posts_ids' => 'list', + 'posts_status' => 'Object', + 'premiere_living_room_status' => 'string', + 'published' => 'bool', + 'scheduled_publish_time' => 'datetime', + 'secret' => 'bool', + 'secure_stream_url' => 'string', + 'social_actions' => 'bool', + 'status' => 'VideoStatus', + 'stream_url' => 'string', + 'thumbnail_while_encoding' => 'string', + 'title' => 'string', + 'views' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/GeoGatingPolicyFields.php b/src/FacebookAds/Object/Fields/GeoGatingPolicyFields.php new file mode 100644 index 000000000..bf91a7461 --- /dev/null +++ b/src/FacebookAds/Object/Fields/GeoGatingPolicyFields.php @@ -0,0 +1,44 @@ + 'string', + 'exclude_country' => 'list', + 'id' => 'string', + 'include_country' => 'list', + 'name' => 'string', + 'valid_from' => 'datetime', + 'valid_until' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/HoursFields.php b/src/FacebookAds/Object/Fields/HoursFields.php new file mode 100644 index 000000000..6028a9f63 --- /dev/null +++ b/src/FacebookAds/Object/Fields/HoursFields.php @@ -0,0 +1,34 @@ + 'string', + 'permanent_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGAccessTokenForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGAccessTokenForIGOnlyAPIFields.php new file mode 100644 index 000000000..79bbba2a3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGAccessTokenForIGOnlyAPIFields.php @@ -0,0 +1,38 @@ + 'string', + 'expires_in' => 'int', + 'token_type' => 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGBoostMediaAdFields.php b/src/FacebookAds/Object/Fields/IGBoostMediaAdFields.php new file mode 100644 index 000000000..420356363 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGBoostMediaAdFields.php @@ -0,0 +1,36 @@ + 'string', + 'ad_status' => 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGMediaBoostEligibilityInfoFields.php b/src/FacebookAds/Object/Fields/IGMediaBoostEligibilityInfoFields.php new file mode 100644 index 000000000..1e277dbae --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGMediaBoostEligibilityInfoFields.php @@ -0,0 +1,36 @@ + 'string', + 'eligible_to_boost' => 'bool', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGMediaFields.php b/src/FacebookAds/Object/Fields/IGMediaFields.php index d26ccf153..b7a6a79b1 100644 --- a/src/FacebookAds/Object/Fields/IGMediaFields.php +++ b/src/FacebookAds/Object/Fields/IGMediaFields.php @@ -22,6 +22,7 @@ class IGMediaFields extends AbstractEnum { + const BOOST_ELIGIBILITY_INFO = 'boost_eligibility_info'; const CAPTION = 'caption'; const COMMENTS_COUNT = 'comments_count'; const COPYRIGHT_CHECK_INFORMATION = 'copyright_check_information'; @@ -42,6 +43,7 @@ class IGMediaFields extends AbstractEnum { public function getFieldTypes() { return array( + 'boost_eligibility_info' => 'IGMediaBoostEligibilityInfo', 'caption' => 'string', 'comments_count' => 'int', 'copyright_check_information' => 'IGVideoCopyrightCheckMatchesInformation', diff --git a/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php new file mode 100644 index 000000000..ee5d9c90e --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php @@ -0,0 +1,56 @@ + 'string', + 'id' => 'string', + 'is_shared_to_feed' => 'bool', + 'like_count' => 'int', + 'media_product_type' => 'string', + 'media_type' => 'string', + 'media_url' => 'string', + 'owner' => 'User', + 'permalink' => 'string', + 'shortcode' => 'string', + 'thumbnail_url' => 'string', + 'timestamp' => 'datetime', + 'username' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGProductTaggingInvalidationErrorFields.php b/src/FacebookAds/Object/Fields/IGProductTaggingInvalidationErrorFields.php new file mode 100644 index 000000000..b63deff2a --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGProductTaggingInvalidationErrorFields.php @@ -0,0 +1,36 @@ + 'string', + 'taggability_state' => 'string', + 'title' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php new file mode 100644 index 000000000..4507cc02c --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php @@ -0,0 +1,38 @@ + 'string', + 'expires_in' => 'int', + 'token_type' => 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGResumableVideoUploadStatusFields.php b/src/FacebookAds/Object/Fields/IGResumableVideoUploadStatusFields.php new file mode 100644 index 000000000..0309f4a1c --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGResumableVideoUploadStatusFields.php @@ -0,0 +1,34 @@ + 'VideoStatusProcessingPhase', + 'uploading_phase' => 'VideoStatusUploadingPhase', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php new file mode 100644 index 000000000..233beedf7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php @@ -0,0 +1,38 @@ + 'string', + 'id' => 'string', + 'media_count' => 'int', + 'username' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/IPObjectFields.php b/src/FacebookAds/Object/Fields/IPObjectFields.php new file mode 100644 index 000000000..20064d262 --- /dev/null +++ b/src/FacebookAds/Object/Fields/IPObjectFields.php @@ -0,0 +1,34 @@ + 'string', + 'user' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ImageCopyrightDisputeFields.php b/src/FacebookAds/Object/Fields/ImageCopyrightDisputeFields.php new file mode 100644 index 000000000..591830d05 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ImageCopyrightDisputeFields.php @@ -0,0 +1,48 @@ + 'string', + 'dispute_form_data' => 'string', + 'expiration_time' => 'datetime', + 'id' => 'string', + 'match_id' => 'string', + 'status' => 'string', + 'time_appealed' => 'datetime', + 'time_created' => 'datetime', + 'time_updated' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ImageReferenceMatchFields.php b/src/FacebookAds/Object/Fields/ImageReferenceMatchFields.php new file mode 100644 index 000000000..1395f6e1e --- /dev/null +++ b/src/FacebookAds/Object/Fields/ImageReferenceMatchFields.php @@ -0,0 +1,64 @@ + 'list', + 'country_resolution_history' => 'list>>', + 'creation_time' => 'datetime', + 'current_conflict_resolved_countries' => 'list>', + 'displayed_match_state' => 'string', + 'dispute_form_data_entries_with_translations' => 'list', + 'expiration_time' => 'datetime', + 'id' => 'string', + 'match_state' => 'string', + 'matched_reference_copyright' => 'ImageCopyright', + 'matched_reference_owner' => 'Profile', + 'modification_history' => 'list', + 'reference_copyright' => 'ImageCopyright', + 'reference_owner' => 'Profile', + 'rejection_form_data_entries_with_translations' => 'list', + 'resolution_reason' => 'string', + 'update_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstagramBoostableMediaForAccessTokenFields.php b/src/FacebookAds/Object/Fields/InstagramBoostableMediaForAccessTokenFields.php new file mode 100644 index 000000000..cef3fe913 --- /dev/null +++ b/src/FacebookAds/Object/Fields/InstagramBoostableMediaForAccessTokenFields.php @@ -0,0 +1,34 @@ + 'bool', + 'media' => 'IGMedia', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstagramRelatedProductTagsFields.php b/src/FacebookAds/Object/Fields/InstagramRelatedProductTagsFields.php new file mode 100644 index 000000000..b89d20c5f --- /dev/null +++ b/src/FacebookAds/Object/Fields/InstagramRelatedProductTagsFields.php @@ -0,0 +1,42 @@ + 'string', + 'id' => 'int', + 'image_uri' => 'string', + 'name' => 'string', + 'price_label' => 'string', + 'sale_price_label' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstantArticleCTAFields.php b/src/FacebookAds/Object/Fields/InstantArticleCTAFields.php new file mode 100644 index 000000000..ceb2068a1 --- /dev/null +++ b/src/FacebookAds/Object/Fields/InstantArticleCTAFields.php @@ -0,0 +1,40 @@ + 'string', + 'is_enabled' => 'bool', + 'publisher_defined_value' => 'float', + 'type' => 'string', + 'update_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstantArticleInsightsQueryResultFields.php b/src/FacebookAds/Object/Fields/InstantArticleInsightsQueryResultFields.php new file mode 100644 index 000000000..71de41bd5 --- /dev/null +++ b/src/FacebookAds/Object/Fields/InstantArticleInsightsQueryResultFields.php @@ -0,0 +1,38 @@ + 'map', + 'name' => 'string', + 'time' => 'datetime', + 'value' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/KeywordDeliveryReportFields.php b/src/FacebookAds/Object/Fields/KeywordDeliveryReportFields.php new file mode 100644 index 000000000..d0522cddd --- /dev/null +++ b/src/FacebookAds/Object/Fields/KeywordDeliveryReportFields.php @@ -0,0 +1,48 @@ + 'unsigned int', + 'estimated_conversions' => 'unsigned int', + 'estimated_cost' => 'float', + 'estimated_cpc' => 'float', + 'estimated_ctr' => 'float', + 'estimated_cvr' => 'float', + 'estimated_impressions' => 'unsigned int', + 'estimated_returns' => 'float', + 'keyword' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenDataDraftFields.php b/src/FacebookAds/Object/Fields/LeadGenDataDraftFields.php new file mode 100644 index 000000000..5cb8f2466 --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenDataDraftFields.php @@ -0,0 +1,60 @@ + 'bool', + 'created_time' => 'datetime', + 'disqualified_end_component' => 'Object', + 'follow_up_action_url' => 'string', + 'id' => 'string', + 'is_optimized_for_quality' => 'bool', + 'legal_content' => 'Object', + 'locale' => 'string', + 'name' => 'string', + 'page' => 'Page', + 'question_page_custom_headline' => 'string', + 'questions' => 'list', + 'status' => 'string', + 'thank_you_page' => 'Object', + 'tracking_parameters' => 'list>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenDirectCRMIntegrationConfigFields.php b/src/FacebookAds/Object/Fields/LeadGenDirectCRMIntegrationConfigFields.php new file mode 100644 index 000000000..50e40de5a --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenDirectCRMIntegrationConfigFields.php @@ -0,0 +1,46 @@ + 'string', + 'creation_time' => 'datetime', + 'id' => 'string', + 'lead_gen_data' => 'LeadgenForm', + 'matched_fields' => 'list>', + 'matched_fields_labels' => 'list>', + 'resources' => 'list>', + 'third_party_app_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php b/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php new file mode 100644 index 000000000..2b3548f3d --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php @@ -0,0 +1,96 @@ + 'string', + 'contact_information_text' => 'string', + 'creatives_overview_default_text' => 'string', + 'data_privacy_policy_setting_description' => 'string', + 'default_appointment_scheduling_inline_context' => 'string', + 'default_disqualified_end_component' => 'Object', + 'default_thank_you_page' => 'Object', + 'disqualified_thank_you_card_transparency_info_text' => 'string', + 'edit_text' => 'string', + 'email_inline_context_text' => 'string', + 'email_messenger_push_opt_in_disclaimer' => 'string', + 'email_messenger_push_opt_in_transparency_text' => 'string', + 'form_clarity_description_content' => 'string', + 'form_clarity_description_title' => 'string', + 'form_clarity_headline' => 'string', + 'gated_content_locked_description' => 'string', + 'gated_content_locked_headline' => 'string', + 'gated_content_unlocked_description' => 'string', + 'gated_content_unlocked_headline' => 'string', + 'how_it_works_section_headers' => 'list>', + 'next_button_text' => 'string', + 'optional_question_text' => 'string', + 'personal_info_text' => 'string', + 'phone_number_inline_context_text' => 'string', + 'privacy_policy_title_section_title_text' => 'string', + 'privacy_setting_description' => 'string', + 'products_section_headers' => 'list>', + 'qualified_thank_you_card_transparency_info_text' => 'string', + 'review_your_info_text' => 'string', + 'secure_sharing_text' => 'string', + 'slide_to_submit_text' => 'string', + 'social_proof_section_headers' => 'list>', + 'submit_button_text' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenThankYouPageGatedFileFields.php b/src/FacebookAds/Object/Fields/LeadGenThankYouPageGatedFileFields.php new file mode 100644 index 000000000..d480f8b39 --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenThankYouPageGatedFileFields.php @@ -0,0 +1,38 @@ + 'string', + 'file_name' => 'string', + 'file_size_bytes' => 'int', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LeadGenThankYouPageGatedPromoFields.php b/src/FacebookAds/Object/Fields/LeadGenThankYouPageGatedPromoFields.php new file mode 100644 index 000000000..ec5131338 --- /dev/null +++ b/src/FacebookAds/Object/Fields/LeadGenThankYouPageGatedPromoFields.php @@ -0,0 +1,36 @@ + 'string', + 'online_offer_url' => 'string', + 'online_promo_code' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LinkedInstagramAccountDataFields.php b/src/FacebookAds/Object/Fields/LinkedInstagramAccountDataFields.php new file mode 100644 index 000000000..926bfdcbf --- /dev/null +++ b/src/FacebookAds/Object/Fields/LinkedInstagramAccountDataFields.php @@ -0,0 +1,42 @@ + 'string', + 'analytics_claim' => 'string', + 'full_name' => 'string', + 'profile_picture_url' => 'string', + 'user_id' => 'string', + 'user_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LocationBasedItemFields.php b/src/FacebookAds/Object/Fields/LocationBasedItemFields.php new file mode 100644 index 000000000..3ac0f30f4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/LocationBasedItemFields.php @@ -0,0 +1,56 @@ + 'CatalogItemAppLinks', + 'category_specific_fields' => 'CatalogSubVerticalList', + 'currency' => 'string', + 'description' => 'string', + 'id' => 'string', + 'image_fetch_status' => 'ImageFetchStatus', + 'images' => 'list', + 'location_based_item_id' => 'string', + 'name' => 'string', + 'price' => 'string', + 'sanitized_images' => 'list', + 'url' => 'string', + 'visibility' => 'Visibility', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/LoomConfigFields.php b/src/FacebookAds/Object/Fields/LoomConfigFields.php new file mode 100644 index 000000000..432c54426 --- /dev/null +++ b/src/FacebookAds/Object/Fields/LoomConfigFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MCExperienceConfigForApiFields.php b/src/FacebookAds/Object/Fields/MCExperienceConfigForApiFields.php new file mode 100644 index 000000000..c94549c28 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MCExperienceConfigForApiFields.php @@ -0,0 +1,36 @@ + 'bool', + 'is_terms_signed' => 'bool', + 'merchant_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MIXInsightsResultFields.php b/src/FacebookAds/Object/Fields/MIXInsightsResultFields.php new file mode 100644 index 000000000..26043713d --- /dev/null +++ b/src/FacebookAds/Object/Fields/MIXInsightsResultFields.php @@ -0,0 +1,72 @@ + 'list>>>', + 'daily_audio_library_values' => 'list>', + 'daily_ugc_values' => 'list>', + 'daily_values' => 'list>', + 'metric' => 'string', + 'monthly_audio_library_values' => 'list>', + 'monthly_ugc_values' => 'list>', + 'monthly_values' => 'list>', + 'percent_growth' => 'float', + 'shielded_fields' => 'list>>>', + 'total_age_gender_breakdown' => 'list>', + 'total_audio_library_value' => 'int', + 'total_country_breakdown' => 'list>', + 'total_locale_breakdown' => 'list>', + 'total_product_breakdown' => 'list>', + 'total_ugc_value' => 'int', + 'total_value' => 'int', + 'trending_age' => 'list>>>', + 'trending_gender' => 'list>>>', + 'trending_interest' => 'list>>>', + 'trending_territory' => 'list>>>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MarketingMessageTargetingFields.php b/src/FacebookAds/Object/Fields/MarketingMessageTargetingFields.php new file mode 100644 index 000000000..4dbadab79 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MarketingMessageTargetingFields.php @@ -0,0 +1,40 @@ + 'string', + 'delay_send_time_second' => 'unsigned int', + 'delay_send_time_unit' => 'string', + 'subscriber_lists' => 'list', + 'targeting_rules' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/McomInvoiceBankAccountFields.php b/src/FacebookAds/Object/Fields/McomInvoiceBankAccountFields.php new file mode 100644 index 000000000..942941e7d --- /dev/null +++ b/src/FacebookAds/Object/Fields/McomInvoiceBankAccountFields.php @@ -0,0 +1,38 @@ + 'int', + 'num_verified_accounts' => 'int', + 'pending_verification_accounts' => 'list', + 'verified_accounts' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/McomInvoiceDetailsFields.php b/src/FacebookAds/Object/Fields/McomInvoiceDetailsFields.php new file mode 100644 index 000000000..39bd921eb --- /dev/null +++ b/src/FacebookAds/Object/Fields/McomInvoiceDetailsFields.php @@ -0,0 +1,68 @@ + 'list', + 'buyer_notes' => 'string', + 'currency_amount' => 'Object', + 'external_invoice_id' => 'string', + 'features' => 'Object', + 'invoice_created' => 'int', + 'invoice_id' => 'string', + 'invoice_instructions' => 'string', + 'invoice_instructions_image_url' => 'string', + 'invoice_updated' => 'int', + 'outstanding_amount' => 'Object', + 'paid_amount' => 'Object', + 'payments' => 'list', + 'platform_logo_url' => 'string', + 'platform_name' => 'string', + 'product_items' => 'list', + 'shipping_address' => 'Object', + 'status' => 'string', + 'tracking_info' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/McomInvoiceListsFields.php b/src/FacebookAds/Object/Fields/McomInvoiceListsFields.php new file mode 100644 index 000000000..c6a509fc9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/McomInvoiceListsFields.php @@ -0,0 +1,36 @@ + 'list', + 'invoice_ids' => 'list', + 'page_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/McomInvoiceStatusFields.php b/src/FacebookAds/Object/Fields/McomInvoiceStatusFields.php new file mode 100644 index 000000000..697631475 --- /dev/null +++ b/src/FacebookAds/Object/Fields/McomInvoiceStatusFields.php @@ -0,0 +1,54 @@ + 'string', + 'bank_code' => 'string', + 'invoice_id' => 'string', + 'invoice_status' => 'string', + 'page_id' => 'string', + 'payment_method' => 'string', + 'payment_type' => 'string', + 'payout_amount' => 'Object', + 'slip_verification_error' => 'string', + 'slip_verification_status' => 'string', + 'transaction_fee' => 'Object', + 'transfer_slip' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/McomOnboardingStatusFields.php b/src/FacebookAds/Object/Fields/McomOnboardingStatusFields.php new file mode 100644 index 000000000..e379f01c3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/McomOnboardingStatusFields.php @@ -0,0 +1,34 @@ + 'string', + 'page_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/McomPayoutsFields.php b/src/FacebookAds/Object/Fields/McomPayoutsFields.php new file mode 100644 index 000000000..e9c12192e --- /dev/null +++ b/src/FacebookAds/Object/Fields/McomPayoutsFields.php @@ -0,0 +1,44 @@ + 'int', + 'order_ids' => 'list', + 'payout_amount' => 'Object', + 'payout_provider_reference_id' => 'string', + 'payout_status' => 'string', + 'payout_time' => 'int', + 'provider' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MeasurementReportFields.php b/src/FacebookAds/Object/Fields/MeasurementReportFields.php new file mode 100644 index 000000000..3d1af5e42 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MeasurementReportFields.php @@ -0,0 +1,40 @@ + 'list', + 'id' => 'string', + 'metadata' => 'map', + 'report_type' => 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MediaCopyrightAttributionFields.php b/src/FacebookAds/Object/Fields/MediaCopyrightAttributionFields.php new file mode 100644 index 000000000..d11a26cb8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MediaCopyrightAttributionFields.php @@ -0,0 +1,62 @@ + 'string', + 'attribution_target_email_address' => 'string', + 'attribution_target_id' => 'string', + 'attribution_target_name' => 'string', + 'attribution_type' => 'string', + 'attribution_uri' => 'string', + 'copyright_count' => 'int', + 'creation_time' => 'datetime', + 'creator' => 'Profile', + 'id' => 'string', + 'is_enabled' => 'bool', + 'link_title' => 'string', + 'match_count' => 'int', + 'owner' => 'Page', + 'status' => 'string', + 'title' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MediaCopyrightUpdateRecordFields.php b/src/FacebookAds/Object/Fields/MediaCopyrightUpdateRecordFields.php new file mode 100644 index 000000000..8004d073b --- /dev/null +++ b/src/FacebookAds/Object/Fields/MediaCopyrightUpdateRecordFields.php @@ -0,0 +1,44 @@ + 'list', + 'actor' => 'User', + 'actor_type' => 'string', + 'creation_time' => 'datetime', + 'id' => 'string', + 'ownership_countries' => 'list', + 'whitelisted_accounts' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MerchantComplianceFields.php b/src/FacebookAds/Object/Fields/MerchantComplianceFields.php new file mode 100644 index 000000000..7568380c8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MerchantComplianceFields.php @@ -0,0 +1,40 @@ + 'int', + 'compliance_status' => 'string', + 'count_down_start_time' => 'int', + 'purchase' => 'int', + 'purchase_conversion_value' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MerchantReportFields.php b/src/FacebookAds/Object/Fields/MerchantReportFields.php new file mode 100644 index 000000000..1d9336c96 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MerchantReportFields.php @@ -0,0 +1,60 @@ + 'int', + 'brand' => 'string', + 'catalog_segment_id' => 'string', + 'catalog_segment_purchase_value' => 'float', + 'category' => 'string', + 'date' => 'string', + 'latest_date' => 'string', + 'link_clicks' => 'int', + 'merchant_currency' => 'string', + 'page_id' => 'string', + 'product_id' => 'string', + 'product_quantity' => 'int', + 'product_total_value' => 'float', + 'purchase' => 'int', + 'purchase_value' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php b/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php new file mode 100644 index 000000000..48bde3b22 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php @@ -0,0 +1,38 @@ + 'bool', + 'has_messenger_messaging_permission' => 'bool', + 'id' => 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MessengerCallSettingsFields.php b/src/FacebookAds/Object/Fields/MessengerCallSettingsFields.php new file mode 100644 index 000000000..d590fa2ee --- /dev/null +++ b/src/FacebookAds/Object/Fields/MessengerCallSettingsFields.php @@ -0,0 +1,32 @@ + 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php b/src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php new file mode 100644 index 000000000..4c98a33c9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MessengerDestinationPageWelcomeMessageFields.php @@ -0,0 +1,42 @@ + 'string', + 'page_welcome_message_body' => 'string', + 'page_welcome_message_type' => 'string', + 'template_name' => 'string', + 'time_created' => 'datetime', + 'time_last_used' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MusicWorkCopyrightFields.php b/src/FacebookAds/Object/Fields/MusicWorkCopyrightFields.php new file mode 100644 index 000000000..b2d4c1d77 --- /dev/null +++ b/src/FacebookAds/Object/Fields/MusicWorkCopyrightFields.php @@ -0,0 +1,52 @@ + 'list', + 'claim_status' => 'string', + 'creation_time' => 'datetime', + 'displayed_fb_matches_count' => 'int', + 'displayed_ig_matches_count' => 'int', + 'displayed_matches_count' => 'int', + 'id' => 'string', + 'match_rule' => 'VideoCopyrightRule', + 'status' => 'string', + 'tags' => 'list', + 'update_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/NegativeKeywordListFields.php b/src/FacebookAds/Object/Fields/NegativeKeywordListFields.php new file mode 100644 index 000000000..3746ea2ab --- /dev/null +++ b/src/FacebookAds/Object/Fields/NegativeKeywordListFields.php @@ -0,0 +1,54 @@ + 'list>', + 'applied_inactive_ad_campaign_groups' => 'list>', + 'creator_id' => 'string', + 'id' => 'string', + 'is_fully_reviewed' => 'bool', + 'last_update_time' => 'datetime', + 'last_update_user_id' => 'string', + 'list_name' => 'string', + 'total_approved_keyword_count' => 'int', + 'total_declined_keyword_count' => 'int', + 'total_negative_keyword_count' => 'int', + 'total_validated_keyword_count' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/OfflineConversionDataSetActivitiesFields.php b/src/FacebookAds/Object/Fields/OfflineConversionDataSetActivitiesFields.php new file mode 100644 index 000000000..94e03b04f --- /dev/null +++ b/src/FacebookAds/Object/Fields/OfflineConversionDataSetActivitiesFields.php @@ -0,0 +1,48 @@ + 'int', + 'actor_name' => 'string', + 'adaccount_id' => 'int', + 'adaccount_name' => 'string', + 'event_time' => 'datetime', + 'event_type' => 'string', + 'extra_data' => 'string', + 'object_id' => 'int', + 'object_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/OfflineConversionDataSetFields.php b/src/FacebookAds/Object/Fields/OfflineConversionDataSetFields.php index ae7e7fbe7..b8858c77d 100644 --- a/src/FacebookAds/Object/Fields/OfflineConversionDataSetFields.php +++ b/src/FacebookAds/Object/Fields/OfflineConversionDataSetFields.php @@ -54,7 +54,6 @@ class OfflineConversionDataSetFields extends AbstractEnum { const OWNER_BUSINESS = 'owner_business'; const USAGE = 'usage'; const VALID_ENTRIES = 'valid_entries'; - const AUTO_ASSIGN_TO_NEW_ACCOUNTS_ONLY = 'auto_assign_to_new_accounts_only'; public function getFieldTypes() { return array( @@ -90,7 +89,6 @@ public function getFieldTypes() { 'owner_business' => 'Business', 'usage' => 'OfflineConversionDataSetUsage', 'valid_entries' => 'int', - 'auto_assign_to_new_accounts_only' => 'bool', ); } } diff --git a/src/FacebookAds/Object/Fields/OfflineConversionDataSetOptimizationStatusFields.php b/src/FacebookAds/Object/Fields/OfflineConversionDataSetOptimizationStatusFields.php new file mode 100644 index 000000000..9139948af --- /dev/null +++ b/src/FacebookAds/Object/Fields/OfflineConversionDataSetOptimizationStatusFields.php @@ -0,0 +1,38 @@ + 'string', + 'last_changed_time' => 'int', + 'last_detected_time' => 'int', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/OfflineProductItemFields.php b/src/FacebookAds/Object/Fields/OfflineProductItemFields.php new file mode 100644 index 000000000..09c315515 --- /dev/null +++ b/src/FacebookAds/Object/Fields/OfflineProductItemFields.php @@ -0,0 +1,62 @@ + 'CatalogItemAppLinks', + 'brand' => 'string', + 'category' => 'string', + 'category_specific_fields' => 'CatalogSubVerticalList', + 'currency' => 'string', + 'description' => 'string', + 'id' => 'string', + 'image_fetch_status' => 'ImageFetchStatus', + 'image_url' => 'string', + 'images' => 'list', + 'name' => 'string', + 'offline_product_item_id' => 'string', + 'price' => 'string', + 'sanitized_images' => 'list', + 'url' => 'string', + 'visibility' => 'Visibility', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/OfflineTermsOfServiceFields.php b/src/FacebookAds/Object/Fields/OfflineTermsOfServiceFields.php new file mode 100644 index 000000000..7b87409f4 --- /dev/null +++ b/src/FacebookAds/Object/Fields/OfflineTermsOfServiceFields.php @@ -0,0 +1,36 @@ + 'int', + 'id' => 'string', + 'signed_by_user' => 'User', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/OffsiteSignalContainerBusinessObjectFields.php b/src/FacebookAds/Object/Fields/OffsiteSignalContainerBusinessObjectFields.php new file mode 100644 index 000000000..c67a105eb --- /dev/null +++ b/src/FacebookAds/Object/Fields/OffsiteSignalContainerBusinessObjectFields.php @@ -0,0 +1,44 @@ + 'Business', + 'id' => 'string', + 'is_eligible_for_sharing_to_ad_account' => 'bool', + 'is_eligible_for_sharing_to_business' => 'bool', + 'is_unavailable' => 'bool', + 'name' => 'string', + 'primary_container_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php b/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php index 889c96139..1e6a89eef 100644 --- a/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php +++ b/src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php @@ -22,7 +22,6 @@ class OpenBridgeConfigurationFields extends AbstractEnum { - const ACCESS_KEY = 'access_key'; const ACTIVE = 'active'; const ENDPOINT = 'endpoint'; const FALLBACK_DOMAIN = 'fallback_domain'; @@ -30,11 +29,11 @@ class OpenBridgeConfigurationFields extends AbstractEnum { const HOST_BUSINESS_ID = 'host_business_id'; const HOST_EXTERNAL_ID = 'host_external_id'; const ID = 'id'; + const INSTANCE_ID = 'instance_id'; const PIXEL_ID = 'pixel_id'; public function getFieldTypes() { return array( - 'access_key' => 'string', 'active' => 'bool', 'endpoint' => 'string', 'fallback_domain' => 'string', @@ -42,6 +41,7 @@ public function getFieldTypes() { 'host_business_id' => 'string', 'host_external_id' => 'string', 'id' => 'string', + 'instance_id' => 'string', 'pixel_id' => 'string', ); } diff --git a/src/FacebookAds/Object/Fields/OrderIDAttributionsFields.php b/src/FacebookAds/Object/Fields/OrderIDAttributionsFields.php new file mode 100644 index 000000000..2739c6f29 --- /dev/null +++ b/src/FacebookAds/Object/Fields/OrderIDAttributionsFields.php @@ -0,0 +1,48 @@ + 'string', + 'attribution_type' => 'string', + 'attributions' => 'list', + 'conversion_device' => 'string', + 'dataset_id' => 'string', + 'holdout_status' => 'list', + 'order_id' => 'string', + 'order_timestamp' => 'datetime', + 'pixel_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/OrganizationFields.php b/src/FacebookAds/Object/Fields/OrganizationFields.php new file mode 100644 index 000000000..1f36f6039 --- /dev/null +++ b/src/FacebookAds/Object/Fields/OrganizationFields.php @@ -0,0 +1,40 @@ + 'string', + 'id' => 'string', + 'legal_entity_name' => 'string', + 'master_bm_id' => 'string', + 'owner_business' => 'Business', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/OwnedDomainFields.php b/src/FacebookAds/Object/Fields/OwnedDomainFields.php new file mode 100644 index 000000000..a90c10d95 --- /dev/null +++ b/src/FacebookAds/Object/Fields/OwnedDomainFields.php @@ -0,0 +1,40 @@ + 'string', + 'id' => 'string', + 'owner_business' => 'Business', + 'status' => 'string', + 'verification_code' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/P2MInvoicePaymentsFields.php b/src/FacebookAds/Object/Fields/P2MInvoicePaymentsFields.php new file mode 100644 index 000000000..e25a0be30 --- /dev/null +++ b/src/FacebookAds/Object/Fields/P2MInvoicePaymentsFields.php @@ -0,0 +1,34 @@ + 'string', + 'payments' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageAppWithLeadsAccessFields.php b/src/FacebookAds/Object/Fields/PageAppWithLeadsAccessFields.php new file mode 100644 index 000000000..a7623e3ab --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageAppWithLeadsAccessFields.php @@ -0,0 +1,34 @@ + 'bool', + 'type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageBroadcastFields.php b/src/FacebookAds/Object/Fields/PageBroadcastFields.php new file mode 100644 index 000000000..45f6b5aa0 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageBroadcastFields.php @@ -0,0 +1,36 @@ + 'string', + 'scheduled_time' => 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageCTSTopicFields.php b/src/FacebookAds/Object/Fields/PageCTSTopicFields.php new file mode 100644 index 000000000..672cac679 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageCTSTopicFields.php @@ -0,0 +1,42 @@ + 'string', + 'frequency' => 'string', + 'image_hash' => 'string', + 'image_url' => 'string', + 'subscriber' => 'int', + 'title' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageCTXBudgetSimilarAdvertiserBudgetRecommendationFields.php b/src/FacebookAds/Object/Fields/PageCTXBudgetSimilarAdvertiserBudgetRecommendationFields.php new file mode 100644 index 000000000..d518eaa8b --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageCTXBudgetSimilarAdvertiserBudgetRecommendationFields.php @@ -0,0 +1,34 @@ + 'string', + 'reported_conversion' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageCTXDefaultGreetingTextFields.php b/src/FacebookAds/Object/Fields/PageCTXDefaultGreetingTextFields.php new file mode 100644 index 000000000..274580532 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageCTXDefaultGreetingTextFields.php @@ -0,0 +1,36 @@ + 'string', + 'ctm' => 'string', + 'ctwa' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageCrmsWithLeadsAccessFields.php b/src/FacebookAds/Object/Fields/PageCrmsWithLeadsAccessFields.php new file mode 100644 index 000000000..ed8358fba --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageCrmsWithLeadsAccessFields.php @@ -0,0 +1,38 @@ + 'bool', + 'id' => 'string', + 'integration_type' => 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageDirectIntegrationCrmWithLeadsAccessFields.php b/src/FacebookAds/Object/Fields/PageDirectIntegrationCrmWithLeadsAccessFields.php new file mode 100644 index 000000000..94043ae3e --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageDirectIntegrationCrmWithLeadsAccessFields.php @@ -0,0 +1,36 @@ + 'bool', + 'id' => 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageFields.php b/src/FacebookAds/Object/Fields/PageFields.php index c08680024..8cb6de4d5 100644 --- a/src/FacebookAds/Object/Fields/PageFields.php +++ b/src/FacebookAds/Object/Fields/PageFields.php @@ -87,11 +87,11 @@ class PageFields extends AbstractEnum { const INFLUENCES = 'influences'; const INSTAGRAM_BUSINESS_ACCOUNT = 'instagram_business_account'; const IS_ALWAYS_OPEN = 'is_always_open'; + const IS_CALLING_ELIGIBLE = 'is_calling_eligible'; const IS_CHAIN = 'is_chain'; const IS_COMMUNITY_PAGE = 'is_community_page'; const IS_ELIGIBLE_FOR_BRANDED_CONTENT = 'is_eligible_for_branded_content'; const IS_ELIGIBLE_FOR_DISABLE_CONNECT_IG_BTN_FOR_NON_PAGE_ADMIN_AM_WEB = 'is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web'; - const IS_ELIGIBLE_FOR_LIVE_BOOSTING_EXPANSION = 'is_eligible_for_live_boosting_expansion'; const IS_MESSENGER_BOT_GET_STARTED_ENABLED = 'is_messenger_bot_get_started_enabled'; const IS_MESSENGER_PLATFORM_BOT = 'is_messenger_platform_bot'; const IS_OWNED = 'is_owned'; @@ -241,11 +241,11 @@ public function getFieldTypes() { 'influences' => 'string', 'instagram_business_account' => 'IGUser', 'is_always_open' => 'bool', + 'is_calling_eligible' => 'bool', 'is_chain' => 'bool', 'is_community_page' => 'bool', 'is_eligible_for_branded_content' => 'bool', 'is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web' => 'bool', - 'is_eligible_for_live_boosting_expansion' => 'bool', 'is_messenger_bot_get_started_enabled' => 'bool', 'is_messenger_platform_bot' => 'bool', 'is_owned' => 'bool', diff --git a/src/FacebookAds/Object/Fields/PageGameBotQuotaInformationFields.php b/src/FacebookAds/Object/Fields/PageGameBotQuotaInformationFields.php new file mode 100644 index 000000000..f29dcbd49 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageGameBotQuotaInformationFields.php @@ -0,0 +1,34 @@ + 'int', + 'time_window' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageGetStartedNullstateFields.php b/src/FacebookAds/Object/Fields/PageGetStartedNullstateFields.php new file mode 100644 index 000000000..462051fe9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageGetStartedNullstateFields.php @@ -0,0 +1,36 @@ + 'string', + 'processed_greeting' => 'string', + 'responsiveness' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageInsightsAsyncExportRunFields.php b/src/FacebookAds/Object/Fields/PageInsightsAsyncExportRunFields.php new file mode 100644 index 000000000..3665add85 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageInsightsAsyncExportRunFields.php @@ -0,0 +1,48 @@ + 'string', + 'filters' => 'list', + 'format' => 'string', + 'gen_report_date' => 'int', + 'id' => 'string', + 'report_end_date' => 'int', + 'report_start_date' => 'int', + 'sorters' => 'list', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageLeadsAccessConfigFields.php b/src/FacebookAds/Object/Fields/PageLeadsAccessConfigFields.php new file mode 100644 index 000000000..446410c6c --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageLeadsAccessConfigFields.php @@ -0,0 +1,34 @@ + 'string', + 'page' => 'Page', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageLocationsBreakdownFields.php b/src/FacebookAds/Object/Fields/PageLocationsBreakdownFields.php new file mode 100644 index 000000000..1a1e7def8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageLocationsBreakdownFields.php @@ -0,0 +1,48 @@ + 'string', + 'location_name' => 'string', + 'location_type' => 'string', + 'num_pages' => 'int', + 'num_pages_eligible_for_store_visit_reporting' => 'int', + 'num_unpublished_or_closed_pages' => 'int', + 'parent_country_code' => 'string', + 'parent_region_id' => 'int', + 'parent_region_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageMessageResponsivenessMetricsFields.php b/src/FacebookAds/Object/Fields/PageMessageResponsivenessMetricsFields.php new file mode 100644 index 000000000..e5a83f11e --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageMessageResponsivenessMetricsFields.php @@ -0,0 +1,36 @@ + 'bool', + 'response_rate' => 'float', + 'response_time' => 'float', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PagePartnerWithLeadsAccessFields.php b/src/FacebookAds/Object/Fields/PagePartnerWithLeadsAccessFields.php new file mode 100644 index 000000000..8ffe27be7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PagePartnerWithLeadsAccessFields.php @@ -0,0 +1,36 @@ + 'bool', + 'partner_business' => 'Business', + 'permitted_tasks' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PagePublisherFields.php b/src/FacebookAds/Object/Fields/PagePublisherFields.php new file mode 100644 index 000000000..b0f4e5943 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PagePublisherFields.php @@ -0,0 +1,40 @@ + 'string', + 'icon' => 'string', + 'id' => 'string', + 'name' => 'string', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageUserPermissionsFields.php b/src/FacebookAds/Object/Fields/PageUserPermissionsFields.php new file mode 100644 index 000000000..8e89b3358 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageUserPermissionsFields.php @@ -0,0 +1,50 @@ + 'Business', + 'business_persona' => 'string', + 'created_by' => 'Profile', + 'created_time' => 'datetime', + 'email' => 'string', + 'status' => 'string', + 'tasks' => 'list', + 'updated_by' => 'Profile', + 'updated_time' => 'datetime', + 'user' => 'Profile', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageUserWithLeadsAccessFields.php b/src/FacebookAds/Object/Fields/PageUserWithLeadsAccessFields.php new file mode 100644 index 000000000..bae907812 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageUserWithLeadsAccessFields.php @@ -0,0 +1,38 @@ + 'bool', + 'business_role' => 'string', + 'can_access_leads' => 'bool', + 'page_role' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php b/src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php new file mode 100644 index 000000000..96c744ada --- /dev/null +++ b/src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php @@ -0,0 +1,36 @@ + 'string', + 'id' => 'string', + 'title' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PanelAPIReportFields.php b/src/FacebookAds/Object/Fields/PanelAPIReportFields.php new file mode 100644 index 000000000..4bf9e6f5b --- /dev/null +++ b/src/FacebookAds/Object/Fields/PanelAPIReportFields.php @@ -0,0 +1,50 @@ + 'string', + 'download_url' => 'string', + 'end_date' => 'datetime', + 'export_file_type' => 'string', + 'id' => 'string', + 'index' => 'int', + 'name' => 'string', + 'number_of_chunks' => 'int', + 'start_date' => 'datetime', + 'upload_date' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ParentCatalogReportFields.php b/src/FacebookAds/Object/Fields/ParentCatalogReportFields.php new file mode 100644 index 000000000..354daa2a9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ParentCatalogReportFields.php @@ -0,0 +1,34 @@ + 'float', + 'purchases' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PartnerAccountLinkingFields.php b/src/FacebookAds/Object/Fields/PartnerAccountLinkingFields.php new file mode 100644 index 000000000..3a68b97fd --- /dev/null +++ b/src/FacebookAds/Object/Fields/PartnerAccountLinkingFields.php @@ -0,0 +1,46 @@ + 'AdAccount', + 'app' => 'Application', + 'business' => 'Business', + 'externalidentifier' => 'string', + 'externalidentifieruri' => 'string', + 'id' => 'string', + 'partnername' => 'string', + 'pixel' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PartnerCategoryFields.php b/src/FacebookAds/Object/Fields/PartnerCategoryFields.php new file mode 100644 index 000000000..8e0d34b2b --- /dev/null +++ b/src/FacebookAds/Object/Fields/PartnerCategoryFields.php @@ -0,0 +1,52 @@ + 'int', + 'country' => 'string', + 'description' => 'string', + 'details' => 'string', + 'id' => 'string', + 'is_private' => 'bool', + 'name' => 'string', + 'parent_category' => 'string', + 'source' => 'string', + 'status' => 'string', + 'targeting_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PartnerIntegrationLinkedFields.php b/src/FacebookAds/Object/Fields/PartnerIntegrationLinkedFields.php new file mode 100644 index 000000000..a46a7c000 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PartnerIntegrationLinkedFields.php @@ -0,0 +1,62 @@ + 'AdsPixel', + 'application' => 'Application', + 'completed_integration_types' => 'list', + 'external_business_connection_id' => 'string', + 'external_id' => 'string', + 'has_oauth_token' => 'bool', + 'id' => 'string', + 'mbe_app_id' => 'string', + 'mbe_asset_id' => 'string', + 'mbe_external_business_id' => 'string', + 'name' => 'string', + 'offline_conversion_data_set' => 'OfflineConversionDataSet', + 'page' => 'Page', + 'partner' => 'string', + 'product_catalog' => 'ProductCatalog', + 'setup_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PartnershipAdContentSearchMediaFields.php b/src/FacebookAds/Object/Fields/PartnershipAdContentSearchMediaFields.php new file mode 100644 index 000000000..962305e42 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PartnershipAdContentSearchMediaFields.php @@ -0,0 +1,36 @@ + 'IGMedia', + 'ig_media_has_product_tags' => 'bool', + 'is_ad_code_entry' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PartnershipAdsIdentityFields.php b/src/FacebookAds/Object/Fields/PartnershipAdsIdentityFields.php new file mode 100644 index 000000000..69cb61318 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PartnershipAdsIdentityFields.php @@ -0,0 +1,34 @@ + 'list', + 'secondary_identities' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PaymentRequestDetailsFields.php b/src/FacebookAds/Object/Fields/PaymentRequestDetailsFields.php new file mode 100644 index 000000000..9d12e1786 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PaymentRequestDetailsFields.php @@ -0,0 +1,48 @@ + 'Object', + 'creation_time' => 'int', + 'note' => 'string', + 'payment_request_id' => 'string', + 'receiver_id' => 'string', + 'reference_number' => 'string', + 'sender_id' => 'string', + 'status' => 'string', + 'transaction_time' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PersonalAdsPersonaFields.php b/src/FacebookAds/Object/Fields/PersonalAdsPersonaFields.php new file mode 100644 index 000000000..7ba3f623d --- /dev/null +++ b/src/FacebookAds/Object/Fields/PersonalAdsPersonaFields.php @@ -0,0 +1,40 @@ + 'string', + 'first_name' => 'string', + 'id' => 'string', + 'last_name' => 'string', + 'pending_email' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PhotoMetadataFields.php b/src/FacebookAds/Object/Fields/PhotoMetadataFields.php new file mode 100644 index 000000000..d2317f57b --- /dev/null +++ b/src/FacebookAds/Object/Fields/PhotoMetadataFields.php @@ -0,0 +1,54 @@ + 'string', + 'camera_model' => 'string', + 'datetime_modified' => 'datetime', + 'datetime_taken' => 'datetime', + 'exposure' => 'string', + 'focal_length' => 'string', + 'fstop' => 'string', + 'iso_speed' => 'int', + 'offline_id' => 'string', + 'orientation' => 'string', + 'original_height' => 'string', + 'original_width' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PlaceTagFields.php b/src/FacebookAds/Object/Fields/PlaceTagFields.php new file mode 100644 index 000000000..349f2231f --- /dev/null +++ b/src/FacebookAds/Object/Fields/PlaceTagFields.php @@ -0,0 +1,36 @@ + 'datetime', + 'id' => 'string', + 'place' => 'Page', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PlatformSessionKeyFields.php b/src/FacebookAds/Object/Fields/PlatformSessionKeyFields.php new file mode 100644 index 000000000..03f4a3797 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PlatformSessionKeyFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PreapprovalReviewFields.php b/src/FacebookAds/Object/Fields/PreapprovalReviewFields.php new file mode 100644 index 000000000..4a8f7a123 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PreapprovalReviewFields.php @@ -0,0 +1,40 @@ + 'string', + 'crow_component_id' => 'int', + 'is_human_reviewed' => 'bool', + 'is_reviewed' => 'bool', + 'policy_info' => 'list>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PremiumMusicVideoFields.php b/src/FacebookAds/Object/Fields/PremiumMusicVideoFields.php new file mode 100644 index 000000000..50a406551 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PremiumMusicVideoFields.php @@ -0,0 +1,46 @@ + 'string', + 'cross_post_videos' => 'list', + 'eligible_cross_post_pages' => 'list', + 'id' => 'string', + 'preferred_video_thumbnail_image_uri' => 'string', + 'premium_music_video_metadata' => 'Object', + 'scheduled_publish_time' => 'int', + 'title' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PrivacyOptionFields.php b/src/FacebookAds/Object/Fields/PrivacyOptionFields.php new file mode 100644 index 000000000..cc5f6d4a9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PrivacyOptionFields.php @@ -0,0 +1,42 @@ + 'string', + 'icon_src' => 'string', + 'id' => 'string', + 'is_currently_selected' => 'bool', + 'type' => 'string', + 'user_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PrivateComputationEnvironmentFields.php b/src/FacebookAds/Object/Fields/PrivateComputationEnvironmentFields.php new file mode 100644 index 000000000..69d140471 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PrivateComputationEnvironmentFields.php @@ -0,0 +1,42 @@ + 'string', + 'publisher_pce_deployment_status' => 'int', + 'publisher_pce_id' => 'string', + 'publisher_region' => 'string', + 'publisher_vpc_id' => 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php b/src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php new file mode 100644 index 000000000..e790ebbde --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductCatalogFacetsFields.php b/src/FacebookAds/Object/Fields/ProductCatalogFacetsFields.php new file mode 100644 index 000000000..670877a3a --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductCatalogFacetsFields.php @@ -0,0 +1,34 @@ + 'list>>', + 'item_count' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductCatalogImageSettingsInternalFields.php b/src/FacebookAds/Object/Fields/ProductCatalogImageSettingsInternalFields.php new file mode 100644 index 000000000..cf772d77b --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductCatalogImageSettingsInternalFields.php @@ -0,0 +1,36 @@ + 'ProductCatalogImageSettingsOperation', + 'shops_pdp' => 'ProductCatalogImageSettingsOperation', + 'single_ad' => 'ProductCatalogImageSettingsOperation', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductCatalogLocalizationSettingsFields.php b/src/FacebookAds/Object/Fields/ProductCatalogLocalizationSettingsFields.php new file mode 100644 index 000000000..23bc0ff61 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductCatalogLocalizationSettingsFields.php @@ -0,0 +1,36 @@ + 'string', + 'default_language' => 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php b/src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php new file mode 100644 index 000000000..b520d4523 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php @@ -0,0 +1,34 @@ + 'bool', + 'pixel_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductCatalogUserActionsFields.php b/src/FacebookAds/Object/Fields/ProductCatalogUserActionsFields.php new file mode 100644 index 000000000..0ab297caf --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductCatalogUserActionsFields.php @@ -0,0 +1,32 @@ + 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductCatalogUserPermissionsFields.php b/src/FacebookAds/Object/Fields/ProductCatalogUserPermissionsFields.php new file mode 100644 index 000000000..8da9021f6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductCatalogUserPermissionsFields.php @@ -0,0 +1,50 @@ + 'Business', + 'business_persona' => 'Object', + 'created_by' => 'User', + 'created_time' => 'datetime', + 'email' => 'string', + 'role' => 'string', + 'status' => 'string', + 'updated_by' => 'User', + 'updated_time' => 'datetime', + 'user' => 'User', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductCatalogUserTasksFields.php b/src/FacebookAds/Object/Fields/ProductCatalogUserTasksFields.php new file mode 100644 index 000000000..a1e0df771 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductCatalogUserTasksFields.php @@ -0,0 +1,34 @@ + 'Business', + 'tasks' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductDaEventSamplesBatchFields.php b/src/FacebookAds/Object/Fields/ProductDaEventSamplesBatchFields.php new file mode 100644 index 000000000..aa239b27b --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductDaEventSamplesBatchFields.php @@ -0,0 +1,36 @@ + 'list', + 'time_start' => 'unsigned int', + 'time_stop' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductFeedRulePreviewSampleFields.php b/src/FacebookAds/Object/Fields/ProductFeedRulePreviewSampleFields.php new file mode 100644 index 000000000..32271d3ad --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductFeedRulePreviewSampleFields.php @@ -0,0 +1,34 @@ + 'list>', + 'properties_before' => 'list>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductFeedUploadProgressFields.php b/src/FacebookAds/Object/Fields/ProductFeedUploadProgressFields.php new file mode 100644 index 000000000..4447d47eb --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductFeedUploadProgressFields.php @@ -0,0 +1,40 @@ + 'int', + 'size' => 'int', + 'step' => 'string', + 'unit' => 'string', + 'updated_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductItemFields.php b/src/FacebookAds/Object/Fields/ProductItemFields.php index 842b7bd66..50f6a4a0d 100644 --- a/src/FacebookAds/Object/Fields/ProductItemFields.php +++ b/src/FacebookAds/Object/Fields/ProductItemFields.php @@ -159,7 +159,7 @@ public function getFieldTypes() { 'images' => 'list', 'importer_address' => 'ProductItemImporterAddress', 'importer_name' => 'string', - 'invalidation_errors' => 'list', + 'invalidation_errors' => 'list', 'inventory' => 'int', 'manufacturer_info' => 'string', 'manufacturer_part_number' => 'string', diff --git a/src/FacebookAds/Object/Fields/ProductItemInsightsFields.php b/src/FacebookAds/Object/Fields/ProductItemInsightsFields.php new file mode 100644 index 000000000..d7a9f14a8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductItemInsightsFields.php @@ -0,0 +1,40 @@ + 'int', + 'ad_impression_count' => 'int', + 'add_to_cart_count' => 'int', + 'purchase_count' => 'int', + 'view_content_count' => 'int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductItemInvalidationErrorFields.php b/src/FacebookAds/Object/Fields/ProductItemInvalidationErrorFields.php new file mode 100644 index 000000000..5f52ed03d --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductItemInvalidationErrorFields.php @@ -0,0 +1,30 @@ + 'Availability', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductItemOfferFields.php b/src/FacebookAds/Object/Fields/ProductItemOfferFields.php new file mode 100644 index 000000000..7903638bd --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductItemOfferFields.php @@ -0,0 +1,36 @@ + 'list', + 'availability_radius' => 'float', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductItemShippingFields.php b/src/FacebookAds/Object/Fields/ProductItemShippingFields.php new file mode 100644 index 000000000..e9683cdba --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductItemShippingFields.php @@ -0,0 +1,40 @@ + 'string', + 'shipping_price_currency' => 'string', + 'shipping_price_value' => 'float', + 'shipping_region' => 'string', + 'shipping_service' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductItemSubscriptionInfoFields.php b/src/FacebookAds/Object/Fields/ProductItemSubscriptionInfoFields.php new file mode 100644 index 000000000..b7da7e32f --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductItemSubscriptionInfoFields.php @@ -0,0 +1,36 @@ + 'bool', + 'subscription_billing_period' => 'unsigned int', + 'subscription_billing_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductItemUnitPriceFields.php b/src/FacebookAds/Object/Fields/ProductItemUnitPriceFields.php new file mode 100644 index 000000000..bf41de32b --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductItemUnitPriceFields.php @@ -0,0 +1,30 @@ + 'int', + 'category_name' => 'string', + 'image_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductSetUsageFields.php b/src/FacebookAds/Object/Fields/ProductSetUsageFields.php new file mode 100644 index 000000000..edc26611b --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductSetUsageFields.php @@ -0,0 +1,36 @@ + 'string', + 'product_set' => 'ProductSet', + 'usage_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ProductVisualVariantFields.php b/src/FacebookAds/Object/Fields/ProductVisualVariantFields.php new file mode 100644 index 000000000..c2fc6e27b --- /dev/null +++ b/src/FacebookAds/Object/Fields/ProductVisualVariantFields.php @@ -0,0 +1,34 @@ + 'list', + 'unique_key' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PublisherBlockListFields.php b/src/FacebookAds/Object/Fields/PublisherBlockListFields.php index 6bcdcbe70..8c8b54bed 100644 --- a/src/FacebookAds/Object/Fields/PublisherBlockListFields.php +++ b/src/FacebookAds/Object/Fields/PublisherBlockListFields.php @@ -35,7 +35,7 @@ class PublisherBlockListFields extends AbstractEnum { public function getFieldTypes() { return array( - 'app_publishers' => 'list', + 'app_publishers' => 'list', 'business_owner_id' => 'string', 'id' => 'string', 'is_auto_blocking_on' => 'bool', @@ -44,7 +44,7 @@ public function getFieldTypes() { 'last_update_user' => 'string', 'name' => 'string', 'owner_ad_account_id' => 'string', - 'web_publishers' => 'list', + 'web_publishers' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/PublisherDeliveryReportFields.php b/src/FacebookAds/Object/Fields/PublisherDeliveryReportFields.php new file mode 100644 index 000000000..71f6ebe63 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PublisherDeliveryReportFields.php @@ -0,0 +1,40 @@ + 'list', + 'estimated_impressions' => 'unsigned int', + 'name' => 'string', + 'status' => 'string', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/PublisherWhiteListFields.php b/src/FacebookAds/Object/Fields/PublisherWhiteListFields.php new file mode 100644 index 000000000..a91876f58 --- /dev/null +++ b/src/FacebookAds/Object/Fields/PublisherWhiteListFields.php @@ -0,0 +1,42 @@ + 'string', + 'id' => 'string', + 'last_updated_time' => 'datetime', + 'last_updated_user' => 'string', + 'name' => 'string', + 'placement_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/RecommendedIGMediaFields.php b/src/FacebookAds/Object/Fields/RecommendedIGMediaFields.php new file mode 100644 index 000000000..aa28c34c7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/RecommendedIGMediaFields.php @@ -0,0 +1,34 @@ + 'float', + 'media' => 'InstagramMedia', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/RecommendedPagePostFields.php b/src/FacebookAds/Object/Fields/RecommendedPagePostFields.php new file mode 100644 index 000000000..153dfb88e --- /dev/null +++ b/src/FacebookAds/Object/Fields/RecommendedPagePostFields.php @@ -0,0 +1,36 @@ + 'float', + 'is_ig_media' => 'bool', + 'post_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/RegionalRegulationIdentitiesFields.php b/src/FacebookAds/Object/Fields/RegionalRegulationIdentitiesFields.php new file mode 100644 index 000000000..d0631f9c7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/RegionalRegulationIdentitiesFields.php @@ -0,0 +1,34 @@ + 'string', + 'taiwan_finserv_payer' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ReportingAudienceFields.php b/src/FacebookAds/Object/Fields/ReportingAudienceFields.php new file mode 100644 index 000000000..7f40444b1 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ReportingAudienceFields.php @@ -0,0 +1,36 @@ + 'list', + 'custom_audiences_url_param_name' => 'string', + 'custom_audiences_url_param_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ResearchPollStudyFields.php b/src/FacebookAds/Object/Fields/ResearchPollStudyFields.php new file mode 100644 index 000000000..0f3b30a97 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ResearchPollStudyFields.php @@ -0,0 +1,36 @@ + 'AdAccount', + 'id' => 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php b/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php new file mode 100644 index 000000000..802a681fd --- /dev/null +++ b/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php @@ -0,0 +1,64 @@ + 'string', + 'ad_account_id' => 'string', + 'adopted_guidance_l7d' => 'list', + 'advertiser_name' => 'string', + 'attributed_to_reseller_l7d' => 'bool', + 'available_guidance' => 'list', + 'benchmark_report_link' => 'string', + 'guidance_adoption_rate_l7d' => 'float', + 'no_adsets_gte_benchmark' => 'int', + 'no_adsets_lt_benchmark' => 'int', + 'nurtured_by_reseller_l7d' => 'bool', + 'planning_agency_name' => 'string', + 'recommendation_time' => 'datetime', + 'reporting_ds' => 'string', + 'reseller' => 'Business', + 'revenue_l30d' => 'float', + 'ultimate_advertiser_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/RightsManagerDataExportFields.php b/src/FacebookAds/Object/Fields/RightsManagerDataExportFields.php new file mode 100644 index 000000000..9959305dc --- /dev/null +++ b/src/FacebookAds/Object/Fields/RightsManagerDataExportFields.php @@ -0,0 +1,44 @@ + 'string', + 'export_scope' => 'string', + 'id' => 'string', + 'name' => 'string', + 'record_type' => 'string', + 'time_range_end' => 'datetime', + 'time_range_start' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/RightsManagerInsightsFields.php b/src/FacebookAds/Object/Fields/RightsManagerInsightsFields.php new file mode 100644 index 000000000..ea39ffa25 --- /dev/null +++ b/src/FacebookAds/Object/Fields/RightsManagerInsightsFields.php @@ -0,0 +1,40 @@ + 'string', + 'error_message' => 'string', + 'metadata' => 'list>', + 'totals' => 'list>', + 'x_axis_breakdown' => 'list>>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/RobotFields.php b/src/FacebookAds/Object/Fields/RobotFields.php new file mode 100644 index 000000000..0681b45a3 --- /dev/null +++ b/src/FacebookAds/Object/Fields/RobotFields.php @@ -0,0 +1,54 @@ + 'list>', + 'configurations' => 'list>', + 'data_center' => 'string', + 'id' => 'string', + 'init_pos' => 'list>', + 'last_pos' => 'list>', + 'meetup_link_hash' => 'string', + 'suite' => 'string', + 'target_map_image_uri' => 'string', + 'target_os_image_uri' => 'string', + 'target_sw_image_uri' => 'string', + 'user' => 'User', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/SalesRightsInventoryManagementFields.php b/src/FacebookAds/Object/Fields/SalesRightsInventoryManagementFields.php new file mode 100644 index 000000000..230d316c6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/SalesRightsInventoryManagementFields.php @@ -0,0 +1,44 @@ + 'int', + 'booked_impressions' => 'int', + 'overbooked_impressions' => 'int', + 'supported_countries' => 'list', + 'total_impressions' => 'int', + 'unavailable_impressions' => 'int', + 'warning_messages' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ScheduledPostFields.php b/src/FacebookAds/Object/Fields/ScheduledPostFields.php new file mode 100644 index 000000000..07a6018f2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ScheduledPostFields.php @@ -0,0 +1,64 @@ + 'User', + 'creation_time' => 'datetime', + 'feed_audience_description' => 'string', + 'feed_targeting' => 'Targeting', + 'id' => 'string', + 'is_post_in_good_state' => 'bool', + 'message' => 'string', + 'modified_time' => 'datetime', + 'og_action_summary' => 'string', + 'permalink_url' => 'string', + 'place' => 'Place', + 'privacy_description' => 'string', + 'scheduled_failure_notice' => 'string', + 'scheduled_publish_time' => 'datetime', + 'story_token' => 'string', + 'thumbnail' => 'string', + 'video_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ScimCompanyUserPhoneNumberFields.php b/src/FacebookAds/Object/Fields/ScimCompanyUserPhoneNumberFields.php new file mode 100644 index 000000000..d9713ddce --- /dev/null +++ b/src/FacebookAds/Object/Fields/ScimCompanyUserPhoneNumberFields.php @@ -0,0 +1,36 @@ + 'string', + 'primary' => 'bool', + 'type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ShadowIGMediaBoostedInsightsResultFields.php b/src/FacebookAds/Object/Fields/ShadowIGMediaBoostedInsightsResultFields.php new file mode 100644 index 000000000..6deba6be8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ShadowIGMediaBoostedInsightsResultFields.php @@ -0,0 +1,42 @@ + 'string', + 'name' => 'string', + 'organic_media_id' => 'string', + 'source_type' => 'string', + 'title' => 'string', + 'values' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php b/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php index 02acf25bc..6a56a6188 100644 --- a/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php +++ b/src/FacebookAds/Object/Fields/ShadowIGMediaBuilderFields.php @@ -26,6 +26,7 @@ class ShadowIGMediaBuilderFields extends AbstractEnum { const ID = 'id'; const STATUS = 'status'; const STATUS_CODE = 'status_code'; + const VIDEO_STATUS = 'video_status'; public function getFieldTypes() { return array( @@ -33,6 +34,7 @@ public function getFieldTypes() { 'id' => 'string', 'status' => 'string', 'status_code' => 'string', + 'video_status' => 'IGResumableVideoUploadStatus', ); } } diff --git a/src/FacebookAds/Object/Fields/SignalsIWLExtractorFields.php b/src/FacebookAds/Object/Fields/SignalsIWLExtractorFields.php new file mode 100644 index 000000000..740b33c97 --- /dev/null +++ b/src/FacebookAds/Object/Fields/SignalsIWLExtractorFields.php @@ -0,0 +1,38 @@ + 'string', + 'event_type' => 'string', + 'extractor_type' => 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/SingleOwnerAdditionalProfileFields.php b/src/FacebookAds/Object/Fields/SingleOwnerAdditionalProfileFields.php new file mode 100644 index 000000000..273852476 --- /dev/null +++ b/src/FacebookAds/Object/Fields/SingleOwnerAdditionalProfileFields.php @@ -0,0 +1,36 @@ + 'string', + 'name' => 'string', + 'user_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/SiteLinkFields.php b/src/FacebookAds/Object/Fields/SiteLinkFields.php new file mode 100644 index 000000000..f00e8f9d2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/SiteLinkFields.php @@ -0,0 +1,40 @@ + 'string', + 'link_image_hash' => 'string', + 'link_title' => 'string', + 'link_type' => 'string', + 'link_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/SlicedEventSourceGroupFields.php b/src/FacebookAds/Object/Fields/SlicedEventSourceGroupFields.php new file mode 100644 index 000000000..ae74cf9bb --- /dev/null +++ b/src/FacebookAds/Object/Fields/SlicedEventSourceGroupFields.php @@ -0,0 +1,38 @@ + 'EventSourceGroup', + 'filter' => 'string', + 'id' => 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/SmartPixelInsightsFields.php b/src/FacebookAds/Object/Fields/SmartPixelInsightsFields.php new file mode 100644 index 000000000..3d9dadcfb --- /dev/null +++ b/src/FacebookAds/Object/Fields/SmartPixelInsightsFields.php @@ -0,0 +1,34 @@ + 'string', + 'stats' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/SocialWifiSiteFields.php b/src/FacebookAds/Object/Fields/SocialWifiSiteFields.php new file mode 100644 index 000000000..356dd704e --- /dev/null +++ b/src/FacebookAds/Object/Fields/SocialWifiSiteFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/SplitTestConfigFields.php b/src/FacebookAds/Object/Fields/SplitTestConfigFields.php new file mode 100644 index 000000000..8756146a5 --- /dev/null +++ b/src/FacebookAds/Object/Fields/SplitTestConfigFields.php @@ -0,0 +1,44 @@ + 'int', + 'early_winner_declaration_enabled' => 'bool', + 'end_time' => 'datetime', + 'splits' => 'list', + 'start_time' => 'datetime', + 'test_variable' => 'string', + 'id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/StatusFields.php b/src/FacebookAds/Object/Fields/StatusFields.php new file mode 100644 index 000000000..0169a3801 --- /dev/null +++ b/src/FacebookAds/Object/Fields/StatusFields.php @@ -0,0 +1,42 @@ + 'Event', + 'from' => 'Object', + 'id' => 'string', + 'message' => 'string', + 'place' => 'Place', + 'updated_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/StreamFilterFields.php b/src/FacebookAds/Object/Fields/StreamFilterFields.php new file mode 100644 index 000000000..c0cc872d7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/StreamFilterFields.php @@ -0,0 +1,36 @@ + 'string', + 'name' => 'string', + 'type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/TaggableSubjectFields.php b/src/FacebookAds/Object/Fields/TaggableSubjectFields.php new file mode 100644 index 000000000..2645b73fd --- /dev/null +++ b/src/FacebookAds/Object/Fields/TaggableSubjectFields.php @@ -0,0 +1,34 @@ + 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/TargetingAutomationFields.php b/src/FacebookAds/Object/Fields/TargetingAutomationFields.php index 371e776da..af419c923 100644 --- a/src/FacebookAds/Object/Fields/TargetingAutomationFields.php +++ b/src/FacebookAds/Object/Fields/TargetingAutomationFields.php @@ -23,12 +23,14 @@ class TargetingAutomationFields extends AbstractEnum { const ADVANTAGE_AUDIENCE = 'advantage_audience'; + const INDIVIDUAL_SETTING = 'individual_setting'; const SHARED_AUDIENCES = 'shared_audiences'; const VALUE_EXPRESSION = 'value_expression'; public function getFieldTypes() { return array( 'advantage_audience' => 'unsigned int', + 'individual_setting' => 'Object', 'shared_audiences' => 'unsigned int', 'value_expression' => 'unsigned int', ); diff --git a/src/FacebookAds/Object/Fields/TargetingGeoLocationLocationExpansionFields.php b/src/FacebookAds/Object/Fields/TargetingGeoLocationLocationExpansionFields.php new file mode 100644 index 000000000..159d7c7a8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/TargetingGeoLocationLocationExpansionFields.php @@ -0,0 +1,34 @@ + 'bool', + 'intent' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/TargetingMarketingMessageChannelsFields.php b/src/FacebookAds/Object/Fields/TargetingMarketingMessageChannelsFields.php new file mode 100644 index 000000000..932ddc755 --- /dev/null +++ b/src/FacebookAds/Object/Fields/TargetingMarketingMessageChannelsFields.php @@ -0,0 +1,32 @@ + 'IDName', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ThirdPartyMeasurementReportDatasetFields.php b/src/FacebookAds/Object/Fields/ThirdPartyMeasurementReportDatasetFields.php new file mode 100644 index 000000000..a003cdb02 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ThirdPartyMeasurementReportDatasetFields.php @@ -0,0 +1,40 @@ + 'string', + 'id' => 'string', + 'partner' => 'Business', + 'product' => 'string', + 'schema' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ThirdPartyPartnerLiftRequestFields.php b/src/FacebookAds/Object/Fields/ThirdPartyPartnerLiftRequestFields.php new file mode 100644 index 000000000..fa43041e8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ThirdPartyPartnerLiftRequestFields.php @@ -0,0 +1,56 @@ + 'list', + 'country' => 'string', + 'created_time' => 'datetime', + 'description' => 'string', + 'holdout_size' => 'float', + 'id' => 'string', + 'modified_time' => 'datetime', + 'owner_instance_id' => 'string', + 'region' => 'string', + 'status' => 'Status', + 'study_cells' => 'list', + 'study_end_time' => 'datetime', + 'study_start_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ThirdPartyPartnerPanelRequestFields.php b/src/FacebookAds/Object/Fields/ThirdPartyPartnerPanelRequestFields.php new file mode 100644 index 000000000..b603cff71 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ThirdPartyPartnerPanelRequestFields.php @@ -0,0 +1,56 @@ + 'list', + 'country' => 'string', + 'created_time' => 'datetime', + 'description' => 'string', + 'id' => 'string', + 'modified_time' => 'datetime', + 'owner_instance_id' => 'string', + 'owner_panel_id' => 'string', + 'owner_panel_name' => 'string', + 'status' => 'Status', + 'study_end_time' => 'datetime', + 'study_start_time' => 'datetime', + 'study_type' => 'StudyType', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ThirdPartyPartnerPanelScheduledFields.php b/src/FacebookAds/Object/Fields/ThirdPartyPartnerPanelScheduledFields.php new file mode 100644 index 000000000..75126709c --- /dev/null +++ b/src/FacebookAds/Object/Fields/ThirdPartyPartnerPanelScheduledFields.php @@ -0,0 +1,58 @@ + 'list', + 'cadence' => 'string', + 'country' => 'string', + 'created_time' => 'datetime', + 'description' => 'string', + 'end_time' => 'datetime', + 'id' => 'string', + 'modified_time' => 'datetime', + 'owner_instance_id' => 'string', + 'owner_panel_id' => 'string', + 'owner_panel_name' => 'string', + 'start_time' => 'datetime', + 'status' => 'Status', + 'study_type' => 'StudyType', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php b/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php new file mode 100644 index 000000000..29ae1f174 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php @@ -0,0 +1,50 @@ + 'datetime', + 'description' => 'string', + 'hour' => 'datetime', + 'id' => 'string', + 'metric' => 'string', + 'modified_time' => 'datetime', + 'owner_instance_id' => 'string', + 'platform' => 'string', + 'status' => 'Status', + 'total_file_count' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/TimeSuggestionFields.php b/src/FacebookAds/Object/Fields/TimeSuggestionFields.php new file mode 100644 index 000000000..e5474333d --- /dev/null +++ b/src/FacebookAds/Object/Fields/TimeSuggestionFields.php @@ -0,0 +1,34 @@ + 'list', + 'is_enabled' => 'bool', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/TimezoneOffsetFields.php b/src/FacebookAds/Object/Fields/TimezoneOffsetFields.php new file mode 100644 index 000000000..d7f24c1cd --- /dev/null +++ b/src/FacebookAds/Object/Fields/TimezoneOffsetFields.php @@ -0,0 +1,40 @@ + 'string', + 'isdst' => 'bool', + 'offset' => 'int', + 'time' => 'string', + 'ts' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/TransactableItemFields.php b/src/FacebookAds/Object/Fields/TransactableItemFields.php new file mode 100644 index 000000000..415038316 --- /dev/null +++ b/src/FacebookAds/Object/Fields/TransactableItemFields.php @@ -0,0 +1,70 @@ + 'string', + 'applinks' => 'CatalogItemAppLinks', + 'category_specific_fields' => 'CatalogSubVerticalList', + 'currency' => 'string', + 'description' => 'string', + 'duration_time' => 'unsigned int', + 'duration_type' => 'string', + 'id' => 'string', + 'image_fetch_status' => 'ImageFetchStatus', + 'images' => 'list', + 'order_index' => 'unsigned int', + 'price' => 'string', + 'price_type' => 'string', + 'sanitized_images' => 'list', + 'session_type' => 'string', + 'time_padding_after_end' => 'unsigned int', + 'title' => 'string', + 'transactable_item_id' => 'string', + 'url' => 'string', + 'visibility' => 'Visibility', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/TransactionFields.php b/src/FacebookAds/Object/Fields/TransactionFields.php new file mode 100644 index 000000000..66f893ff5 --- /dev/null +++ b/src/FacebookAds/Object/Fields/TransactionFields.php @@ -0,0 +1,74 @@ + 'string', + 'app_amount' => 'Object', + 'billing_end_time' => 'unsigned int', + 'billing_reason' => 'string', + 'billing_start_time' => 'unsigned int', + 'card_charge_mode' => 'unsigned int', + 'charge_type' => 'string', + 'checkout_campaign_group_id' => 'string', + 'credential_id' => 'string', + 'fatura_id' => 'unsigned int', + 'id' => 'string', + 'is_business_ec_charge' => 'bool', + 'is_funding_event' => 'bool', + 'payment_option' => 'string', + 'product_type' => 'ProductType', + 'provider_amount' => 'Object', + 'status' => 'string', + 'time' => 'unsigned int', + 'tracking_id' => 'string', + 'transaction_type' => 'string', + 'tx_type' => 'unsigned int', + 'vat_invoice_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/UniqueAdCreativeFields.php b/src/FacebookAds/Object/Fields/UniqueAdCreativeFields.php new file mode 100644 index 000000000..91253e888 --- /dev/null +++ b/src/FacebookAds/Object/Fields/UniqueAdCreativeFields.php @@ -0,0 +1,34 @@ + 'AdCreative', + 'visual_hash' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/UserContextFields.php b/src/FacebookAds/Object/Fields/UserContextFields.php new file mode 100644 index 000000000..52a935bb5 --- /dev/null +++ b/src/FacebookAds/Object/Fields/UserContextFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/UserFields.php b/src/FacebookAds/Object/Fields/UserFields.php index 59a042f91..1e306b2c4 100644 --- a/src/FacebookAds/Object/Fields/UserFields.php +++ b/src/FacebookAds/Object/Fields/UserFields.php @@ -81,7 +81,7 @@ public function getFieldTypes() { 'community' => 'Group', 'cover' => 'UserCoverPhoto', 'currency' => 'Currency', - 'education' => 'list', + 'education' => 'list', 'email' => 'string', 'favorite_athletes' => 'list', 'favorite_teams' => 'list', diff --git a/src/FacebookAds/Object/Fields/UserMobileConfigFields.php b/src/FacebookAds/Object/Fields/UserMobileConfigFields.php new file mode 100644 index 000000000..d6b55a054 --- /dev/null +++ b/src/FacebookAds/Object/Fields/UserMobileConfigFields.php @@ -0,0 +1,34 @@ + 'string', + 'value' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/UserNotificationSeenStateDataFields.php b/src/FacebookAds/Object/Fields/UserNotificationSeenStateDataFields.php new file mode 100644 index 000000000..5978ae8e2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/UserNotificationSeenStateDataFields.php @@ -0,0 +1,34 @@ + 'string', + 'seen_state' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/UserPaymentMethodsInfoFields.php b/src/FacebookAds/Object/Fields/UserPaymentMethodsInfoFields.php new file mode 100644 index 000000000..ed7fb8e30 --- /dev/null +++ b/src/FacebookAds/Object/Fields/UserPaymentMethodsInfoFields.php @@ -0,0 +1,44 @@ + 'string', + 'available_card_types' => 'list', + 'available_payment_methods' => 'list', + 'available_payment_methods_details' => 'list', + 'country' => 'string', + 'currency' => 'string', + 'existing_payment_methods' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/UserPaymentModulesOptionsFields.php b/src/FacebookAds/Object/Fields/UserPaymentModulesOptionsFields.php new file mode 100644 index 000000000..d036d9aa2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/UserPaymentModulesOptionsFields.php @@ -0,0 +1,38 @@ + 'string', + 'available_payment_options' => 'list', + 'country' => 'string', + 'currency' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/UserSetReportingRootFields.php b/src/FacebookAds/Object/Fields/UserSetReportingRootFields.php new file mode 100644 index 000000000..7fcfae9c9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/UserSetReportingRootFields.php @@ -0,0 +1,36 @@ + 'datetime', + 'id' => 'string', + 'last_modified_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/VideoAssetFields.php b/src/FacebookAds/Object/Fields/VideoAssetFields.php new file mode 100644 index 000000000..697b0d263 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoAssetFields.php @@ -0,0 +1,122 @@ + 'string', + 'broadcast_planned_start_time' => 'datetime', + 'can_viewer_edit' => 'bool', + 'copyright_monitoring_status' => 'string', + 'created_time' => 'datetime', + 'creator' => 'User', + 'description' => 'string', + 'download_hd_url' => 'string', + 'download_sd_url' => 'string', + 'embeddable' => 'bool', + 'expiration' => 'Object', + 'feed_type' => 'string', + 'id' => 'string', + 'is_crossposting_eligible' => 'bool', + 'is_crossposting_within_bm_eligible' => 'bool', + 'is_crossposting_within_bm_enabled' => 'bool', + 'is_episode' => 'bool', + 'is_featured' => 'bool', + 'is_live_premiere' => 'bool', + 'is_video_asset' => 'bool', + 'last_added_time' => 'datetime', + 'latest_creator' => 'User', + 'latest_owned_description' => 'string', + 'latest_owned_title' => 'string', + 'length' => 'float', + 'live_status' => 'string', + 'no_story' => 'bool', + 'owner_name' => 'string', + 'owner_picture' => 'string', + 'owner_post_state' => 'string', + 'permalink_url' => 'string', + 'picture' => 'string', + 'posts_count' => 'unsigned int', + 'posts_ids' => 'list', + 'posts_status' => 'Object', + 'premiere_living_room_status' => 'string', + 'published' => 'bool', + 'scheduled_publish_time' => 'datetime', + 'secret' => 'bool', + 'secure_stream_url' => 'string', + 'social_actions' => 'bool', + 'status' => 'VideoStatus', + 'stream_url' => 'string', + 'thumbnail_while_encoding' => 'string', + 'title' => 'string', + 'views' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/VideoCopyrightMatchFields.php b/src/FacebookAds/Object/Fields/VideoCopyrightMatchFields.php new file mode 100644 index 000000000..a5f7fb082 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoCopyrightMatchFields.php @@ -0,0 +1,44 @@ + 'datetime', + 'id' => 'string', + 'last_modified_user' => 'User', + 'match_data' => 'list', + 'match_status' => 'string', + 'notes' => 'string', + 'permalink' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/VideoGroupFields.php b/src/FacebookAds/Object/Fields/VideoGroupFields.php new file mode 100644 index 000000000..71d110dfb --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoGroupFields.php @@ -0,0 +1,64 @@ + 'string', + 'description' => 'string', + 'disable_reason' => 'string', + 'id' => 'string', + 'ig_profile_ids' => 'list', + 'is_disabled' => 'bool', + 'is_fb_video_group' => 'bool', + 'last_used_time' => 'string', + 'length' => 'float', + 'name' => 'string', + 'page_id' => 'string', + 'page_ids' => 'list', + 'picture' => 'string', + 'placements' => 'list', + 'video_group_types' => 'list', + 'videos' => 'list', + 'views' => 'unsigned int', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/VideoMetricsReportFields.php b/src/FacebookAds/Object/Fields/VideoMetricsReportFields.php new file mode 100644 index 000000000..204718892 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoMetricsReportFields.php @@ -0,0 +1,52 @@ + 'string', + 'chunks' => 'int', + 'end_date' => 'datetime', + 'id' => 'string', + 'index' => 'int', + 'name' => 'string', + 'platform' => 'string', + 'start_date' => 'datetime', + 'type' => 'string', + 'upload_date' => 'datetime', + 'url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/VideoStatsFields.php b/src/FacebookAds/Object/Fields/VideoStatsFields.php new file mode 100644 index 000000000..3c0b7d733 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoStatsFields.php @@ -0,0 +1,42 @@ + 'list>', + 'error' => 'string', + 'metadata' => 'list>', + 'time_series' => 'list>>', + 'totals' => 'list>', + 'x_axis_breakdown' => 'list>>', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/VideoTextQuestionFields.php b/src/FacebookAds/Object/Fields/VideoTextQuestionFields.php new file mode 100644 index 000000000..ba843cd77 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VideoTextQuestionFields.php @@ -0,0 +1,38 @@ + 'string', + 'question_target_id' => 'string', + 'question_text' => 'string', + 'status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php b/src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php new file mode 100644 index 000000000..598201ad0 --- /dev/null +++ b/src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php @@ -0,0 +1,34 @@ + 'string', + 'overlay_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WITUserFields.php b/src/FacebookAds/Object/Fields/WITUserFields.php new file mode 100644 index 000000000..36da45d2e --- /dev/null +++ b/src/FacebookAds/Object/Fields/WITUserFields.php @@ -0,0 +1,36 @@ + 'string', + 'id' => 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WearableDevicePublicKeyFields.php b/src/FacebookAds/Object/Fields/WearableDevicePublicKeyFields.php new file mode 100644 index 000000000..95d01005d --- /dev/null +++ b/src/FacebookAds/Object/Fields/WearableDevicePublicKeyFields.php @@ -0,0 +1,46 @@ + 'string', + 'creation_time_on_device' => 'datetime', + 'device_uuid' => 'string', + 'id' => 'string', + 'key_type' => 'string', + 'owner_id' => 'string', + 'product_use_case' => 'string', + 'version' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WebPublisherFields.php b/src/FacebookAds/Object/Fields/WebPublisherFields.php new file mode 100644 index 000000000..a8b02ad55 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WebPublisherFields.php @@ -0,0 +1,36 @@ + 'string', + 'id' => 'string', + 'publisher_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WebsiteCreativeAssetSourceFields.php b/src/FacebookAds/Object/Fields/WebsiteCreativeAssetSourceFields.php new file mode 100644 index 000000000..b8c09aab9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WebsiteCreativeAssetSourceFields.php @@ -0,0 +1,34 @@ + 'string', + 'source_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WebsiteCreativeAssetSuggestionsFields.php b/src/FacebookAds/Object/Fields/WebsiteCreativeAssetSuggestionsFields.php new file mode 100644 index 000000000..53bb405bc --- /dev/null +++ b/src/FacebookAds/Object/Fields/WebsiteCreativeAssetSuggestionsFields.php @@ -0,0 +1,38 @@ + 'string', + 'extraction_status' => 'string', + 'id' => 'string', + 'link_url' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php index da98c1b39..41e511c1b 100644 --- a/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php +++ b/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php @@ -24,6 +24,7 @@ class WhatsAppBusinessAccountFields extends AbstractEnum { const ACCOUNT_REVIEW_STATUS = 'account_review_status'; const ANALYTICS = 'analytics'; + const AUTH_INTERNATIONAL_RATE_ELIGIBILITY = 'auth_international_rate_eligibility'; const BUSINESS_VERIFICATION_STATUS = 'business_verification_status'; const COUNTRY = 'country'; const CREATION_TIME = 'creation_time'; @@ -38,6 +39,7 @@ class WhatsAppBusinessAccountFields extends AbstractEnum { const OWNER_BUSINESS = 'owner_business'; const OWNER_BUSINESS_INFO = 'owner_business_info'; const OWNERSHIP_TYPE = 'ownership_type'; + const PRIMARY_BUSINESS_LOCATION = 'primary_business_location'; const PRIMARY_FUNDING_ID = 'primary_funding_id'; const PURCHASE_ORDER_NUMBER = 'purchase_order_number'; const STATUS = 'status'; @@ -47,6 +49,7 @@ public function getFieldTypes() { return array( 'account_review_status' => 'string', 'analytics' => 'Object', + 'auth_international_rate_eligibility' => 'Object', 'business_verification_status' => 'string', 'country' => 'string', 'creation_time' => 'int', @@ -61,6 +64,7 @@ public function getFieldTypes() { 'owner_business' => 'Business', 'owner_business_info' => 'Object', 'ownership_type' => 'string', + 'primary_business_location' => 'string', 'primary_funding_id' => 'string', 'purchase_order_number' => 'string', 'status' => 'string', diff --git a/src/FacebookAds/Object/Fields/WhatsAppPaymentCapabilitiesFields.php b/src/FacebookAds/Object/Fields/WhatsAppPaymentCapabilitiesFields.php new file mode 100644 index 000000000..62b4ab428 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WhatsAppPaymentCapabilitiesFields.php @@ -0,0 +1,34 @@ + 'bool', + 'payment_capability_details' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WhatsappSubscribedAppsInfoFields.php b/src/FacebookAds/Object/Fields/WhatsappSubscribedAppsInfoFields.php new file mode 100644 index 000000000..daa1bec55 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WhatsappSubscribedAppsInfoFields.php @@ -0,0 +1,34 @@ + 'string', + 'subscribed_apps' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php b/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php new file mode 100644 index 000000000..14dfe5ea6 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WhitehatFBDLRunFields.php @@ -0,0 +1,46 @@ + 'datetime', + 'id' => 'string', + 'is_pinned' => 'bool', + 'note' => 'string', + 'result' => 'list>', + 'run_code' => 'string', + 'status' => 'string', + 'user_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WifiInformationFields.php b/src/FacebookAds/Object/Fields/WifiInformationFields.php new file mode 100644 index 000000000..c27979888 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WifiInformationFields.php @@ -0,0 +1,36 @@ + 'string', + 'name' => 'string', + 'network_access_type' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WithAsset3DFields.php b/src/FacebookAds/Object/Fields/WithAsset3DFields.php new file mode 100644 index 000000000..d3d92d963 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WithAsset3DFields.php @@ -0,0 +1,32 @@ + 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WoodhengeSupporterFields.php b/src/FacebookAds/Object/Fields/WoodhengeSupporterFields.php new file mode 100644 index 000000000..781ff093c --- /dev/null +++ b/src/FacebookAds/Object/Fields/WoodhengeSupporterFields.php @@ -0,0 +1,42 @@ + 'datetime', + 'id' => 'string', + 'is_gifted_subscription' => 'bool', + 'most_recent_subscription_time' => 'datetime', + 'number_of_months_subscribed' => 'unsigned int', + 'user' => 'User', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WorkAccessCodeFields.php b/src/FacebookAds/Object/Fields/WorkAccessCodeFields.php new file mode 100644 index 000000000..4430e9665 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WorkAccessCodeFields.php @@ -0,0 +1,34 @@ + 'string', + 'expiration_time' => 'datetime', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WorkExperienceFields.php b/src/FacebookAds/Object/Fields/WorkExperienceFields.php new file mode 100644 index 000000000..f628ea7a9 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WorkExperienceFields.php @@ -0,0 +1,50 @@ + 'string', + 'employer' => 'Page', + 'end_date' => 'string', + 'from' => 'User', + 'id' => 'string', + 'location' => 'Page', + 'position' => 'Page', + 'projects' => 'list', + 'start_date' => 'string', + 'with' => 'list', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WorkSkillFields.php b/src/FacebookAds/Object/Fields/WorkSkillFields.php new file mode 100644 index 000000000..fc3a4a365 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WorkSkillFields.php @@ -0,0 +1,34 @@ + 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/WorkUserBadgesFields.php b/src/FacebookAds/Object/Fields/WorkUserBadgesFields.php new file mode 100644 index 000000000..55690ee04 --- /dev/null +++ b/src/FacebookAds/Object/Fields/WorkUserBadgesFields.php @@ -0,0 +1,40 @@ + 'string', + 'description' => 'string', + 'icon' => 'string', + 'id' => 'string', + 'name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/FinanceObject.php b/src/FacebookAds/Object/FinanceObject.php new file mode 100644 index 000000000..05ec637ce --- /dev/null +++ b/src/FacebookAds/Object/FinanceObject.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/augmented_realities_metadata', - new AbstractCrudObject(), + new DynamicARMetadata(), 'EDGE', - array(), + DynamicARMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/FranchiseProgram.php b/src/FacebookAds/Object/FranchiseProgram.php new file mode 100644 index 000000000..66ac22008 --- /dev/null +++ b/src/FacebookAds/Object/FranchiseProgram.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new FranchiseProgram(), + 'NODE', + FranchiseProgram::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/FranchiseProgramMember.php b/src/FacebookAds/Object/FranchiseProgramMember.php new file mode 100644 index 000000000..3ee674d48 --- /dev/null +++ b/src/FacebookAds/Object/FranchiseProgramMember.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new FranchiseProgramMember(), + 'NODE', + FranchiseProgramMember::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/GenericVideoAsset.php b/src/FacebookAds/Object/GenericVideoAsset.php new file mode 100644 index 000000000..125ef1460 --- /dev/null +++ b/src/FacebookAds/Object/GenericVideoAsset.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new GeoGatingPolicy(), + 'NODE', + GeoGatingPolicy::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index 8cd862cd4..af2b3e65b 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -72,7 +72,7 @@ protected static function getReferencedEnums() { } - public function deleteAdmins(array $fields = array(), array $params = array(), $pending = false) { + public function deleteAdMIns(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -96,7 +96,7 @@ public function deleteAdmins(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function createAdmin(array $fields = array(), array $params = array(), $pending = false) { + public function createAdMIn(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -258,7 +258,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe $param_types = array( 'actions' => 'Object', - 'adaptive_type' => 'string', 'album_id' => 'string', 'android_key_hash' => 'string', 'animated_effect_id' => 'unsigned int', @@ -343,7 +342,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'publish_event_id' => 'unsigned int', 'published' => 'bool', 'quote' => 'string', - 'react_mode_metadata' => 'string', 'ref' => 'list', 'referenceable_image_ids' => 'list', 'referral_id' => 'string', @@ -760,7 +758,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $this->assureId(); $param_types = array( - 'adaptive_type' => 'string', 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', @@ -809,7 +806,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'original_projection_type' => 'original_projection_type_enum', 'publish_event_id' => 'unsigned int', 'published' => 'bool', - 'react_mode_metadata' => 'string', 'referenced_sticker_id' => 'string', 'replace_video_id' => 'string', 'scheduled_publish_time' => 'unsigned int', diff --git a/src/FacebookAds/Object/HomeListing.php b/src/FacebookAds/Object/HomeListing.php index 01c8552d1..522c3e853 100644 --- a/src/FacebookAds/Object/HomeListing.php +++ b/src/FacebookAds/Object/HomeListing.php @@ -63,9 +63,9 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->data['id'], RequestInterface::METHOD_GET, '/augmented_realities_metadata', - new AbstractCrudObject(), + new DynamicARMetadata(), 'EDGE', - array(), + DynamicARMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Hotel.php b/src/FacebookAds/Object/Hotel.php index 8efa107a9..2a34b9df4 100644 --- a/src/FacebookAds/Object/Hotel.php +++ b/src/FacebookAds/Object/Hotel.php @@ -63,9 +63,9 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->data['id'], RequestInterface::METHOD_GET, '/augmented_realities_metadata', - new AbstractCrudObject(), + new DynamicARMetadata(), 'EDGE', - array(), + DynamicARMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Hours.php b/src/FacebookAds/Object/Hours.php new file mode 100644 index 000000000..b027269e4 --- /dev/null +++ b/src/FacebookAds/Object/Hours.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new Hours(), + 'NODE', + Hours::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/IGAccessTokenForIGOnlyAPI.php b/src/FacebookAds/Object/IGAccessTokenForIGOnlyAPI.php new file mode 100644 index 000000000..0aaa0a0ba --- /dev/null +++ b/src/FacebookAds/Object/IGAccessTokenForIGOnlyAPI.php @@ -0,0 +1,68 @@ +assureId(); + + $param_types = array( + 'access_token' => 'string', + 'client_secret' => 'string', + 'grant_type' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new IGAccessTokenForIGOnlyAPI(), + 'NODE', + IGAccessTokenForIGOnlyAPI::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/IGBoostMediaAd.php b/src/FacebookAds/Object/IGBoostMediaAd.php new file mode 100644 index 000000000..b1d7cdb16 --- /dev/null +++ b/src/FacebookAds/Object/IGBoostMediaAd.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new IGBoostMediaAd(), + 'NODE', + IGBoostMediaAd::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/IGMedia.php b/src/FacebookAds/Object/IGMedia.php index b724c0ac9..cbd6d5e46 100644 --- a/src/FacebookAds/Object/IGMedia.php +++ b/src/FacebookAds/Object/IGMedia.php @@ -42,6 +42,29 @@ protected static function getReferencedEnums() { } + public function getBoostAdsList(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, + '/boost_ads_list', + new IGBoostMediaAd(), + 'EDGE', + IGBoostMediaAd::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getBrandedContentPartnerPromote(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/IGMediaBoostEligibilityInfo.php b/src/FacebookAds/Object/IGMediaBoostEligibilityInfo.php new file mode 100644 index 000000000..704fd7793 --- /dev/null +++ b/src/FacebookAds/Object/IGMediaBoostEligibilityInfo.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new IGMediaBoostEligibilityInfo(), + 'NODE', + IGMediaBoostEligibilityInfo::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php b/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php new file mode 100644 index 000000000..2c779a5ed --- /dev/null +++ b/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php @@ -0,0 +1,88 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/children', + 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(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new IGMediaForIGOnlyAPI(), + 'NODE', + IGMediaForIGOnlyAPI::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/IGProductTaggingInvalidationError.php b/src/FacebookAds/Object/IGProductTaggingInvalidationError.php new file mode 100644 index 000000000..e9e125d30 --- /dev/null +++ b/src/FacebookAds/Object/IGProductTaggingInvalidationError.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + 'access_token' => 'string', + 'grant_type' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new IGRefreshAccessTokenForIGOnlyAPI(), + 'NODE', + IGRefreshAccessTokenForIGOnlyAPI::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/IGResumableVideoUploadStatus.php b/src/FacebookAds/Object/IGResumableVideoUploadStatus.php new file mode 100644 index 000000000..e319c55b3 --- /dev/null +++ b/src/FacebookAds/Object/IGResumableVideoUploadStatus.php @@ -0,0 +1,42 @@ + 'string', + 'creator_instagram_username' => 'string', 'revoke' => 'bool', ); $enums = array( @@ -262,7 +263,7 @@ public function getContentPublishingLimit(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function getDataset(array $fields = array(), array $params = array(), $pending = false) { + public function getDataSet(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -275,9 +276,32 @@ public function getDataset(array $fields = array(), array $params = array(), $pe $this->data['id'], RequestInterface::METHOD_GET, '/dataset', - new Dataset(), + new AdsPixel(), 'EDGE', - Dataset::getFieldsEnum()->getValues(), + AdsPixel::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createDataSet(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/dataset', + new AdsPixel(), + 'EDGE', + AdsPixel::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/IGUserForIGOnlyAPI.php b/src/FacebookAds/Object/IGUserForIGOnlyAPI.php new file mode 100644 index 000000000..fd040a135 --- /dev/null +++ b/src/FacebookAds/Object/IGUserForIGOnlyAPI.php @@ -0,0 +1,136 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/live_media', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getMedia(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'since' => 'datetime', + 'until' => 'datetime', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/media', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getStories(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/stories', + 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(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new IGUserForIGOnlyAPI(), + 'NODE', + IGUserForIGOnlyAPI::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/IPObject.php b/src/FacebookAds/Object/IPObject.php new file mode 100644 index 000000000..33fa2bcec --- /dev/null +++ b/src/FacebookAds/Object/IPObject.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ImageCopyrightDispute(), + 'NODE', + ImageCopyrightDispute::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ImageReferenceMatch.php b/src/FacebookAds/Object/ImageReferenceMatch.php new file mode 100644 index 000000000..223104424 --- /dev/null +++ b/src/FacebookAds/Object/ImageReferenceMatch.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ImageReferenceMatch(), + 'NODE', + ImageReferenceMatch::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/InsightsResult.php b/src/FacebookAds/Object/InsightsResult.php index 2bc4e4847..7a6e967f9 100644 --- a/src/FacebookAds/Object/InsightsResult.php +++ b/src/FacebookAds/Object/InsightsResult.php @@ -15,6 +15,7 @@ use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\InsightsResultFields; use FacebookAds\Object\Values\InsightsResultDatePresetValues; +use FacebookAds\Object\Values\InsightsResultMetricValues; use FacebookAds\Object\Values\InsightsResultPeriodValues; /** @@ -39,6 +40,7 @@ protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['DatePreset'] = InsightsResultDatePresetValues::getInstance()->getValues(); $ref_enums['Period'] = InsightsResultPeriodValues::getInstance()->getValues(); + $ref_enums['Metric'] = InsightsResultMetricValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/InstagramBoostableMediaForAccessToken.php b/src/FacebookAds/Object/InstagramBoostableMediaForAccessToken.php new file mode 100644 index 000000000..aee710fb4 --- /dev/null +++ b/src/FacebookAds/Object/InstagramBoostableMediaForAccessToken.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/ar_effects', - new AbstractCrudObject(), + new AREffect(), 'EDGE', - array(), + AREffect::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/InstantArticleCTA.php b/src/FacebookAds/Object/InstantArticleCTA.php new file mode 100644 index 000000000..862b3c115 --- /dev/null +++ b/src/FacebookAds/Object/InstantArticleCTA.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new LeadGenDataDraft(), + 'NODE', + LeadGenDataDraft::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/LeadGenDirectCRMIntegrationConfig.php b/src/FacebookAds/Object/LeadGenDirectCRMIntegrationConfig.php new file mode 100644 index 000000000..cbfe18760 --- /dev/null +++ b/src/FacebookAds/Object/LeadGenDirectCRMIntegrationConfig.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new LeadGenDirectCRMIntegrationConfig(), + 'NODE', + LeadGenDirectCRMIntegrationConfig::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/LeadGenFormPreviewDetails.php b/src/FacebookAds/Object/LeadGenFormPreviewDetails.php new file mode 100644 index 000000000..57d8c21d7 --- /dev/null +++ b/src/FacebookAds/Object/LeadGenFormPreviewDetails.php @@ -0,0 +1,42 @@ +execute(); } - public function getCrosspostSharedPages(array $fields = array(), array $params = array(), $pending = false) { + public function getCrosspostShareDPages(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/LocationBasedItem.php b/src/FacebookAds/Object/LocationBasedItem.php new file mode 100644 index 000000000..f622949a3 --- /dev/null +++ b/src/FacebookAds/Object/LocationBasedItem.php @@ -0,0 +1,92 @@ +getValues(); + $ref_enums['Visibility'] = LocationBasedItemVisibilityValues::getInstance()->getValues(); + return $ref_enums; + } + + + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), + 'EDGE', + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new LocationBasedItem(), + 'NODE', + LocationBasedItem::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/LoomConfig.php b/src/FacebookAds/Object/LoomConfig.php new file mode 100644 index 000000000..a3faa4cc9 --- /dev/null +++ b/src/FacebookAds/Object/LoomConfig.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new MeasurementReport(), + 'NODE', + MeasurementReport::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/MediaCopyrightAttribution.php b/src/FacebookAds/Object/MediaCopyrightAttribution.php new file mode 100644 index 000000000..27b7c7912 --- /dev/null +++ b/src/FacebookAds/Object/MediaCopyrightAttribution.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new MediaCopyrightAttribution(), + 'NODE', + MediaCopyrightAttribution::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/MediaCopyrightUpdateRecord.php b/src/FacebookAds/Object/MediaCopyrightUpdateRecord.php new file mode 100644 index 000000000..60a0fcd4b --- /dev/null +++ b/src/FacebookAds/Object/MediaCopyrightUpdateRecord.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new MediaCopyrightUpdateRecord(), + 'NODE', + MediaCopyrightUpdateRecord::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/MediaTitle.php b/src/FacebookAds/Object/MediaTitle.php index fca4450a2..b85378b84 100644 --- a/src/FacebookAds/Object/MediaTitle.php +++ b/src/FacebookAds/Object/MediaTitle.php @@ -58,9 +58,9 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->data['id'], RequestInterface::METHOD_GET, '/augmented_realities_metadata', - new AbstractCrudObject(), + new DynamicARMetadata(), 'EDGE', - array(), + DynamicARMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/MerchantCompliance.php b/src/FacebookAds/Object/MerchantCompliance.php new file mode 100644 index 000000000..d40727385 --- /dev/null +++ b/src/FacebookAds/Object/MerchantCompliance.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new MusicWorkCopyright(), + 'NODE', + MusicWorkCopyright::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/NegativeKeywordList.php b/src/FacebookAds/Object/NegativeKeywordList.php new file mode 100644 index 000000000..104a05bda --- /dev/null +++ b/src/FacebookAds/Object/NegativeKeywordList.php @@ -0,0 +1,90 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new NegativeKeywordList(), + 'NODE', + NegativeKeywordList::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'business_id' => 'unsigned int', + 'list_name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/', + new NegativeKeywordList(), + 'NODE', + NegativeKeywordList::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/OfflineConversionDataSet.php b/src/FacebookAds/Object/OfflineConversionDataSet.php index e1c66af92..80bfe8bb1 100644 --- a/src/FacebookAds/Object/OfflineConversionDataSet.php +++ b/src/FacebookAds/Object/OfflineConversionDataSet.php @@ -17,8 +17,6 @@ use FacebookAds\Object\Values\AdAccountActionSourceValues; use FacebookAds\Object\Values\BusinessActionSourceValues; use FacebookAds\Object\Values\CustomAudienceActionSourceValues; -use FacebookAds\Object\Values\OfflineConversionDataSetPermittedRolesValues; -use FacebookAds\Object\Values\OfflineConversionDataSetRelationshipTypeValues; use FacebookAds\Object\Values\OfflineConversionDataSetUploadOrderValues; use FacebookAds\Object\Values\OfflineConversionDataSetUploadSortByValues; @@ -33,13 +31,6 @@ class OfflineConversionDataSet extends AbstractCrudObject { - /** - * @deprecated getEndpoint function is deprecated - */ - protected function getEndpoint() { - return 'offline_conversion_data_sets'; - } - /** * @return OfflineConversionDataSetFields */ @@ -49,8 +40,6 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['PermittedRoles'] = OfflineConversionDataSetPermittedRolesValues::getInstance()->getValues(); - $ref_enums['RelationshipType'] = OfflineConversionDataSetRelationshipTypeValues::getInstance()->getValues(); return $ref_enums; } @@ -79,32 +68,6 @@ public function getAdAccounts(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } - public function createAdAccount(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'account_id' => 'string', - 'auto_track_for_ads' => 'bool', - 'business' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/adaccounts', - new OfflineConversionDataSet(), - 'EDGE', - OfflineConversionDataSet::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getAgencies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -128,35 +91,6 @@ public function getAgencies(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function createAgency(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'business' => 'string', - 'other_relationship' => 'string', - 'permitted_roles' => 'list', - 'relationship_type' => 'list', - ); - $enums = array( - 'permitted_roles_enum' => OfflineConversionDataSetPermittedRolesValues::getInstance()->getValues(), - 'relationship_type_enum' => OfflineConversionDataSetRelationshipTypeValues::getInstance()->getValues(), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/agencies', - new OfflineConversionDataSet(), - 'EDGE', - OfflineConversionDataSet::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getAudiences(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -230,7 +164,7 @@ public function getServerEventsPermittedBusiness(array $fields = array(), array return $pending ? $request : $request->execute(); } - public function getSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function getShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -256,7 +190,7 @@ public function getSharedAccounts(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function getSharedAgencies(array $fields = array(), array $params = array(), $pending = false) { + public function getShareDAgencies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -349,78 +283,6 @@ public function getUploads(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } - public function createUpload(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'upload_tag' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/uploads', - new OfflineConversionDataSetUpload(), - 'EDGE', - OfflineConversionDataSetUpload::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function createValidate(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'data' => 'list', - 'namespace_id' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/validate', - new OfflineConversionDataSet(), - 'EDGE', - OfflineConversionDataSet::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_DELETE, - '/', - new AbstractCrudObject(), - 'NODE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -444,31 +306,4 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi return $pending ? $request : $request->execute(); } - public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'auto_assign_to_new_accounts_only' => 'bool', - 'description' => 'string', - 'enable_auto_assign_to_accounts' => 'bool', - 'name' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/', - new OfflineConversionDataSet(), - 'NODE', - OfflineConversionDataSet::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - } diff --git a/src/FacebookAds/Object/OfflineConversionDataSetActivities.php b/src/FacebookAds/Object/OfflineConversionDataSetActivities.php new file mode 100644 index 000000000..e9f2b3c16 --- /dev/null +++ b/src/FacebookAds/Object/OfflineConversionDataSetActivities.php @@ -0,0 +1,42 @@ +getValues(); + $ref_enums['Visibility'] = OfflineProductItemVisibilityValues::getInstance()->getValues(); + return $ref_enums; + } + + + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), + 'EDGE', + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new OfflineProductItem(), + 'NODE', + OfflineProductItem::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/OfflineTermsOfService.php b/src/FacebookAds/Object/OfflineTermsOfService.php new file mode 100644 index 000000000..8e50d2048 --- /dev/null +++ b/src/FacebookAds/Object/OfflineTermsOfService.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new OfflineTermsOfService(), + 'NODE', + OfflineTermsOfService::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/OffsiteSignalContainerBusinessObject.php b/src/FacebookAds/Object/OffsiteSignalContainerBusinessObject.php new file mode 100644 index 000000000..5ac4b5dbf --- /dev/null +++ b/src/FacebookAds/Object/OffsiteSignalContainerBusinessObject.php @@ -0,0 +1,111 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/linked_application', + new AdsDataset(), + 'EDGE', + AdsDataset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getLinkedPage(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, + '/linked_page', + new Page(), + 'EDGE', + Page::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new OffsiteSignalContainerBusinessObject(), + 'NODE', + OffsiteSignalContainerBusinessObject::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/OpenBridgeConfiguration.php b/src/FacebookAds/Object/OpenBridgeConfiguration.php index 3fba116ab..6c5840e24 100644 --- a/src/FacebookAds/Object/OpenBridgeConfiguration.php +++ b/src/FacebookAds/Object/OpenBridgeConfiguration.php @@ -96,13 +96,13 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe $this->assureId(); $param_types = array( - 'access_key' => 'string', 'active' => 'bool', 'endpoint' => 'string', 'fallback_domain' => 'string', 'fallback_domain_enabled' => 'bool', 'host_business_id' => 'unsigned int', 'host_external_id' => 'string', + 'instance_id' => 'string', ); $enums = array( ); diff --git a/src/FacebookAds/Object/OrderIDAttributions.php b/src/FacebookAds/Object/OrderIDAttributions.php new file mode 100644 index 000000000..90de0fb21 --- /dev/null +++ b/src/FacebookAds/Object/OrderIDAttributions.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new Organization(), + 'NODE', + Organization::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/OwnedDomain.php b/src/FacebookAds/Object/OwnedDomain.php new file mode 100644 index 000000000..1f177cca7 --- /dev/null +++ b/src/FacebookAds/Object/OwnedDomain.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new OwnedDomain(), + 'NODE', + OwnedDomain::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/P2MInvoicePayments.php b/src/FacebookAds/Object/P2MInvoicePayments.php new file mode 100644 index 000000000..2ea7cabc5 --- /dev/null +++ b/src/FacebookAds/Object/P2MInvoicePayments.php @@ -0,0 +1,42 @@ +data['id'], RequestInterface::METHOD_GET, '/ar_experience', - new AbstractCrudObject(), + new ArAdsDataContainer(), 'EDGE', - array(), + ArAdsDataContainer::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -560,9 +563,9 @@ public function getBusinessProjects(array $fields = array(), array $params = arr $this->data['id'], RequestInterface::METHOD_GET, '/businessprojects', - new AbstractCrudObject(), + new BusinessProject(), 'EDGE', - array(), + BusinessProject::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -593,6 +596,43 @@ public function getCallToActions(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } + public function createCall(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'action' => 'action_enum', + 'call_id' => 'string', + 'platform' => 'platform_enum', + 'session' => 'map', + 'to' => 'string', + ); + $enums = array( + 'action_enum' => array( + 'ACCEPT', + 'REJECT', + 'TERMINATE', + ), + 'platform_enum' => array( + 'INSTAGRAM', + 'MESSENGER', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/calls', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getCanvasElements(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -914,28 +954,9 @@ public function createCopyrightManualClaim(array $fields = array(), array $param 'selected_segments' => 'list', ); $enums = array( - 'action_enum' => array( - 'BLOCK', - 'CLAIM_AD_EARNINGS', - 'MANUAL_REVIEW', - 'MONITOR', - 'REQUEST_TAKEDOWN', - ), - 'action_reason_enum' => array( - 'ARTICLE_17_PREFLAGGING', - 'ARTIST_OBJECTION', - 'OBJECTIONABLE_CONTENT', - 'PREMIUM_MUSIC_VIDEO', - 'PRERELEASE_CONTENT', - 'PRODUCT_PARAMETERS', - 'RESTRICTED_CONTENT', - 'UNAUTHORIZED_COMMERCIAL_USE', - ), - 'match_content_type_enum' => array( - 'AUDIO_ONLY', - 'VIDEO_AND_AUDIO', - 'VIDEO_ONLY', - ), + 'action_enum' => VideoCopyrightMatchActionValues::getInstance()->getValues(), + 'action_reason_enum' => VideoCopyrightMatchActionReasonValues::getInstance()->getValues(), + 'match_content_type_enum' => VideoCopyrightMatchMatchContentTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( @@ -943,9 +964,9 @@ public function createCopyrightManualClaim(array $fields = array(), array $param $this->data['id'], RequestInterface::METHOD_POST, '/copyright_manual_claims', - new AbstractCrudObject(), + new VideoCopyrightMatch(), 'EDGE', - array(), + VideoCopyrightMatch::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1101,7 +1122,7 @@ public function createCustomUserSetting(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getDataset(array $fields = array(), array $params = array(), $pending = false) { + public function getDataSet(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1114,9 +1135,32 @@ public function getDataset(array $fields = array(), array $params = array(), $pe $this->data['id'], RequestInterface::METHOD_GET, '/dataset', - new Dataset(), + new AdsPixel(), 'EDGE', - Dataset::getFieldsEnum()->getValues(), + AdsPixel::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createDataSet(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/dataset', + new AdsPixel(), + 'EDGE', + AdsPixel::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1192,9 +1236,9 @@ public function getFantasyGames(array $fields = array(), array $params = array() $this->data['id'], RequestInterface::METHOD_GET, '/fantasy_games', - new AbstractCrudObject(), + new FantasyGame(), 'EDGE', - array(), + FantasyGame::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1235,7 +1279,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe $param_types = array( 'actions' => 'Object', - 'adaptive_type' => 'string', 'album_id' => 'string', 'android_key_hash' => 'string', 'animated_effect_id' => 'unsigned int', @@ -1321,7 +1364,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'publish_event_id' => 'unsigned int', 'published' => 'bool', 'quote' => 'string', - 'react_mode_metadata' => 'string', 'ref' => 'list', 'referenceable_image_ids' => 'list', 'referral_id' => 'string', @@ -1866,7 +1908,7 @@ public function createMediaFingerprint(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function createMessageAttachment(array $fields = array(), array $params = array(), $pending = false) { + public function createMessageAttachMEnt(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1955,7 +1997,54 @@ public function getMessagingFeatureReview(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function getMessengerLeadForms(array $fields = array(), array $params = array(), $pending = false) { + public function getMessengerCallSettings(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/messenger_call_settings', + new MessengerCallSettings(), + 'EDGE', + MessengerCallSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMessengerCallSetting(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'audio_enabled' => 'bool', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/messenger_call_settings', + new Page(), + 'EDGE', + Page::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getMessengerLeadForMs(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1978,7 +2067,7 @@ public function getMessengerLeadForms(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } - public function createMessengerLeadForm(array $fields = array(), array $params = array(), $pending = false) { + public function createMessengerLeadForM(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2241,7 +2330,7 @@ public function createPageBackedInstagramAccount(array $fields = array(), array return $pending ? $request : $request->execute(); } - public function createPageWhatsappNumberVerification(array $fields = array(), array $params = array(), $pending = false) { + public function createPageWhatsAppNumberVerification(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2774,7 +2863,7 @@ public function getRtbDynamicPosts(array $fields = array(), array $params = arra return $pending ? $request : $request->execute(); } - public function getScheduledPosts(array $fields = array(), array $params = array(), $pending = false) { + public function getScheduleDPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -3408,7 +3497,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $param_types = array( 'ad_breaks' => 'list', - 'adaptive_type' => 'string', 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', @@ -3467,7 +3555,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'original_projection_type' => 'original_projection_type_enum', 'publish_event_id' => 'unsigned int', 'published' => 'bool', - 'react_mode_metadata' => 'string', 'reference_only' => 'bool', 'referenced_sticker_id' => 'string', 'replace_video_id' => 'string', diff --git a/src/FacebookAds/Object/PageAppWithLeadsAccess.php b/src/FacebookAds/Object/PageAppWithLeadsAccess.php new file mode 100644 index 000000000..e2efdee36 --- /dev/null +++ b/src/FacebookAds/Object/PageAppWithLeadsAccess.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PageBroadcast(), + 'NODE', + PageBroadcast::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/PageCTSTopic.php b/src/FacebookAds/Object/PageCTSTopic.php new file mode 100644 index 000000000..01da0f745 --- /dev/null +++ b/src/FacebookAds/Object/PageCTSTopic.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PageInsightsAsyncExportRun(), + 'NODE', + PageInsightsAsyncExportRun::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/PageLeadsAccessConfig.php b/src/FacebookAds/Object/PageLeadsAccessConfig.php new file mode 100644 index 000000000..e847670ee --- /dev/null +++ b/src/FacebookAds/Object/PageLeadsAccessConfig.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PageLeadsAccessConfig(), + 'NODE', + PageLeadsAccessConfig::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/PageLocationsBreakdown.php b/src/FacebookAds/Object/PageLocationsBreakdown.php new file mode 100644 index 000000000..024b89cb4 --- /dev/null +++ b/src/FacebookAds/Object/PageLocationsBreakdown.php @@ -0,0 +1,42 @@ +assureId(); $param_types = array( @@ -294,7 +294,7 @@ public function getReactions(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function getSharedPosts(array $fields = array(), array $params = array(), $pending = false) { + public function getShareDPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/PagePublisher.php b/src/FacebookAds/Object/PagePublisher.php new file mode 100644 index 000000000..0117d2319 --- /dev/null +++ b/src/FacebookAds/Object/PagePublisher.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PanelAPIReport(), + 'NODE', + PanelAPIReport::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ParentCatalogReport.php b/src/FacebookAds/Object/ParentCatalogReport.php new file mode 100644 index 000000000..709711190 --- /dev/null +++ b/src/FacebookAds/Object/ParentCatalogReport.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PartnerAccountLinking(), + 'NODE', + PartnerAccountLinking::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/PartnerCategory.php b/src/FacebookAds/Object/PartnerCategory.php new file mode 100644 index 000000000..80138bd52 --- /dev/null +++ b/src/FacebookAds/Object/PartnerCategory.php @@ -0,0 +1,49 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PartnerIntegrationLinked(), + 'NODE', + PartnerIntegrationLinked::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/PartnershipAdContentSearchMedia.php b/src/FacebookAds/Object/PartnershipAdContentSearchMedia.php new file mode 100644 index 000000000..ed33b977e --- /dev/null +++ b/src/FacebookAds/Object/PartnershipAdContentSearchMedia.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PersonalAdsPersona(), + 'NODE', + PersonalAdsPersona::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/PhotoMetadata.php b/src/FacebookAds/Object/PhotoMetadata.php new file mode 100644 index 000000000..654aefcb7 --- /dev/null +++ b/src/FacebookAds/Object/PhotoMetadata.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PlaceTag(), + 'NODE', + PlaceTag::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/PlatformSessionKey.php b/src/FacebookAds/Object/PlatformSessionKey.php new file mode 100644 index 000000000..59d262334 --- /dev/null +++ b/src/FacebookAds/Object/PlatformSessionKey.php @@ -0,0 +1,42 @@ +assureId(); $param_types = array( @@ -281,7 +281,7 @@ public function getReactions(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function getSharedPosts(array $fields = array(), array $params = array(), $pending = false) { + public function getShareDPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/PreapprovalReview.php b/src/FacebookAds/Object/PreapprovalReview.php new file mode 100644 index 000000000..b302c34f8 --- /dev/null +++ b/src/FacebookAds/Object/PreapprovalReview.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PrivateComputationEnvironment(), + 'NODE', + PrivateComputationEnvironment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ProductCatalog.php b/src/FacebookAds/Object/ProductCatalog.php index 622f0adc7..2c1608c36 100644 --- a/src/FacebookAds/Object/ProductCatalog.php +++ b/src/FacebookAds/Object/ProductCatalog.php @@ -15,6 +15,7 @@ use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ProductCatalogFields; use FacebookAds\Object\Values\CheckBatchRequestStatusErrorPriorityValues; +use FacebookAds\Object\Values\CreatorAssetCreativeModerationStatusValues; use FacebookAds\Object\Values\ProductCatalogAdditionalVerticalOptionValues; use FacebookAds\Object\Values\ProductCatalogCategoryCategorizationCriteriaValues; use FacebookAds\Object\Values\ProductCatalogDataSourceIngestionSourceTypeValues; @@ -148,6 +149,7 @@ public function createAgency(array $fields = array(), array $params = array(), $ 'business' => 'string', 'permitted_roles' => 'list', 'permitted_tasks' => 'list', + 'skip_default_utms' => 'bool', 'utm_settings' => 'map', ); $enums = array( @@ -300,7 +302,7 @@ public function createCatalogStore(array $fields = array(), array $params = arra $this->assureId(); $param_types = array( - 'page' => 'int', + 'page' => 'string', ); $enums = array( ); @@ -397,7 +399,7 @@ public function getCheckBatchRequestStatus(array $fields = array(), array $param return $pending ? $request : $request->execute(); } - public function getCollaborativeAdsEventStats(array $fields = array(), array $params = array(), $pending = false) { + public function getCollaborativeAdsLsbImageBank(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -409,10 +411,10 @@ public function getCollaborativeAdsEventStats(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/collaborative_ads_event_stats', - new CatalogSegmentAllMatchCountLaser(), + '/collaborative_ads_lsb_image_bank', + new CPASLsbImageBank(), 'EDGE', - CatalogSegmentAllMatchCountLaser::getFieldsEnum()->getValues(), + CPASLsbImageBank::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -420,7 +422,7 @@ public function getCollaborativeAdsEventStats(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getCollaborativeAdsLsbImageBank(array $fields = array(), array $params = array(), $pending = false) { + public function getCollaborativeAdsShareSettings(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -432,10 +434,10 @@ public function getCollaborativeAdsLsbImageBank(array $fields = array(), array $ $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/collaborative_ads_lsb_image_bank', - new AbstractCrudObject(), + '/collaborative_ads_share_settings', + new CollaborativeAdsShareSettings(), 'EDGE', - array(), + CollaborativeAdsShareSettings::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -443,10 +445,13 @@ public function getCollaborativeAdsLsbImageBank(array $fields = array(), array $ return $pending ? $request : $request->execute(); } - public function getCollaborativeAdsShareSettings(array $fields = array(), array $params = array(), $pending = false) { + public function createCpasLsbImageBank(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'ad_group_id' => 'unsigned int', + 'agency_business_id' => 'unsigned int', + 'backup_image_urls' => 'list', ); $enums = array( ); @@ -454,11 +459,11 @@ public function getCollaborativeAdsShareSettings(array $fields = array(), array $request = new ApiRequest( $this->api, $this->data['id'], - RequestInterface::METHOD_GET, - '/collaborative_ads_share_settings', - new CollaborativeAdsShareSettings(), + RequestInterface::METHOD_POST, + '/cpas_lsb_image_bank', + new CPASLsbImageBank(), 'EDGE', - CollaborativeAdsShareSettings::getFieldsEnum()->getValues(), + CPASLsbImageBank::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -466,25 +471,24 @@ public function getCollaborativeAdsShareSettings(array $fields = array(), array return $pending ? $request : $request->execute(); } - public function createCpasLsbImageBank(array $fields = array(), array $params = array(), $pending = false) { + public function getCreatorAssetCreatives(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( - 'ad_group_id' => 'unsigned int', - 'agency_business_id' => 'unsigned int', - 'backup_image_urls' => 'list', + 'moderation_status' => 'moderation_status_enum', ); $enums = array( + 'moderation_status_enum' => CreatorAssetCreativeModerationStatusValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], - RequestInterface::METHOD_POST, - '/cpas_lsb_image_bank', - new AbstractCrudObject(), + RequestInterface::METHOD_GET, + '/creator_asset_creatives', + new CreatorAssetCreative(), 'EDGE', - array(), + CreatorAssetCreative::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/ProductCatalogExampleFeed.php b/src/FacebookAds/Object/ProductCatalogExampleFeed.php new file mode 100644 index 000000000..051f23e3a --- /dev/null +++ b/src/FacebookAds/Object/ProductCatalogExampleFeed.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ProductCatalogLocalizationSettings(), + 'NODE', + ProductCatalogLocalizationSettings::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php b/src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php new file mode 100644 index 000000000..558a92b47 --- /dev/null +++ b/src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php @@ -0,0 +1,42 @@ +getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/ProductItemOffer.php b/src/FacebookAds/Object/ProductItemOffer.php new file mode 100644 index 000000000..167073e46 --- /dev/null +++ b/src/FacebookAds/Object/ProductItemOffer.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ProductItemOffer(), + 'NODE', + ProductItemOffer::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ProductItemShipping.php b/src/FacebookAds/Object/ProductItemShipping.php new file mode 100644 index 000000000..89ee7477c --- /dev/null +++ b/src/FacebookAds/Object/ProductItemShipping.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ProductSetUsage(), + 'NODE', + ProductSetUsage::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ProductVisualVariant.php b/src/FacebookAds/Object/ProductVisualVariant.php new file mode 100644 index 000000000..143ada692 --- /dev/null +++ b/src/FacebookAds/Object/ProductVisualVariant.php @@ -0,0 +1,42 @@ +assureId(); $param_types = array( @@ -84,9 +84,9 @@ public function getPagedWebPublishers(array $fields = array(), array $params = a $this->data['id'], RequestInterface::METHOD_GET, '/paged_web_publishers', - new AbstractCrudObject(), + new WebPublisher(), 'EDGE', - array(), + WebPublisher::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/PublisherDeliveryReport.php b/src/FacebookAds/Object/PublisherDeliveryReport.php new file mode 100644 index 000000000..afe0a8f48 --- /dev/null +++ b/src/FacebookAds/Object/PublisherDeliveryReport.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new PublisherWhiteList(), + 'NODE', + PublisherWhiteList::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/RecommendedIGMedia.php b/src/FacebookAds/Object/RecommendedIGMedia.php new file mode 100644 index 000000000..bb127b1d4 --- /dev/null +++ b/src/FacebookAds/Object/RecommendedIGMedia.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ResearchPollStudy(), + 'NODE', + ResearchPollStudy::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ResellerGuidance.php b/src/FacebookAds/Object/ResellerGuidance.php new file mode 100644 index 000000000..fbefa2340 --- /dev/null +++ b/src/FacebookAds/Object/ResellerGuidance.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new RightsManagerDataExport(), + 'NODE', + RightsManagerDataExport::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/RightsManagerInsights.php b/src/FacebookAds/Object/RightsManagerInsights.php new file mode 100644 index 000000000..b95e2aad3 --- /dev/null +++ b/src/FacebookAds/Object/RightsManagerInsights.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new Robot(), + 'NODE', + Robot::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/SalesRightsInventoryManagement.php b/src/FacebookAds/Object/SalesRightsInventoryManagement.php new file mode 100644 index 000000000..48238e7a9 --- /dev/null +++ b/src/FacebookAds/Object/SalesRightsInventoryManagement.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new SignalsIWLExtractor(), + 'NODE', + SignalsIWLExtractor::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/SingleOwnerAdditionalProfile.php b/src/FacebookAds/Object/SingleOwnerAdditionalProfile.php new file mode 100644 index 000000000..afe92ccac --- /dev/null +++ b/src/FacebookAds/Object/SingleOwnerAdditionalProfile.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new SiteLink(), + 'NODE', + SiteLink::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/SlicedEventSourceGroup.php b/src/FacebookAds/Object/SlicedEventSourceGroup.php new file mode 100644 index 000000000..f83adbf67 --- /dev/null +++ b/src/FacebookAds/Object/SlicedEventSourceGroup.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new SlicedEventSourceGroup(), + 'NODE', + SlicedEventSourceGroup::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/SmartPixelInsights.php b/src/FacebookAds/Object/SmartPixelInsights.php new file mode 100644 index 000000000..b76dc5e0f --- /dev/null +++ b/src/FacebookAds/Object/SmartPixelInsights.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new SplitTestConfig(), + 'NODE', + SplitTestConfig::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Status.php b/src/FacebookAds/Object/Status.php new file mode 100644 index 000000000..cf07f7fbe --- /dev/null +++ b/src/FacebookAds/Object/Status.php @@ -0,0 +1,92 @@ +assureId(); + + $param_types = array( + 'feedback_source' => 'string', + 'nectar_module' => 'string', + 'notify' => 'bool', + 'tracking' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/likes', + new Status(), + 'EDGE', + Status::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new Status(), + 'NODE', + Status::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/StreamFilter.php b/src/FacebookAds/Object/StreamFilter.php new file mode 100644 index 000000000..1e863d55d --- /dev/null +++ b/src/FacebookAds/Object/StreamFilter.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ThirdPartyMeasurementReportDataset(), + 'NODE', + ThirdPartyMeasurementReportDataset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ThirdPartyPartnerLiftRequest.php b/src/FacebookAds/Object/ThirdPartyPartnerLiftRequest.php new file mode 100644 index 000000000..769b33a58 --- /dev/null +++ b/src/FacebookAds/Object/ThirdPartyPartnerLiftRequest.php @@ -0,0 +1,67 @@ +getValues(); + return $ref_enums; + } + + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ThirdPartyPartnerLiftRequest(), + 'NODE', + ThirdPartyPartnerLiftRequest::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ThirdPartyPartnerPanelRequest.php b/src/FacebookAds/Object/ThirdPartyPartnerPanelRequest.php new file mode 100644 index 000000000..296b8eab9 --- /dev/null +++ b/src/FacebookAds/Object/ThirdPartyPartnerPanelRequest.php @@ -0,0 +1,69 @@ +getValues(); + $ref_enums['StudyType'] = ThirdPartyPartnerPanelRequestStudyTypeValues::getInstance()->getValues(); + return $ref_enums; + } + + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ThirdPartyPartnerPanelRequest(), + 'NODE', + ThirdPartyPartnerPanelRequest::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ThirdPartyPartnerPanelScheduled.php b/src/FacebookAds/Object/ThirdPartyPartnerPanelScheduled.php new file mode 100644 index 000000000..9d7bf801c --- /dev/null +++ b/src/FacebookAds/Object/ThirdPartyPartnerPanelScheduled.php @@ -0,0 +1,69 @@ +getValues(); + $ref_enums['StudyType'] = ThirdPartyPartnerPanelScheduledStudyTypeValues::getInstance()->getValues(); + return $ref_enums; + } + + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ThirdPartyPartnerPanelScheduled(), + 'NODE', + ThirdPartyPartnerPanelScheduled::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php b/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php new file mode 100644 index 000000000..96f4112c0 --- /dev/null +++ b/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php @@ -0,0 +1,67 @@ +getValues(); + return $ref_enums; + } + + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ThirdPartyPartnerViewabilityRequest(), + 'NODE', + ThirdPartyPartnerViewabilityRequest::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/TimeSuggestion.php b/src/FacebookAds/Object/TimeSuggestion.php new file mode 100644 index 000000000..66b107146 --- /dev/null +++ b/src/FacebookAds/Object/TimeSuggestion.php @@ -0,0 +1,42 @@ +getValues(); + $ref_enums['Visibility'] = TransactableItemVisibilityValues::getInstance()->getValues(); + return $ref_enums; + } + + + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), + 'EDGE', + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new TransactableItem(), + 'NODE', + TransactableItem::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Transaction.php b/src/FacebookAds/Object/Transaction.php new file mode 100644 index 000000000..ac3f17ad9 --- /dev/null +++ b/src/FacebookAds/Object/Transaction.php @@ -0,0 +1,51 @@ +getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/UniqueAdCreative.php b/src/FacebookAds/Object/UniqueAdCreative.php new file mode 100644 index 000000000..37339764c --- /dev/null +++ b/src/FacebookAds/Object/UniqueAdCreative.php @@ -0,0 +1,42 @@ +execute(); } + public function getAssignedApplications(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, + '/assigned_applications', + new Application(), + 'EDGE', + Application::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getAssignedBusinessAssetGroups(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -568,11 +592,12 @@ public function createBusiness(array $fields = array(), array $params = array(), 'survey_business_type' => 'survey_business_type_enum', 'survey_num_assets' => 'unsigned int', 'survey_num_people' => 'unsigned int', - 'timezone_id' => 'unsigned int', + 'timezone_id' => 'timezone_id_enum', 'vertical' => 'vertical_enum', ); $enums = array( 'survey_business_type_enum' => BusinessSurveyBusinessTypeValues::getInstance()->getValues(), + 'timezone_id_enum' => BusinessTimezoneIdValues::getInstance()->getValues(), 'vertical_enum' => BusinessVerticalValues::getInstance()->getValues(), ); @@ -702,7 +727,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe $param_types = array( 'actions' => 'Object', - 'adaptive_type' => 'string', 'album_id' => 'string', 'android_key_hash' => 'string', 'animated_effect_id' => 'unsigned int', @@ -787,7 +811,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'publish_event_id' => 'unsigned int', 'published' => 'bool', 'quote' => 'string', - 'react_mode_metadata' => 'string', 'ref' => 'list', 'referenceable_image_ids' => 'list', 'referral_id' => 'string', @@ -923,35 +946,6 @@ public function createFundraiser(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } - public function createGameTime(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'action' => 'action_enum', - ); - $enums = array( - 'action_enum' => array( - 'END', - 'HEARTBEAT', - 'START', - ), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/game_times', - new AbstractCrudObject(), - 'EDGE', - array(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getGroups(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -1563,7 +1557,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $this->assureId(); $param_types = array( - 'adaptive_type' => 'string', 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', @@ -1614,7 +1607,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p 'original_projection_type' => 'original_projection_type_enum', 'privacy' => 'string', 'publish_event_id' => 'unsigned int', - 'react_mode_metadata' => 'string', 'referenced_sticker_id' => 'string', 'replace_video_id' => 'string', 'slideshow_spec' => 'map', diff --git a/src/FacebookAds/Object/UserContext.php b/src/FacebookAds/Object/UserContext.php new file mode 100644 index 000000000..279fa5be8 --- /dev/null +++ b/src/FacebookAds/Object/UserContext.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new UserContext(), + 'NODE', + UserContext::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/UserMobileConfig.php b/src/FacebookAds/Object/UserMobileConfig.php new file mode 100644 index 000000000..507933fc8 --- /dev/null +++ b/src/FacebookAds/Object/UserMobileConfig.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new UserSetReportingRoot(), + 'NODE', + UserSetReportingRoot::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php index 83d53c82e..9cc9c845d 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdRulesHistoryActionValues.php @@ -26,11 +26,14 @@ class AdAccountAdRulesHistoryActionValues extends AbstractEnum { const CHANGED_BID = 'CHANGED_BID'; const CHANGED_BUDGET = 'CHANGED_BUDGET'; 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_MUSIC = 'ENABLE_MUSIC'; const ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION = 'ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION'; + const ENABLE_SHOPS_ADS = 'ENABLE_SHOPS_ADS'; const ENDPOINT_PINGED = 'ENDPOINT_PINGED'; const ERROR = 'ERROR'; const FACEBOOK_NOTIFICATION_SENT = 'FACEBOOK_NOTIFICATION_SENT'; diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index 099f4cefe..30551b501 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -22,6 +22,7 @@ */ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { + const AAC_CREATION_PACKAGE = 'AAC_CREATION_PACKAGE'; const AB_TEST = 'AB_TEST'; const ACCOUNT_SPEND_LIMIT = 'ACCOUNT_SPEND_LIMIT'; const ACO_TOGGLE = 'ACO_TOGGLE'; @@ -33,10 +34,14 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const ADVANTAGE_DETAILED_TARGETING = 'ADVANTAGE_DETAILED_TARGETING'; const ADVANTAGE_LOOKALIKE_AUDIENCE = 'ADVANTAGE_LOOKALIKE_AUDIENCE'; const ADVANTAGE_PLUS_AUDIENCE = 'ADVANTAGE_PLUS_AUDIENCE'; + const ADVANTAGE_PLUS_AUDIENCE_DUPLICATION = 'ADVANTAGE_PLUS_AUDIENCE_DUPLICATION'; const ADVANTAGE_PLUS_AUDIENCE_FRICTION = 'ADVANTAGE_PLUS_AUDIENCE_FRICTION'; const ADVANTAGE_PLUS_AUDIENCE_TOGGLE = 'ADVANTAGE_PLUS_AUDIENCE_TOGGLE'; + const ADVANTAGE_PLUS_CAMPAIGN_BUDGET = 'ADVANTAGE_PLUS_CAMPAIGN_BUDGET'; const ADVANTAGE_PLUS_CREATIVE = 'ADVANTAGE_PLUS_CREATIVE'; const ADVANTAGE_PLUS_CREATIVE_CATALOG = 'ADVANTAGE_PLUS_CREATIVE_CATALOG'; + const ADVANTAGE_PLUS_CREATIVE_SE = 'ADVANTAGE_PLUS_CREATIVE_SE'; + const ADVANTAGE_PLUS_PLACEMENTS_DUPLICATION = 'ADVANTAGE_PLUS_PLACEMENTS_DUPLICATION'; const ADVANTAGE_PLUS_PLACEMENTS_FRICTION = 'ADVANTAGE_PLUS_PLACEMENTS_FRICTION'; const ADVANTAGE_SHOPPING_CAMPAIGN = 'ADVANTAGE_SHOPPING_CAMPAIGN'; const ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION = 'ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION'; @@ -47,7 +52,6 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AGGREGATED_COST_LIMITED = 'AGGREGATED_COST_LIMITED'; const APP_AEM_V2_INSTALLATION_PROMOTION = 'APP_AEM_V2_INSTALLATION_PROMOTION'; const ASC_BUDGET_OPTIMIZATION = 'ASC_BUDGET_OPTIMIZATION'; - const ASC_BUDGET_OPTIMIZATION_PFR = 'ASC_BUDGET_OPTIMIZATION_PFR'; const ASC_CREATION_PACKAGE = 'ASC_CREATION_PACKAGE'; const ASC_FRAGMENTATION_V2 = 'ASC_FRAGMENTATION_V2'; const ASPECT_RATIO = 'ASPECT_RATIO'; @@ -55,14 +59,18 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AUCTION_OVERLAP = 'AUCTION_OVERLAP'; const AUCTION_OVERLAP_CONSOLIDATION = 'AUCTION_OVERLAP_CONSOLIDATION'; const AUDIENCE_EXPANSION = 'AUDIENCE_EXPANSION'; + const AUDIENCE_EXPANSION_GEORADIUS = 'AUDIENCE_EXPANSION_GEORADIUS'; const AUDIENCE_EXPANSION_RETARGETING = 'AUDIENCE_EXPANSION_RETARGETING'; const AUDIENCE_LEARNING_LIMITED = 'AUDIENCE_LEARNING_LIMITED'; const AUTOFLOW_OPT_IN = 'AUTOFLOW_OPT_IN'; const AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW = 'AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW'; + const AUTOFLOW_OPT_IN_V2 = 'AUTOFLOW_OPT_IN_V2'; const AUTOMATIC_PLACEMENTS = 'AUTOMATIC_PLACEMENTS'; + const AUTOMATIC_PLACEMENTS_V2 = 'AUTOMATIC_PLACEMENTS_V2'; const AUTO_BID = 'AUTO_BID'; const BLENDED_ADS = 'BLENDED_ADS'; const BROAD_TARGETING = 'BROAD_TARGETING'; + const BUDGET_LIMITED = 'BUDGET_LIMITED'; const CAPI = 'CAPI'; const CAPI_PERFORMANCE_MATCH_KEY = 'CAPI_PERFORMANCE_MATCH_KEY'; const CAPI_PERFORMANCE_MATCH_KEY_V2 = 'CAPI_PERFORMANCE_MATCH_KEY_V2'; @@ -76,6 +84,7 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const COST_GOAL_CPA_LIMITED = 'COST_GOAL_CPA_LIMITED'; const COST_PER_RESULT = 'COST_PER_RESULT'; const CREATION_PACKAGE_UPGRADE_TO_ASC = 'CREATION_PACKAGE_UPGRADE_TO_ASC'; + const CREATION_PACKAGE_UPGRADE_TO_CTX = 'CREATION_PACKAGE_UPGRADE_TO_CTX'; const CREATION_PACKAGE_UPGRADE_TO_TLA = 'CREATION_PACKAGE_UPGRADE_TO_TLA'; const CREATION_PACKAGE_UPGRADE_TO_TMC = 'CREATION_PACKAGE_UPGRADE_TO_TMC'; const CREATIVE_BADGE = 'CREATIVE_BADGE'; @@ -92,13 +101,16 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS = 'DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS'; const DA_DUPLICATION_PRODUCT_TAGS = 'DA_DUPLICATION_PRODUCT_TAGS'; const DEAD_LINK = 'DEAD_LINK'; + const DEFRAGMENTATION_ACB = 'DEFRAGMENTATION_ACB'; const DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET = 'DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET'; const ECOSYSTEM_BID_REDUCE_L1_CARDINALITY = 'ECOSYSTEM_BID_REDUCE_L1_CARDINALITY'; const EVC_APP_DUPLICATION_UPGRADE = 'EVC_APP_DUPLICATION_UPGRADE'; const EVC_WEB_DUPLICATION_UPGRADE = 'EVC_WEB_DUPLICATION_UPGRADE'; const FRAGMENTATION = 'FRAGMENTATION'; + const FRAGMENTATION_V2 = 'FRAGMENTATION_V2'; const GES_TEST = 'GES_TEST'; const GUIDANCE_CENTER_CODE_GEN = 'GUIDANCE_CENTER_CODE_GEN'; + const HEURISTIC_DEFAULT_DURATION = 'HEURISTIC_DEFAULT_DURATION'; const HIGH_COST = 'HIGH_COST'; const HISTORICAL_BENCHMARK = 'HISTORICAL_BENCHMARK'; const IG_MULTI_ADS = 'IG_MULTI_ADS'; @@ -115,29 +127,36 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const MULTI_TEXT = 'MULTI_TEXT'; const MUSIC = 'MUSIC'; const NOT_APPLICABLE = 'NOT_APPLICABLE'; + const NO_DELIVERY_STATUS = 'NO_DELIVERY_STATUS'; const OPTIMAL_BAU = 'OPTIMAL_BAU'; 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_UPSELL = 'PIXEL_UPSELL'; const PREDICTIVE_CREATIVE_LIMITED = 'PREDICTIVE_CREATIVE_LIMITED'; const PREDICTIVE_CREATIVE_LIMITED_HOURLY = 'PREDICTIVE_CREATIVE_LIMITED_HOURLY'; const PREPARING_STATUS = 'PREPARING_STATUS'; + const PURCHASE_OPTIMIZATION = 'PURCHASE_OPTIMIZATION'; const RAPID_LEARNING_LIMITED = 'RAPID_LEARNING_LIMITED'; const RAPID_LEARNING_PHASE = 'RAPID_LEARNING_PHASE'; const REELS_DUPLICATION_UPSELL = 'REELS_DUPLICATION_UPSELL'; + const REELS_PLACEMENT = 'REELS_PLACEMENT'; const REVERT = 'REVERT'; const SCALE_GOOD_CAMPAIGN = 'SCALE_GOOD_CAMPAIGN'; 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 SIGNALS_GROWTH_CAPI = 'SIGNALS_GROWTH_CAPI'; const SIGNALS_GROWTH_CAPI_TABLE = 'SIGNALS_GROWTH_CAPI_TABLE'; const SIGNALS_GROWTH_CAPI_V2 = 'SIGNALS_GROWTH_CAPI_V2'; + const SIMILAR_ADVERTISER_BUDGET_RECOMMENDATION = 'SIMILAR_ADVERTISER_BUDGET_RECOMMENDATION'; const SIX_PLUS_MANUAL_PLACEMENTS = 'SIX_PLUS_MANUAL_PLACEMENTS'; const SPEND_LIMIT = 'SPEND_LIMIT'; const SYD_TEST_MODE = 'SYD_TEST_MODE'; const TAILORED_LEAD_AD_CAMPAIGN = 'TAILORED_LEAD_AD_CAMPAIGN'; const TAILORED_MESSAGES_CAMPAIGN = 'TAILORED_MESSAGES_CAMPAIGN'; + const TLA_CREATION_PACKAGE = 'TLA_CREATION_PACKAGE'; const TOP_ADSETS_WITH_ADS_UNDER_CAP = 'TOP_ADSETS_WITH_ADS_UNDER_CAP'; const TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP = 'TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP'; const TWO_P_GUIDANCE_CARD_AAA = 'TWO_P_GUIDANCE_CARD_AAA'; diff --git a/src/FacebookAds/Object/Values/AdAccountBusinessConstraintsStatusValues.php b/src/FacebookAds/Object/Values/AdAccountBusinessConstraintsStatusValues.php new file mode 100644 index 000000000..79a0d3fc0 --- /dev/null +++ b/src/FacebookAds/Object/Values/AdAccountBusinessConstraintsStatusValues.php @@ -0,0 +1,28 @@ +data['id'], RequestInterface::METHOD_GET, '/augmented_realities_metadata', - new AbstractCrudObject(), + new DynamicARMetadata(), 'EDGE', - array(), + DynamicARMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/VehicleOffer.php b/src/FacebookAds/Object/VehicleOffer.php index 6b40c8658..3ff582598 100644 --- a/src/FacebookAds/Object/VehicleOffer.php +++ b/src/FacebookAds/Object/VehicleOffer.php @@ -56,9 +56,9 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->data['id'], RequestInterface::METHOD_GET, '/augmented_realities_metadata', - new AbstractCrudObject(), + new DynamicARMetadata(), 'EDGE', - array(), + DynamicARMetadata::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/VideoAsset.php b/src/FacebookAds/Object/VideoAsset.php new file mode 100644 index 000000000..7e248e221 --- /dev/null +++ b/src/FacebookAds/Object/VideoAsset.php @@ -0,0 +1,94 @@ +assureId(); + + $param_types = array( + 'metric' => 'list', + 'period' => 'period_enum', + ); + $enums = array( + 'metric_enum' => InsightsResultMetricValues::getInstance()->getValues(), + 'period_enum' => InsightsResultPeriodValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/insights', + new InsightsResult(), + 'EDGE', + InsightsResult::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new VideoAsset(), + 'NODE', + VideoAsset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/VideoCopyright.php b/src/FacebookAds/Object/VideoCopyright.php index 43840f139..f63e41f2b 100644 --- a/src/FacebookAds/Object/VideoCopyright.php +++ b/src/FacebookAds/Object/VideoCopyright.php @@ -56,9 +56,9 @@ public function getUpdateRecords(array $fields = array(), array $params = array( $this->data['id'], RequestInterface::METHOD_GET, '/update_records', - new AbstractCrudObject(), + new MediaCopyrightUpdateRecord(), 'EDGE', - array(), + MediaCopyrightUpdateRecord::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/VideoCopyrightMatch.php b/src/FacebookAds/Object/VideoCopyrightMatch.php new file mode 100644 index 000000000..9b8a8a289 --- /dev/null +++ b/src/FacebookAds/Object/VideoCopyrightMatch.php @@ -0,0 +1,71 @@ +getValues(); + $ref_enums['ActionReason'] = VideoCopyrightMatchActionReasonValues::getInstance()->getValues(); + $ref_enums['MatchContentType'] = VideoCopyrightMatchMatchContentTypeValues::getInstance()->getValues(); + return $ref_enums; + } + + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new VideoCopyrightMatch(), + 'NODE', + VideoCopyrightMatch::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/VideoGroup.php b/src/FacebookAds/Object/VideoGroup.php new file mode 100644 index 000000000..bbf31f1f6 --- /dev/null +++ b/src/FacebookAds/Object/VideoGroup.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new VideoMetricsReport(), + 'NODE', + VideoMetricsReport::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/VideoStats.php b/src/FacebookAds/Object/VideoStats.php new file mode 100644 index 000000000..14302cab6 --- /dev/null +++ b/src/FacebookAds/Object/VideoStats.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new VideoTextQuestion(), + 'NODE', + VideoTextQuestion::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/VidwallaBroadcast.php b/src/FacebookAds/Object/VidwallaBroadcast.php new file mode 100644 index 000000000..4669e2ba0 --- /dev/null +++ b/src/FacebookAds/Object/VidwallaBroadcast.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new VidwallaBroadcast(), + 'NODE', + VidwallaBroadcast::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WITUser.php b/src/FacebookAds/Object/WITUser.php new file mode 100644 index 000000000..5e3413507 --- /dev/null +++ b/src/FacebookAds/Object/WITUser.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WearableDevicePublicKey(), + 'NODE', + WearableDevicePublicKey::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WebPublisher.php b/src/FacebookAds/Object/WebPublisher.php new file mode 100644 index 000000000..3bd3ea951 --- /dev/null +++ b/src/FacebookAds/Object/WebPublisher.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WebsiteCreativeAssetSource(), + 'NODE', + WebsiteCreativeAssetSource::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WebsiteCreativeAssetSuggestions.php b/src/FacebookAds/Object/WebsiteCreativeAssetSuggestions.php new file mode 100644 index 000000000..a091bae24 --- /dev/null +++ b/src/FacebookAds/Object/WebsiteCreativeAssetSuggestions.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WebsiteCreativeAssetSuggestions(), + 'NODE', + WebsiteCreativeAssetSuggestions::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WhatsAppBusinessAccount.php b/src/FacebookAds/Object/WhatsAppBusinessAccount.php index 279498ee1..c031ec94e 100644 --- a/src/FacebookAds/Object/WhatsAppBusinessAccount.php +++ b/src/FacebookAds/Object/WhatsAppBusinessAccount.php @@ -15,6 +15,7 @@ use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\WhatsAppBusinessAccountFields; use FacebookAds\Object\Values\WhatsAppBusinessAccountCategoryValues; +use FacebookAds\Object\Values\WhatsAppBusinessAccountDisplayFormatValues; use FacebookAds\Object\Values\WhatsAppBusinessAccountSubCategoryValues; use FacebookAds\Object\Values\WhatsAppBusinessAccountTasksValues; @@ -40,6 +41,7 @@ protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['Tasks'] = WhatsAppBusinessAccountTasksValues::getInstance()->getValues(); $ref_enums['Category'] = WhatsAppBusinessAccountCategoryValues::getInstance()->getValues(); + $ref_enums['DisplayFormat'] = WhatsAppBusinessAccountDisplayFormatValues::getInstance()->getValues(); $ref_enums['SubCategory'] = WhatsAppBusinessAccountSubCategoryValues::getInstance()->getValues(); return $ref_enums; } @@ -161,12 +163,12 @@ public function getConversationAnalytics(array $fields = array(), array $params 'conversation_categories_enum' => array( 'AUTHENTICATION', 'AUTHENTICATION_INTERNATIONAL', - 'FIXED_TEMPLATE_NOTIFY', 'MARKETING', 'MARKETING_OPTIMIZED_DELIVERY', 'SERVICE', 'UNKNOWN', 'UTILITY', + 'UTILITY_FIXED_TEMPLATE', ), 'conversation_directions_enum' => array( 'BUSINESS_INITIATED', @@ -401,6 +403,7 @@ public function getMessageTemplates(array $fields = array(), array $params = arr ), 'status_enum' => array( 'APPROVED', + 'ARCHIVED', 'DELETED', 'DISABLED', 'IN_APPEAL', @@ -435,6 +438,7 @@ public function createMessageTemplate(array $fields = array(), array $params = a 'category' => 'category_enum', 'components' => 'list', 'cta_url_link_tracking_opted_out' => 'bool', + 'display_format' => 'display_format_enum', 'language' => 'string', 'library_template_button_inputs' => 'list', 'library_template_name' => 'string', @@ -444,6 +448,7 @@ public function createMessageTemplate(array $fields = array(), array $params = a ); $enums = array( 'category_enum' => WhatsAppBusinessAccountCategoryValues::getInstance()->getValues(), + 'display_format_enum' => WhatsAppBusinessAccountDisplayFormatValues::getInstance()->getValues(), 'sub_category_enum' => WhatsAppBusinessAccountSubCategoryValues::getInstance()->getValues(), ); @@ -636,6 +641,7 @@ public function createSetOboMobilityIntent(array $fields = array(), array $param $this->assureId(); $param_types = array( + 'solution_id' => 'string', ); $enums = array( ); @@ -655,6 +661,29 @@ public function createSetOboMobilityIntent(array $fields = array(), array $param return $pending ? $request : $request->execute(); } + public function getSolutions(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, + '/solutions', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -742,6 +771,7 @@ public function getTemplateAnalytics(array $fields = array(), array $params = ar ), 'metric_types_enum' => array( 'CLICKED', + 'COST', 'DELIVERED', 'READ', 'SENT', diff --git a/src/FacebookAds/Object/WhatsAppPaymentCapabilities.php b/src/FacebookAds/Object/WhatsAppPaymentCapabilities.php new file mode 100644 index 000000000..209166a70 --- /dev/null +++ b/src/FacebookAds/Object/WhatsAppPaymentCapabilities.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WhitehatFBDLRun(), + 'NODE', + WhitehatFBDLRun::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WifiInformation.php b/src/FacebookAds/Object/WifiInformation.php new file mode 100644 index 000000000..f28fd9388 --- /dev/null +++ b/src/FacebookAds/Object/WifiInformation.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WifiInformation(), + 'NODE', + WifiInformation::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WithAsset3D.php b/src/FacebookAds/Object/WithAsset3D.php new file mode 100644 index 000000000..b1ca4b926 --- /dev/null +++ b/src/FacebookAds/Object/WithAsset3D.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WithAsset3D(), + 'NODE', + WithAsset3D::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WoodhengeSupporter.php b/src/FacebookAds/Object/WoodhengeSupporter.php new file mode 100644 index 000000000..2b24232c8 --- /dev/null +++ b/src/FacebookAds/Object/WoodhengeSupporter.php @@ -0,0 +1,65 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WoodhengeSupporter(), + 'NODE', + WoodhengeSupporter::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WorkAccessCode.php b/src/FacebookAds/Object/WorkAccessCode.php new file mode 100644 index 000000000..46f2c2f81 --- /dev/null +++ b/src/FacebookAds/Object/WorkAccessCode.php @@ -0,0 +1,42 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WorkExperience(), + 'NODE', + WorkExperience::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WorkSkill.php b/src/FacebookAds/Object/WorkSkill.php new file mode 100644 index 000000000..4bfd09afd --- /dev/null +++ b/src/FacebookAds/Object/WorkSkill.php @@ -0,0 +1,88 @@ +assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/users', + new User(), + 'EDGE', + User::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new WorkSkill(), + 'NODE', + WorkSkill::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/WorkUserBadges.php b/src/FacebookAds/Object/WorkUserBadges.php new file mode 100644 index 000000000..dffe4834f --- /dev/null +++ b/src/FacebookAds/Object/WorkUserBadges.php @@ -0,0 +1,42 @@ + Date: Tue, 30 Jul 2024 12:50:24 -0700 Subject: [PATCH 21/34] add original_event_data and attribution_data to event payload Summary: Update business SDK to include original event data and attribution data for CAPI payload Differential Revision: D59702763 fbshipit-source-id: 3af042a81d333ed3858f297b1a0bab5adce48ddc --- .../Object/ServerSide/AttributionData.php | 305 ++++++++++++++++++ .../Object/ServerSide/AttributionModel.php | 56 ++++ src/FacebookAds/Object/ServerSide/Event.php | 46 +++ .../Object/ServerSide/OriginalEventData.php | 149 +++++++++ .../Object/ServerSide/AttributionDataTest.php | 65 ++++ .../Object/ServerSide/EventTest.php | 12 +- .../ServerSide/OriginalEventDataTest.php | 47 +++ 7 files changed, 678 insertions(+), 2 deletions(-) create mode 100644 src/FacebookAds/Object/ServerSide/AttributionData.php create mode 100644 src/FacebookAds/Object/ServerSide/AttributionModel.php create mode 100644 src/FacebookAds/Object/ServerSide/OriginalEventData.php create mode 100644 test/FacebookAdsTest/Object/ServerSide/AttributionDataTest.php create mode 100644 test/FacebookAdsTest/Object/ServerSide/OriginalEventDataTest.php diff --git a/src/FacebookAds/Object/ServerSide/AttributionData.php b/src/FacebookAds/Object/ServerSide/AttributionData.php new file mode 100644 index 000000000..0593c8ecf --- /dev/null +++ b/src/FacebookAds/Object/ServerSide/AttributionData.php @@ -0,0 +1,305 @@ + 'string', + 'visit_time' => 'int', + 'ad_id' => 'string', + 'adset_id' => 'string', + 'campaign_id' => 'string', + 'attribution_share' => 'float', + 'attribution_model' => 'FacebookAds\Object\ServerSide\AttributionModel', + 'attr_window' => 'int', + ); + + protected static $attributeMap = array( + 'scope' => 'scope', + 'visit_time' => 'visit_time', + 'ad_id' => 'ad_id', + 'adset_id' => 'adset_id', + 'campaign_id' => 'campaign_id', + 'attribution_share' => 'attribution_share', + 'attribution_model' => 'attribution_model', + 'attr_window' => 'attr_window', + ); + + protected static $setters = array( + 'scope' => 'setScope', + 'visit_time' => 'setVisitTime', + 'ad_id' => 'setAdId', + 'adset_id' => 'setAdsetId', + 'campaign_id' => 'setCampaignId', + 'attribution_share' => 'setAttributionShare', + 'attribution_model' => 'setAttributionModel', + 'attr_window' => 'setAttrWindow', + ); + + protected static $getters = array( + 'scope' => 'getScope', + 'visit_time' => 'getVisitTime', + 'ad_id' => 'getAdId', + 'adset_id' => 'getAdsetId', + 'campaign_id' => 'getCampaignId', + 'attribution_share' => 'getAttributionShare', + 'attribution_model' => 'getAttributionModel', + 'attr_window' => 'getAttrWindow', + ); + + protected $container = array(); + + public function __construct(array $data = null) { + $this->container['scope'] = isset($data['scope']) ? $data['scope'] : null; + $this->container['visit_time'] = isset($data['visit_time']) ? $data['visit_time'] : null; + $this->container['ad_id'] = isset($data['ad_id']) ? $data['ad_id'] : null; + $this->container['adset_id'] = isset($data['adset_id']) ? $data['adset_id'] : null; + $this->container['campaign_id'] = isset($data['campaign_id']) ? $data['campaign_id'] : null; + $this->container['attribution_share'] = isset($data['attribution_share']) ? $data['attribution_share'] : null; + $this->container['attribution_model'] = isset($data['attribution_model']) ? $data['attribution_model'] : null; + $this->container['attr_window'] = isset($data['attr_window']) ? $data['attr_window'] : null; + } + + public static function paramTypes() { + return self::$param_types; + } + + public static function attributeMap() { + return self::$attributeMap; + } + + public static function setters() { + return self::$setters; + } + + public static function getters() { + return self::$getters; + } + + public function listInvalidProperties() { + $invalid_properties = array(); + return $invalid_properties; + } + + public function valid() { + return true; + } + + /** + * Sets scope + * @param string $scope Touchpoint type. + * @return $this + */ + public function setScope($scope) { + $this->container['scope'] = $scope; + + return $this; + } + + /** + * Sets visit_time + * @param int $visit_time A Unix timestamp in seconds indicating time that the campaign_id or fbc was first received. + * @return $this + */ + public function setEventTime($visit_time) { + $this->container['visit_time'] = $visit_time; + + return $this; + } + + /** + * Sets ad_id + * @param string $ad_id Meta-provided ad id from URL/deeplink. + * @return $this + */ + public function setAdId($ad_id) { + $this->container['ad_id'] = $ad_id; + + return $this; + } + + /** + * Sets adset_id + * @param string $adset_id Meta-provided adset id from URL/deeplink. + * @return $this + */ + public function setAdsetId($adset_id) { + $this->container['adset_id'] = $adset_id; + + return $this; + } + + /** + * Sets campaign_id + * @param string $campaign_id Meta-provided campaign id from URL/deeplink. + * @return $this + */ + public function setCampaignId($campaign_id) { + $this->container['campaign_id'] = $campaign_id; + + return $this; + } + + /** + * Sets attribution_share + * @param float $attribution_share [0-1] weight of credit assigned to the visit. + * @return $this + */ + public function setAttributionShare($attribution_share) { + $this->container['attribution_share'] = $attribution_share; + + return $this; + } + + /** + * Sets attribution_model + * @param string $attribution_model Attribution model used to attribute the event. + * @return $this + */ + public function setAttributionModel($attribution_model) { + $this->container['attribution_model'] = $attribution_model; + + return $this; + } + + /** + * Sets attr_window + * @param string $attr_window Attribution window in days. + * @return $this + */ + public function setAttrWindow($attr_window) { + $this->container['attr_window'] = $attr_window; + + return $this; + } + + /** + * Gets touchpoint type. + * @return string + */ + public function getScope() { + return $this->container['scope']; + } + + /** + * Gets the Unix timestamp in seconds indicating time that the campaign_id or fbc was first received. + * @return int + */ + public function getVisitTime() { + return $this->container['visit_time']; + } + + /** + * Gets Meta-provided ad id from URL/deeplink. + * @return string + */ + public function getAdId() { + return $this->container['ad_id']; + } + + /** + * Gets Meta-provided adset id from URL/deeplink. + * @return string + */ + public function getAdsetId() { + return $this->container['adset_id']; + } + + /** + * Gets Meta-provided campaign id from URL/deeplink. + * @return string + */ + public function getCampaignId() { + return $this->container['campaign_id']; + } + + /** + * Gets attribution share. + * @return float + */ + public function getAttributionShare() { + return $this->container['attribution_share']; + } + + /** + * Gets attribution model used to attribute the event. + * @return string + */ + public function getAttributionModel() { + return $this->container['attribution_model']; + } + + /** + * Gets attribution window in days. + * @return string + */ + public function getAttrWindow() { + return $this->container['attr_window']; + } + + public function normalize() { + $normalized_payload = array(); + + $normalized_payload['scope'] = $this->getScope(); + $normalized_payload['visit_time'] = $this->getVisitTime(); + $normalized_payload['ad_id'] = $this->getAdId(); + $normalized_payload['adset_id'] = $this->getAdsetId(); + $normalized_payload['campaign_id'] = $this->getCampaignId(); + $normalized_payload['attribution_share'] = $this->getAttributionShare(); + $normalized_payload['attribution_model'] = $this->getAttributionModel(); + $normalized_payload['attr_window'] = $this->getAttrWindow(); + return $normalized_payload; + } + + /** + * Gets the string presentation of the object + * @return string + */ + public function __toString() { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode($this, JSON_PRETTY_PRINT); + } + + return json_encode($this); + } +} diff --git a/src/FacebookAds/Object/ServerSide/AttributionModel.php b/src/FacebookAds/Object/ServerSide/AttributionModel.php new file mode 100644 index 000000000..ef1ed3d57 --- /dev/null +++ b/src/FacebookAds/Object/ServerSide/AttributionModel.php @@ -0,0 +1,56 @@ + 'string', + 'FIRST_TOUCH' => 'string', + 'LAST_CLICK' => 'string', + 'LAST_TOUCH' => 'string', + 'LINEAR' => 'string', + 'POSITION_BASED' => 'string', + 'TIME_DECAY' => 'string', + 'UNKNOWN' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/ServerSide/Event.php b/src/FacebookAds/Object/ServerSide/Event.php index 4e1ad7a47..2aa5af26c 100644 --- a/src/FacebookAds/Object/ServerSide/Event.php +++ b/src/FacebookAds/Object/ServerSide/Event.php @@ -52,6 +52,8 @@ class Event implements ArrayAccess { 'app_data' => 'FacebookAds\Object\ServerSide\AppData', 'advanced_measurement_table' => 'string', 'messaging_channel' => 'string', + 'original_event_data' => 'FacebookAds\Object\ServerSide\OriginalEventData', + 'attribution_data' => 'FacebookAds\Object\ServerSide\AttributionData', ); /** * Array of attributes where the key is the local name, and the value is the original name @@ -72,6 +74,8 @@ class Event implements ArrayAccess { 'app_data' => 'app_data', 'advanced_measurement_table' => 'advanced_measurement_table', 'messaging_channel' => 'messaging_channel', + 'original_event_data' => 'original_event_data', + 'attribution_data' => 'attribution_data', ); /** @@ -93,6 +97,8 @@ class Event implements ArrayAccess { 'app_data' => 'setAppData', 'advanced_measurement_table' => 'setAdvancedMeasurementTable', 'messaging_channel' => 'setMessagingChannel', + 'original_event_data' => 'setOriginalEventData', + 'attribution_data' => 'setAttributionData', ); /** * Array of attributes to getter functions (for serialization of requests) @@ -113,6 +119,8 @@ class Event implements ArrayAccess { 'app_data' => 'getAppData', 'advanced_measurement_table' => 'getAdvancedMeasurementTable', 'messaging_channel' => 'getMessagingChannel', + 'original_event_data' => 'getOriginalEventData', + 'attribution_data' => 'getAttributionData', ); /** * Associative array for storing property values @@ -139,6 +147,8 @@ public function __construct(array $data = null) { $this->container['app_data'] = isset($data['app_data']) ? $data['app_data'] : null; $this->container['advanced_measurement_table'] = isset($data['advanced_measurement_table']) ? $data['advanced_measurement_table'] : null; $this->container['messaging_channel'] = isset($data['messaging_channel']) ? $data['messaging_channel'] : null; + $this->container['original_event_data'] = isset($data['original_event_data']) ? $data['original_event_data'] : null; + $this->container['attribution_data'] = isset($data['attribution_data']) ? $data['attribution_data'] : null; } public static function paramTypes() { @@ -414,6 +424,8 @@ public function normalize() { $normalized_payload['opt_out'] = $this->getOptOut(); } $normalized_payload['app_data'] = isset($this->container['app_data']) ? $this->getAppData()->normalize() : null; + $normalized_payload['original_event_data'] = isset($this->container['original_event_data']) ? $this->getOriginalEventData()->normalize() : null; + $normalized_payload['attribution_data'] = isset($this->container['attribution_data']) ? $this->getAttributionData()->normalize() : null; return $normalized_payload; } @@ -541,6 +553,40 @@ public function getMessagingChannel() { return $this->container['messaging_channel']; } + /** + * Sets the original event data of the event. + * @return $this + */ + public function setOriginalEventData($original_event_data) { + $this->container['original_event_data'] = $original_event_data; + return $this; + } + + /** + * Return the original event data of the event. + * @return OriginalEventData + */ + public function getOriginalEventData() { + return $this->container['original_event_data']; + } + + /** + * Sets the attribution data of the event. + * @return $this + */ + public function setAttributionData($attribute_data) { + $this->container['attribute_data'] = $attribute_data; + return $this; + } + + /** + * Return the attribution data of the event. + * @return AttributionData + */ + public function getAttributionData() { + return $this->container['attribution_data']; + } + /** * Gets the string representation of the object * @return string diff --git a/src/FacebookAds/Object/ServerSide/OriginalEventData.php b/src/FacebookAds/Object/ServerSide/OriginalEventData.php new file mode 100644 index 000000000..f27c3c100 --- /dev/null +++ b/src/FacebookAds/Object/ServerSide/OriginalEventData.php @@ -0,0 +1,149 @@ + 'string', + 'event_time' => 'int', + ); + + protected static $attributeMap = array( + 'event_name' => 'event_name', + 'event_time' => 'event_time', + ); + + protected static $setters = array( + 'event_name' => 'setEventName', + 'event_time' => 'setEventTime', + ); + + protected static $getters = array( + 'event_name' => 'getEventName', + 'event_time' => 'getEventTime', + ); + + protected $container = array(); + + public function __construct(array $data = null) { + $this->container['event_name'] = isset($data['event_name']) ? $data['event_name'] : null; + $this->container['event_time'] = isset($data['event_time']) ? $data['event_time'] : null; + } + + public static function paramTypes() { + return self::$param_types; + } + + public static function attributeMap() { + return self::$attributeMap; + } + + public static function setters() { + return self::$setters; + } + + public static function getters() { + return self::$getters; + } + + public function listInvalidProperties() { + $invalid_properties = array(); + return $invalid_properties; + } + + public function valid() { + return true; + } + + /** + * Sets a Meta pixel Standard Event or Custom Event name + * @param string $event_name A Meta pixel Standard Event or Custom Event name. + * @return $this + */ + public function setEventName($event_name) { + $this->container['event_name'] = $event_name; + + return $this; + } + + /** + * Sets a Unix timestamp in seconds indicating when the original event occurred + * @param int $event_time A Unix timestamp in seconds indicating when the original event occurred. + * @return $this + */ + public function setEventTime($event_time) { + $this->container['event_time'] = $event_time; + + return $this; + } + + /** + * Gets Meta pixel Standard Event or Custom Event name. + * @return string + */ + public function getEventName() { + return $this->container['event_name']; + } + + /** + * Gets Unix timestamp in seconds indicating when the original event occurred. + * @return int + */ + public function getEventTime() { + return $this->container['event_time']; + } + + public function normalize() { + $normalized_payload = array(); + + $normalized_payload['event_name'] = $this->getEventName(); + $normalized_payload['event_time'] = $this->getEventTime(); + return $normalized_payload; + } + + /** + * Gets the string presentation of the object + * @return string + */ + public function __toString() { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode($this, JSON_PRETTY_PRINT); + } + + return json_encode($this); + } +} diff --git a/test/FacebookAdsTest/Object/ServerSide/AttributionDataTest.php b/test/FacebookAdsTest/Object/ServerSide/AttributionDataTest.php new file mode 100644 index 000000000..0b0129edd --- /dev/null +++ b/test/FacebookAdsTest/Object/ServerSide/AttributionDataTest.php @@ -0,0 +1,65 @@ + 'click', + 'visit_time' => 123456, + 'ad_id' => '123', + 'adset_id' => '234', + 'campaign_id' => '345', + 'attr_window' => 7, + 'attribution_share' => 0.5, + 'attribution_model' => 'last_touch' + ); + $builder = (new AttributionData()) + ->setScope($expected['scope']) + ->setVisitTime($expected['visit_time']) + ->setAdId($expected['ad_id']) + ->setAdsetId($expected['adset_id']) + ->setCampaignId($expected['campaign_id']) + ->setAttrWindow($expected['attr_window']) + ->setAttributionShare($expected['attribution_share']) + ->setAttributionModel($expected['attribution_model']); + $this->assertEquals($expected, $builder->normalize()); + + $constructor = new AttributionData(array( + 'scope' => $expected['scope'], + 'visit_time' => $expected['visit_time'], + 'ad_id' => $expected['ad_id'], + 'adset_id' => $expected['adset_id'], + 'campaign_id' => $expected['campaign_id'], + 'attr_window' => $expected['attr_window'], + 'attribution_share' => $expected['attribution_share'], + 'attribution_model' => $expected['attribution_model'] + )); + $this->assertEquals($expected, $constructor->normalize()); + } +} diff --git a/test/FacebookAdsTest/Object/ServerSide/EventTest.php b/test/FacebookAdsTest/Object/ServerSide/EventTest.php index afeac66e7..9bd4c7f5e 100644 --- a/test/FacebookAdsTest/Object/ServerSide/EventTest.php +++ b/test/FacebookAdsTest/Object/ServerSide/EventTest.php @@ -26,14 +26,18 @@ use FacebookAdsTest\AbstractUnitTestCase; use FacebookAds\Object\ServerSide\ActionSource; +use FacebookAds\Object\ServerSide\AttributionData; use FacebookAds\Object\ServerSide\CustomData; use FacebookAds\Object\ServerSide\Event; +use FacebookAds\Object\ServerSide\OriginalEventData; use FacebookAds\Object\ServerSide\UserData; class EventTest extends AbstractUnitTestCase { public function testBuilder() { $user_data = new UserData(array('email' => 'eg@test.com')); $custom_data = new CustomData(array('order_id' => '123')); + $original_event_data = new OriginalEventData(array('event_name' => 'event-name-1')); + $attribution_data = new AttributionData(array('scope' => 'click')); $expected = array( 'event_name' => 'event_name-0', 'event_time' => 1234, @@ -46,6 +50,8 @@ public function testBuilder() { 'data_processing_options_country' => 1, 'data_processing_options_state' => 2, 'action_source' => ActionSource::WEBSITE, + 'original_event_data' => $original_event_data->normalize(), + 'attribution_data' => $attribution_data->normalize(), ); $event = (new Event()) @@ -59,7 +65,9 @@ public function testBuilder() { ->setDataProcessingOptions($expected['data_processing_options']) ->setDataProcessingOptionsCountry($expected['data_processing_options_country']) ->setDataProcessingOptionsState($expected['data_processing_options_state']) - ->setActionSource($expected['action_source']); + ->setActionSource($expected['action_source']) + ->setOriginalEventData($original_event_data) + ->setAttributionData($attribution_data); $this->assertEquals($expected, $event->normalize()); } @@ -75,7 +83,7 @@ public function testInvalidActionSource() { $event = (new Event())->setActionSource($action_source); try { - $normalized_payload = $event->normalize(); + $normalized_payload = $event->normalize(); } catch (\Exception $exception) { $has_thrown_exception = true; $expected_string = sprintf("Invalid action_source passed: %s",$action_source); diff --git a/test/FacebookAdsTest/Object/ServerSide/OriginalEventDataTest.php b/test/FacebookAdsTest/Object/ServerSide/OriginalEventDataTest.php new file mode 100644 index 000000000..84a60bab7 --- /dev/null +++ b/test/FacebookAdsTest/Object/ServerSide/OriginalEventDataTest.php @@ -0,0 +1,47 @@ + 'event-name-1', + 'event_time' => 123456 + ); + $builder = (new OriginalEventData()) + ->setEventName($expected['event_name']) + ->setCurrency($expected['event_time']); + $this->assertEquals($expected, $builder->normalize()); + + $constructor = new OriginalEventData(array( + 'event_name' => $expected['event_name'], + 'event_time' => $expected['event_time'] + )); + $this->assertEquals($expected, $constructor->normalize()); + } +} From 381d1002d446c1cc31ca86d6560a45e4b7891a49 Mon Sep 17 00:00:00 2001 From: Victor Jaramillo Moreno Date: Tue, 30 Jul 2024 16:58:16 -0700 Subject: [PATCH 22/34] PROMOTE_YOUR_PAGE sample added Summary: This example contains the calls necessary to create an ad for the php sdk. The example was added in the codegen php template, then it will be generated in the php sdk Reviewed By: liliarizona Differential Revision: D60455629 fbshipit-source-id: 1a4ac678d4967a8e66de3db84ed2fd48582e6e4f --- examples/PROMOTE_YOUR_PAGE.php | 108 +++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 examples/PROMOTE_YOUR_PAGE.php diff --git a/examples/PROMOTE_YOUR_PAGE.php b/examples/PROMOTE_YOUR_PAGE.php new file mode 100644 index 000000000..7332af815 --- /dev/null +++ b/examples/PROMOTE_YOUR_PAGE.php @@ -0,0 +1,108 @@ +"; +$app_id = ''; +$account_id = 'act_'; +$page_id = ''; +$ads_image_hash = ''; +$page_link = 'https://facebook.com/'; +$api = Api::init($app_id, null, $access_token, false); + +// Step 1: Create an ad campaign +$fields = array( +); +$params = array( + 'objective' => 'OUTCOME_TRAFFIC', + 'status' => 'PAUSED', + 'buying_type' => 'AUCTION', + 'name' => 'My Campaign', + 'special_ad_categories' => array(), +); +$campaign = (new AdAccount($account_id))->createCampaign( + $fields, + $params +); +$campaign_id = $campaign->id; + +echo 'Your campaign is: '.$campaign_id. PHP_EOL; + + +// Step 2: Under the campaign, create an ad set with some buying options +$fields = array( +); +$params = array( + 'status' => 'PAUSED', + 'targeting' => array('geo_locations' => array('countries' => array('US'))), + 'daily_budget' => '100', + 'billing_event' => 'IMPRESSIONS', + 'bid_amount' => '20', + 'campaign_id' => $campaign_id, + 'optimization_goal' => 'REACH', + 'promoted_object' => array('page_id' => $page_id), + 'name' => 'My AdSet', +); +$ad_set = (new AdAccount($account_id))->createAdSet( + $fields, + $params +); +$ad_set_id = $ad_set->id; + +echo 'Your adset is: '.$ad_set_id. PHP_EOL; + + +// Step 3: Create an ad creative with your amazing design +// This ad creative is promoting your page +$fields = array( +); +$params = array( + 'name' => 'Creative', + 'object_story_spec' => array('page_id' => $page_id,'link_data' => array('image_hash' => $ads_image_hash,'link' => $page_link,'message' => 'Creative message','call_to_action' => array('type' => 'LIKE_PAGE','value' => array('page' => $page_id)))), + 'degrees_of_freedom_spec' => array('creative_features_spec' => array('standard_enhancements' => array('enroll_status' => 'OPT_IN'))), +); +$creative = (new AdAccount($account_id))->createAdCreative( + $fields, + $params +); +$creative_id = $creative->id; + +echo 'Your ad creative is: '.$creative_id. PHP_EOL; + + +// Step 4: Create an ad under your ad set with your ad creative +$fields = array( +); +$params = array( + 'status' => 'PAUSED', + 'adset_id' => $ad_set_id, + 'name' => 'My Ad', + 'creative' => array('creative_id' => $creative_id), + 'ad_format' => 'DESKTOP_FEED_STANDARD', +); +$ad = (new AdAccount($account_id))->createAd( + $fields, + $params +); +$ad_id = $ad->id; + +echo 'Your ad is: '.$ad_id. PHP_EOL; From ba5771d28563258e3b8b84f94fe483639437352a Mon Sep 17 00:00:00 2001 From: Geoffrey Rose Date: Fri, 16 Aug 2024 16:25:13 -0700 Subject: [PATCH 23/34] Fixes namespace (#606) Summary: Fixes namespace so PHPStorm doesn't throw warnings about wrong expected type Screenshot 2024-07-24 at 3 38 36 PM Screenshot 2024-07-24 at 3 40 13 PM Pull Request resolved: https://github.com/facebook/facebook-php-business-sdk/pull/606 Reviewed By: liliarizona Differential Revision: D61413277 Pulled By: stcheng fbshipit-source-id: 14d15ceaca2bd6f7a6e29046424723e5ceb4e90b --- src/FacebookAds/Object/BusinessDataAPI/Event.php | 4 ++-- src/FacebookAds/Object/BusinessDataAPI/EventRequest.php | 2 +- src/FacebookAds/Object/ServerSide/Event.php | 8 ++++---- src/FacebookAds/Object/ServerSide/EventRequest.php | 2 +- .../Object/ServerSide/HttpServiceInterface.php | 2 +- src/FacebookAds/Object/ServerSide/UserData.php | 4 ++-- src/FacebookAds/Object/Signal/Event.php | 4 ++-- src/FacebookAds/Object/Signal/EventRequest.php | 2 +- src/FacebookAds/Object/Signal/UserData.php | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/FacebookAds/Object/BusinessDataAPI/Event.php b/src/FacebookAds/Object/BusinessDataAPI/Event.php index cd9baa6e4..8b45e42ca 100644 --- a/src/FacebookAds/Object/BusinessDataAPI/Event.php +++ b/src/FacebookAds/Object/BusinessDataAPI/Event.php @@ -81,7 +81,7 @@ public function setEventId($event_id) { /** * Sets UserData object that contains user data. - * @param FacebookAds\Object\BusinessDataAPI\UserData $user_data + * @param \FacebookAds\Object\BusinessDataAPI\UserData $user_data * @return $this */ public function setUserData($user_data) { @@ -92,7 +92,7 @@ public function setUserData($user_data) { /** * Sets CustomData object that includes additional business data about the event. - * @param FacebookAds\Object\BusinessDataAPI\CustomData $custom_data + * @param \FacebookAds\Object\BusinessDataAPI\CustomData $custom_data * @return $this */ public function setCustomData($custom_data) { diff --git a/src/FacebookAds/Object/BusinessDataAPI/EventRequest.php b/src/FacebookAds/Object/BusinessDataAPI/EventRequest.php index 165846974..0bb6871eb 100644 --- a/src/FacebookAds/Object/BusinessDataAPI/EventRequest.php +++ b/src/FacebookAds/Object/BusinessDataAPI/EventRequest.php @@ -53,7 +53,7 @@ public function __construct(string $page_id, array $data = null) { /** * Sets an array of Business Data Event objects - * @param FacebookAds\Object\BusinessDataAPI\Event[] $events An array of Business Data Event objects + * @param \FacebookAds\Object\BusinessDataAPI\Event[] $events An array of Business Data Event objects * @return $this */ public function setEvents($events) { diff --git a/src/FacebookAds/Object/ServerSide/Event.php b/src/FacebookAds/Object/ServerSide/Event.php index 2aa5af26c..2801bc3f1 100644 --- a/src/FacebookAds/Object/ServerSide/Event.php +++ b/src/FacebookAds/Object/ServerSide/Event.php @@ -268,7 +268,7 @@ public function setEventId($event_id) { /** * Sets UserData object that contains user data. - * @param FacebookAds\Object\ServerSide\UserData $user_data + * @param \FacebookAds\Object\ServerSide\UserData $user_data * @return $this */ public function setUserData($user_data) { @@ -279,7 +279,7 @@ public function setUserData($user_data) { /** * Sets CustomData object that includes additional business data about the event. - * @param FacebookAds\Object\ServerSide\CustomData $custom_data + * @param \FacebookAds\Object\ServerSide\CustomData $custom_data * @return $this */ public function setCustomData($custom_data) { @@ -473,7 +473,7 @@ public function getEventId() { /** * Gets UserData object that contains user data - * @return FacebookAds\Object\ServerSide\UserData + * @return \FacebookAds\Object\ServerSide\UserData */ public function getUserData() { return $this->container['user_data']; @@ -481,7 +481,7 @@ public function getUserData() { /** * Gets customData object that includes additional business data about the event. - * @return FacebookAds\Object\ServerSide\CustomData + * @return \FacebookAds\Object\ServerSide\CustomData */ public function getCustomData() { return $this->container['custom_data']; diff --git a/src/FacebookAds/Object/ServerSide/EventRequest.php b/src/FacebookAds/Object/ServerSide/EventRequest.php index dd9be73d3..96f8d982a 100644 --- a/src/FacebookAds/Object/ServerSide/EventRequest.php +++ b/src/FacebookAds/Object/ServerSide/EventRequest.php @@ -157,7 +157,7 @@ public function valid() { /** * Sets an array of Server Event objects - * @param FacebookAds\Object\ServerSide\Event[] $events An array of Server Event objects + * @param \FacebookAds\Object\ServerSide\Event[] $events An array of Server Event objects * @return $this */ public function setEvents($events) { diff --git a/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php b/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php index 9510ddc7d..d0d42d5ba 100644 --- a/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php +++ b/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php @@ -27,7 +27,7 @@ interface HttpServiceInterface { /** * @param string $url The graph API endpoint that will be requested - * @param FacebookAds\Object\ServerSide\HttpMethod $method The HTTP request method + * @param \FacebookAds\Object\ServerSide\HttpMethod $method The HTTP request method * @param array $curl_options Contains curl options * @param array $headers Contains HTTP request headers including User-Agent and Accept-Encoding * @param array $params Contains request parameters including access_token, data, test_event_code, etc. diff --git a/src/FacebookAds/Object/ServerSide/UserData.php b/src/FacebookAds/Object/ServerSide/UserData.php index 54d66e253..b81ceeb7a 100644 --- a/src/FacebookAds/Object/ServerSide/UserData.php +++ b/src/FacebookAds/Object/ServerSide/UserData.php @@ -452,7 +452,7 @@ public function setPhones($phones) { /** * Sets Gender, in lowercase. Either f or m. - * @param FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m. + * @param \FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m. * @return $this */ public function setGender($gender) { @@ -464,7 +464,7 @@ public function setGender($gender) { /** * Sets a list of Genders, in lowercase. *

Example: array('f', 'm') - * @param FacebookAds\Object\ServerSide\Gender[] $genders A list of Genders, in lowercase. + * @param \FacebookAds\Object\ServerSide\Gender[] $genders A list of Genders, in lowercase. * @return $this */ public function setGenders($genders) { diff --git a/src/FacebookAds/Object/Signal/Event.php b/src/FacebookAds/Object/Signal/Event.php index d5d1b97be..328081edd 100644 --- a/src/FacebookAds/Object/Signal/Event.php +++ b/src/FacebookAds/Object/Signal/Event.php @@ -99,7 +99,7 @@ public function setEventId($event_id) { /** * Sets UserData object that contains user data. - * @param FacebookAds\Object\Signal\UserData $user_data + * @param \FacebookAds\Object\Signal\UserData $user_data * @return $this */ public function setUserData($user_data) { @@ -111,7 +111,7 @@ public function setUserData($user_data) { /** * Sets CustomData object that includes additional business data about the event. - * @param FacebookAds\Object\Signal\CustomData $custom_data + * @param \FacebookAds\Object\Signal\CustomData $custom_data * @return $this */ public function setCustomData($custom_data) { diff --git a/src/FacebookAds/Object/Signal/EventRequest.php b/src/FacebookAds/Object/Signal/EventRequest.php index fbe353e6e..2c8dc8123 100644 --- a/src/FacebookAds/Object/Signal/EventRequest.php +++ b/src/FacebookAds/Object/Signal/EventRequest.php @@ -75,7 +75,7 @@ public function __construct(string $pixel_id, string $page_id, array $data = nul /** * Sets an array of Signal Event objects - * @param FacebookAds\Object\Signal\Event[] $events An array of Signal Event objects + * @param \FacebookAds\Object\Signal\Event[] $events An array of Signal Event objects * @return $this */ public function setEvents($events) { diff --git a/src/FacebookAds/Object/Signal/UserData.php b/src/FacebookAds/Object/Signal/UserData.php index 82c48cd09..aa6c9ca53 100644 --- a/src/FacebookAds/Object/Signal/UserData.php +++ b/src/FacebookAds/Object/Signal/UserData.php @@ -86,7 +86,7 @@ public function setPhone($phone) { /** * Sets Gender, in lowercase. Either f or m. - * @param FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m. + * @param \FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m. * @return $this */ public function setGender($gender) { From 83e38d32ff258a2ae46e7a8ab7aa511ecc2a6019 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Tue, 20 Aug 2024 22:48:02 -0700 Subject: [PATCH 24/34] Fix Pascal Name Parsing Issue with Numbers Summary: In Graph API v20, two words are introduced P2MInvoicePayments and WithAsset3D - causing the logic of parsing pascal name to fail and generate 'M' and 'D' as individual words. This caused the endpoint name parsing fail at last. Reviewed By: yoongyj, liliarizona Differential Revision: D61582281 fbshipit-source-id: 4b1cf3f966f433cf1c2a7fa4641ca8048857a0f5 --- src/FacebookAds/Object/AdAccount.php | 2 +- src/FacebookAds/Object/AdVideo.php | 2 +- src/FacebookAds/Object/AdsPixel.php | 8 ++++---- src/FacebookAds/Object/Business.php | 14 +++++++------- .../Object/CommerceMerchantSettings.php | 4 ++-- src/FacebookAds/Object/CustomAudience.php | 2 +- src/FacebookAds/Object/EventSourceGroup.php | 4 ++-- src/FacebookAds/Object/ExtendedCredit.php | 2 +- src/FacebookAds/Object/Group.php | 4 ++-- src/FacebookAds/Object/LiveVideo.php | 2 +- .../Object/OfflineConversionDataSet.php | 4 ++-- src/FacebookAds/Object/Page.php | 8 ++++---- src/FacebookAds/Object/PagePost.php | 4 ++-- src/FacebookAds/Object/Post.php | 4 ++-- 14 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 255a8b418..4872ec915 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -2421,7 +2421,7 @@ public function getIosFourteenCampaignLimits(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function createMAnAgeDPartnerAd(array $fields = array(), array $params = array(), $pending = false) { + public function createManagedPartnerAd(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/AdVideo.php b/src/FacebookAds/Object/AdVideo.php index 0a2403795..46df1fb62 100644 --- a/src/FacebookAds/Object/AdVideo.php +++ b/src/FacebookAds/Object/AdVideo.php @@ -239,7 +239,7 @@ public function createComment(array $fields = array(), array $params = array(), return $pending ? $request : $request->execute(); } - public function getCrosspostShareDPages(array $fields = array(), array $params = array(), $pending = false) { + public function getCrosspostSharedPages(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/AdsPixel.php b/src/FacebookAds/Object/AdsPixel.php index e6265287b..4309db3ec 100644 --- a/src/FacebookAds/Object/AdsPixel.php +++ b/src/FacebookAds/Object/AdsPixel.php @@ -368,7 +368,7 @@ public function createShadowTrafficHelper(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function deleteShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function deleteSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -393,7 +393,7 @@ public function deleteShareDAccounts(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -417,7 +417,7 @@ public function getShareDAccounts(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function createShareDAccount(array $fields = array(), array $params = array(), $pending = false) { + public function createSharedAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -442,7 +442,7 @@ public function createShareDAccount(array $fields = array(), array $params = arr return $pending ? $request : $request->execute(); } - public function getShareDAgencies(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAgencies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/Business.php b/src/FacebookAds/Object/Business.php index ae163584a..691231f04 100644 --- a/src/FacebookAds/Object/Business.php +++ b/src/FacebookAds/Object/Business.php @@ -1480,7 +1480,7 @@ public function getInstagramBusinessAccounts(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function deleteMAnAgeDBusinesses(array $fields = array(), array $params = array(), $pending = false) { + public function deleteManagedBusinesses(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1504,7 +1504,7 @@ public function deleteMAnAgeDBusinesses(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function createMAnAgeDBusiness(array $fields = array(), array $params = array(), $pending = false) { + public function createManagedBusiness(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1539,7 +1539,7 @@ public function createMAnAgeDBusiness(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } - public function createMAnAgeDPartnerBusinessSetup(array $fields = array(), array $params = array(), $pending = false) { + public function createManagedPartnerBusinessSetup(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1569,7 +1569,7 @@ public function createMAnAgeDPartnerBusinessSetup(array $fields = array(), array return $pending ? $request : $request->execute(); } - public function deleteMAnAgeDPartnerBusinesses(array $fields = array(), array $params = array(), $pending = false) { + public function deleteManagedPartnerBusinesses(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1594,7 +1594,7 @@ public function deleteMAnAgeDPartnerBusinesses(array $fields = array(), array $p return $pending ? $request : $request->execute(); } - public function createMAnAgeDPartnerBusiness(array $fields = array(), array $params = array(), $pending = false) { + public function createManagedPartnerBusiness(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2807,7 +2807,7 @@ public function getPendingOwnedPages(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getPendingShareDOffsiteSignalContainerBusinessObjects(array $fields = array(), array $params = array(), $pending = false) { + public function getPendingSharedOffsiteSignalContainerBusinessObjects(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -3004,7 +3004,7 @@ public function getSelfCertifiedWhatsappBusinessSubmissions(array $fields = arra return $pending ? $request : $request->execute(); } - public function createSetupMAnAgeDPartnerAdAccount(array $fields = array(), array $params = array(), $pending = false) { + public function createSetupManagedPartnerAdAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/CommerceMerchantSettings.php b/src/FacebookAds/Object/CommerceMerchantSettings.php index ff35b9c03..48a8caa30 100644 --- a/src/FacebookAds/Object/CommerceMerchantSettings.php +++ b/src/FacebookAds/Object/CommerceMerchantSettings.php @@ -146,7 +146,7 @@ public function getCommerceTransactions(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getOrderMAnAgeMEntApps(array $fields = array(), array $params = array(), $pending = false) { + public function getOrderManagementApps(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -169,7 +169,7 @@ public function getOrderMAnAgeMEntApps(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function createOrderMAnAgeMEntApp(array $fields = array(), array $params = array(), $pending = false) { + public function createOrderManagementApp(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/CustomAudience.php b/src/FacebookAds/Object/CustomAudience.php index b340c359e..cc29148f6 100644 --- a/src/FacebookAds/Object/CustomAudience.php +++ b/src/FacebookAds/Object/CustomAudience.php @@ -246,7 +246,7 @@ public function getSessions(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function getShareDAccountInfo(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAccountInfo(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/EventSourceGroup.php b/src/FacebookAds/Object/EventSourceGroup.php index 3b19c10cd..efe711a31 100644 --- a/src/FacebookAds/Object/EventSourceGroup.php +++ b/src/FacebookAds/Object/EventSourceGroup.php @@ -46,7 +46,7 @@ protected static function getReferencedEnums() { } - public function getShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -69,7 +69,7 @@ public function getShareDAccounts(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function createShareDAccount(array $fields = array(), array $params = array(), $pending = false) { + public function createSharedAccount(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/ExtendedCredit.php b/src/FacebookAds/Object/ExtendedCredit.php index fc7418959..1342093be 100644 --- a/src/FacebookAds/Object/ExtendedCredit.php +++ b/src/FacebookAds/Object/ExtendedCredit.php @@ -145,7 +145,7 @@ public function createOwningCreditAllocationConfig(array $fields = array(), arra return $pending ? $request : $request->execute(); } - public function createWhatsAppCreditSharingAnDAttach(array $fields = array(), array $params = array(), $pending = false) { + public function createWhatsAppCreditSharingAndAttach(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index af2b3e65b..0ac90d409 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -72,7 +72,7 @@ protected static function getReferencedEnums() { } - public function deleteAdMIns(array $fields = array(), array $params = array(), $pending = false) { + public function deleteAdmins(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -96,7 +96,7 @@ public function deleteAdMIns(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function createAdMIn(array $fields = array(), array $params = array(), $pending = false) { + public function createAdmin(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/LiveVideo.php b/src/FacebookAds/Object/LiveVideo.php index dcf29a1be..14295108e 100644 --- a/src/FacebookAds/Object/LiveVideo.php +++ b/src/FacebookAds/Object/LiveVideo.php @@ -115,7 +115,7 @@ public function getComments(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function getCrosspostShareDPages(array $fields = array(), array $params = array(), $pending = false) { + public function getCrosspostSharedPages(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/OfflineConversionDataSet.php b/src/FacebookAds/Object/OfflineConversionDataSet.php index 80bfe8bb1..3d437407d 100644 --- a/src/FacebookAds/Object/OfflineConversionDataSet.php +++ b/src/FacebookAds/Object/OfflineConversionDataSet.php @@ -164,7 +164,7 @@ public function getServerEventsPermittedBusiness(array $fields = array(), array return $pending ? $request : $request->execute(); } - public function getShareDAccounts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -190,7 +190,7 @@ public function getShareDAccounts(array $fields = array(), array $params = array return $pending ? $request : $request->execute(); } - public function getShareDAgencies(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedAgencies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/Page.php b/src/FacebookAds/Object/Page.php index 410589cba..956477859 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -1908,7 +1908,7 @@ public function createMediaFingerprint(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function createMessageAttachMEnt(array $fields = array(), array $params = array(), $pending = false) { + public function createMessageAttachment(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2044,7 +2044,7 @@ public function createMessengerCallSetting(array $fields = array(), array $param return $pending ? $request : $request->execute(); } - public function getMessengerLeadForMs(array $fields = array(), array $params = array(), $pending = false) { + public function getMessengerLeadForms(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2067,7 +2067,7 @@ public function getMessengerLeadForMs(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } - public function createMessengerLeadForM(array $fields = array(), array $params = array(), $pending = false) { + public function createMessengerLeadForm(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -2863,7 +2863,7 @@ public function getRtbDynamicPosts(array $fields = array(), array $params = arra return $pending ? $request : $request->execute(); } - public function getScheduleDPosts(array $fields = array(), array $params = array(), $pending = false) { + public function getScheduledPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/PagePost.php b/src/FacebookAds/Object/PagePost.php index c35339902..377286b1c 100644 --- a/src/FacebookAds/Object/PagePost.php +++ b/src/FacebookAds/Object/PagePost.php @@ -54,7 +54,7 @@ protected static function getReferencedEnums() { } - public function getAttachMEnts(array $fields = array(), array $params = array(), $pending = false) { + public function getAttachments(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -294,7 +294,7 @@ public function getReactions(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function getShareDPosts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/Post.php b/src/FacebookAds/Object/Post.php index c30d0b104..c85e4adf3 100644 --- a/src/FacebookAds/Object/Post.php +++ b/src/FacebookAds/Object/Post.php @@ -64,7 +64,7 @@ protected static function getReferencedEnums() { } - public function getAttachMEnts(array $fields = array(), array $params = array(), $pending = false) { + public function getAttachments(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -281,7 +281,7 @@ public function getReactions(array $fields = array(), array $params = array(), $ return $pending ? $request : $request->execute(); } - public function getShareDPosts(array $fields = array(), array $params = array(), $pending = false) { + public function getSharedPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( From e1a3866ff8933167c1c538c786f0d0e0769996b1 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Wed, 21 Aug 2024 09:12:05 -0700 Subject: [PATCH 25/34] Bump the Version to v20.0.1 Summary: Bump the version to release a new version with the bug fix. Reviewed By: yoongyj, liliarizona Differential Revision: D61582701 fbshipit-source-id: 1e44ecadc8b78f62ae9752c61196c904850839a3 --- src/FacebookAds/ApiConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 0db45d0b0..97fb340ba 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '20.0'; - const SDKVersion = '20.0.0'; + const SDKVersion = '20.0.1'; const TYPE_CHECKER_STRICT_MODE = false; } From 1fbdf6058d6c2d89ac747400cb84cc8924e2d562 Mon Sep 17 00:00:00 2001 From: Truong Dang Date: Thu, 22 Aug 2024 20:42:28 -0700 Subject: [PATCH 26/34] Fix typo in readme and changelog (#611) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: ## Issue [https://github.com/facebook/facebook-php-business-sdk/issues/610](https://github.com/facebook/facebook-php-business-sdk/issues/610#issue-2472108763) Fix typo errors in [README.md](README.md) and [CHANGELOG.md](CHANGELOG.md) ## Description #### README.md 1. **Missing Dollar Sign for Variable** ✅ In the [**Create Objects**](https://github.com/facebook/facebook-php-business-sdk/blob/main/README.md#create-objects) section, the `AdSetFields::CAMPAIGN_ID` is missing a `$` before `campaign_id` 2. **Code Block Syntax Highlighting** ✅ Add `shell` tag for [second code block line 335](https://github.com/facebook/facebook-php-business-sdk/blob/main/README.md#debug) #### CHANGELOG.md 1. **Missing Parenthesis for Link Attachment** ✅ In the [**Unreleased v11.0.0**](https://github.com/facebook/facebook-php-business-sdk/blob/main/CHANGELOG.md#v1100), the link attached is missing a pair of parenthesis Pull Request resolved: https://github.com/facebook/facebook-php-business-sdk/pull/611 Reviewed By: yoongyj Differential Revision: D61666440 Pulled By: stcheng fbshipit-source-id: c7e78eaa9611782d96a05850c51c73807d8de0af --- CHANGELOG.md | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cabd1d2d3..412494845 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ All notable changes to this project will be documented in this file. ### Changed -- Graph API call upgrade to [v11.0]https://developers.facebook.com/docs/graph-api/changelog/version11.0 +- Graph API call upgrade to [v11.0](https://developers.facebook.com/docs/graph-api/changelog/version11.0) ## v10.0.1 diff --git a/README.md b/README.md index c2dbade02..1b285edc6 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ $adset = $account->createAdSet( array(), array( AdSetFields::NAME => 'My Test AdSet', - AdSetFields::CAMPAIGN_ID => campaign_id, + AdSetFields::CAMPAIGN_ID => $campaign_id, AdSetFields::DAILY_BUDGET => 150, AdSetFields::START_TIME => (new \DateTime("+1 week"))->format(\DateTime::ISO8601), AdSetFields::END_TIME => (new \DateTime("+2 week"))->format(\DateTime::ISO8601), @@ -332,7 +332,7 @@ $account->read(array('id')); ``` When running this code, this cURL request will be printed to the console as: -``` +```shell curl -G \ -d 'fields=id' \ -d 'access_token=' \ From 8f7b9328969dc479f310df2f68d4fddb20b95287 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Fri, 30 Aug 2024 17:40:13 -0700 Subject: [PATCH 27/34] Update EndpointDecodeDict Summary: Update EndpointDecodeDict.txt to support new names. Make WhatsApp two words to align with the current situation. Reviewed By: liliarizona Differential Revision: D62056156 fbshipit-source-id: 6337eb9f819cc781c9b9164e0b12753da991ef99 --- src/FacebookAds/ApiConfig.php | 2 +- ...CreatorIgUser.php => ALMAdAccountInfo.php} | 12 +- ...rtingRoot.php => ALMEndAdvertiserInfo.php} | 12 +- .../{VidwallaBroadcast.php => ALMEvent.php} | 12 +- .../{ExpirablePost.php => ALMGuidance.php} | 8 +- ...cVideoAsset.php => ALMGuidanceMetrics.php} | 8 +- src/FacebookAds/Object/AdAccount.php | 76 ++- .../Object/AdAccountRecommendations.php | 7 + ...dCampaignConversionValueExpressionSpec.php | 42 ++ ...ress.php => AdCreativeDestinationSpec.php} | 8 +- src/FacebookAds/Object/AdSet.php | 34 ++ src/FacebookAds/Object/AdVideo.php | 26 -- src/FacebookAds/Object/Application.php | 23 + src/FacebookAds/Object/AutomotiveModel.php | 20 +- .../Object/BrandSafetyCampaignConfig.php | 42 ++ src/FacebookAds/Object/Business.php | 80 +++- src/FacebookAds/Object/BusinessUser.php | 2 + src/FacebookAds/Object/CommerceOrder.php | 2 +- ...{AdoptablePet.php => ContentBlockList.php} | 40 +- .../{InstantArticleCTA.php => Dataset.php} | 8 +- src/FacebookAds/Object/Destination.php | 20 +- .../Object/Fields/ALMAdAccountInfoFields.php | 46 ++ ...lds.php => ALMEndAdvertiserInfoFields.php} | 18 +- .../Object/Fields/ALMEventFields.php | 54 +++ .../Object/Fields/ALMGuidanceFields.php | 38 ++ .../Fields/ALMGuidanceMetricsFields.php | 56 +++ .../Fields/AdAccountRecommendationsFields.php | 2 + .../Fields/AdAccountUserSettingsFields.php | 2 + .../Object/Fields/AdAssetFeedSpecFields.php | 2 + ...gnConversionValueExpressionSpecFields.php} | 16 +- .../AdCreativeBrandedContentAdsFields.php | 4 + ...hp => AdCreativeDestinationSpecFields.php} | 6 +- .../AdCreativeFeatureCustomizationsFields.php | 2 + .../Fields/AdCreativeFeaturesSpecFields.php | 6 + ...reativeLinkDataCallToActionValueFields.php | 2 + .../Fields/AdCreativeLinkDataFields.php | 2 + ...AdCreativeLinkDataImageLayerSpecFields.php | 2 + ...veMarketingMessageStructuredSpecFields.php | 2 + .../AdCreativeObjectStorySpecFields.php | 2 + .../Fields/AdCreativeSiteLinksSpecFields.php | 6 + .../Fields/AdCreativeSourcingSpecFields.php | 2 + .../Object/Fields/AdPromotedObjectFields.php | 2 + src/FacebookAds/Object/Fields/AdSetFields.php | 2 + .../AdjacentContentDeliveryReportFields.php | 4 + .../Object/Fields/AdoptablePetFields.php | 88 ---- .../Object/Fields/AdsInsightsFields.php | 10 +- .../Object/Fields/AdsUserSettingsFields.php | 8 +- ...hp => BrandSafetyCampaignConfigFields.php} | 8 +- .../Fields/BusinessRoleRequestFields.php | 2 + .../Object/Fields/BusinessUserFields.php | 2 + .../Fields/CTWAWhatsAppNumbersInfoFields.php | 2 + .../CTXPartnerAppWelcomeMessageFlowFields.php | 4 + .../Object/Fields/CampaignFields.php | 2 + .../CatalogSmartPixelSettingsFields.php | 6 - .../Object/Fields/CommerceOrderFields.php | 2 + .../CommerceOrderTransactionDetailFields.php | 10 + ...eFields.php => ContentBlockListFields.php} | 10 +- ...aBroadcastFields.php => DatasetFields.php} | 6 +- .../Object/Fields/ExpirablePostFields.php | 70 --- .../FundingSourceDetailsCouponFields.php | 6 + .../Object/Fields/GenericVideoAssetFields.php | 122 ----- .../Fields/IGMediaForIGOnlyAPIFields.php | 4 + ...IGRefreshAccessTokenForIGOnlyAPIFields.php | 2 + .../Object/Fields/IGUpcomingEventFields.php | 4 + ...ields.php => IGUserExportForCAMFields.php} | 2 +- .../Fields/IGUserForIGOnlyAPIFields.php | 14 + .../LeadGenFormPreviewDetailsFields.php | 8 + .../Object/Fields/LocationBasedItemFields.php | 56 --- .../Fields/MessageDeliveryEstimateFields.php | 48 ++ .../Object/Fields/MessagingAppsInfoFields.php | 2 + .../Object/Fields/OverrideDetailsFields.php | 36 ++ ...=> PageCTXMessagingFeatureLimitFields.php} | 18 +- ...hp => ProductDeliveryPreferenceFields.php} | 12 +- .../Object/Fields/ProductItemFields.php | 18 +- .../Object/Fields/ResellerGuidanceFields.php | 6 - ...IGUserPartnershipAdsMediaErrorsFields.php} | 16 +- .../Object/Fields/StoriesFields.php | 2 + ...rdPartyPartnerViewabilityRequestFields.php | 4 +- .../Object/Fields/VideoAssetFields.php | 122 ----- src/FacebookAds/Object/Flight.php | 20 +- src/FacebookAds/Object/Group.php | 2 - src/FacebookAds/Object/HomeListing.php | 20 +- src/FacebookAds/Object/Hotel.php | 28 +- src/FacebookAds/Object/IGMedia.php | 29 +- .../Object/IGMediaForIGOnlyAPI.php | 71 +++ src/FacebookAds/Object/IGUpcomingEvent.php | 8 + src/FacebookAds/Object/IGUser.php | 14 +- ...{VideoAsset.php => IGUserExportForCAM.php} | 41 +- src/FacebookAds/Object/IGUserForIGOnlyAPI.php | 431 ++++++++++++++++++ src/FacebookAds/Object/InstagramUser.php | 6 + .../Object/LocalServiceBusiness.php | 27 ++ src/FacebookAds/Object/LocationBasedItem.php | 92 ---- src/FacebookAds/Object/MediaTitle.php | 20 +- ...Status.php => MessageDeliveryEstimate.php} | 14 +- src/FacebookAds/Object/OfflineProductItem.php | 27 ++ src/FacebookAds/Object/OverrideDetails.php | 44 ++ src/FacebookAds/Object/Page.php | 43 +- .../Object/PageCTXMessagingFeatureLimit.php | 42 ++ .../Object/PageVideosYouCanUse.php | 42 -- src/FacebookAds/Object/ProductCatalog.php | 8 +- .../Object/ProductCatalogExampleFeed.php | 42 -- .../Object/ProductDeliveryPreference.php | 65 +++ .../ProductFeedMissingFeedItemReplacement.php | 42 -- src/FacebookAds/Object/ProductGroup.php | 5 + src/FacebookAds/Object/ProductItem.php | 33 +- ...ShadowIGUserPartnershipAdsMediaErrors.php} | 8 +- src/FacebookAds/Object/Stories.php | 51 ++- .../ThirdPartyPartnerViewabilityRequest.php | 4 + src/FacebookAds/Object/TransactableItem.php | 27 ++ src/FacebookAds/Object/User.php | 3 +- ...ccountAdVolumeRecommendationTypeValues.php | 57 +++ ...ntBrandSafetyContentFilterLevelsValues.php | 37 ++ ...TargetingUnifiedWhitelistedTypesValues.php | 2 + ...AdAssetFeedSpecCallToActionTypesValues.php | 1 + .../AdCreativeCallToActionTypeValues.php | 1 + ...CreativeLinkDataCallToActionTypeValues.php | 1 + .../AdCreativeLinkDataMomentTypeValues.php | 1 - ...AdRuleExecutionSpecExecutionTypeValues.php | 1 + .../Values/AdSetDestinationTypeValues.php | 2 + .../Values/AdVideoContainerTypeValues.php | 2 + .../AdoptablePetImageFetchStatusValues.php | 31 -- .../Values/AdsInsightsBreakdownsValues.php | 1 + .../Values/AdsPixelPermittedTasksValues.php | 1 + ... => BusinessUserInvitedUserTypeValues.php} | 8 +- .../CatalogItemAppealStatusStatusValues.php | 30 -- ...ogItemRejectionReasonsCapabilityValues.php | 1 + ...pcomingEventNotificationSubtypesValues.php | 38 ++ ...mingEventNotificationTargetTimeValues.php} | 8 +- .../Values/InsightsResultMetricValues.php | 197 +------- .../InstagramInsightsResultMetricValues.php | 5 + ...DeliveryEstimateOptimizationGoalValues.php | 53 +++ ...ssageDeliveryEstimatePacingTypeValues.php} | 16 +- .../Values/OverrideDetailsTypeValues.php | 28 ++ .../Object/Values/PageMessagingTypeValues.php | 1 + .../Values/PageSubscribedFieldsValues.php | 2 + .../Values/ProductItemErrorTypeValues.php | 3 + ...yPartnerViewabilityRequestMetricValues.php | 28 ++ ...artnerViewabilityRequestPlatformValues.php | 28 ++ ...tsAppBusinessAccountProviderNameValues.php | 29 ++ ...cationSubmissionRejectionReasonsValues.php | 2 + src/FacebookAds/Object/Vehicle.php | 20 +- src/FacebookAds/Object/VehicleOffer.php | 20 +- .../Object/WhatsAppBusinessAccount.php | 279 ++++++++++++ 143 files changed, 2463 insertions(+), 1274 deletions(-) rename src/FacebookAds/Object/{BCPCreatorIgUser.php => ALMAdAccountInfo.php} (82%) rename src/FacebookAds/Object/{UserSetReportingRoot.php => ALMEndAdvertiserInfo.php} (80%) rename src/FacebookAds/Object/{VidwallaBroadcast.php => ALMEvent.php} (81%) rename src/FacebookAds/Object/{ExpirablePost.php => ALMGuidance.php} (81%) rename src/FacebookAds/Object/{GenericVideoAsset.php => ALMGuidanceMetrics.php} (79%) create mode 100644 src/FacebookAds/Object/AdCampaignConversionValueExpressionSpec.php rename src/FacebookAds/Object/{CPASSetupCatalogProgress.php => AdCreativeDestinationSpec.php} (77%) create mode 100644 src/FacebookAds/Object/BrandSafetyCampaignConfig.php rename src/FacebookAds/Object/{AdoptablePet.php => ContentBlockList.php} (64%) rename src/FacebookAds/Object/{InstantArticleCTA.php => Dataset.php} (79%) create mode 100644 src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php rename src/FacebookAds/Object/Fields/{InstantArticleCTAFields.php => ALMEndAdvertiserInfoFields.php} (61%) create mode 100644 src/FacebookAds/Object/Fields/ALMEventFields.php create mode 100644 src/FacebookAds/Object/Fields/ALMGuidanceFields.php create mode 100644 src/FacebookAds/Object/Fields/ALMGuidanceMetricsFields.php rename src/FacebookAds/Object/Fields/{CatalogItemAppealStatusFields.php => AdCampaignConversionValueExpressionSpecFields.php} (64%) rename src/FacebookAds/Object/Fields/{ProductCatalogExampleFeedFields.php => AdCreativeDestinationSpecFields.php} (80%) delete mode 100644 src/FacebookAds/Object/Fields/AdoptablePetFields.php rename src/FacebookAds/Object/Fields/{ProductCatalogMicrodataStatsPixelInfoFields.php => BrandSafetyCampaignConfigFields.php} (72%) rename src/FacebookAds/Object/Fields/{PageVideosYouCanUseFields.php => ContentBlockListFields.php} (78%) rename src/FacebookAds/Object/Fields/{VidwallaBroadcastFields.php => DatasetFields.php} (83%) delete mode 100644 src/FacebookAds/Object/Fields/ExpirablePostFields.php delete mode 100644 src/FacebookAds/Object/Fields/GenericVideoAssetFields.php rename src/FacebookAds/Object/Fields/{BCPCreatorIgUserFields.php => IGUserExportForCAMFields.php} (95%) delete mode 100644 src/FacebookAds/Object/Fields/LocationBasedItemFields.php create mode 100644 src/FacebookAds/Object/Fields/MessageDeliveryEstimateFields.php create mode 100644 src/FacebookAds/Object/Fields/OverrideDetailsFields.php rename src/FacebookAds/Object/Fields/{CPASSetupCatalogProgressFields.php => PageCTXMessagingFeatureLimitFields.php} (58%) rename src/FacebookAds/Object/Fields/{UserSetReportingRootFields.php => ProductDeliveryPreferenceFields.php} (65%) rename src/FacebookAds/Object/Fields/{ProductFeedMissingFeedItemReplacementFields.php => ShadowIGUserPartnershipAdsMediaErrorsFields.php} (65%) delete mode 100644 src/FacebookAds/Object/Fields/VideoAssetFields.php rename src/FacebookAds/Object/{VideoAsset.php => IGUserExportForCAM.php} (52%) delete mode 100644 src/FacebookAds/Object/LocationBasedItem.php rename src/FacebookAds/Object/{CatalogItemAppealStatus.php => MessageDeliveryEstimate.php} (57%) create mode 100644 src/FacebookAds/Object/OverrideDetails.php create mode 100644 src/FacebookAds/Object/PageCTXMessagingFeatureLimit.php delete mode 100644 src/FacebookAds/Object/PageVideosYouCanUse.php delete mode 100644 src/FacebookAds/Object/ProductCatalogExampleFeed.php create mode 100644 src/FacebookAds/Object/ProductDeliveryPreference.php delete mode 100644 src/FacebookAds/Object/ProductFeedMissingFeedItemReplacement.php rename src/FacebookAds/Object/{ProductCatalogMicrodataStatsPixelInfo.php => ShadowIGUserPartnershipAdsMediaErrors.php} (75%) create mode 100644 src/FacebookAds/Object/Values/AdAccountBrandSafetyContentFilterLevelsValues.php delete mode 100644 src/FacebookAds/Object/Values/AdoptablePetImageFetchStatusValues.php rename src/FacebookAds/Object/Values/{AdoptablePetVisibilityValues.php => BusinessUserInvitedUserTypeValues.php} (74%) delete mode 100644 src/FacebookAds/Object/Values/CatalogItemAppealStatusStatusValues.php create mode 100644 src/FacebookAds/Object/Values/IGUpcomingEventNotificationSubtypesValues.php rename src/FacebookAds/Object/Values/{LocationBasedItemVisibilityValues.php => IGUpcomingEventNotificationTargetTimeValues.php} (70%) create mode 100644 src/FacebookAds/Object/Values/MessageDeliveryEstimateOptimizationGoalValues.php rename src/FacebookAds/Object/Values/{LocationBasedItemImageFetchStatusValues.php => MessageDeliveryEstimatePacingTypeValues.php} (59%) create mode 100644 src/FacebookAds/Object/Values/OverrideDetailsTypeValues.php create mode 100644 src/FacebookAds/Object/Values/ThirdPartyPartnerViewabilityRequestMetricValues.php create mode 100644 src/FacebookAds/Object/Values/ThirdPartyPartnerViewabilityRequestPlatformValues.php create mode 100644 src/FacebookAds/Object/Values/WhatsAppBusinessAccountProviderNameValues.php diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 97fb340ba..8cfd96b15 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '20.0'; - const SDKVersion = '20.0.1'; + const SDKVersion = '20.0.2'; const TYPE_CHECKER_STRICT_MODE = false; } diff --git a/src/FacebookAds/Object/BCPCreatorIgUser.php b/src/FacebookAds/Object/ALMAdAccountInfo.php similarity index 82% rename from src/FacebookAds/Object/BCPCreatorIgUser.php rename to src/FacebookAds/Object/ALMAdAccountInfo.php index 7fd9d3698..2b18be520 100644 --- a/src/FacebookAds/Object/BCPCreatorIgUser.php +++ b/src/FacebookAds/Object/ALMAdAccountInfo.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\BCPCreatorIgUserFields; +use FacebookAds\Object\Fields\ALMAdAccountInfoFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class BCPCreatorIgUser extends AbstractCrudObject { +class ALMAdAccountInfo extends AbstractCrudObject { /** - * @return BCPCreatorIgUserFields + * @return ALMAdAccountInfoFields */ public static function getFieldsEnum() { - return BCPCreatorIgUserFields::getInstance(); + return ALMAdAccountInfoFields::getInstance(); } protected static function getReferencedEnums() { @@ -52,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new BCPCreatorIgUser(), + new ALMAdAccountInfo(), 'NODE', - BCPCreatorIgUser::getFieldsEnum()->getValues(), + ALMAdAccountInfo::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/UserSetReportingRoot.php b/src/FacebookAds/Object/ALMEndAdvertiserInfo.php similarity index 80% rename from src/FacebookAds/Object/UserSetReportingRoot.php rename to src/FacebookAds/Object/ALMEndAdvertiserInfo.php index b89d2edf4..ffdaff41b 100644 --- a/src/FacebookAds/Object/UserSetReportingRoot.php +++ b/src/FacebookAds/Object/ALMEndAdvertiserInfo.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\UserSetReportingRootFields; +use FacebookAds\Object\Fields\ALMEndAdvertiserInfoFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class UserSetReportingRoot extends AbstractCrudObject { +class ALMEndAdvertiserInfo extends AbstractCrudObject { /** - * @return UserSetReportingRootFields + * @return ALMEndAdvertiserInfoFields */ public static function getFieldsEnum() { - return UserSetReportingRootFields::getInstance(); + return ALMEndAdvertiserInfoFields::getInstance(); } protected static function getReferencedEnums() { @@ -52,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new UserSetReportingRoot(), + new ALMEndAdvertiserInfo(), 'NODE', - UserSetReportingRoot::getFieldsEnum()->getValues(), + ALMEndAdvertiserInfo::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/VidwallaBroadcast.php b/src/FacebookAds/Object/ALMEvent.php similarity index 81% rename from src/FacebookAds/Object/VidwallaBroadcast.php rename to src/FacebookAds/Object/ALMEvent.php index 4669e2ba0..a1887840e 100644 --- a/src/FacebookAds/Object/VidwallaBroadcast.php +++ b/src/FacebookAds/Object/ALMEvent.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\VidwallaBroadcastFields; +use FacebookAds\Object\Fields\ALMEventFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class VidwallaBroadcast extends AbstractCrudObject { +class ALMEvent extends AbstractCrudObject { /** - * @return VidwallaBroadcastFields + * @return ALMEventFields */ public static function getFieldsEnum() { - return VidwallaBroadcastFields::getInstance(); + return ALMEventFields::getInstance(); } protected static function getReferencedEnums() { @@ -52,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new VidwallaBroadcast(), + new ALMEvent(), 'NODE', - VidwallaBroadcast::getFieldsEnum()->getValues(), + ALMEvent::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/ExpirablePost.php b/src/FacebookAds/Object/ALMGuidance.php similarity index 81% rename from src/FacebookAds/Object/ExpirablePost.php rename to src/FacebookAds/Object/ALMGuidance.php index 502cc2d51..7e36f53e4 100644 --- a/src/FacebookAds/Object/ExpirablePost.php +++ b/src/FacebookAds/Object/ALMGuidance.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\ExpirablePostFields; +use FacebookAds\Object\Fields\ALMGuidanceFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class ExpirablePost extends AbstractCrudObject { +class ALMGuidance extends AbstractObject { /** - * @return ExpirablePostFields + * @return ALMGuidanceFields */ public static function getFieldsEnum() { - return ExpirablePostFields::getInstance(); + return ALMGuidanceFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/GenericVideoAsset.php b/src/FacebookAds/Object/ALMGuidanceMetrics.php similarity index 79% rename from src/FacebookAds/Object/GenericVideoAsset.php rename to src/FacebookAds/Object/ALMGuidanceMetrics.php index 125ef1460..15c86fe9f 100644 --- a/src/FacebookAds/Object/GenericVideoAsset.php +++ b/src/FacebookAds/Object/ALMGuidanceMetrics.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\GenericVideoAssetFields; +use FacebookAds\Object\Fields\ALMGuidanceMetricsFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class GenericVideoAsset extends AbstractCrudObject { +class ALMGuidanceMetrics extends AbstractObject { /** - * @return GenericVideoAssetFields + * @return ALMGuidanceMetricsFields */ public static function getFieldsEnum() { - return GenericVideoAssetFields::getInstance(); + return ALMGuidanceMetricsFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/AdAccount.php b/src/FacebookAds/Object/AdAccount.php index 4872ec915..301ab166c 100644 --- a/src/FacebookAds/Object/AdAccount.php +++ b/src/FacebookAds/Object/AdAccount.php @@ -18,6 +18,7 @@ use FacebookAds\Object\Values\AdAccountAdRulesHistoryActionValues; use FacebookAds\Object\Values\AdAccountAdRulesHistoryEvaluationTypeValues; use FacebookAds\Object\Values\AdAccountAdVolumeRecommendationTypeValues; +use FacebookAds\Object\Values\AdAccountBrandSafetyContentFilterLevelsValues; use FacebookAds\Object\Values\AdAccountClaimObjectiveValues; use FacebookAds\Object\Values\AdAccountContentTypeValues; use FacebookAds\Object\Values\AdAccountCurrencyValues; @@ -135,6 +136,7 @@ protected static function getReferencedEnums() { $ref_enums['Currency'] = AdAccountCurrencyValues::getInstance()->getValues(); $ref_enums['PermittedTasks'] = AdAccountPermittedTasksValues::getInstance()->getValues(); $ref_enums['Tasks'] = AdAccountTasksValues::getInstance()->getValues(); + $ref_enums['BrandSafetyContentFilterLevels'] = AdAccountBrandSafetyContentFilterLevelsValues::getInstance()->getValues(); $ref_enums['ClaimObjective'] = AdAccountClaimObjectiveValues::getInstance()->getValues(); $ref_enums['ContentType'] = AdAccountContentTypeValues::getInstance()->getValues(); $ref_enums['Subtype'] = AdAccountSubtypeValues::getInstance()->getValues(); @@ -1220,7 +1222,6 @@ public function createAdVideo(array $fields = array(), array $params = array(), $this->assureId(); $param_types = array( - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', @@ -1661,6 +1662,32 @@ public function createBlockListDraft(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } + public function createBrandSafetyContentFilterLevel(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'brand_safety_content_filter_levels' => 'list', + 'business_id' => 'string', + ); + $enums = array( + 'brand_safety_content_filter_levels_enum' => AdAccountBrandSafetyContentFilterLevelsValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/brand_safety_content_filter_levels', + new AdAccount(), + 'EDGE', + AdAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getBroadTargetingCategories(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2817,6 +2844,53 @@ public function createReachFrequencyPrediction(array $fields = array(), array $p return $pending ? $request : $request->execute(); } + public function getRecommendations(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/recommendations', + new AdAccountRecommendations(), + 'EDGE', + AdAccountRecommendations::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createRecommendation(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'recommendation_signature' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/recommendations', + new AdAccountRecommendations(), + 'EDGE', + AdAccountRecommendations::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSavedAudiences(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AdAccountRecommendations.php b/src/FacebookAds/Object/AdAccountRecommendations.php index fd6f76302..9bf3e9f14 100644 --- a/src/FacebookAds/Object/AdAccountRecommendations.php +++ b/src/FacebookAds/Object/AdAccountRecommendations.php @@ -26,6 +26,13 @@ class AdAccountRecommendations extends AbstractObject { + /** + * @deprecated getEndpoint function is deprecated + */ + protected function getEndpoint() { + return 'recommendations'; + } + /** * @return AdAccountRecommendationsFields */ diff --git a/src/FacebookAds/Object/AdCampaignConversionValueExpressionSpec.php b/src/FacebookAds/Object/AdCampaignConversionValueExpressionSpec.php new file mode 100644 index 000000000..3677a4952 --- /dev/null +++ b/src/FacebookAds/Object/AdCampaignConversionValueExpressionSpec.php @@ -0,0 +1,42 @@ +execute(); } + public function getMessageDeliveryEstimate(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'bid_amount' => 'unsigned int', + 'lifetime_budget' => 'unsigned int', + 'lifetime_in_days' => 'unsigned int', + 'optimization_goal' => 'optimization_goal_enum', + 'pacing_type' => 'pacing_type_enum', + 'promoted_object' => 'Object', + 'targeting_spec' => 'Targeting', + ); + $enums = array( + 'optimization_goal_enum' => MessageDeliveryEstimateOptimizationGoalValues::getInstance()->getValues(), + 'pacing_type_enum' => MessageDeliveryEstimatePacingTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/message_delivery_estimate', + new MessageDeliveryEstimate(), + 'EDGE', + MessageDeliveryEstimate::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getTargetingSentenceLines(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AdVideo.php b/src/FacebookAds/Object/AdVideo.php index 46df1fb62..e1280f3c1 100644 --- a/src/FacebookAds/Object/AdVideo.php +++ b/src/FacebookAds/Object/AdVideo.php @@ -458,32 +458,6 @@ public function getTags(array $fields = array(), array $params = array(), $pendi return $pending ? $request : $request->execute(); } - public function createTag(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'tag_uid' => 'int', - 'uid' => 'int', - 'vid' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_POST, - '/tags', - new AdVideo(), - 'EDGE', - AdVideo::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getThumbnails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/Application.php b/src/FacebookAds/Object/Application.php index 9612cc8b4..6dae59d2c 100644 --- a/src/FacebookAds/Object/Application.php +++ b/src/FacebookAds/Object/Application.php @@ -1489,6 +1489,29 @@ public function deleteSubscriptions(array $fields = array(), array $params = arr return $pending ? $request : $request->execute(); } + public function getSubscriptions(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/subscriptions', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createSubscription(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/AutomotiveModel.php b/src/FacebookAds/Object/AutomotiveModel.php index a344703f4..14169e6d2 100644 --- a/src/FacebookAds/Object/AutomotiveModel.php +++ b/src/FacebookAds/Object/AutomotiveModel.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\AutomotiveModelFields; use FacebookAds\Object\Values\AutomotiveModelImageFetchStatusValues; use FacebookAds\Object\Values\AutomotiveModelVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -43,7 +44,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +56,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,22 +67,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/BrandSafetyCampaignConfig.php b/src/FacebookAds/Object/BrandSafetyCampaignConfig.php new file mode 100644 index 000000000..01f064e2b --- /dev/null +++ b/src/FacebookAds/Object/BrandSafetyCampaignConfig.php @@ -0,0 +1,42 @@ +execute(); } + public function getAdAccountInfos(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_account_id' => 'string', + 'parent_advertiser_id' => 'string', + 'user_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/ad_account_infos', + new ALMAdAccountInfo(), + 'EDGE', + ALMAdAccountInfo::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteAdAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -135,6 +162,30 @@ public function deleteAdAccounts(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } + public function createAdReviewRequest(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ad_account_ids' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/ad_review_requests', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getAdStudies(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -569,6 +620,30 @@ public function createBlockListDraft(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } + public function createBmReviewRequest(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'business_manager_ids' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/bm_review_requests', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getBusinessAssetGroups(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -651,9 +726,11 @@ public function createBusinessUser(array $fields = array(), array $params = arra $param_types = array( 'email' => 'string', + 'invited_user_type' => 'list', 'role' => 'role_enum', ); $enums = array( + 'invited_user_type_enum' => BusinessUserInvitedUserTypeValues::getInstance()->getValues(), 'role_enum' => BusinessUserRoleValues::getInstance()->getValues(), ); @@ -2980,7 +3057,7 @@ public function getResellerGuidances(array $fields = array(), array $params = ar return $pending ? $request : $request->execute(); } - public function getSelfCertifiedWhatsappBusinessSubmissions(array $fields = array(), array $params = array(), $pending = false) { + public function getSelfCertifiedWhatsAppBusinessSubmissions(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -3190,7 +3267,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $param_types = array( 'ad_placements_validation_only' => 'bool', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', diff --git a/src/FacebookAds/Object/BusinessUser.php b/src/FacebookAds/Object/BusinessUser.php index 6e96765d2..8485492a9 100644 --- a/src/FacebookAds/Object/BusinessUser.php +++ b/src/FacebookAds/Object/BusinessUser.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\BusinessUserFields; +use FacebookAds\Object\Values\BusinessUserInvitedUserTypeValues; use FacebookAds\Object\Values\BusinessUserRoleValues; /** @@ -43,6 +44,7 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['InvitedUserType'] = BusinessUserInvitedUserTypeValues::getInstance()->getValues(); $ref_enums['Role'] = BusinessUserRoleValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/CommerceOrder.php b/src/FacebookAds/Object/CommerceOrder.php index 05fe34c38..8105a3196 100644 --- a/src/FacebookAds/Object/CommerceOrder.php +++ b/src/FacebookAds/Object/CommerceOrder.php @@ -93,7 +93,7 @@ public function getCancellations(array $fields = array(), array $params = array( return $pending ? $request : $request->execute(); } - public function createCanCellATIOn(array $fields = array(), array $params = array(), $pending = false) { + public function createCancellation(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( diff --git a/src/FacebookAds/Object/AdoptablePet.php b/src/FacebookAds/Object/ContentBlockList.php similarity index 64% rename from src/FacebookAds/Object/AdoptablePet.php rename to src/FacebookAds/Object/ContentBlockList.php index ec76ba039..b175fc9eb 100644 --- a/src/FacebookAds/Object/AdoptablePet.php +++ b/src/FacebookAds/Object/ContentBlockList.php @@ -13,9 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\AdoptablePetFields; -use FacebookAds\Object\Values\AdoptablePetImageFetchStatusValues; -use FacebookAds\Object\Values\AdoptablePetVisibilityValues; +use FacebookAds\Object\Fields\ContentBlockListFields; /** * This class is auto-generated. @@ -26,24 +24,22 @@ * */ -class AdoptablePet extends AbstractCrudObject { +class ContentBlockList extends AbstractCrudObject { /** - * @return AdoptablePetFields + * @return ContentBlockListFields */ public static function getFieldsEnum() { - return AdoptablePetFields::getInstance(); + return ContentBlockListFields::getInstance(); } protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['ImageFetchStatus'] = AdoptablePetImageFetchStatusValues::getInstance()->getValues(); - $ref_enums['Visibility'] = AdoptablePetVisibilityValues::getInstance()->getValues(); return $ref_enums; } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getAppliedAdAccounts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +51,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/applied_ad_accounts', + new AdAccount(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + AdAccount::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,7 +62,7 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getFacebookContent(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -78,10 +74,10 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/facebook_content', + new AbstractCrudObject(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + array(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -89,7 +85,7 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function getVideosMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getInstagramContent(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -101,10 +97,10 @@ public function getVideosMetadata(array $fields = array(), array $params = array $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/videos_metadata', - new DynamicVideoMetadata(), + '/instagram_content', + new IGMedia(), 'EDGE', - DynamicVideoMetadata::getFieldsEnum()->getValues(), + IGMedia::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -125,9 +121,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new AdoptablePet(), + new ContentBlockList(), 'NODE', - AdoptablePet::getFieldsEnum()->getValues(), + ContentBlockList::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/InstantArticleCTA.php b/src/FacebookAds/Object/Dataset.php similarity index 79% rename from src/FacebookAds/Object/InstantArticleCTA.php rename to src/FacebookAds/Object/Dataset.php index 862b3c115..c5afd793e 100644 --- a/src/FacebookAds/Object/InstantArticleCTA.php +++ b/src/FacebookAds/Object/Dataset.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\InstantArticleCTAFields; +use FacebookAds\Object\Fields\DatasetFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class InstantArticleCTA extends AbstractCrudObject { +class Dataset extends AbstractCrudObject { /** - * @return InstantArticleCTAFields + * @return DatasetFields */ public static function getFieldsEnum() { - return InstantArticleCTAFields::getInstance(); + return DatasetFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/Destination.php b/src/FacebookAds/Object/Destination.php index d9a75e614..5f778edfd 100644 --- a/src/FacebookAds/Object/Destination.php +++ b/src/FacebookAds/Object/Destination.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\DestinationFields; use FacebookAds\Object\Values\DestinationImageFetchStatusValues; use FacebookAds\Object\Values\DestinationVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -43,7 +44,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +56,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,22 +67,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php b/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php new file mode 100644 index 000000000..7788c6e40 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ALMAdAccountInfoFields.php @@ -0,0 +1,46 @@ + 'string', + 'id' => 'string', + 'managed_by' => 'string', + 'parent_advertiser_id' => 'string', + 'sub_vertical' => 'string', + 'tag' => 'list', + 'user_ids' => 'list', + 'vertical' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/InstantArticleCTAFields.php b/src/FacebookAds/Object/Fields/ALMEndAdvertiserInfoFields.php similarity index 61% rename from src/FacebookAds/Object/Fields/InstantArticleCTAFields.php rename to src/FacebookAds/Object/Fields/ALMEndAdvertiserInfoFields.php index ceb2068a1..4c7ff4136 100644 --- a/src/FacebookAds/Object/Fields/InstantArticleCTAFields.php +++ b/src/FacebookAds/Object/Fields/ALMEndAdvertiserInfoFields.php @@ -20,21 +20,21 @@ * */ -class InstantArticleCTAFields extends AbstractEnum { +class ALMEndAdvertiserInfoFields extends AbstractEnum { + const ESTIMATED_AD_BUDGET = 'estimated_ad_budget'; const ID = 'id'; - const IS_ENABLED = 'is_enabled'; - const PUBLISHER_DEFINED_VALUE = 'publisher_defined_value'; - const TYPE = 'type'; - const UPDATE_TIME = 'update_time'; + const PARENT_ADVERTISER_ID = 'parent_advertiser_id'; + const PARENT_ADVERTISER_NAME = 'parent_advertiser_name'; + const TAG = 'tag'; public function getFieldTypes() { return array( + 'estimated_ad_budget' => 'int', 'id' => 'string', - 'is_enabled' => 'bool', - 'publisher_defined_value' => 'float', - 'type' => 'string', - 'update_time' => 'datetime', + 'parent_advertiser_id' => 'string', + 'parent_advertiser_name' => 'string', + 'tag' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/ALMEventFields.php b/src/FacebookAds/Object/Fields/ALMEventFields.php new file mode 100644 index 000000000..55d35d5c8 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ALMEventFields.php @@ -0,0 +1,54 @@ + 'list', + 'campaign_ids' => 'list', + 'channel' => 'string', + 'event' => 'string', + 'event_time' => 'datetime', + 'guidance' => 'string', + 'guidance_detail' => 'string', + 'id' => 'string', + 'parent_advertiser_ids' => 'list', + 'reseller_business_id' => 'string', + 'sub_channel' => 'string', + 'user_id' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ALMGuidanceFields.php b/src/FacebookAds/Object/Fields/ALMGuidanceFields.php new file mode 100644 index 000000000..323e5f588 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ALMGuidanceFields.php @@ -0,0 +1,38 @@ + 'string', + 'guidances' => 'list', + 'parent_advertiser_id' => 'string', + 'parent_advertiser_name' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/ALMGuidanceMetricsFields.php b/src/FacebookAds/Object/Fields/ALMGuidanceMetricsFields.php new file mode 100644 index 000000000..d8b424db2 --- /dev/null +++ b/src/FacebookAds/Object/Fields/ALMGuidanceMetricsFields.php @@ -0,0 +1,56 @@ + 'string', + 'adopted_objects' => 'list', + 'guidance_name' => 'string', + 'guidance_type' => 'string', + 'l28_adoption' => 'int', + 'l28_available' => 'int', + 'l28_click' => 'int', + 'l28_conversion' => 'int', + 'l28_impression' => 'int', + 'l28_pitch' => 'int', + 'last_pitch_ds' => 'string', + 'parent_advertiser_id' => 'string', + 'report_ds' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php b/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php index a9c2b8ecc..cea869f5b 100644 --- a/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php @@ -23,10 +23,12 @@ class AdAccountRecommendationsFields extends AbstractEnum { const RECOMMENDATIONS = 'recommendations'; + const RECOMMENDATION_SIGNATURE = 'recommendation_signature'; public function getFieldTypes() { return array( 'recommendations' => 'list', + 'recommendation_signature' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php b/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php index 1ecfab531..f383ef082 100644 --- a/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php +++ b/src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php @@ -39,6 +39,7 @@ class AdAccountUserSettingsFields extends AbstractEnum { const EXPORT_DELETED_ITEMS_WITH_DELIVERY = 'export_deleted_items_with_delivery'; const EXPORT_SUMMARY_ROW = 'export_summary_row'; const HAS_SEEN_GROUPS_COLUMN_FLEXING_EXPERIENCE = 'has_seen_groups_column_flexing_experience'; + const HAS_SEEN_INSTAGRAM_COLUMN_FLEXING_EXPERIENCE = 'has_seen_instagram_column_flexing_experience'; const HAS_SEEN_LEADS_COLUMN_FLEXING_EXPERIENCE = 'has_seen_leads_column_flexing_experience'; const HAS_SEEN_SHOPS_ADS_METRICS_ONBOARDING_TOUR = 'has_seen_shops_ads_metrics_onboarding_tour'; const HAS_SEEN_SHOPS_COLUMN_FLEXING_EXPERIENCE = 'has_seen_shops_column_flexing_experience'; @@ -96,6 +97,7 @@ public function getFieldTypes() { 'export_deleted_items_with_delivery' => 'bool', 'export_summary_row' => 'bool', 'has_seen_groups_column_flexing_experience' => 'bool', + 'has_seen_instagram_column_flexing_experience' => 'bool', 'has_seen_leads_column_flexing_experience' => 'bool', 'has_seen_shops_ads_metrics_onboarding_tour' => 'bool', 'has_seen_shops_column_flexing_experience' => 'bool', diff --git a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php index b40cd14a1..6d28a0fdc 100644 --- a/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php @@ -28,6 +28,7 @@ class AdAssetFeedSpecFields extends AbstractEnum { const ASSET_CUSTOMIZATION_RULES = 'asset_customization_rules'; const AUTOTRANSLATE = 'autotranslate'; const BODIES = 'bodies'; + const CALL_ADS_CONFIGURATION = 'call_ads_configuration'; const CALL_TO_ACTION_TYPES = 'call_to_action_types'; const CALL_TO_ACTIONS = 'call_to_actions'; const CAPTIONS = 'captions'; @@ -55,6 +56,7 @@ public function getFieldTypes() { 'asset_customization_rules' => 'list', 'autotranslate' => 'list', 'bodies' => 'list', + 'call_ads_configuration' => 'Object', 'call_to_action_types' => 'list', 'call_to_actions' => 'list', 'captions' => 'list', diff --git a/src/FacebookAds/Object/Fields/CatalogItemAppealStatusFields.php b/src/FacebookAds/Object/Fields/AdCampaignConversionValueExpressionSpecFields.php similarity index 64% rename from src/FacebookAds/Object/Fields/CatalogItemAppealStatusFields.php rename to src/FacebookAds/Object/Fields/AdCampaignConversionValueExpressionSpecFields.php index d1cab7873..0c1e701ab 100644 --- a/src/FacebookAds/Object/Fields/CatalogItemAppealStatusFields.php +++ b/src/FacebookAds/Object/Fields/AdCampaignConversionValueExpressionSpecFields.php @@ -20,19 +20,17 @@ * */ -class CatalogItemAppealStatusFields extends AbstractEnum { +class AdCampaignConversionValueExpressionSpecFields extends AbstractEnum { - const HANDLE = 'handle'; - const ITEM_ID = 'item_id'; - const STATUS = 'status'; - const USE_CASES = 'use_cases'; + const ADJUSTMENT_SIGN = 'adjustment_sign'; + const ADJUSTMENT_WEIGHT = 'adjustment_weight'; + const DESTINATION_TYPE = 'destination_type'; public function getFieldTypes() { return array( - 'handle' => 'string', - 'item_id' => 'int', - 'status' => 'Status', - 'use_cases' => 'list', + 'adjustment_sign' => 'string', + 'adjustment_weight' => 'unsigned int', + 'destination_type' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php index e2bc4ee32..6c8a5805e 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeBrandedContentAdsFields.php @@ -29,7 +29,9 @@ class AdCreativeBrandedContentAdsFields extends AbstractEnum { const INSTAGRAM_BOOST_POST_ACCESS_TOKEN = 'instagram_boost_post_access_token'; const IS_MCA_INTERNAL = 'is_mca_internal'; const PARTNERS = 'partners'; + const PRODUCT_SET_PARTNER_SELECTION_STATUS = 'product_set_partner_selection_status'; const PROMOTED_PAGE_ID = 'promoted_page_id'; + const TESTIMONIAL = 'testimonial'; const UI_VERSION = 'ui_version'; public function getFieldTypes() { @@ -41,7 +43,9 @@ public function getFieldTypes() { 'instagram_boost_post_access_token' => 'string', 'is_mca_internal' => 'bool', 'partners' => 'list', + 'product_set_partner_selection_status' => 'string', 'promoted_page_id' => 'string', + 'testimonial' => 'string', 'ui_version' => 'int', ); } diff --git a/src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php b/src/FacebookAds/Object/Fields/AdCreativeDestinationSpecFields.php similarity index 80% rename from src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php rename to src/FacebookAds/Object/Fields/AdCreativeDestinationSpecFields.php index e790ebbde..123fef8a6 100644 --- a/src/FacebookAds/Object/Fields/ProductCatalogExampleFeedFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeDestinationSpecFields.php @@ -20,13 +20,13 @@ * */ -class ProductCatalogExampleFeedFields extends AbstractEnum { +class AdCreativeDestinationSpecFields extends AbstractEnum { - const EXAMPLE_FEED = 'example_feed'; + const DESTINATION_TYPE = 'destination_type'; public function getFieldTypes() { return array( - 'example_feed' => 'string', + 'destination_type' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php index 8ec11eb08..1a77c37cd 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php @@ -26,6 +26,7 @@ class AdCreativeFeatureCustomizationsFields extends AbstractEnum { const CATALOG_FEED_TAG_NAME = 'catalog_feed_tag_name'; const FONT_NAME = 'font_name'; const PRODUCT_RECOMMENDATION_TYPE = 'product_recommendation_type'; + const PRODUCT_VERSIONING_FALLBACK_STRATEGY = 'product_versioning_fallback_strategy'; const SHOWCASE_CARD_DISPLAY = 'showcase_card_display'; const TEXT_STYLE = 'text_style'; const VIDEO_CROP_STYLE = 'video_crop_style'; @@ -36,6 +37,7 @@ public function getFieldTypes() { 'catalog_feed_tag_name' => 'string', 'font_name' => 'string', 'product_recommendation_type' => 'string', + 'product_versioning_fallback_strategy' => 'string', 'showcase_card_display' => 'string', 'text_style' => 'string', 'video_crop_style' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php index 2e9f705d9..165071d27 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeaturesSpecFields.php @@ -23,6 +23,7 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const ADAPT_TO_PLACEMENT = 'adapt_to_placement'; + const ADD_TEXT_OVERLAY = 'add_text_overlay'; const ADS_WITH_BENEFITS = 'ads_with_benefits'; const ADVANTAGE_PLUS_CREATIVE = 'advantage_plus_creative'; const APP_HIGHLIGHTS = 'app_highlights'; @@ -33,6 +34,7 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const CV_TRANSFORMATION = 'cv_transformation'; const DESCRIPTION_AUTOMATION = 'description_automation'; const DHA_OPTIMIZATION = 'dha_optimization'; + const ENHANCE_CTA = 'enhance_cta'; const FEED_CAPTION_OPTIMIZATION = 'feed_caption_optimization'; const IG_GLADOS_FEED = 'ig_glados_feed'; const IMAGE_AUTO_CROP = 'image_auto_crop'; @@ -43,6 +45,7 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { const IMAGE_TOUCHUPS = 'image_touchups'; const IMAGE_UNCROP = 'image_uncrop'; const INLINE_COMMENT = 'inline_comment'; + const LOCAL_STORE_EXTENSION = 'local_store_extension'; const MEDIA_LIQUIDITY_ANIMATED_IMAGE = 'media_liquidity_animated_image'; const MEDIA_ORDER = 'media_order'; const MEDIA_TYPE_AUTOMATION = 'media_type_automation'; @@ -62,6 +65,7 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum { public function getFieldTypes() { return array( 'adapt_to_placement' => 'AdCreativeFeatureDetails', + 'add_text_overlay' => 'AdCreativeFeatureDetails', 'ads_with_benefits' => 'AdCreativeFeatureDetails', 'advantage_plus_creative' => 'AdCreativeFeatureDetails', 'app_highlights' => 'AdCreativeFeatureDetails', @@ -72,6 +76,7 @@ public function getFieldTypes() { 'cv_transformation' => 'AdCreativeFeatureDetails', 'description_automation' => 'AdCreativeFeatureDetails', 'dha_optimization' => 'AdCreativeFeatureDetails', + 'enhance_cta' => 'AdCreativeFeatureDetails', 'feed_caption_optimization' => 'AdCreativeFeatureDetails', 'ig_glados_feed' => 'AdCreativeFeatureDetails', 'image_auto_crop' => 'AdCreativeFeatureDetails', @@ -82,6 +87,7 @@ public function getFieldTypes() { 'image_touchups' => 'AdCreativeFeatureDetails', 'image_uncrop' => 'AdCreativeFeatureDetails', 'inline_comment' => 'AdCreativeFeatureDetails', + 'local_store_extension' => 'AdCreativeFeatureDetails', 'media_liquidity_animated_image' => 'AdCreativeFeatureDetails', 'media_order' => 'AdCreativeFeatureDetails', 'media_type_automation' => 'AdCreativeFeatureDetails', diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataCallToActionValueFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataCallToActionValueFields.php index 5467cb0b3..4b06784d4 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeLinkDataCallToActionValueFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataCallToActionValueFields.php @@ -30,6 +30,7 @@ class AdCreativeLinkDataCallToActionValueFields extends AbstractEnum { const LINK = 'link'; const LINK_CAPTION = 'link_caption'; const LINK_FORMAT = 'link_format'; + const OBJECT_STORE_URLS = 'object_store_urls'; const PAGE = 'page'; const PRODUCT_LINK = 'product_link'; const WHATSAPP_NUMBER = 'whatsapp_number'; @@ -44,6 +45,7 @@ public function getFieldTypes() { 'link' => 'string', 'link_caption' => 'string', 'link_format' => 'string', + 'object_store_urls' => 'list', 'page' => 'string', 'product_link' => 'string', 'whatsapp_number' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php index 754215036..d4c814177 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php @@ -52,6 +52,7 @@ class AdCreativeLinkDataFields extends AbstractEnum { const PICTURE = 'picture'; const POST_CLICK_CONFIGURATION = 'post_click_configuration'; const PREFERRED_IMAGE_TAGS = 'preferred_image_tags'; + const PREFERRED_VIDEO_TAGS = 'preferred_video_tags'; const RETAILER_ITEM_IDS = 'retailer_item_ids'; const SHOW_MULTIPLE_IMAGES = 'show_multiple_images'; const STATIC_FALLBACK_SPEC = 'static_fallback_spec'; @@ -89,6 +90,7 @@ public function getFieldTypes() { 'picture' => 'string', 'post_click_configuration' => 'AdCreativePostClickConfiguration', 'preferred_image_tags' => 'list', + 'preferred_video_tags' => 'list', 'retailer_item_ids' => 'list', 'show_multiple_images' => 'bool', 'static_fallback_spec' => 'AdCreativeStaticFallbackSpec', diff --git a/src/FacebookAds/Object/Fields/AdCreativeLinkDataImageLayerSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeLinkDataImageLayerSpecFields.php index 3c214e06c..2143ed06c 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeLinkDataImageLayerSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeLinkDataImageLayerSpecFields.php @@ -24,6 +24,7 @@ class AdCreativeLinkDataImageLayerSpecFields extends AbstractEnum { const BLENDING_MODE = 'blending_mode'; const CONTENT = 'content'; + const FRAME_AUTO_SHOW_ENROLL_STATUS = 'frame_auto_show_enroll_status'; const FRAME_IMAGE_HASH = 'frame_image_hash'; const FRAME_SOURCE = 'frame_source'; const IMAGE_SOURCE = 'image_source'; @@ -40,6 +41,7 @@ public function getFieldTypes() { return array( 'blending_mode' => 'BlendingMode', 'content' => 'Object', + 'frame_auto_show_enroll_status' => 'string', 'frame_image_hash' => 'string', 'frame_source' => 'FrameSource', 'image_source' => 'ImageSource', diff --git a/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php index 5ce4ea571..f53ab1860 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeMarketingMessageStructuredSpecFields.php @@ -25,6 +25,7 @@ class AdCreativeMarketingMessageStructuredSpecFields extends AbstractEnum { const BUTTONS = 'buttons'; const FOOTER = 'footer'; const GREETING = 'greeting'; + const IS_OPTIMIZED_TEXT = 'is_optimized_text'; const LANGUAGE = 'language'; const REFERENCED_ADGROUP_ID = 'referenced_adgroup_id'; const WHATS_APP_BUSINESS_PHONE_NUMBER_ID = 'whats_app_business_phone_number_id'; @@ -34,6 +35,7 @@ public function getFieldTypes() { 'buttons' => 'list', 'footer' => 'string', 'greeting' => 'string', + 'is_optimized_text' => 'bool', 'language' => 'string', 'referenced_adgroup_id' => 'string', 'whats_app_business_phone_number_id' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php index 004db2471..db8cbbd57 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeObjectStorySpecFields.php @@ -28,6 +28,7 @@ class AdCreativeObjectStorySpecFields extends AbstractEnum { const PHOTO_DATA = 'photo_data'; const TEMPLATE_DATA = 'template_data'; const TEXT_DATA = 'text_data'; + const THREADS_ACTOR_ID = 'threads_actor_id'; const VIDEO_DATA = 'video_data'; public function getFieldTypes() { @@ -38,6 +39,7 @@ public function getFieldTypes() { 'photo_data' => 'AdCreativePhotoData', 'template_data' => 'AdCreativeLinkData', 'text_data' => 'AdCreativeTextData', + 'threads_actor_id' => 'string', 'video_data' => 'AdCreativeVideoData', ); } diff --git a/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php index 477f9d99e..d91524769 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeSiteLinksSpecFields.php @@ -22,11 +22,17 @@ class AdCreativeSiteLinksSpecFields extends AbstractEnum { + const SITE_LINK_IMAGE_HASH = 'site_link_image_hash'; + const SITE_LINK_IMAGE_URL = 'site_link_image_url'; + const SITE_LINK_RECOMMENDATION_TYPE = 'site_link_recommendation_type'; const SITE_LINK_TITLE = 'site_link_title'; const SITE_LINK_URL = 'site_link_url'; public function getFieldTypes() { return array( + 'site_link_image_hash' => 'string', + 'site_link_image_url' => 'string', + 'site_link_recommendation_type' => 'string', 'site_link_title' => 'string', 'site_link_url' => 'string', ); diff --git a/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php index e19ec1bf4..065085a0d 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeSourcingSpecFields.php @@ -23,6 +23,7 @@ class AdCreativeSourcingSpecFields extends AbstractEnum { const ASSOCIATED_PRODUCT_SET_ID = 'associated_product_set_id'; + const ENABLE_SOCIAL_FEEDBACK_PRESERVATION = 'enable_social_feedback_preservation'; const PROMOTION_METADATA_SPEC = 'promotion_metadata_spec'; const SITE_LINKS_SPEC = 'site_links_spec'; const SOURCE_URL = 'source_url'; @@ -30,6 +31,7 @@ class AdCreativeSourcingSpecFields extends AbstractEnum { public function getFieldTypes() { return array( 'associated_product_set_id' => 'string', + 'enable_social_feedback_preservation' => 'bool', 'promotion_metadata_spec' => 'list', 'site_links_spec' => 'list', 'source_url' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php index ada6d7cad..7736c4e6b 100644 --- a/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php +++ b/src/FacebookAds/Object/Fields/AdPromotedObjectFields.php @@ -23,6 +23,7 @@ class AdPromotedObjectFields extends AbstractEnum { const APPLICATION_ID = 'application_id'; + const BOOSTED_PRODUCT_SET_ID = 'boosted_product_set_id'; const CONVERSION_GOAL_ID = 'conversion_goal_id'; const CUSTOM_CONVERSION_ID = 'custom_conversion_id'; const CUSTOM_EVENT_STR = 'custom_event_str'; @@ -51,6 +52,7 @@ class AdPromotedObjectFields extends AbstractEnum { public function getFieldTypes() { return array( 'application_id' => 'string', + 'boosted_product_set_id' => 'string', 'conversion_goal_id' => 'string', 'custom_conversion_id' => 'string', 'custom_event_str' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdSetFields.php b/src/FacebookAds/Object/Fields/AdSetFields.php index 44a142245..0b62733e0 100644 --- a/src/FacebookAds/Object/Fields/AdSetFields.php +++ b/src/FacebookAds/Object/Fields/AdSetFields.php @@ -33,6 +33,7 @@ class AdSetFields extends AbstractEnum { const BID_INFO = 'bid_info'; const BID_STRATEGY = 'bid_strategy'; const BILLING_EVENT = 'billing_event'; + const BRAND_SAFETY_CONFIG = 'brand_safety_config'; const BUDGET_REMAINING = 'budget_remaining'; const CAMPAIGN = 'campaign'; const CAMPAIGN_ACTIVE_TIME = 'campaign_active_time'; @@ -108,6 +109,7 @@ public function getFieldTypes() { 'bid_info' => 'map', 'bid_strategy' => 'BidStrategy', 'billing_event' => 'BillingEvent', + 'brand_safety_config' => 'BrandSafetyCampaignConfig', 'budget_remaining' => 'string', 'campaign' => 'Campaign', 'campaign_active_time' => 'string', diff --git a/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php b/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php index 1332e8c0d..f639f5a38 100644 --- a/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php +++ b/src/FacebookAds/Object/Fields/AdjacentContentDeliveryReportFields.php @@ -22,11 +22,15 @@ class AdjacentContentDeliveryReportFields extends AbstractEnum { + const AD_ID = 'ad_id'; const CONTENT = 'content'; + const IMPRESSION_ID = 'impression_id'; public function getFieldTypes() { return array( + 'ad_id' => 'string', 'content' => 'list', + 'impression_id' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdoptablePetFields.php b/src/FacebookAds/Object/Fields/AdoptablePetFields.php deleted file mode 100644 index 57b98ff54..000000000 --- a/src/FacebookAds/Object/Fields/AdoptablePetFields.php +++ /dev/null @@ -1,88 +0,0 @@ - 'string', - 'adoption_application_form_url' => 'string', - 'age_bucket' => 'string', - 'animal_type' => 'string', - 'applinks' => 'CatalogItemAppLinks', - 'availability' => 'string', - 'breed' => 'string', - 'category_specific_fields' => 'CatalogSubVerticalList', - 'coat_length' => 'string', - 'color' => 'string', - 'currency' => 'string', - 'description' => 'string', - 'features' => 'list', - 'gender' => 'string', - 'id' => 'string', - 'image_fetch_status' => 'ImageFetchStatus', - 'images' => 'list', - 'name' => 'string', - 'price' => 'string', - 'sanitized_images' => 'list', - 'secondary_color' => 'string', - 'shelter_email' => 'string', - 'shelter_name' => 'string', - 'shelter_page_id' => 'Page', - 'shelter_phone' => 'string', - 'size' => 'string', - 'tertiary_color' => 'string', - 'url' => 'string', - 'visibility' => 'Visibility', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/AdsInsightsFields.php b/src/FacebookAds/Object/Fields/AdsInsightsFields.php index 2a5677c9f..1efc13382 100644 --- a/src/FacebookAds/Object/Fields/AdsInsightsFields.php +++ b/src/FacebookAds/Object/Fields/AdsInsightsFields.php @@ -31,7 +31,6 @@ class AdsInsightsFields extends AbstractEnum { const AD_ID = 'ad_id'; const AD_IMPRESSION_ACTIONS = 'ad_impression_actions'; const AD_NAME = 'ad_name'; - const ADJUSTED_OFFLINE_PURCHASE = 'adjusted_offline_purchase'; const ADSET_END = 'adset_end'; const ADSET_ID = 'adset_id'; const ADSET_NAME = 'adset_name'; @@ -105,6 +104,9 @@ 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'; @@ -118,6 +120,7 @@ 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'; @@ -170,7 +173,6 @@ public function getFieldTypes() { 'ad_id' => 'string', 'ad_impression_actions' => 'list', 'ad_name' => 'string', - 'adjusted_offline_purchase' => 'list', 'adset_end' => 'string', 'adset_id' => 'string', 'adset_name' => 'string', @@ -244,6 +246,9 @@ 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', @@ -257,6 +262,7 @@ 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/AdsUserSettingsFields.php b/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php index 3bbb8285f..bef3c74bb 100644 --- a/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php +++ b/src/FacebookAds/Object/Fields/AdsUserSettingsFields.php @@ -24,6 +24,7 @@ class AdsUserSettingsFields extends AbstractEnum { const A_PLUS_C_SURVEY_SEEN = 'a_plus_c_survey_seen'; const ADGROUP_NAME_TEMPLATE = 'adgroup_name_template'; + const ADS_CS_CATALOG_OPT_OUT_TIMESTAMP = 'ads_cs_catalog_opt_out_timestamp'; const ADS_TOOL_VISITS = 'ads_tool_visits'; const APLUSC_CAROUSEL_CDA_OPT_IN_STATUS = 'aplusc_carousel_cda_opt_in_status'; const APLUSC_CAROUSEL_INLINE_COMMENT_OPT_IN_STATUS = 'aplusc_carousel_inline_comment_opt_in_status'; @@ -32,6 +33,7 @@ class AdsUserSettingsFields extends AbstractEnum { const AUTOFLOW_LITE_OPT_IN_STATUS = 'autoflow_lite_opt_in_status'; const AUTOFLOW_LITE_SHOULD_OPT_IN = 'autoflow_lite_should_opt_in'; const BLENDED_ADS_CREATION_DEFAULTING_OPT_IN_STATUS = 'blended_ads_creation_defaulting_opt_in_status'; + const BLENDED_ADS_CREATION_DEFAULTING_OPT_OUT_CAMPAIGN_GROUP_IDS = 'blended_ads_creation_defaulting_opt_out_campaign_group_ids'; const BOOKMARKED_PAGES = 'bookmarked_pages'; const CAMPAIGN_GROUP_NAME_TEMPLATE = 'campaign_group_name_template'; const CAMPAIGN_NAME_TEMPLATE = 'campaign_name_template'; @@ -48,7 +50,6 @@ class AdsUserSettingsFields extends AbstractEnum { const IS_SE_REMOVAL_GUIDANCE_DISMISSED = 'is_se_removal_guidance_dismissed'; const LAST_USED_POST_FORMAT = 'last_used_post_format'; const LAST_VISITED_TIME = 'last_visited_time'; - const MULTI_ADS_SETTINGS = 'multi_ads_settings'; const MUSIC_ON_REELS_OPT_IN = 'music_on_reels_opt_in'; const MUTED_CBO_MIDFLIGHT_EDUCATION_MESSAGES = 'muted_cbo_midflight_education_messages'; const ONSITE_DESTINATION_OPTIMIZATION_OPT_IN = 'onsite_destination_optimization_opt_in'; @@ -74,6 +75,7 @@ class AdsUserSettingsFields extends AbstractEnum { const SYD_CAMPAIGN_TRENDS_METRIC = 'syd_campaign_trends_metric'; const TOTAL_COUPON_SYD_DISMISSALS = 'total_coupon_syd_dismissals'; const TOTAL_COUPON_UPSELL_DISMISSALS = 'total_coupon_upsell_dismissals'; + const URL_PREFILL_REMOVAL_TIMESTAMP = 'url_prefill_removal_timestamp'; const USE_PE_CREATE_FLOW = 'use_pe_create_flow'; const USE_STEPPER_PRIMARY_ENTRY = 'use_stepper_primary_entry'; const USER = 'user'; @@ -82,6 +84,7 @@ public function getFieldTypes() { return array( 'a_plus_c_survey_seen' => 'bool', 'adgroup_name_template' => 'Object', + 'ads_cs_catalog_opt_out_timestamp' => 'list>', 'ads_tool_visits' => 'list', 'aplusc_carousel_cda_opt_in_status' => 'string', 'aplusc_carousel_inline_comment_opt_in_status' => 'string', @@ -90,6 +93,7 @@ public function getFieldTypes() { 'autoflow_lite_opt_in_status' => 'string', 'autoflow_lite_should_opt_in' => 'bool', 'blended_ads_creation_defaulting_opt_in_status' => 'string', + 'blended_ads_creation_defaulting_opt_out_campaign_group_ids' => 'list', 'bookmarked_pages' => 'list', 'campaign_group_name_template' => 'Object', 'campaign_name_template' => 'Object', @@ -106,7 +110,6 @@ public function getFieldTypes() { 'is_se_removal_guidance_dismissed' => 'bool', 'last_used_post_format' => 'string', 'last_visited_time' => 'datetime', - 'multi_ads_settings' => 'list>', 'music_on_reels_opt_in' => 'list>', 'muted_cbo_midflight_education_messages' => 'list', 'onsite_destination_optimization_opt_in' => 'string', @@ -132,6 +135,7 @@ public function getFieldTypes() { 'syd_campaign_trends_metric' => 'string', 'total_coupon_syd_dismissals' => 'int', 'total_coupon_upsell_dismissals' => 'int', + 'url_prefill_removal_timestamp' => 'int', 'use_pe_create_flow' => 'bool', 'use_stepper_primary_entry' => 'bool', 'user' => 'User', diff --git a/src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php b/src/FacebookAds/Object/Fields/BrandSafetyCampaignConfigFields.php similarity index 72% rename from src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php rename to src/FacebookAds/Object/Fields/BrandSafetyCampaignConfigFields.php index b520d4523..dfd50a432 100644 --- a/src/FacebookAds/Object/Fields/ProductCatalogMicrodataStatsPixelInfoFields.php +++ b/src/FacebookAds/Object/Fields/BrandSafetyCampaignConfigFields.php @@ -20,15 +20,13 @@ * */ -class ProductCatalogMicrodataStatsPixelInfoFields extends AbstractEnum { +class BrandSafetyCampaignConfigFields extends AbstractEnum { - const IS_ALREADY_CONNECTED = 'is_already_connected'; - const PIXEL_ID = 'pixel_id'; + const COMMENT_MODERATION_FILTER = 'comment_moderation_filter'; public function getFieldTypes() { return array( - 'is_already_connected' => 'bool', - 'pixel_id' => 'string', + 'comment_moderation_filter' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/BusinessRoleRequestFields.php b/src/FacebookAds/Object/Fields/BusinessRoleRequestFields.php index 61c93d4ca..c879e0212 100644 --- a/src/FacebookAds/Object/Fields/BusinessRoleRequestFields.php +++ b/src/FacebookAds/Object/Fields/BusinessRoleRequestFields.php @@ -30,6 +30,7 @@ class BusinessRoleRequestFields extends AbstractEnum { const FINANCE_ROLE = 'finance_role'; const ID = 'id'; const INVITE_LINK = 'invite_link'; + const INVITED_USER_TYPE = 'invited_user_type'; const IP_ROLE = 'ip_role'; const OWNER = 'owner'; const ROLE = 'role'; @@ -47,6 +48,7 @@ public function getFieldTypes() { 'finance_role' => 'string', 'id' => 'string', 'invite_link' => 'string', + 'invited_user_type' => 'list', 'ip_role' => 'string', 'owner' => 'Business', 'role' => 'string', diff --git a/src/FacebookAds/Object/Fields/BusinessUserFields.php b/src/FacebookAds/Object/Fields/BusinessUserFields.php index 67fd5a6f3..7fad31cb1 100644 --- a/src/FacebookAds/Object/Fields/BusinessUserFields.php +++ b/src/FacebookAds/Object/Fields/BusinessUserFields.php @@ -36,6 +36,7 @@ class BusinessUserFields extends AbstractEnum { const ROLE = 'role'; const TITLE = 'title'; const TWO_FAC_STATUS = 'two_fac_status'; + const INVITED_USER_TYPE = 'invited_user_type'; public function getFieldTypes() { return array( @@ -53,6 +54,7 @@ public function getFieldTypes() { 'role' => 'string', 'title' => 'string', 'two_fac_status' => 'string', + 'invited_user_type' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php b/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php index c403ff4d5..4f858653e 100644 --- a/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php +++ b/src/FacebookAds/Object/Fields/CTWAWhatsAppNumbersInfoFields.php @@ -26,6 +26,7 @@ class CTWAWhatsAppNumbersInfoFields extends AbstractEnum { const FORMATTED_WHATSAPP_NUMBER = 'formatted_whatsapp_number'; const IS_BUSINESS_NUMBER = 'is_business_number'; const PAGE_WHATSAPP_NUMBER_ID = 'page_whatsapp_number_id'; + const WABA_ID = 'waba_id'; const WHATSAPP_NUMBER = 'whatsapp_number'; const WHATSAPP_SMB_DEVICE = 'whatsapp_smb_device'; @@ -35,6 +36,7 @@ public function getFieldTypes() { 'formatted_whatsapp_number' => 'string', 'is_business_number' => 'bool', 'page_whatsapp_number_id' => 'string', + 'waba_id' => 'string', 'whatsapp_number' => 'string', 'whatsapp_smb_device' => 'string', ); diff --git a/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php b/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php index eddb19832..61fc1c36b 100644 --- a/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php +++ b/src/FacebookAds/Object/Fields/CTXPartnerAppWelcomeMessageFlowFields.php @@ -25,20 +25,24 @@ class CTXPartnerAppWelcomeMessageFlowFields extends AbstractEnum { const COMPATIBLE_PLATFORMS = 'compatible_platforms'; const ELIGIBLE_PLATFORMS = 'eligible_platforms'; const ID = 'id'; + const IS_IG_ONLY_FLOW = 'is_ig_only_flow'; const IS_USED_IN_AD = 'is_used_in_ad'; const LAST_UPDATE_TIME = 'last_update_time'; const NAME = 'name'; const WELCOME_MESSAGE_FLOW = 'welcome_message_flow'; + const WELCOME_MESSAGE_SEQUENCE = 'welcome_message_sequence'; public function getFieldTypes() { return array( 'compatible_platforms' => 'list', 'eligible_platforms' => 'list', 'id' => 'string', + 'is_ig_only_flow' => 'bool', 'is_used_in_ad' => 'bool', 'last_update_time' => 'datetime', 'name' => 'string', 'welcome_message_flow' => 'string', + 'welcome_message_sequence' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/CampaignFields.php b/src/FacebookAds/Object/Fields/CampaignFields.php index be092ab28..dc09ee3cd 100644 --- a/src/FacebookAds/Object/Fields/CampaignFields.php +++ b/src/FacebookAds/Object/Fields/CampaignFields.php @@ -53,6 +53,7 @@ class CampaignFields extends AbstractEnum { const SMART_PROMOTION_TYPE = 'smart_promotion_type'; const SOURCE_CAMPAIGN = 'source_campaign'; const SOURCE_CAMPAIGN_ID = 'source_campaign_id'; + const SOURCE_RECOMMENDATION_TYPE = 'source_recommendation_type'; const SPECIAL_AD_CATEGORIES = 'special_ad_categories'; const SPECIAL_AD_CATEGORY = 'special_ad_category'; const SPECIAL_AD_CATEGORY_COUNTRY = 'special_ad_category_country'; @@ -99,6 +100,7 @@ public function getFieldTypes() { 'smart_promotion_type' => 'string', 'source_campaign' => 'Campaign', 'source_campaign_id' => 'string', + 'source_recommendation_type' => 'string', 'special_ad_categories' => 'list', 'special_ad_category' => 'string', 'special_ad_category_country' => 'list', diff --git a/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php b/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php index 14ca5c072..2333c516a 100644 --- a/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php +++ b/src/FacebookAds/Object/Fields/CatalogSmartPixelSettingsFields.php @@ -27,8 +27,6 @@ class CatalogSmartPixelSettingsFields extends AbstractEnum { const CATALOG = 'catalog'; const CBB_CUSTOM_OVERRIDE_FILTERS = 'cbb_custom_override_filters'; const CBB_DEFAULT_FILTER = 'cbb_default_filter'; - const CBB_DEFAULT_FILTER_CRAWL_PARAMS = 'cbb_default_filter_crawl_params'; - const CBB_OVERRIDE_TYPE_FIELD_MAPPING = 'cbb_override_type_field_mapping'; const DEFAULTS = 'defaults'; const FILTERS = 'filters'; const ID = 'id'; @@ -39,7 +37,6 @@ class CatalogSmartPixelSettingsFields extends AbstractEnum { const MICRODATA_FORMAT_PRECEDENCE = 'microdata_format_precedence'; const PIXEL = 'pixel'; const PROPERTY_FILTER = 'property_filter'; - const RETENTION_TIME_SEC = 'retention_time_sec'; const TRUSTED_DOMAINS = 'trusted_domains'; public function getFieldTypes() { @@ -49,8 +46,6 @@ public function getFieldTypes() { 'catalog' => 'ProductCatalog', 'cbb_custom_override_filters' => 'list', 'cbb_default_filter' => 'list>>', - 'cbb_default_filter_crawl_params' => 'string', - 'cbb_override_type_field_mapping' => 'list>>', 'defaults' => 'list>', 'filters' => 'list>>', 'id' => 'string', @@ -61,7 +56,6 @@ public function getFieldTypes() { 'microdata_format_precedence' => 'list', 'pixel' => 'AdsPixel', 'property_filter' => 'list', - 'retention_time_sec' => 'int', 'trusted_domains' => 'list', ); } diff --git a/src/FacebookAds/Object/Fields/CommerceOrderFields.php b/src/FacebookAds/Object/Fields/CommerceOrderFields.php index 720b9146b..2dd1e6723 100644 --- a/src/FacebookAds/Object/Fields/CommerceOrderFields.php +++ b/src/FacebookAds/Object/Fields/CommerceOrderFields.php @@ -33,6 +33,7 @@ class CommerceOrderFields extends AbstractEnum { const LAST_UPDATED = 'last_updated'; const MERCHANT_ORDER_ID = 'merchant_order_id'; const ORDER_STATUS = 'order_status'; + const PRE_ORDER_DETAILS = 'pre_order_details'; const SELECTED_SHIPPING_OPTION = 'selected_shipping_option'; const SHIP_BY_DATE = 'ship_by_date'; const SHIPPING_ADDRESS = 'shipping_address'; @@ -50,6 +51,7 @@ public function getFieldTypes() { 'last_updated' => 'string', 'merchant_order_id' => 'string', 'order_status' => 'Object', + 'pre_order_details' => 'Object', 'selected_shipping_option' => 'Object', 'ship_by_date' => 'string', 'shipping_address' => 'Object', diff --git a/src/FacebookAds/Object/Fields/CommerceOrderTransactionDetailFields.php b/src/FacebookAds/Object/Fields/CommerceOrderTransactionDetailFields.php index bfffca0d5..2dbfdcc79 100644 --- a/src/FacebookAds/Object/Fields/CommerceOrderTransactionDetailFields.php +++ b/src/FacebookAds/Object/Fields/CommerceOrderTransactionDetailFields.php @@ -22,10 +22,15 @@ class CommerceOrderTransactionDetailFields extends AbstractEnum { + const MERCHANT_ORDER_ID = 'merchant_order_id'; const NET_PAYMENT_AMOUNT = 'net_payment_amount'; + const ORDER_CREATED = 'order_created'; const ORDER_DETAILS = 'order_details'; + const ORDER_ID = 'order_id'; const PAYOUT_REFERENCE_ID = 'payout_reference_id'; + const POSTAL_CODE = 'postal_code'; const PROCESSING_FEE = 'processing_fee'; + const STATE = 'state'; const TAX_RATE = 'tax_rate'; const TRANSACTION_DATE = 'transaction_date'; const TRANSACTION_TYPE = 'transaction_type'; @@ -34,10 +39,15 @@ class CommerceOrderTransactionDetailFields extends AbstractEnum { public function getFieldTypes() { return array( + 'merchant_order_id' => 'string', 'net_payment_amount' => 'Object', + 'order_created' => 'string', 'order_details' => 'CommerceOrder', + 'order_id' => 'string', 'payout_reference_id' => 'string', + 'postal_code' => 'string', 'processing_fee' => 'Object', + 'state' => 'string', 'tax_rate' => 'string', 'transaction_date' => 'string', 'transaction_type' => 'string', diff --git a/src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php b/src/FacebookAds/Object/Fields/ContentBlockListFields.php similarity index 78% rename from src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php rename to src/FacebookAds/Object/Fields/ContentBlockListFields.php index 96c744ada..048f22e1e 100644 --- a/src/FacebookAds/Object/Fields/PageVideosYouCanUseFields.php +++ b/src/FacebookAds/Object/Fields/ContentBlockListFields.php @@ -20,17 +20,17 @@ * */ -class PageVideosYouCanUseFields extends AbstractEnum { +class ContentBlockListFields extends AbstractEnum { - const DESCRIPTION = 'description'; + const BUSINESS = 'business'; const ID = 'id'; - const TITLE = 'title'; + const NAME = 'name'; public function getFieldTypes() { return array( - 'description' => 'string', + 'business' => 'Business', 'id' => 'string', - 'title' => 'string', + 'name' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php b/src/FacebookAds/Object/Fields/DatasetFields.php similarity index 83% rename from src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php rename to src/FacebookAds/Object/Fields/DatasetFields.php index 598201ad0..dab0afab4 100644 --- a/src/FacebookAds/Object/Fields/VidwallaBroadcastFields.php +++ b/src/FacebookAds/Object/Fields/DatasetFields.php @@ -20,15 +20,15 @@ * */ -class VidwallaBroadcastFields extends AbstractEnum { +class DatasetFields extends AbstractEnum { const ID = 'id'; - const OVERLAY_URL = 'overlay_url'; + const NAME = 'name'; public function getFieldTypes() { return array( 'id' => 'string', - 'overlay_url' => 'string', + 'name' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/ExpirablePostFields.php b/src/FacebookAds/Object/Fields/ExpirablePostFields.php deleted file mode 100644 index 10975e8e4..000000000 --- a/src/FacebookAds/Object/Fields/ExpirablePostFields.php +++ /dev/null @@ -1,70 +0,0 @@ - 'User', - 'can_republish' => 'bool', - 'content_type' => 'string', - 'creation_time' => 'datetime', - 'expiration' => 'Object', - 'feed_audience_description' => 'string', - 'feed_targeting' => 'Targeting', - 'id' => 'string', - 'is_post_in_good_state' => 'bool', - 'message' => 'string', - 'modified_time' => 'datetime', - 'og_action_summary' => 'string', - 'permalink_url' => 'string', - 'place' => 'Place', - 'privacy_description' => 'string', - 'scheduled_failure_notice' => 'string', - 'scheduled_publish_time' => 'datetime', - 'story_token' => 'string', - 'thumbnail' => 'string', - 'video_id' => 'string', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php b/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php index 034d7ceba..2a8a6edc8 100644 --- a/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php +++ b/src/FacebookAds/Object/Fields/FundingSourceDetailsCouponFields.php @@ -24,17 +24,23 @@ class FundingSourceDetailsCouponFields extends AbstractEnum { const AMOUNT = 'amount'; const CAMPAIGN_IDS = 'campaign_ids'; + const COUPON_ID = 'coupon_id'; const CURRENCY = 'currency'; const DISPLAY_AMOUNT = 'display_amount'; const EXPIRATION = 'expiration'; + const ORIGINAL_AMOUNT = 'original_amount'; + const ORIGINAL_DISPLAY_AMOUNT = 'original_display_amount'; public function getFieldTypes() { return array( 'amount' => 'int', 'campaign_ids' => 'list', + 'coupon_id' => 'string', 'currency' => 'string', 'display_amount' => 'string', 'expiration' => 'datetime', + 'original_amount' => 'int', + 'original_display_amount' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/GenericVideoAssetFields.php b/src/FacebookAds/Object/Fields/GenericVideoAssetFields.php deleted file mode 100644 index 138bc8e61..000000000 --- a/src/FacebookAds/Object/Fields/GenericVideoAssetFields.php +++ /dev/null @@ -1,122 +0,0 @@ - 'string', - 'broadcast_planned_start_time' => 'datetime', - 'can_viewer_edit' => 'bool', - 'copyright_monitoring_status' => 'string', - 'created_time' => 'datetime', - 'creator' => 'User', - 'description' => 'string', - 'download_hd_url' => 'string', - 'download_sd_url' => 'string', - 'embeddable' => 'bool', - 'expiration' => 'Object', - 'feed_type' => 'string', - 'id' => 'string', - 'is_crossposting_eligible' => 'bool', - 'is_crossposting_within_bm_eligible' => 'bool', - 'is_crossposting_within_bm_enabled' => 'bool', - 'is_episode' => 'bool', - 'is_featured' => 'bool', - 'is_live_premiere' => 'bool', - 'is_video_asset' => 'bool', - 'last_added_time' => 'datetime', - 'latest_creator' => 'User', - 'latest_owned_description' => 'string', - 'latest_owned_title' => 'string', - 'length' => 'float', - 'live_status' => 'string', - 'no_story' => 'bool', - 'owner_name' => 'string', - 'owner_picture' => 'string', - 'owner_post_state' => 'string', - 'permalink_url' => 'string', - 'picture' => 'string', - 'posts_count' => 'unsigned int', - 'posts_ids' => 'list', - 'posts_status' => 'Object', - 'premiere_living_room_status' => 'string', - 'published' => 'bool', - 'scheduled_publish_time' => 'datetime', - 'secret' => 'bool', - 'secure_stream_url' => 'string', - 'social_actions' => 'bool', - 'status' => 'VideoStatus', - 'stream_url' => 'string', - 'thumbnail_while_encoding' => 'string', - 'title' => 'string', - 'views' => 'unsigned int', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php index ee5d9c90e..2c2a23a79 100644 --- a/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php +++ b/src/FacebookAds/Object/Fields/IGMediaForIGOnlyAPIFields.php @@ -23,7 +23,9 @@ class IGMediaForIGOnlyAPIFields extends AbstractEnum { const CAPTION = 'caption'; + const COMMENTS_COUNT = 'comments_count'; const ID = 'id'; + const IS_COMMENT_ENABLED = 'is_comment_enabled'; const IS_SHARED_TO_FEED = 'is_shared_to_feed'; const LIKE_COUNT = 'like_count'; const MEDIA_PRODUCT_TYPE = 'media_product_type'; @@ -39,7 +41,9 @@ class IGMediaForIGOnlyAPIFields extends AbstractEnum { public function getFieldTypes() { return array( 'caption' => 'string', + 'comments_count' => 'int', 'id' => 'string', + 'is_comment_enabled' => 'bool', 'is_shared_to_feed' => 'bool', 'like_count' => 'int', 'media_product_type' => 'string', diff --git a/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php index 4507cc02c..46564d887 100644 --- a/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php +++ b/src/FacebookAds/Object/Fields/IGRefreshAccessTokenForIGOnlyAPIFields.php @@ -24,6 +24,7 @@ class IGRefreshAccessTokenForIGOnlyAPIFields extends AbstractEnum { const ACCESS_TOKEN = 'access_token'; const EXPIRES_IN = 'expires_in'; + const PERMISSIONS = 'permissions'; const TOKEN_TYPE = 'token_type'; const ID = 'id'; @@ -31,6 +32,7 @@ public function getFieldTypes() { return array( 'access_token' => 'string', 'expires_in' => 'int', + 'permissions' => 'string', 'token_type' => 'string', 'id' => 'string', ); diff --git a/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php b/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php index 5fa6e0f09..2af91ea06 100644 --- a/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php +++ b/src/FacebookAds/Object/Fields/IGUpcomingEventFields.php @@ -24,6 +24,8 @@ class IGUpcomingEventFields extends AbstractEnum { const END_TIME = 'end_time'; const ID = 'id'; + const NOTIFICATION_SUBTYPES = 'notification_subtypes'; + const NOTIFICATION_TARGET_TIME = 'notification_target_time'; const START_TIME = 'start_time'; const TITLE = 'title'; @@ -31,6 +33,8 @@ public function getFieldTypes() { return array( 'end_time' => 'datetime', 'id' => 'string', + 'notification_subtypes' => 'list', + 'notification_target_time' => 'string', 'start_time' => 'datetime', 'title' => 'string', ); diff --git a/src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php b/src/FacebookAds/Object/Fields/IGUserExportForCAMFields.php similarity index 95% rename from src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php rename to src/FacebookAds/Object/Fields/IGUserExportForCAMFields.php index 06ed6102e..e7eb6a359 100644 --- a/src/FacebookAds/Object/Fields/BCPCreatorIgUserFields.php +++ b/src/FacebookAds/Object/Fields/IGUserExportForCAMFields.php @@ -20,7 +20,7 @@ * */ -class BCPCreatorIgUserFields extends AbstractEnum { +class IGUserExportForCAMFields extends AbstractEnum { const EMAIL = 'email'; const ID = 'id'; diff --git a/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php b/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php index 233beedf7..7c953b867 100644 --- a/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php +++ b/src/FacebookAds/Object/Fields/IGUserForIGOnlyAPIFields.php @@ -23,16 +23,30 @@ class IGUserForIGOnlyAPIFields extends AbstractEnum { const ACCOUNT_TYPE = 'account_type'; + const BIOGRAPHY = 'biography'; + const FOLLOWERS_COUNT = 'followers_count'; + const FOLLOWS_COUNT = 'follows_count'; const ID = 'id'; const MEDIA_COUNT = 'media_count'; + const NAME = 'name'; + const PROFILE_PICTURE_URL = 'profile_picture_url'; + const USER_ID = 'user_id'; const USERNAME = 'username'; + const WEBSITE = 'website'; public function getFieldTypes() { return array( 'account_type' => 'string', + 'biography' => 'string', + 'followers_count' => 'int', + 'follows_count' => 'int', 'id' => 'string', 'media_count' => 'int', + 'name' => 'string', + 'profile_picture_url' => 'string', + 'user_id' => 'int', 'username' => 'string', + 'website' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php b/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php index 2b3548f3d..e453434f1 100644 --- a/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php +++ b/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php @@ -22,6 +22,7 @@ class LeadGenFormPreviewDetailsFields extends AbstractEnum { + const CALL_BUSINESS_TEXT = 'call_business_text'; const CALL_TO_ACTION_TITLE = 'call_to_action_title'; const CONTACT_INFORMATION_TEXT = 'contact_information_text'; const CREATIVES_OVERVIEW_DEFAULT_TEXT = 'creatives_overview_default_text'; @@ -46,18 +47,22 @@ class LeadGenFormPreviewDetailsFields extends AbstractEnum { const OPTIONAL_QUESTION_TEXT = 'optional_question_text'; const PERSONAL_INFO_TEXT = 'personal_info_text'; const PHONE_NUMBER_INLINE_CONTEXT_TEXT = 'phone_number_inline_context_text'; + const PRIVACY_POLICY_LINK_TEXT = 'privacy_policy_link_text'; const PRIVACY_POLICY_TITLE_SECTION_TITLE_TEXT = 'privacy_policy_title_section_title_text'; const PRIVACY_SETTING_DESCRIPTION = 'privacy_setting_description'; const PRODUCTS_SECTION_HEADERS = 'products_section_headers'; const QUALIFIED_THANK_YOU_CARD_TRANSPARENCY_INFO_TEXT = 'qualified_thank_you_card_transparency_info_text'; + const REDEEM_PROMO_CODE_TEXT = 'redeem_promo_code_text'; const REVIEW_YOUR_INFO_TEXT = 'review_your_info_text'; const SECURE_SHARING_TEXT = 'secure_sharing_text'; const SLIDE_TO_SUBMIT_TEXT = 'slide_to_submit_text'; const SOCIAL_PROOF_SECTION_HEADERS = 'social_proof_section_headers'; const SUBMIT_BUTTON_TEXT = 'submit_button_text'; + const VIEW_FILE_TEXT = 'view_file_text'; public function getFieldTypes() { return array( + 'call_business_text' => 'string', 'call_to_action_title' => 'string', 'contact_information_text' => 'string', 'creatives_overview_default_text' => 'string', @@ -82,15 +87,18 @@ public function getFieldTypes() { 'optional_question_text' => 'string', 'personal_info_text' => 'string', 'phone_number_inline_context_text' => 'string', + 'privacy_policy_link_text' => 'string', 'privacy_policy_title_section_title_text' => 'string', 'privacy_setting_description' => 'string', 'products_section_headers' => 'list>', 'qualified_thank_you_card_transparency_info_text' => 'string', + 'redeem_promo_code_text' => 'string', 'review_your_info_text' => 'string', 'secure_sharing_text' => 'string', 'slide_to_submit_text' => 'string', 'social_proof_section_headers' => 'list>', 'submit_button_text' => 'string', + 'view_file_text' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/LocationBasedItemFields.php b/src/FacebookAds/Object/Fields/LocationBasedItemFields.php deleted file mode 100644 index 3ac0f30f4..000000000 --- a/src/FacebookAds/Object/Fields/LocationBasedItemFields.php +++ /dev/null @@ -1,56 +0,0 @@ - 'CatalogItemAppLinks', - 'category_specific_fields' => 'CatalogSubVerticalList', - 'currency' => 'string', - 'description' => 'string', - 'id' => 'string', - 'image_fetch_status' => 'ImageFetchStatus', - 'images' => 'list', - 'location_based_item_id' => 'string', - 'name' => 'string', - 'price' => 'string', - 'sanitized_images' => 'list', - 'url' => 'string', - 'visibility' => 'Visibility', - ); - } -} diff --git a/src/FacebookAds/Object/Fields/MessageDeliveryEstimateFields.php b/src/FacebookAds/Object/Fields/MessageDeliveryEstimateFields.php new file mode 100644 index 000000000..dfc881e6d --- /dev/null +++ b/src/FacebookAds/Object/Fields/MessageDeliveryEstimateFields.php @@ -0,0 +1,48 @@ + 'float', + 'estimate_cost_lower_bound' => 'float', + 'estimate_cost_upper_bound' => 'float', + 'estimate_coverage_lower_bound' => 'int', + 'estimate_coverage_upper_bound' => 'int', + 'estimate_delivery' => 'int', + 'estimate_delivery_lower_bound' => 'int', + 'estimate_delivery_upper_bound' => 'int', + 'estimate_status' => 'string', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php b/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php index 48bde3b22..b8e923e14 100644 --- a/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php +++ b/src/FacebookAds/Object/Fields/MessagingAppsInfoFields.php @@ -22,6 +22,7 @@ class MessagingAppsInfoFields extends AbstractEnum { + const CTD_SUPPORT_ONLY_FOR_IG_APP = 'ctd_support_only_for_ig_app'; const HAS_INSTAGRAM_MESSAGING_PERMISSION = 'has_instagram_messaging_permission'; const HAS_MESSENGER_MESSAGING_PERMISSION = 'has_messenger_messaging_permission'; const ID = 'id'; @@ -29,6 +30,7 @@ class MessagingAppsInfoFields extends AbstractEnum { public function getFieldTypes() { return array( + 'ctd_support_only_for_ig_app' => 'bool', 'has_instagram_messaging_permission' => 'bool', 'has_messenger_messaging_permission' => 'bool', 'id' => 'string', diff --git a/src/FacebookAds/Object/Fields/OverrideDetailsFields.php b/src/FacebookAds/Object/Fields/OverrideDetailsFields.php new file mode 100644 index 000000000..4565180d7 --- /dev/null +++ b/src/FacebookAds/Object/Fields/OverrideDetailsFields.php @@ -0,0 +1,36 @@ + 'string', + 'type' => 'string', + 'values' => 'Object', + ); + } +} diff --git a/src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php b/src/FacebookAds/Object/Fields/PageCTXMessagingFeatureLimitFields.php similarity index 58% rename from src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php rename to src/FacebookAds/Object/Fields/PageCTXMessagingFeatureLimitFields.php index eb3334b84..4f4f5a468 100644 --- a/src/FacebookAds/Object/Fields/CPASSetupCatalogProgressFields.php +++ b/src/FacebookAds/Object/Fields/PageCTXMessagingFeatureLimitFields.php @@ -20,21 +20,17 @@ * */ -class CPASSetupCatalogProgressFields extends AbstractEnum { +class PageCTXMessagingFeatureLimitFields extends AbstractEnum { - const CHILD_CATALOG_COUNT = 'child_catalog_count'; - const CHILD_CATALOG_ISSUES = 'child_catalog_issues'; - const ID = 'id'; - const ISSUES = 'issues'; - const NAME = 'name'; + const MESSAGING_FEATURE_LIMIT_DURATION = 'messaging_feature_limit_duration'; + const MESSAGING_FEATURE_LIMIT_TYPE = 'messaging_feature_limit_type'; + const MESSAGING_VIOLATION_TYPE = 'messaging_violation_type'; public function getFieldTypes() { return array( - 'child_catalog_count' => 'int', - 'child_catalog_issues' => 'list', - 'id' => 'string', - 'issues' => 'list', - 'name' => 'string', + 'messaging_feature_limit_duration' => 'int', + 'messaging_feature_limit_type' => 'string', + 'messaging_violation_type' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/UserSetReportingRootFields.php b/src/FacebookAds/Object/Fields/ProductDeliveryPreferenceFields.php similarity index 65% rename from src/FacebookAds/Object/Fields/UserSetReportingRootFields.php rename to src/FacebookAds/Object/Fields/ProductDeliveryPreferenceFields.php index 7fcfae9c9..1db528169 100644 --- a/src/FacebookAds/Object/Fields/UserSetReportingRootFields.php +++ b/src/FacebookAds/Object/Fields/ProductDeliveryPreferenceFields.php @@ -20,17 +20,19 @@ * */ -class UserSetReportingRootFields extends AbstractEnum { +class ProductDeliveryPreferenceFields extends AbstractEnum { - const CREATION_TIME = 'creation_time'; + const AD_OBJECT_ID = 'ad_object_id'; const ID = 'id'; - const LAST_MODIFIED_TIME = 'last_modified_time'; + const PRODUCT_PRIORITY = 'product_priority'; + const PRODUCT_PRIORITY_CATEGORY = 'product_priority_category'; public function getFieldTypes() { return array( - 'creation_time' => 'datetime', + 'ad_object_id' => 'string', 'id' => 'string', - 'last_modified_time' => 'datetime', + 'product_priority' => 'string', + 'product_priority_category' => 'list', ); } } diff --git a/src/FacebookAds/Object/Fields/ProductItemFields.php b/src/FacebookAds/Object/Fields/ProductItemFields.php index 50f6a4a0d..607a600a9 100644 --- a/src/FacebookAds/Object/Fields/ProductItemFields.php +++ b/src/FacebookAds/Object/Fields/ProductItemFields.php @@ -29,6 +29,8 @@ class ProductItemFields extends AbstractEnum { const APPLINKS = 'applinks'; const AVAILABILITY = 'availability'; const BRAND = 'brand'; + const BUNDLE_ITEMS = 'bundle_items'; + const BUNDLE_RETAILER_IDS = 'bundle_retailer_ids'; const CAPABILITY_TO_REVIEW_STATUS = 'capability_to_review_status'; const CATEGORY = 'category'; const CATEGORY_SPECIFIC_FIELDS = 'category_specific_fields'; @@ -62,6 +64,7 @@ class ProductItemFields extends AbstractEnum { const IMPORTER_NAME = 'importer_name'; const INVALIDATION_ERRORS = 'invalidation_errors'; const INVENTORY = 'inventory'; + const IS_BUNDLE_HERO = 'is_bundle_hero'; const MANUFACTURER_INFO = 'manufacturer_info'; const MANUFACTURER_PART_NUMBER = 'manufacturer_part_number'; const MARKED_FOR_PRODUCT_LAUNCH = 'marked_for_product_launch'; @@ -97,7 +100,6 @@ class ProductItemFields extends AbstractEnum { const VIDEO_FETCH_STATUS = 'video_fetch_status'; const VISIBILITY = 'visibility'; const WA_COMPLIANCE_CATEGORY = 'wa_compliance_category'; - const ADDITIONAL_UPLOADED_IMAGE_IDS = 'additional_uploaded_image_ids'; const ANDROID_APP_NAME = 'android_app_name'; const ANDROID_CLASS = 'android_class'; const ANDROID_PACKAGE = 'android_package'; @@ -114,6 +116,11 @@ class ProductItemFields extends AbstractEnum { const IPHONE_APP_STORE_ID = 'iphone_app_store_id'; const IPHONE_URL = 'iphone_url'; const LAUNCH_DATE = 'launch_date'; + const PRODUCT_PRIORITY_0 = 'product_priority_0'; + const PRODUCT_PRIORITY_1 = 'product_priority_1'; + const PRODUCT_PRIORITY_2 = 'product_priority_2'; + const PRODUCT_PRIORITY_3 = 'product_priority_3'; + const PRODUCT_PRIORITY_4 = 'product_priority_4'; const RETURN_POLICY_DAYS = 'return_policy_days'; const WINDOWS_PHONE_APP_ID = 'windows_phone_app_id'; const WINDOWS_PHONE_APP_NAME = 'windows_phone_app_name'; @@ -128,6 +135,8 @@ public function getFieldTypes() { 'applinks' => 'CatalogItemAppLinks', 'availability' => 'Availability', 'brand' => 'string', + 'bundle_items' => 'list', + 'bundle_retailer_ids' => 'list', 'capability_to_review_status' => 'list>', 'category' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', @@ -161,6 +170,7 @@ public function getFieldTypes() { 'importer_name' => 'string', 'invalidation_errors' => 'list', 'inventory' => 'int', + 'is_bundle_hero' => 'bool', 'manufacturer_info' => 'string', 'manufacturer_part_number' => 'string', 'marked_for_product_launch' => 'string', @@ -196,7 +206,6 @@ public function getFieldTypes() { 'video_fetch_status' => 'VideoFetchStatus', 'visibility' => 'Visibility', 'wa_compliance_category' => 'string', - 'additional_uploaded_image_ids' => 'list', 'android_app_name' => 'string', 'android_class' => 'string', 'android_package' => 'string', @@ -213,6 +222,11 @@ public function getFieldTypes() { 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'launch_date' => 'string', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'return_policy_days' => 'unsigned int', 'windows_phone_app_id' => 'string', 'windows_phone_app_name' => 'string', diff --git a/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php b/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php index 802a681fd..9079b1bf4 100644 --- a/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php +++ b/src/FacebookAds/Object/Fields/ResellerGuidanceFields.php @@ -28,10 +28,7 @@ class ResellerGuidanceFields extends AbstractEnum { const ADVERTISER_NAME = 'advertiser_name'; const ATTRIBUTED_TO_RESELLER_L7D = 'attributed_to_reseller_l7d'; const AVAILABLE_GUIDANCE = 'available_guidance'; - const BENCHMARK_REPORT_LINK = 'benchmark_report_link'; const GUIDANCE_ADOPTION_RATE_L7D = 'guidance_adoption_rate_l7d'; - const NO_ADSETS_GTE_BENCHMARK = 'no_adsets_gte_benchmark'; - const NO_ADSETS_LT_BENCHMARK = 'no_adsets_lt_benchmark'; const NURTURED_BY_RESELLER_L7D = 'nurtured_by_reseller_l7d'; const PLANNING_AGENCY_NAME = 'planning_agency_name'; const RECOMMENDATION_TIME = 'recommendation_time'; @@ -48,10 +45,7 @@ public function getFieldTypes() { 'advertiser_name' => 'string', 'attributed_to_reseller_l7d' => 'bool', 'available_guidance' => 'list', - 'benchmark_report_link' => 'string', 'guidance_adoption_rate_l7d' => 'float', - 'no_adsets_gte_benchmark' => 'int', - 'no_adsets_lt_benchmark' => 'int', 'nurtured_by_reseller_l7d' => 'bool', 'planning_agency_name' => 'string', 'recommendation_time' => 'datetime', diff --git a/src/FacebookAds/Object/Fields/ProductFeedMissingFeedItemReplacementFields.php b/src/FacebookAds/Object/Fields/ShadowIGUserPartnershipAdsMediaErrorsFields.php similarity index 65% rename from src/FacebookAds/Object/Fields/ProductFeedMissingFeedItemReplacementFields.php rename to src/FacebookAds/Object/Fields/ShadowIGUserPartnershipAdsMediaErrorsFields.php index cb25803de..7493bb422 100644 --- a/src/FacebookAds/Object/Fields/ProductFeedMissingFeedItemReplacementFields.php +++ b/src/FacebookAds/Object/Fields/ShadowIGUserPartnershipAdsMediaErrorsFields.php @@ -20,17 +20,19 @@ * */ -class ProductFeedMissingFeedItemReplacementFields extends AbstractEnum { +class ShadowIGUserPartnershipAdsMediaErrorsFields extends AbstractEnum { - const HOME_LISTING = 'home_listing'; - const PRODUCT_ITEM = 'product_item'; - const VEHICLE = 'vehicle'; + const AD_CODE = 'ad_code'; + const ERROR_CODES = 'error_codes'; + const ERRORS = 'errors'; + const PERMALINK = 'permalink'; public function getFieldTypes() { return array( - 'home_listing' => 'Object', - 'product_item' => 'Object', - 'vehicle' => 'Object', + 'ad_code' => 'string', + 'error_codes' => 'string', + 'errors' => 'list', + 'permalink' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/StoriesFields.php b/src/FacebookAds/Object/Fields/StoriesFields.php index 485d67100..82b47cc6b 100644 --- a/src/FacebookAds/Object/Fields/StoriesFields.php +++ b/src/FacebookAds/Object/Fields/StoriesFields.php @@ -28,6 +28,7 @@ class StoriesFields extends AbstractEnum { const POST_ID = 'post_id'; const STATUS = 'status'; const URL = 'url'; + const ID = 'id'; public function getFieldTypes() { return array( @@ -37,6 +38,7 @@ public function getFieldTypes() { 'post_id' => 'string', 'status' => 'string', 'url' => 'string', + 'id' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php b/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php index 29ae1f174..b585e03d9 100644 --- a/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php +++ b/src/FacebookAds/Object/Fields/ThirdPartyPartnerViewabilityRequestFields.php @@ -39,10 +39,10 @@ public function getFieldTypes() { 'description' => 'string', 'hour' => 'datetime', 'id' => 'string', - 'metric' => 'string', + 'metric' => 'Metric', 'modified_time' => 'datetime', 'owner_instance_id' => 'string', - 'platform' => 'string', + 'platform' => 'Platform', 'status' => 'Status', 'total_file_count' => 'unsigned int', ); diff --git a/src/FacebookAds/Object/Fields/VideoAssetFields.php b/src/FacebookAds/Object/Fields/VideoAssetFields.php deleted file mode 100644 index 697b0d263..000000000 --- a/src/FacebookAds/Object/Fields/VideoAssetFields.php +++ /dev/null @@ -1,122 +0,0 @@ - 'string', - 'broadcast_planned_start_time' => 'datetime', - 'can_viewer_edit' => 'bool', - 'copyright_monitoring_status' => 'string', - 'created_time' => 'datetime', - 'creator' => 'User', - 'description' => 'string', - 'download_hd_url' => 'string', - 'download_sd_url' => 'string', - 'embeddable' => 'bool', - 'expiration' => 'Object', - 'feed_type' => 'string', - 'id' => 'string', - 'is_crossposting_eligible' => 'bool', - 'is_crossposting_within_bm_eligible' => 'bool', - 'is_crossposting_within_bm_enabled' => 'bool', - 'is_episode' => 'bool', - 'is_featured' => 'bool', - 'is_live_premiere' => 'bool', - 'is_video_asset' => 'bool', - 'last_added_time' => 'datetime', - 'latest_creator' => 'User', - 'latest_owned_description' => 'string', - 'latest_owned_title' => 'string', - 'length' => 'float', - 'live_status' => 'string', - 'no_story' => 'bool', - 'owner_name' => 'string', - 'owner_picture' => 'string', - 'owner_post_state' => 'string', - 'permalink_url' => 'string', - 'picture' => 'string', - 'posts_count' => 'unsigned int', - 'posts_ids' => 'list', - 'posts_status' => 'Object', - 'premiere_living_room_status' => 'string', - 'published' => 'bool', - 'scheduled_publish_time' => 'datetime', - 'secret' => 'bool', - 'secure_stream_url' => 'string', - 'social_actions' => 'bool', - 'status' => 'VideoStatus', - 'stream_url' => 'string', - 'thumbnail_while_encoding' => 'string', - 'title' => 'string', - 'views' => 'unsigned int', - ); - } -} diff --git a/src/FacebookAds/Object/Flight.php b/src/FacebookAds/Object/Flight.php index ce8c12eff..dee07b532 100644 --- a/src/FacebookAds/Object/Flight.php +++ b/src/FacebookAds/Object/Flight.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\FlightFields; use FacebookAds\Object\Values\FlightImageFetchStatusValues; use FacebookAds\Object\Values\FlightVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -43,7 +44,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +56,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,22 +67,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Group.php b/src/FacebookAds/Object/Group.php index 0ac90d409..6beb807e3 100644 --- a/src/FacebookAds/Object/Group.php +++ b/src/FacebookAds/Object/Group.php @@ -260,7 +260,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'actions' => 'Object', 'album_id' => 'string', 'android_key_hash' => 'string', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'asset3d_id' => 'unsigned int', @@ -758,7 +757,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $this->assureId(); $param_types = array( - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', diff --git a/src/FacebookAds/Object/HomeListing.php b/src/FacebookAds/Object/HomeListing.php index 522c3e853..df0ba7566 100644 --- a/src/FacebookAds/Object/HomeListing.php +++ b/src/FacebookAds/Object/HomeListing.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\HomeListingFields; use FacebookAds\Object\Values\HomeListingImageFetchStatusValues; use FacebookAds\Object\Values\HomeListingVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -50,7 +51,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -62,10 +63,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -73,22 +74,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/Hotel.php b/src/FacebookAds/Object/Hotel.php index 2a34b9df4..b1bc70033 100644 --- a/src/FacebookAds/Object/Hotel.php +++ b/src/FacebookAds/Object/Hotel.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\HotelFields; use FacebookAds\Object\Values\HotelImageFetchStatusValues; use FacebookAds\Object\Values\HotelVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -50,7 +51,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -62,10 +63,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -73,7 +74,7 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getHotelRooms(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -85,10 +86,10 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/hotel_rooms', + new HotelRoom(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + HotelRoom::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -96,22 +97,25 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } - public function getHotelRooms(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/hotel_rooms', - new HotelRoom(), + '/override_details', + new OverrideDetails(), 'EDGE', - HotelRoom::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/IGMedia.php b/src/FacebookAds/Object/IGMedia.php index cbd6d5e46..05fd04d11 100644 --- a/src/FacebookAds/Object/IGMedia.php +++ b/src/FacebookAds/Object/IGMedia.php @@ -235,12 +235,10 @@ public function getInsights(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } - public function deleteProductTags(array $fields = array(), array $params = array(), $pending = false) { + public function deletePartnershipAdCode(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( - 'child_index' => 'unsigned int', - 'deleted_tags' => 'list', ); $enums = array( ); @@ -249,7 +247,30 @@ public function deleteProductTags(array $fields = array(), array $params = array $this->api, $this->data['id'], RequestInterface::METHOD_DELETE, - '/product_tags', + '/partnership_ad_code', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createPartnershipAdCode(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/partnership_ad_code', new AbstractCrudObject(), 'EDGE', array(), diff --git a/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php b/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php index 2c779a5ed..bb73af00c 100644 --- a/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php +++ b/src/FacebookAds/Object/IGMediaForIGOnlyAPI.php @@ -62,6 +62,53 @@ public function getChildren(array $fields = array(), array $params = array(), $p return $pending ? $request : $request->execute(); } + public function getComments(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/comments', + new Comment(), + 'EDGE', + Comment::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createComment(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'message' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/comments', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -85,4 +132,28 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi return $pending ? $request : $request->execute(); } + public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'comment_enabled' => 'bool', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/', + new AbstractCrudObject(), + 'NODE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + } diff --git a/src/FacebookAds/Object/IGUpcomingEvent.php b/src/FacebookAds/Object/IGUpcomingEvent.php index 36e577ea4..7ca660d15 100644 --- a/src/FacebookAds/Object/IGUpcomingEvent.php +++ b/src/FacebookAds/Object/IGUpcomingEvent.php @@ -14,6 +14,8 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\IGUpcomingEventFields; +use FacebookAds\Object\Values\IGUpcomingEventNotificationSubtypesValues; +use FacebookAds\Object\Values\IGUpcomingEventNotificationTargetTimeValues; /** * This class is auto-generated. @@ -35,6 +37,8 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['NotificationSubtypes'] = IGUpcomingEventNotificationSubtypesValues::getInstance()->getValues(); + $ref_enums['NotificationTargetTime'] = IGUpcomingEventNotificationTargetTimeValues::getInstance()->getValues(); return $ref_enums; } @@ -67,10 +71,14 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe $param_types = array( 'end_time' => 'datetime', + 'notification_subtypes' => 'list', + 'notification_target_time' => 'notification_target_time_enum', 'start_time' => 'datetime', 'title' => 'string', ); $enums = array( + 'notification_subtypes_enum' => IGUpcomingEventNotificationSubtypesValues::getInstance()->getValues(), + 'notification_target_time_enum' => IGUpcomingEventNotificationTargetTimeValues::getInstance()->getValues(), ); $request = new ApiRequest( diff --git a/src/FacebookAds/Object/IGUser.php b/src/FacebookAds/Object/IGUser.php index 5d228e772..508cae1aa 100644 --- a/src/FacebookAds/Object/IGUser.php +++ b/src/FacebookAds/Object/IGUser.php @@ -120,6 +120,7 @@ public function getBrandedContentAdvertisableMedias(array $fields = array(), arr $this->assureId(); $param_types = array( + 'ad_code' => 'string', 'creator_username' => 'string', 'only_fetch_allowlisted' => 'bool', 'permalinks' => 'list', @@ -263,7 +264,7 @@ public function getContentPublishingLimit(array $fields = array(), array $params return $pending ? $request : $request->execute(); } - public function getDataSet(array $fields = array(), array $params = array(), $pending = false) { + public function getDataset(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -276,9 +277,9 @@ public function getDataSet(array $fields = array(), array $params = array(), $pe $this->data['id'], RequestInterface::METHOD_GET, '/dataset', - new AdsPixel(), + new Dataset(), 'EDGE', - AdsPixel::getFieldsEnum()->getValues(), + Dataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -286,10 +287,11 @@ public function getDataSet(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } - public function createDataSet(array $fields = array(), array $params = array(), $pending = false) { + public function createDataset(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'dataset_name' => 'string', ); $enums = array( ); @@ -299,9 +301,9 @@ public function createDataSet(array $fields = array(), array $params = array(), $this->data['id'], RequestInterface::METHOD_POST, '/dataset', - new AdsPixel(), + new Dataset(), 'EDGE', - AdsPixel::getFieldsEnum()->getValues(), + Dataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/VideoAsset.php b/src/FacebookAds/Object/IGUserExportForCAM.php similarity index 52% rename from src/FacebookAds/Object/VideoAsset.php rename to src/FacebookAds/Object/IGUserExportForCAM.php index 7e248e221..26f4203bf 100644 --- a/src/FacebookAds/Object/VideoAsset.php +++ b/src/FacebookAds/Object/IGUserExportForCAM.php @@ -13,9 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\VideoAssetFields; -use FacebookAds\Object\Values\InsightsResultMetricValues; -use FacebookAds\Object\Values\InsightsResultPeriodValues; +use FacebookAds\Object\Fields\IGUserExportForCAMFields; /** * This class is auto-generated. @@ -26,13 +24,13 @@ * */ -class VideoAsset extends AbstractCrudObject { +class IGUserExportForCAM extends AbstractCrudObject { /** - * @return VideoAssetFields + * @return IGUserExportForCAMFields */ public static function getFieldsEnum() { - return VideoAssetFields::getInstance(); + return IGUserExportForCAMFields::getInstance(); } protected static function getReferencedEnums() { @@ -41,33 +39,6 @@ protected static function getReferencedEnums() { } - public function getInsights(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'metric' => 'list', - 'period' => 'period_enum', - ); - $enums = array( - 'metric_enum' => InsightsResultMetricValues::getInstance()->getValues(), - 'period_enum' => InsightsResultPeriodValues::getInstance()->getValues(), - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/insights', - new InsightsResult(), - 'EDGE', - InsightsResult::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -81,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi $this->data['id'], RequestInterface::METHOD_GET, '/', - new VideoAsset(), + new IGUserExportForCAM(), 'NODE', - VideoAsset::getFieldsEnum()->getValues(), + IGUserExportForCAM::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/IGUserForIGOnlyAPI.php b/src/FacebookAds/Object/IGUserForIGOnlyAPI.php index fd040a135..8f10b9a8e 100644 --- a/src/FacebookAds/Object/IGUserForIGOnlyAPI.php +++ b/src/FacebookAds/Object/IGUserForIGOnlyAPI.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\IGUserForIGOnlyAPIFields; +use FacebookAds\Object\Values\UnifiedThreadPlatformValues; /** * This class is auto-generated. @@ -39,6 +40,58 @@ protected static function getReferencedEnums() { } + public function getContentPublishingLimit(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'since' => 'datetime', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/content_publishing_limit', + new ContentPublishingLimitResponse(), + 'EDGE', + ContentPublishingLimitResponse::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getConversations(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'folder' => 'string', + 'platform' => 'platform_enum', + 'tags' => 'list', + 'user_id' => 'string', + ); + $enums = array( + 'platform_enum' => UnifiedThreadPlatformValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/conversations', + new UnifiedThread(), + 'EDGE', + UnifiedThread::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getLiveMedia(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -87,6 +140,249 @@ public function getMedia(array $fields = array(), array $params = array(), $pend return $pending ? $request : $request->execute(); } + public function createMedia(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'audio_name' => 'string', + 'caption' => 'string', + 'children' => 'list', + 'collaborators' => 'list', + 'cover_url' => 'string', + 'image_url' => 'string', + 'is_carousel_item' => 'bool', + 'location_id' => 'string', + 'media_type' => 'string', + 'product_tags' => 'list', + 'share_to_feed' => 'bool', + 'thumb_offset' => 'string', + 'upload_type' => 'string', + 'user_tags' => 'list', + 'video_url' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/media', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMediaPublish(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'creation_id' => 'unsigned int', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/mediapublish', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMention(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'comment_id' => 'string', + 'media_id' => 'string', + 'message' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/mentions', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMessageAttachment(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'message' => 'Object', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/messageattachments', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMessage(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'message' => 'Object', + 'messaging_type' => 'messaging_type_enum', + 'payload' => 'string', + 'recipient' => 'Object', + 'sender_action' => 'sender_action_enum', + 'tag' => 'Object', + 'thread_control' => 'Object', + ); + $enums = array( + 'messaging_type_enum' => array( + 'MESSAGE_TAG', + 'RESPONSE', + 'UPDATE', + 'UTILITY', + ), + 'sender_action_enum' => array( + 'MARK_SEEN', + 'REACT', + 'TYPING_OFF', + 'TYPING_ON', + 'UNREACT', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/messages', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function deleteMessengerProfile(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'fields' => 'list', + ); + $enums = array( + 'fields_enum' => array( + 'ACCOUNT_LINKING_URL', + 'COMMANDS', + 'DESCRIPTION', + 'GET_STARTED', + 'GREETING', + 'HOME_URL', + 'ICE_BREAKERS', + 'PAYMENT_SETTINGS', + 'PERSISTENT_MENU', + 'PLATFORM', + 'SUBJECT_TO_NEW_EU_PRIVACY_RULES', + 'TARGET_AUDIENCE', + 'TITLE', + 'WHITELISTED_DOMAINS', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/messenger_profile', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getMessengerProfile(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/messenger_profile', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createMessengerProfile(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'ice_breakers' => 'list', + 'persistent_menu' => 'list', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/messenger_profile', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getStories(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -110,6 +406,141 @@ public function getStories(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } + public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/subscribed_apps', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSubscribedApps(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/subscribed_apps', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createSubscribedApp(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'subscribed_fields' => 'list', + ); + $enums = array( + 'subscribed_fields_enum' => array( + 'comments', + 'creator_marketplace_invited_creator_onboarding', + 'creator_marketplace_projects', + 'delta', + 'live_comments', + 'mentions', + 'message_reactions', + 'messages', + 'messaging_handover', + 'messaging_optins', + 'messaging_postbacks', + 'messaging_referral', + 'messaging_seen', + 'standby', + 'story_insights', + ), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/subscribed_apps', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getTags(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/tags', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getWelcomeMessageFlows(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'app_id' => 'string', + 'flow_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/welcome_message_flows', + new CTXPartnerAppWelcomeMessageFlow(), + 'EDGE', + CTXPartnerAppWelcomeMessageFlow::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/InstagramUser.php b/src/FacebookAds/Object/InstagramUser.php index 70fa22643..882e61842 100644 --- a/src/FacebookAds/Object/InstagramUser.php +++ b/src/FacebookAds/Object/InstagramUser.php @@ -14,6 +14,8 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\InstagramUserFields; +use FacebookAds\Object\Values\IGUpcomingEventNotificationSubtypesValues; +use FacebookAds\Object\Values\IGUpcomingEventNotificationTargetTimeValues; /** * This class is auto-generated. @@ -162,10 +164,14 @@ public function createUpcomingEvent(array $fields = array(), array $params = arr $param_types = array( 'end_time' => 'datetime', + 'notification_subtypes' => 'list', + 'notification_target_time' => 'notification_target_time_enum', 'start_time' => 'datetime', 'title' => 'string', ); $enums = array( + 'notification_subtypes_enum' => IGUpcomingEventNotificationSubtypesValues::getInstance()->getValues(), + 'notification_target_time_enum' => IGUpcomingEventNotificationTargetTimeValues::getInstance()->getValues(), ); $request = new ApiRequest( diff --git a/src/FacebookAds/Object/LocalServiceBusiness.php b/src/FacebookAds/Object/LocalServiceBusiness.php index 415da1833..a6f004b26 100644 --- a/src/FacebookAds/Object/LocalServiceBusiness.php +++ b/src/FacebookAds/Object/LocalServiceBusiness.php @@ -18,6 +18,7 @@ use FacebookAds\Object\Values\LocalServiceBusinessConditionValues; use FacebookAds\Object\Values\LocalServiceBusinessImageFetchStatusValues; use FacebookAds\Object\Values\LocalServiceBusinessVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -70,6 +71,32 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', + ); + $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/override_details', + new OverrideDetails(), + 'EDGE', + OverrideDetails::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/LocationBasedItem.php b/src/FacebookAds/Object/LocationBasedItem.php deleted file mode 100644 index f622949a3..000000000 --- a/src/FacebookAds/Object/LocationBasedItem.php +++ /dev/null @@ -1,92 +0,0 @@ -getValues(); - $ref_enums['Visibility'] = LocationBasedItemVisibilityValues::getInstance()->getValues(); - return $ref_enums; - } - - - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), - 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - - public function getSelf(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/', - new LocationBasedItem(), - 'NODE', - LocationBasedItem::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - -} diff --git a/src/FacebookAds/Object/MediaTitle.php b/src/FacebookAds/Object/MediaTitle.php index b85378b84..200f541eb 100644 --- a/src/FacebookAds/Object/MediaTitle.php +++ b/src/FacebookAds/Object/MediaTitle.php @@ -17,6 +17,7 @@ use FacebookAds\Object\Values\MediaTitleContentCategoryValues; use FacebookAds\Object\Values\MediaTitleImageFetchStatusValues; use FacebookAds\Object\Values\MediaTitleVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -45,7 +46,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -57,10 +58,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -68,22 +69,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/CatalogItemAppealStatus.php b/src/FacebookAds/Object/MessageDeliveryEstimate.php similarity index 57% rename from src/FacebookAds/Object/CatalogItemAppealStatus.php rename to src/FacebookAds/Object/MessageDeliveryEstimate.php index 6d3600367..975f169b3 100644 --- a/src/FacebookAds/Object/CatalogItemAppealStatus.php +++ b/src/FacebookAds/Object/MessageDeliveryEstimate.php @@ -13,8 +13,9 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\CatalogItemAppealStatusFields; -use FacebookAds\Object\Values\CatalogItemAppealStatusStatusValues; +use FacebookAds\Object\Fields\MessageDeliveryEstimateFields; +use FacebookAds\Object\Values\MessageDeliveryEstimateOptimizationGoalValues; +use FacebookAds\Object\Values\MessageDeliveryEstimatePacingTypeValues; /** * This class is auto-generated. @@ -25,18 +26,19 @@ * */ -class CatalogItemAppealStatus extends AbstractObject { +class MessageDeliveryEstimate extends AbstractObject { /** - * @return CatalogItemAppealStatusFields + * @return MessageDeliveryEstimateFields */ public static function getFieldsEnum() { - return CatalogItemAppealStatusFields::getInstance(); + return MessageDeliveryEstimateFields::getInstance(); } protected static function getReferencedEnums() { $ref_enums = array(); - $ref_enums['Status'] = CatalogItemAppealStatusStatusValues::getInstance()->getValues(); + $ref_enums['OptimizationGoal'] = MessageDeliveryEstimateOptimizationGoalValues::getInstance()->getValues(); + $ref_enums['PacingType'] = MessageDeliveryEstimatePacingTypeValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/OfflineProductItem.php b/src/FacebookAds/Object/OfflineProductItem.php index f0b1f1b77..e2a904ec2 100644 --- a/src/FacebookAds/Object/OfflineProductItem.php +++ b/src/FacebookAds/Object/OfflineProductItem.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\OfflineProductItemFields; use FacebookAds\Object\Values\OfflineProductItemImageFetchStatusValues; use FacebookAds\Object\Values\OfflineProductItemVisibilityValues; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; /** * This class is auto-generated. @@ -66,6 +67,32 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', + ); + $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/override_details', + new OverrideDetails(), + 'EDGE', + OverrideDetails::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/OverrideDetails.php b/src/FacebookAds/Object/OverrideDetails.php new file mode 100644 index 000000000..90461b38b --- /dev/null +++ b/src/FacebookAds/Object/OverrideDetails.php @@ -0,0 +1,44 @@ +getValues(); + return $ref_enums; + } + + +} diff --git a/src/FacebookAds/Object/Page.php b/src/FacebookAds/Object/Page.php index 956477859..d34d3d496 100644 --- a/src/FacebookAds/Object/Page.php +++ b/src/FacebookAds/Object/Page.php @@ -1122,7 +1122,7 @@ public function createCustomUserSetting(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getDataSet(array $fields = array(), array $params = array(), $pending = false) { + public function getDataset(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -1135,9 +1135,9 @@ public function getDataSet(array $fields = array(), array $params = array(), $pe $this->data['id'], RequestInterface::METHOD_GET, '/dataset', - new AdsPixel(), + new Dataset(), 'EDGE', - AdsPixel::getFieldsEnum()->getValues(), + Dataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1145,10 +1145,11 @@ public function getDataSet(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } - public function createDataSet(array $fields = array(), array $params = array(), $pending = false) { + public function createDataset(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'dataset_name' => 'string', ); $enums = array( ); @@ -1158,9 +1159,9 @@ public function createDataSet(array $fields = array(), array $params = array(), $this->data['id'], RequestInterface::METHOD_POST, '/dataset', - new AdsPixel(), + new Dataset(), 'EDGE', - AdsPixel::getFieldsEnum()->getValues(), + Dataset::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -1281,7 +1282,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'actions' => 'Object', 'album_id' => 'string', 'android_key_hash' => 'string', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'asset3d_id' => 'unsigned int', @@ -1437,31 +1437,6 @@ public function getGlobalBrandChildren(array $fields = array(), array $params = return $pending ? $request : $request->execute(); } - public function getGroups(array $fields = array(), array $params = array(), $pending = false) { - $this->assureId(); - - $param_types = array( - 'admin_only' => 'bool', - 'parent' => 'string', - ); - $enums = array( - ); - - $request = new ApiRequest( - $this->api, - $this->data['id'], - RequestInterface::METHOD_GET, - '/groups', - new Group(), - 'EDGE', - Group::getFieldsEnum()->getValues(), - new TypeChecker($param_types, $enums) - ); - $request->addParams($params); - $request->addFields($fields); - return $pending ? $request : $request->execute(); - } - public function getImageCopyrights(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -2361,7 +2336,7 @@ public function createPassThreadControl(array $fields = array(), array $params = $param_types = array( 'metadata' => 'string', 'recipient' => 'Object', - 'target_app_id' => 'int', + 'target_app_id' => 'string', ); $enums = array( ); @@ -3497,7 +3472,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $param_types = array( 'ad_breaks' => 'list', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', @@ -3703,6 +3677,7 @@ public function createWelcomeMessageFlow(array $fields = array(), array $params 'eligible_platforms_enum' => array( 'INSTAGRAM', 'MESSENGER', + 'WHATSAPP', ), ); diff --git a/src/FacebookAds/Object/PageCTXMessagingFeatureLimit.php b/src/FacebookAds/Object/PageCTXMessagingFeatureLimit.php new file mode 100644 index 000000000..4d3fb923e --- /dev/null +++ b/src/FacebookAds/Object/PageCTXMessagingFeatureLimit.php @@ -0,0 +1,42 @@ + 'string', 'permitted_roles' => 'list', 'permitted_tasks' => 'list', - 'skip_default_utms' => 'bool', + 'skip_defaults' => 'bool', 'utm_settings' => 'map', ); $enums = array( @@ -1223,7 +1223,6 @@ public function createProduct(array $fields = array(), array $params = array(), $param_types = array( 'additional_image_urls' => 'list', - 'additional_uploaded_image_ids' => 'list', 'additional_variant_attributes' => 'map', 'android_app_name' => 'string', 'android_class' => 'string', @@ -1278,6 +1277,11 @@ public function createProduct(array $fields = array(), array $params = array(), 'origin_country' => 'origin_country_enum', 'pattern' => 'string', 'price' => 'unsigned int', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', diff --git a/src/FacebookAds/Object/ProductCatalogExampleFeed.php b/src/FacebookAds/Object/ProductCatalogExampleFeed.php deleted file mode 100644 index 051f23e3a..000000000 --- a/src/FacebookAds/Object/ProductCatalogExampleFeed.php +++ /dev/null @@ -1,42 +0,0 @@ -assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new ProductDeliveryPreference(), + 'NODE', + ProductDeliveryPreference::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + +} diff --git a/src/FacebookAds/Object/ProductFeedMissingFeedItemReplacement.php b/src/FacebookAds/Object/ProductFeedMissingFeedItemReplacement.php deleted file mode 100644 index 2321cc192..000000000 --- a/src/FacebookAds/Object/ProductFeedMissingFeedItemReplacement.php +++ /dev/null @@ -1,42 +0,0 @@ - 'unsigned int', 'pattern' => 'string', 'price' => 'unsigned int', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', diff --git a/src/FacebookAds/Object/ProductItem.php b/src/FacebookAds/Object/ProductItem.php index 5f0202649..53a5d9feb 100644 --- a/src/FacebookAds/Object/ProductItem.php +++ b/src/FacebookAds/Object/ProductItem.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ProductItemFields; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; use FacebookAds\Object\Values\ProductItemAgeGroupValues; use FacebookAds\Object\Values\ProductItemAvailabilityValues; use FacebookAds\Object\Values\ProductItemCommerceTaxCategoryValues; @@ -99,6 +100,32 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', + ); + $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/override_details', + new OverrideDetails(), + 'EDGE', + OverrideDetails::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getProductSets(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -201,7 +228,6 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe $param_types = array( 'additional_image_urls' => 'list', - 'additional_uploaded_image_ids' => 'list', 'additional_variant_attributes' => 'map', 'android_app_name' => 'string', 'android_class' => 'string', @@ -256,6 +282,11 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe 'origin_country' => 'origin_country_enum', 'pattern' => 'string', 'price' => 'unsigned int', + 'product_priority_0' => 'float', + 'product_priority_1' => 'float', + 'product_priority_2' => 'float', + 'product_priority_3' => 'float', + 'product_priority_4' => 'float', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', diff --git a/src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php b/src/FacebookAds/Object/ShadowIGUserPartnershipAdsMediaErrors.php similarity index 75% rename from src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php rename to src/FacebookAds/Object/ShadowIGUserPartnershipAdsMediaErrors.php index 558a92b47..1c844dd28 100644 --- a/src/FacebookAds/Object/ProductCatalogMicrodataStatsPixelInfo.php +++ b/src/FacebookAds/Object/ShadowIGUserPartnershipAdsMediaErrors.php @@ -13,7 +13,7 @@ use FacebookAds\Cursor; use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; -use FacebookAds\Object\Fields\ProductCatalogMicrodataStatsPixelInfoFields; +use FacebookAds\Object\Fields\ShadowIGUserPartnershipAdsMediaErrorsFields; /** * This class is auto-generated. @@ -24,13 +24,13 @@ * */ -class ProductCatalogMicrodataStatsPixelInfo extends AbstractObject { +class ShadowIGUserPartnershipAdsMediaErrors extends AbstractObject { /** - * @return ProductCatalogMicrodataStatsPixelInfoFields + * @return ShadowIGUserPartnershipAdsMediaErrorsFields */ public static function getFieldsEnum() { - return ProductCatalogMicrodataStatsPixelInfoFields::getInstance(); + return ShadowIGUserPartnershipAdsMediaErrorsFields::getInstance(); } protected static function getReferencedEnums() { diff --git a/src/FacebookAds/Object/Stories.php b/src/FacebookAds/Object/Stories.php index d3095a7f7..52cdc711e 100644 --- a/src/FacebookAds/Object/Stories.php +++ b/src/FacebookAds/Object/Stories.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\StoriesFields; +use FacebookAds\Object\Values\InsightsResultMetricValues; use FacebookAds\Object\Values\StoriesStatusValues; /** @@ -25,7 +26,7 @@ * */ -class Stories extends AbstractObject { +class Stories extends AbstractCrudObject { /** * @return StoriesFields @@ -41,4 +42,52 @@ protected static function getReferencedEnums() { } + public function getInsights(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'metric' => 'list', + ); + $enums = array( + 'metric_enum' => InsightsResultMetricValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/insights', + new InsightsResult(), + 'EDGE', + InsightsResult::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/', + new Stories(), + 'NODE', + Stories::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + } diff --git a/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php b/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php index 96f4112c0..4144b3285 100644 --- a/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php +++ b/src/FacebookAds/Object/ThirdPartyPartnerViewabilityRequest.php @@ -14,6 +14,8 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\ThirdPartyPartnerViewabilityRequestFields; +use FacebookAds\Object\Values\ThirdPartyPartnerViewabilityRequestMetricValues; +use FacebookAds\Object\Values\ThirdPartyPartnerViewabilityRequestPlatformValues; use FacebookAds\Object\Values\ThirdPartyPartnerViewabilityRequestStatusValues; /** @@ -36,6 +38,8 @@ public static function getFieldsEnum() { protected static function getReferencedEnums() { $ref_enums = array(); + $ref_enums['Metric'] = ThirdPartyPartnerViewabilityRequestMetricValues::getInstance()->getValues(); + $ref_enums['Platform'] = ThirdPartyPartnerViewabilityRequestPlatformValues::getInstance()->getValues(); $ref_enums['Status'] = ThirdPartyPartnerViewabilityRequestStatusValues::getInstance()->getValues(); return $ref_enums; } diff --git a/src/FacebookAds/Object/TransactableItem.php b/src/FacebookAds/Object/TransactableItem.php index 87c95c69d..58725aa23 100644 --- a/src/FacebookAds/Object/TransactableItem.php +++ b/src/FacebookAds/Object/TransactableItem.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\TransactableItemFields; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; use FacebookAds\Object\Values\TransactableItemImageFetchStatusValues; use FacebookAds\Object\Values\TransactableItemVisibilityValues; @@ -66,6 +67,32 @@ public function getChannelsToIntegrityStatus(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', + ); + $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/override_details', + new OverrideDetails(), + 'EDGE', + OverrideDetails::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); diff --git a/src/FacebookAds/Object/User.php b/src/FacebookAds/Object/User.php index a0a2fdd25..692325fd0 100644 --- a/src/FacebookAds/Object/User.php +++ b/src/FacebookAds/Object/User.php @@ -135,6 +135,7 @@ public function getAccounts(array $fields = array(), array $params = array(), $p $this->assureId(); $param_types = array( + 'ad_id' => 'string', 'is_place' => 'bool', 'is_promotable' => 'bool', ); @@ -729,7 +730,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe 'actions' => 'Object', 'album_id' => 'string', 'android_key_hash' => 'string', - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'asset3d_id' => 'unsigned int', @@ -1557,7 +1557,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p $this->assureId(); $param_types = array( - 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', diff --git a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php index 30551b501..80271b08e 100644 --- a/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +++ b/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php @@ -24,20 +24,27 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AAC_CREATION_PACKAGE = 'AAC_CREATION_PACKAGE'; const AB_TEST = 'AB_TEST'; + const ACCOUNT_NEEDS_CREDIT = 'ACCOUNT_NEEDS_CREDIT'; const ACCOUNT_SPEND_LIMIT = 'ACCOUNT_SPEND_LIMIT'; + const ACCOUNT_SPEND_LIMIT_DUPLICATION = 'ACCOUNT_SPEND_LIMIT_DUPLICATION'; const ACO_TOGGLE = 'ACO_TOGGLE'; const ADS_REPORTING = 'ADS_REPORTING'; const ADVANCED_CAMPAIGN_BUDGET = 'ADVANCED_CAMPAIGN_BUDGET'; const ADVANTAGE_APP_CAMPAIGN = 'ADVANTAGE_APP_CAMPAIGN'; + const ADVANTAGE_CAMPAIGN_BUDGET_DUPLICATION = 'ADVANTAGE_CAMPAIGN_BUDGET_DUPLICATION'; const ADVANTAGE_CUSTOM_AUDIENCE = 'ADVANTAGE_CUSTOM_AUDIENCE'; + const ADVANTAGE_CUSTOM_AUDIENCE_DUPLICATION = 'ADVANTAGE_CUSTOM_AUDIENCE_DUPLICATION'; const ADVANTAGE_CUSTOM_AUDIENCE_UPSELL = 'ADVANTAGE_CUSTOM_AUDIENCE_UPSELL'; const ADVANTAGE_DETAILED_TARGETING = 'ADVANTAGE_DETAILED_TARGETING'; const ADVANTAGE_LOOKALIKE_AUDIENCE = 'ADVANTAGE_LOOKALIKE_AUDIENCE'; + const ADVANTAGE_LOOKALIKE_DUPLICATION = 'ADVANTAGE_LOOKALIKE_DUPLICATION'; + const ADVANTAGE_PLUS_APP_CAMPAIGN_PRECREATE = 'ADVANTAGE_PLUS_APP_CAMPAIGN_PRECREATE'; const ADVANTAGE_PLUS_AUDIENCE = 'ADVANTAGE_PLUS_AUDIENCE'; const ADVANTAGE_PLUS_AUDIENCE_DUPLICATION = 'ADVANTAGE_PLUS_AUDIENCE_DUPLICATION'; const ADVANTAGE_PLUS_AUDIENCE_FRICTION = 'ADVANTAGE_PLUS_AUDIENCE_FRICTION'; const ADVANTAGE_PLUS_AUDIENCE_TOGGLE = 'ADVANTAGE_PLUS_AUDIENCE_TOGGLE'; const ADVANTAGE_PLUS_CAMPAIGN_BUDGET = 'ADVANTAGE_PLUS_CAMPAIGN_BUDGET'; + const ADVANTAGE_PLUS_CATALOG_ADS = 'ADVANTAGE_PLUS_CATALOG_ADS'; const ADVANTAGE_PLUS_CREATIVE = 'ADVANTAGE_PLUS_CREATIVE'; const ADVANTAGE_PLUS_CREATIVE_CATALOG = 'ADVANTAGE_PLUS_CREATIVE_CATALOG'; const ADVANTAGE_PLUS_CREATIVE_SE = 'ADVANTAGE_PLUS_CREATIVE_SE'; @@ -45,15 +52,20 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const ADVANTAGE_PLUS_PLACEMENTS_FRICTION = 'ADVANTAGE_PLUS_PLACEMENTS_FRICTION'; const ADVANTAGE_SHOPPING_CAMPAIGN = 'ADVANTAGE_SHOPPING_CAMPAIGN'; const ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION = 'ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION'; + const AD_LIFT_RECALL_GOAL_PRECREATE = 'AD_LIFT_RECALL_GOAL_PRECREATE'; + const AD_LIFT_RECALL_OPTIMIZATION_GOAL = 'AD_LIFT_RECALL_OPTIMIZATION_GOAL'; const AD_OBJECTIVE = 'AD_OBJECTIVE'; const AEM_V2_INELIGIBLE = 'AEM_V2_INELIGIBLE'; const AGGREGATED_BID_LIMITED = 'AGGREGATED_BID_LIMITED'; const AGGREGATED_BUDGET_LIMITED = 'AGGREGATED_BUDGET_LIMITED'; const AGGREGATED_COST_LIMITED = 'AGGREGATED_COST_LIMITED'; + const APLUS_C_CATALOG_DUPLICATION = 'APLUS_C_CATALOG_DUPLICATION'; const APP_AEM_V2_INSTALLATION_PROMOTION = 'APP_AEM_V2_INSTALLATION_PROMOTION'; + const APP_ENGAGED_VIEW_CONVERSIONS_DUPLICATION = 'APP_ENGAGED_VIEW_CONVERSIONS_DUPLICATION'; const ASC_BUDGET_OPTIMIZATION = 'ASC_BUDGET_OPTIMIZATION'; const ASC_CREATION_PACKAGE = 'ASC_CREATION_PACKAGE'; const ASC_FRAGMENTATION_V2 = 'ASC_FRAGMENTATION_V2'; + const ASC_PRECREATE = 'ASC_PRECREATE'; const ASPECT_RATIO = 'ASPECT_RATIO'; const ATLEAST_6_PLACEMENTS = 'ATLEAST_6_PLACEMENTS'; const AUCTION_OVERLAP = 'AUCTION_OVERLAP'; @@ -68,14 +80,20 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const AUTOMATIC_PLACEMENTS = 'AUTOMATIC_PLACEMENTS'; const AUTOMATIC_PLACEMENTS_V2 = 'AUTOMATIC_PLACEMENTS_V2'; const AUTO_BID = 'AUTO_BID'; + const BACKGROUND_GENERATION = 'BACKGROUND_GENERATION'; const BLENDED_ADS = 'BLENDED_ADS'; + const BLENDED_ADS_DUPLICATION = 'BLENDED_ADS_DUPLICATION'; const BROAD_TARGETING = 'BROAD_TARGETING'; const BUDGET_LIMITED = 'BUDGET_LIMITED'; const CAPI = 'CAPI'; + const CAPI_CRM_GUIDANCE = 'CAPI_CRM_GUIDANCE'; const CAPI_PERFORMANCE_MATCH_KEY = 'CAPI_PERFORMANCE_MATCH_KEY'; const CAPI_PERFORMANCE_MATCH_KEY_V2 = 'CAPI_PERFORMANCE_MATCH_KEY_V2'; const CASH_REWARDS_OPT_IN = 'CASH_REWARDS_OPT_IN'; + const CATALOG_MATCH_RATE = 'CATALOG_MATCH_RATE'; + const COMMERCE_SHOPS_ADS_DUPLICATION = 'COMMERCE_SHOPS_ADS_DUPLICATION'; const CONNECTED_SOURCES = 'CONNECTED_SOURCES'; + const CONNECTED_SOURCES_DUPLICATION = 'CONNECTED_SOURCES_DUPLICATION'; const CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM = 'CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM'; const CONNECT_FACEBOOK_PAGE_TO_WHATSAPP = 'CONNECT_FACEBOOK_PAGE_TO_WHATSAPP'; const CONVERSION_LEAD_ADS = 'CONVERSION_LEAD_ADS'; @@ -90,68 +108,102 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const CREATIVE_BADGE = 'CREATIVE_BADGE'; const CREATIVE_DIVERSITY = 'CREATIVE_DIVERSITY'; const CREATIVE_FATIGUE = 'CREATIVE_FATIGUE'; + const CREATIVE_FATIGUE_DUPLICATION = 'CREATIVE_FATIGUE_DUPLICATION'; const CREATIVE_FATIGUE_HOURLY = 'CREATIVE_FATIGUE_HOURLY'; const CREATIVE_LIMITED = 'CREATIVE_LIMITED'; + const CREATIVE_LIMITED_DUPLICATION = 'CREATIVE_LIMITED_DUPLICATION'; const CREATIVE_LIMITED_HOURLY = 'CREATIVE_LIMITED_HOURLY'; const CREATOR_ADS_PA_CONVERSION = 'CREATOR_ADS_PA_CONVERSION'; const CTA = 'CTA'; const CTX_BUDGET_OPTIMIZATION = 'CTX_BUDGET_OPTIMIZATION'; const CTX_CREATION_PACKAGE = 'CTX_CREATION_PACKAGE'; + const CTX_CTA_UPGRADE_IN_DUPLICATION = 'CTX_CTA_UPGRADE_IN_DUPLICATION'; const CTX_GUIDANCE = 'CTX_GUIDANCE'; + const CTX_PRECREATE = 'CTX_PRECREATE'; const DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS = 'DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS'; const DA_DUPLICATION_PRODUCT_TAGS = 'DA_DUPLICATION_PRODUCT_TAGS'; const DEAD_LINK = 'DEAD_LINK'; const DEFRAGMENTATION_ACB = 'DEFRAGMENTATION_ACB'; + const DEFRAGMENTATION_ACB_DUPLICATION = 'DEFRAGMENTATION_ACB_DUPLICATION'; + const DELIVERY_ERROR = 'DELIVERY_ERROR'; + const DELIVERY_WARNING = 'DELIVERY_WARNING'; const DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET = 'DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET'; const ECOSYSTEM_BID_REDUCE_L1_CARDINALITY = 'ECOSYSTEM_BID_REDUCE_L1_CARDINALITY'; const EVC_APP_DUPLICATION_UPGRADE = 'EVC_APP_DUPLICATION_UPGRADE'; const EVC_WEB_DUPLICATION_UPGRADE = 'EVC_WEB_DUPLICATION_UPGRADE'; const FRAGMENTATION = 'FRAGMENTATION'; + const FRAGMENTATION_RESOLUTION_UPDATE = 'FRAGMENTATION_RESOLUTION_UPDATE'; const FRAGMENTATION_V2 = 'FRAGMENTATION_V2'; + const GENERATIVE_UNCROP_DUPLICATION = 'GENERATIVE_UNCROP_DUPLICATION'; const GES_TEST = 'GES_TEST'; const GUIDANCE_CENTER_CODE_GEN = 'GUIDANCE_CENTER_CODE_GEN'; const HEURISTIC_DEFAULT_DURATION = 'HEURISTIC_DEFAULT_DURATION'; const HIGH_COST = 'HIGH_COST'; const HISTORICAL_BENCHMARK = 'HISTORICAL_BENCHMARK'; const IG_MULTI_ADS = 'IG_MULTI_ADS'; + const LANDING_PAGE_VIEW_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_OUTCOME = 'LOW_OUTCOME'; const MERLIN_GUIDANCE = 'MERLIN_GUIDANCE'; + const MESSAGING_EVENTS_PRECREATE = 'MESSAGING_EVENTS_PRECREATE'; + const MESSAGING_PARTNERS_PRECREATE = 'MESSAGING_PARTNERS_PRECREATE'; + const META_VERIFIED_ADS_PERFORMANCE_GUIDANCE = 'META_VERIFIED_ADS_PERFORMANCE_GUIDANCE'; + 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_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 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_PRECREATE = 'PIXEL_OPTIMIZATION_AAM_PRECREATE'; + const PIXEL_OPTIMIZATION_HIE_PRECREATE = 'PIXEL_OPTIMIZATION_HIE_PRECREATE'; + const PIXEL_SETUP_PRECREATE = 'PIXEL_SETUP_PRECREATE'; const PIXEL_UPSELL = 'PIXEL_UPSELL'; + const PLACEMENTS_LIQUIDITY_AUTOMATIC_GUIDANCE = 'PLACEMENTS_LIQUIDITY_AUTOMATIC_GUIDANCE'; const PREDICTIVE_CREATIVE_LIMITED = 'PREDICTIVE_CREATIVE_LIMITED'; const PREDICTIVE_CREATIVE_LIMITED_HOURLY = 'PREDICTIVE_CREATIVE_LIMITED_HOURLY'; const PREPARING_STATUS = 'PREPARING_STATUS'; const PURCHASE_OPTIMIZATION = 'PURCHASE_OPTIMIZATION'; const RAPID_LEARNING_LIMITED = 'RAPID_LEARNING_LIMITED'; const RAPID_LEARNING_PHASE = 'RAPID_LEARNING_PHASE'; + const REACH_OPTIMIZATION_GOAL = 'REACH_OPTIMIZATION_GOAL'; + const REACH_OPTIMIZATION_GOAL_PRECREATE = 'REACH_OPTIMIZATION_GOAL_PRECREATE'; const REELS_DUPLICATION_UPSELL = 'REELS_DUPLICATION_UPSELL'; + const REELS_MUSIC_DUPLICATION = 'REELS_MUSIC_DUPLICATION'; + const REELS_PC_AND_MOBILE_FIRST_CREATIVE = 'REELS_PC_AND_MOBILE_FIRST_CREATIVE'; + const REELS_PERFORMANT_CREATIVE = 'REELS_PERFORMANT_CREATIVE'; const REELS_PLACEMENT = 'REELS_PLACEMENT'; const REVERT = 'REVERT'; + const SABR_DEFAULT_DURATION = 'SABR_DEFAULT_DURATION'; + const SALES_CONVERSION = 'SALES_CONVERSION'; const SCALE_GOOD_CAMPAIGN = 'SCALE_GOOD_CAMPAIGN'; + const SCALE_GOOD_CAMPAIGN_DUPLICATION = 'SCALE_GOOD_CAMPAIGN_DUPLICATION'; + const SCALE_GOOD_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 SHOP_ADS_V2 = 'SHOP_ADS_V2'; const SIGNALS_GROWTH_CAPI = 'SIGNALS_GROWTH_CAPI'; + const SIGNALS_GROWTH_CAPI_PRECREATE = 'SIGNALS_GROWTH_CAPI_PRECREATE'; const SIGNALS_GROWTH_CAPI_TABLE = 'SIGNALS_GROWTH_CAPI_TABLE'; const SIGNALS_GROWTH_CAPI_V2 = 'SIGNALS_GROWTH_CAPI_V2'; const SIMILAR_ADVERTISER_BUDGET_RECOMMENDATION = 'SIMILAR_ADVERTISER_BUDGET_RECOMMENDATION'; const SIX_PLUS_MANUAL_PLACEMENTS = 'SIX_PLUS_MANUAL_PLACEMENTS'; + const SIX_PLUS_PLACEMENTS_DUPLICATION = 'SIX_PLUS_PLACEMENTS_DUPLICATION'; const SPEND_LIMIT = 'SPEND_LIMIT'; const SYD_TEST_MODE = 'SYD_TEST_MODE'; const TAILORED_LEAD_AD_CAMPAIGN = 'TAILORED_LEAD_AD_CAMPAIGN'; @@ -165,8 +217,13 @@ class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum { const TWO_P_GUIDANCE_CARD_CTM_PREFLIGHT = 'TWO_P_GUIDANCE_CARD_CTM_PREFLIGHT'; const UNCROP_IMAGE = 'UNCROP_IMAGE'; const UNECONOMICAL_ADS_THROTTLING = 'UNECONOMICAL_ADS_THROTTLING'; + const UNIFIED_INBOX = 'UNIFIED_INBOX'; const UNUSED_BUDGET = 'UNUSED_BUDGET'; const VIDEO_LENGTH = 'VIDEO_LENGTH'; + const VIDEO_VIEWS_UPSELL = 'VIDEO_VIEWS_UPSELL'; + const VIDEO_VIEWS_UPSELL_PRECREATE = 'VIDEO_VIEWS_UPSELL_PRECREATE'; + const WA_MESSAGING_PARTNERS_PRECREATE = 'WA_MESSAGING_PARTNERS_PRECREATE'; + const WEB_ENGAGED_VIEW_CONVERSIONS = 'WEB_ENGAGED_VIEW_CONVERSIONS'; const ZERO_CONVERSION = 'ZERO_CONVERSION'; const ZERO_IMPRESSION = 'ZERO_IMPRESSION'; } diff --git a/src/FacebookAds/Object/Values/AdAccountBrandSafetyContentFilterLevelsValues.php b/src/FacebookAds/Object/Values/AdAccountBrandSafetyContentFilterLevelsValues.php new file mode 100644 index 000000000..20e9a5cb6 --- /dev/null +++ b/src/FacebookAds/Object/Values/AdAccountBrandSafetyContentFilterLevelsValues.php @@ -0,0 +1,37 @@ +assureId(); $param_types = array( @@ -78,10 +79,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -89,22 +90,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/VehicleOffer.php b/src/FacebookAds/Object/VehicleOffer.php index 3ff582598..3d8d6d7a1 100644 --- a/src/FacebookAds/Object/VehicleOffer.php +++ b/src/FacebookAds/Object/VehicleOffer.php @@ -14,6 +14,7 @@ use FacebookAds\Http\RequestInterface; use FacebookAds\TypeChecker; use FacebookAds\Object\Fields\VehicleOfferFields; +use FacebookAds\Object\Values\OverrideDetailsTypeValues; use FacebookAds\Object\Values\VehicleOfferImageFetchStatusValues; use FacebookAds\Object\Values\VehicleOfferVisibilityValues; @@ -43,7 +44,7 @@ protected static function getReferencedEnums() { } - public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = false) { + public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( @@ -55,10 +56,10 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/augmented_realities_metadata', - new DynamicARMetadata(), + '/channels_to_integrity_status', + new CatalogItemChannelsToIntegrityStatus(), 'EDGE', - DynamicARMetadata::getFieldsEnum()->getValues(), + CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); @@ -66,22 +67,25 @@ public function getAugmentedRealitiesMetadata(array $fields = array(), array $pa return $pending ? $request : $request->execute(); } - public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = false) { + public function getOverrideDetails(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( + 'keys' => 'list', + 'type' => 'type_enum', ); $enums = array( + 'type_enum' => OverrideDetailsTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, - '/channels_to_integrity_status', - new CatalogItemChannelsToIntegrityStatus(), + '/override_details', + new OverrideDetails(), 'EDGE', - CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), + OverrideDetails::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); diff --git a/src/FacebookAds/Object/WhatsAppBusinessAccount.php b/src/FacebookAds/Object/WhatsAppBusinessAccount.php index c031ec94e..627ae8337 100644 --- a/src/FacebookAds/Object/WhatsAppBusinessAccount.php +++ b/src/FacebookAds/Object/WhatsAppBusinessAccount.php @@ -16,6 +16,7 @@ use FacebookAds\Object\Fields\WhatsAppBusinessAccountFields; use FacebookAds\Object\Values\WhatsAppBusinessAccountCategoryValues; use FacebookAds\Object\Values\WhatsAppBusinessAccountDisplayFormatValues; +use FacebookAds\Object\Values\WhatsAppBusinessAccountProviderNameValues; use FacebookAds\Object\Values\WhatsAppBusinessAccountSubCategoryValues; use FacebookAds\Object\Values\WhatsAppBusinessAccountTasksValues; @@ -43,10 +44,34 @@ protected static function getReferencedEnums() { $ref_enums['Category'] = WhatsAppBusinessAccountCategoryValues::getInstance()->getValues(); $ref_enums['DisplayFormat'] = WhatsAppBusinessAccountDisplayFormatValues::getInstance()->getValues(); $ref_enums['SubCategory'] = WhatsAppBusinessAccountSubCategoryValues::getInstance()->getValues(); + $ref_enums['ProviderName'] = WhatsAppBusinessAccountProviderNameValues::getInstance()->getValues(); return $ref_enums; } + public function getActivities(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/activities', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function deleteAssignedUsers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -216,6 +241,53 @@ public function getConversationAnalytics(array $fields = array(), array $params return $pending ? $request : $request->execute(); } + public function getDataset(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/dataset', + new Dataset(), + 'EDGE', + Dataset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createDataset(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'dataset_name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/dataset', + new Dataset(), + 'EDGE', + Dataset::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getDccConfig(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -278,6 +350,7 @@ public function createFlow(array $fields = array(), array $params = array(), $pe 'CUSTOMER_SUPPORT', 'LEAD_GENERATION', 'OTHER', + 'SHOPPING', 'SIGN_IN', 'SIGN_UP', 'SURVEY', @@ -299,6 +372,31 @@ public function createFlow(array $fields = array(), array $params = array(), $pe return $pending ? $request : $request->execute(); } + public function createGeneratePaymentConfigurationOauthLink(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'configuration_name' => 'string', + 'redirect_url' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/generate_payment_configuration_oauth_link', + new WhatsAppBusinessAccount(), + 'EDGE', + WhatsAppBusinessAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getMessageCampaigns(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -467,6 +565,32 @@ public function createMessageTemplate(array $fields = array(), array $params = a return $pending ? $request : $request->execute(); } + public function createMigrateFlow(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'page_number' => 'unsigned int', + 'source_flow_ids' => 'list', + 'source_waba_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/migrate_flows', + new WhatsAppBusinessAccount(), + 'EDGE', + WhatsAppBusinessAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function createMigrateMessageTemplate(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -492,6 +616,107 @@ public function createMigrateMessageTemplate(array $fields = array(), array $par return $pending ? $request : $request->execute(); } + public function deletePaymentConfiguration(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'configuration_name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_DELETE, + '/payment_configuration', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getPaymentConfiguration(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'configuration_name' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/payment_configuration', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function createPaymentConfiguration(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'configuration_name' => 'string', + 'merchant_category_code' => 'string', + 'merchant_vpa' => 'string', + 'provider_name' => 'provider_name_enum', + 'purpose_code' => 'string', + 'redirect_url' => 'string', + ); + $enums = array( + 'provider_name_enum' => WhatsAppBusinessAccountProviderNameValues::getInstance()->getValues(), + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/payment_configuration', + new WhatsAppBusinessAccount(), + 'EDGE', + WhatsAppBusinessAccount::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + + public function getPaymentConfigurations(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/payment_configurations', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getPhoneNumbers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -661,6 +886,30 @@ public function createSetOboMobilityIntent(array $fields = array(), array $param return $pending ? $request : $request->execute(); } + public function createSetSolutionMigrationInTEnt(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'solution_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_POST, + '/set_solution_migration_intent', + new AbstractCrudObject(), + 'EDGE', + array(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSolutions(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); @@ -762,6 +1011,7 @@ public function getTemplateAnalytics(array $fields = array(), array $params = ar 'end' => 'datetime', 'granularity' => 'granularity_enum', 'metric_types' => 'list', + 'product_type' => 'product_type_enum', 'start' => 'datetime', 'template_ids' => 'list', ); @@ -776,6 +1026,10 @@ public function getTemplateAnalytics(array $fields = array(), array $params = ar 'READ', 'SENT', ), + 'product_type_enum' => array( + 'CLOUD_API', + 'MARKETING_MESSAGES_LITE_API', + ), ); $request = new ApiRequest( @@ -847,6 +1101,31 @@ public function createUpsertMessageTemplate(array $fields = array(), array $para return $pending ? $request : $request->execute(); } + public function getWelcomeMessageSequences(array $fields = array(), array $params = array(), $pending = false) { + $this->assureId(); + + $param_types = array( + 'app_id' => 'string', + 'sequence_id' => 'string', + ); + $enums = array( + ); + + $request = new ApiRequest( + $this->api, + $this->data['id'], + RequestInterface::METHOD_GET, + '/welcome_message_sequences', + new CTXPartnerAppWelcomeMessageFlow(), + 'EDGE', + CTXPartnerAppWelcomeMessageFlow::getFieldsEnum()->getValues(), + new TypeChecker($param_types, $enums) + ); + $request->addParams($params); + $request->addFields($fields); + return $pending ? $request : $request->execute(); + } + public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); From 430e25ea9868a71fcb941b045fef3c06205dd22c Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Tue, 17 Sep 2024 12:24:29 -0700 Subject: [PATCH 28/34] Update AdCreativeFeatureDetails Fields Summary: [BizSDK] Update AdCreativeFeatureDetails Fields Add the customizations field in AdCreativeFeatureDetails node. Also remove some unsupported fields from the AdCreativeFeatureCustomizations node. Reviewed By: liliarizona Differential Revision: D62890910 fbshipit-source-id: 1fdad3ce9d8c17811e67dd1d79d5026ce6b27c89 --- .../AdCreativeFeatureCustomizationsFields.php | 14 -------------- .../Fields/AdCreativeFeatureDetailsFields.php | 2 ++ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php index 1a77c37cd..c1c313549 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureCustomizationsFields.php @@ -22,25 +22,11 @@ class AdCreativeFeatureCustomizationsFields extends AbstractEnum { - const BACKGROUND_COLOR = 'background_color'; - const CATALOG_FEED_TAG_NAME = 'catalog_feed_tag_name'; - const FONT_NAME = 'font_name'; - const PRODUCT_RECOMMENDATION_TYPE = 'product_recommendation_type'; - const PRODUCT_VERSIONING_FALLBACK_STRATEGY = 'product_versioning_fallback_strategy'; const SHOWCASE_CARD_DISPLAY = 'showcase_card_display'; - const TEXT_STYLE = 'text_style'; - const VIDEO_CROP_STYLE = 'video_crop_style'; public function getFieldTypes() { return array( - 'background_color' => 'string', - 'catalog_feed_tag_name' => 'string', - 'font_name' => 'string', - 'product_recommendation_type' => 'string', - 'product_versioning_fallback_strategy' => 'string', 'showcase_card_display' => 'string', - 'text_style' => 'string', - 'video_crop_style' => 'string', ); } } diff --git a/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php b/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php index 8e3a03fe7..834f17a09 100644 --- a/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php +++ b/src/FacebookAds/Object/Fields/AdCreativeFeatureDetailsFields.php @@ -22,10 +22,12 @@ class AdCreativeFeatureDetailsFields extends AbstractEnum { + const CUSTOMIZATIONS = 'customizations'; const ENROLL_STATUS = 'enroll_status'; public function getFieldTypes() { return array( + 'customizations' => 'AdCreativeFeatureCustomizations', 'enroll_status' => 'string', ); } From 607bedf666d3f59da505207ae0e13e4067d5e350 Mon Sep 17 00:00:00 2001 From: "Li Li (AXP)" Date: Wed, 18 Sep 2024 13:41:03 -0700 Subject: [PATCH 29/34] Bump SDK Versions By 0.0.1 Summary: as titled Reviewed By: yoongyj, stcheng Differential Revision: D62960011 fbshipit-source-id: cdccbc786e857b514ebbe030cf91628f4ed1ee1f --- src/FacebookAds/ApiConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index 8cfd96b15..a891e2ba0 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '20.0'; - const SDKVersion = '20.0.2'; + const SDKVersion = '20.0.3'; const TYPE_CHECKER_STRICT_MODE = false; } From 69f2310839f56325e310fb0bcf4cdae11f74c401 Mon Sep 17 00:00:00 2001 From: Jiaming You Date: Thu, 26 Sep 2024 11:40:39 -0700 Subject: [PATCH 30/34] Biz SDK and FBC Combiner Summary: added FBC Combiner integration for Business SDK: php Reviewed By: stcheng Differential Revision: D62271151 fbshipit-source-id: ceadcfa1f97d31df89f3944b616b41b4c24a7738 --- composer.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index cbfab4b30..c76f4e8fc 100644 --- a/composer.json +++ b/composer.json @@ -11,9 +11,16 @@ "page" ], "homepage": "https://developers.facebook.com/", + "repositories": [ + { + "type": "composer", + "url": "https://capi-automation.s3.amazonaws.com/public/php" + } + ], "require": { "php": ">=8.0", - "guzzlehttp/guzzle": "^6.5 || ^7.0" + "guzzlehttp/guzzle": "^6.5 || ^7.0", + "facebook/php-capi-param-builder": "0.0.1-dev" }, "require-dev": { "phpunit/phpunit": "~9", @@ -24,5 +31,6 @@ "psr-4": { "FacebookAds\\": "src/FacebookAds/" } - } + }, + "minimum-stability": "dev" } From 089d4fd0f08758f0b43350bc6ab125fcd258453a Mon Sep 17 00:00:00 2001 From: Jiaming You Date: Tue, 8 Oct 2024 14:21:38 -0700 Subject: [PATCH 31/34] Update ParamBuilder to 0.1.0-dev for PHP Summary: Update ParamBuilder to 0.1.0-dev for PHP Differential Revision: D64062213 fbshipit-source-id: 5287d98f6bb70ea36d503e6fbc71036ba4c912ae --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c76f4e8fc..9eba85b75 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "require": { "php": ">=8.0", "guzzlehttp/guzzle": "^6.5 || ^7.0", - "facebook/php-capi-param-builder": "0.0.1-dev" + "facebook/php-capi-param-builder": "0.1.0-dev" }, "require-dev": { "phpunit/phpunit": "~9", From 7ec7292c1ce3c78e2005d730da0092e28458af95 Mon Sep 17 00:00:00 2001 From: Satwika Reddy Maddi Date: Wed, 9 Oct 2024 10:18:05 -0700 Subject: [PATCH 32/34] 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', From bd8fbf11b8fcb520c92e98bb0c3288d2c2a04d11 Mon Sep 17 00:00:00 2001 From: "Li Li (AXP)" Date: Wed, 16 Oct 2024 17:20:38 -0700 Subject: [PATCH 33/34] Remove dependency of capa_param_builder on php SDK Summary: As titled Differential Revision: D64509782 fbshipit-source-id: 4ee282104b263c227a7a724a9330a24dae39ea2c --- composer.json | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 9eba85b75..cbfab4b30 100644 --- a/composer.json +++ b/composer.json @@ -11,16 +11,9 @@ "page" ], "homepage": "https://developers.facebook.com/", - "repositories": [ - { - "type": "composer", - "url": "https://capi-automation.s3.amazonaws.com/public/php" - } - ], "require": { "php": ">=8.0", - "guzzlehttp/guzzle": "^6.5 || ^7.0", - "facebook/php-capi-param-builder": "0.1.0-dev" + "guzzlehttp/guzzle": "^6.5 || ^7.0" }, "require-dev": { "phpunit/phpunit": "~9", @@ -31,6 +24,5 @@ "psr-4": { "FacebookAds\\": "src/FacebookAds/" } - }, - "minimum-stability": "dev" + } } From 3ec36fd90a3847470fae3c5e929640e6cb9ea245 Mon Sep 17 00:00:00 2001 From: "Li Li (AXP)" Date: Wed, 16 Oct 2024 17:46:10 -0700 Subject: [PATCH 34/34] bump php sdk version by 0.0.1 Summary: as titled Reviewed By: stcheng, satwikareddy3 Differential Revision: D64510329 fbshipit-source-id: e006b90dd6328f41849ad63252ce592e684b4558 --- src/FacebookAds/ApiConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FacebookAds/ApiConfig.php b/src/FacebookAds/ApiConfig.php index baf4a88dc..b2d6af7c8 100644 --- a/src/FacebookAds/ApiConfig.php +++ b/src/FacebookAds/ApiConfig.php @@ -10,6 +10,6 @@ namespace FacebookAds; class ApiConfig { const APIVersion = '21.0'; - const SDKVersion = '21.0.0'; + const SDKVersion = '21.0.1'; const TYPE_CHECKER_STRICT_MODE = false; }