PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads) - Version 7.1.9

Version Description

Download this release

Release Info

Developer PixelYourSite
Plugin Icon 128x128 PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads)
Version 7.1.9
Comparing to
See all releases

Code changes from version 7.1.8 to 7.1.9

Files changed (220) hide show
  1. composer.json +1 -1
  2. composer.lock +6 -6
  3. dist/scripts/public.js +12 -4
  4. facebook-pixel-master.php +21 -2
  5. includes/class-events-manager.php +29 -9
  6. includes/functions-common.php +0 -8
  7. includes/functions-custom-event.php +2 -0
  8. includes/views/html-main-events-edit.php +1 -0
  9. modules/facebook/facebook.php +5 -3
  10. pixelyoursite.php +8 -18
  11. readme.txt +804 -790
  12. vendor/composer/installed.json +6 -6
  13. vendor/facebook/php-business-sdk/.gitignore +14 -0
  14. vendor/facebook/php-business-sdk/.travis.yml +30 -0
  15. vendor/facebook/php-business-sdk/CHANGELOG.md +74 -0
  16. vendor/facebook/php-business-sdk/CODE_OF_CONDUCT.md +3 -0
  17. vendor/facebook/php-business-sdk/CONTRIBUTING.md +45 -0
  18. vendor/facebook/php-business-sdk/DEVELOPER_GUIDE.md +495 -0
  19. vendor/facebook/php-business-sdk/LICENSE +19 -0
  20. vendor/facebook/php-business-sdk/README.md +360 -0
  21. vendor/facebook/php-business-sdk/composer.json +23 -0
  22. vendor/facebook/php-business-sdk/src/FacebookAds/ApiConfig.php +2 -2
  23. vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php +4 -0
  24. vendor/facebook/php-business-sdk/src/FacebookAds/Http/SimpleRequest.php +74 -0
  25. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccount.php +11 -195
  26. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdCreative.php +2 -24
  27. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{AdsTALHealthCheckError.php → AdCreativeAdDisclaimer.php} +4 -4
  28. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{RequestHistory.php → AdCreativePhotoDataMediaElements.php} +4 -6
  29. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdPlacePageSet.php +0 -24
  30. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdReportRun.php +0 -48
  31. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdReportSpec.php +0 -23
  32. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdSet.php +4 -2
  33. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdStudy.php +0 -23
  34. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdStudyObjective.php +1 -0
  35. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdVideo.php +0 -28
  36. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{BusinessPixelTOS.php → AdsInterest.php} +6 -13
  37. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdsPixel.php +5 -25
  38. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Album.php +49 -0
  39. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Application.php +2 -91
  40. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Business.php +123 -16
  41. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{OpenGraphObject.php → BusinessAgreement.php} +18 -16
  42. vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessCreativeFolder.php +0 -24
  43. vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessCreativeFolderSharingAgreement.php +82 -0
  44. vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessImage.php +74 -0
  45. vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessOwnedObjectOnBehalfOfRequest.php +0 -23
  46. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Campaign.php +6 -5
  47. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{LeadGenFormPreviewDetails.php → CatalogItemAppLinks.php} +4 -4
  48. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{CustomAudiencePrefillState.php → CatalogItemAppealStatus.php} +4 -4
  49. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Comment.php +23 -0
  50. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettings.php +332 -0
  51. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettingsSetupStatus.php +57 -0
  52. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceOrder.php +397 -0
  53. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceOrderTransactionDetail.php +80 -0
  54. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommercePayout.php +57 -0
  55. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CreativeAssetTag.php +57 -0
  56. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CustomAudience.php +0 -23
  57. vendor/facebook/php-business-sdk/src/FacebookAds/Object/DynamicItemDisplayBundle.php +0 -161
  58. vendor/facebook/php-business-sdk/src/FacebookAds/Object/DynamicItemDisplayBundleFolder.php +0 -182
  59. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountActivityFields.php +3 -7
  60. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountCreationRequestFields.php +0 -2
  61. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +2 -0
  62. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignActivityFields.php +2 -2
  63. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignLearningStageInfoFields.php +0 -4
  64. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativeAdDisclaimerFields.php +51 -0
  65. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativeFields.php +2 -0
  66. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativePhotoDataMediaElementsFields.php +53 -0
  67. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativeVideoDataFields.php +2 -0
  68. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCustomizationRuleSpecFields.php +4 -0
  69. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdFields.php +0 -2
  70. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdSetFields.php +4 -0
  71. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupActivityFields.php +4 -4
  72. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php +4 -0
  73. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdsInsightsFields.php +6 -210
  74. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{DynamicItemDisplayBundleFields.php → AdsInterestFields.php} +9 -9
  75. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AppRequestFields.php +2 -2
  76. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AudioCopyrightFields.php +2 -0
  77. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AutomotiveModelFields.php +2 -0
  78. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{BusinessPixelTOSFields.php → BusinessAgreementFields.php} +3 -3
  79. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/BusinessCreativeFolderFields.php +2 -0
  80. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{VideoGameShowFields.php → BusinessCreativeFolderSharingAgreementFields.php} +7 -9
  81. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/BusinessImageFields.php +2 -0
  82. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CampaignFields.php +2 -0
  83. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CatalogItemAppLinksFields.php +61 -0
  84. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{CustomAudiencePrefillStateFields.php → CatalogItemAppealStatusFields.php} +7 -5
  85. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php +87 -0
  86. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsSetupStatusFields.php +55 -0
  87. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{InstagramCommentFields.php → CommerceOrderFields.php} +23 -13
  88. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{DynamicItemDisplayBundleFolderFields.php → CommerceOrderTransactionDetailFields.php} +17 -11
  89. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommercePayoutFields.php +55 -0
  90. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CopyrightReferenceContainerFields.php +0 -2
  91. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{AdsTALHealthCheckErrorFields.php → CreativeAssetTagFields.php} +3 -5
  92. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/DestinationFields.php +2 -0
  93. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/EventFields.php +2 -0
  94. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/FlightFields.php +2 -0
  95. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HomeListingFields.php +2 -0
  96. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HotelFields.php +2 -2
  97. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HotelRoomFields.php +2 -0
  98. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/IGUserFields.php +4 -0
  99. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php +0 -69
  100. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/MessengerProfileFields.php +0 -2
  101. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/MusicVideoCopyrightFields.php +2 -0
  102. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/OpenGraphObjectFields.php +0 -87
  103. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageFields.php +8 -2
  104. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PagePostFields.php +18 -0
  105. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PostFields.php +18 -0
  106. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductCatalogFields.php +6 -2
  107. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductFeedFields.php +4 -0
  108. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductFeedUploadDiagnosticsReportFields.php +49 -0
  109. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductItemFields.php +2 -0
  110. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ReachFrequencyActivityFields.php +0 -12
  111. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ReachFrequencyPredictionFields.php +0 -4
  112. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/RequestHistoryFields.php +0 -59
  113. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/UserFields.php +2 -0
  114. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleFields.php +2 -2
  115. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleOfferFields.php +2 -0
  116. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VideoCopyrightFields.php +2 -2
  117. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Group.php +0 -54
  118. vendor/facebook/php-business-sdk/src/FacebookAds/Object/InstagramComment.php +0 -177
  119. vendor/facebook/php-business-sdk/src/FacebookAds/Object/LifeEvent.php +0 -23
  120. vendor/facebook/php-business-sdk/src/FacebookAds/Object/MediaFingerprint.php +0 -2
  121. vendor/facebook/php-business-sdk/src/FacebookAds/Object/OfflineConversionDataSet.php +0 -24
  122. vendor/facebook/php-business-sdk/src/FacebookAds/Object/OpenGraphContext.php +0 -69
  123. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Page.php +194 -136
  124. vendor/facebook/php-business-sdk/src/FacebookAds/Object/PagePost.php +1 -15
  125. vendor/facebook/php-business-sdk/src/FacebookAds/Object/PartnerStudy.php +0 -23
  126. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Post.php +7 -2
  127. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductCatalog.php +26 -108
  128. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductFeedUploadDiagnosticsReport.php +57 -0
  129. vendor/facebook/php-business-sdk/src/FacebookAds/Object/PublisherBlockList.php +0 -24
  130. vendor/facebook/php-business-sdk/src/FacebookAds/Object/RTBDynamicPost.php +0 -23
  131. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/AdsPixelSettings.php +201 -0
  132. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Content.php +137 -151
  133. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/CustomData.php +514 -496
  134. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Event.php +332 -359
  135. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php +228 -249
  136. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventResponse.php +198 -217
  137. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Gender.php +9 -11
  138. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Normalizer.php +194 -0
  139. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/UserData.php +594 -615
  140. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Util.php +46 -141
  141. vendor/facebook/php-business-sdk/src/FacebookAds/Object/StoreCatalogSettings.php +23 -0
  142. vendor/facebook/php-business-sdk/src/FacebookAds/Object/URL.php +1 -1
  143. vendor/facebook/php-business-sdk/src/FacebookAds/Object/UnifiedThread.php +0 -106
  144. vendor/facebook/php-business-sdk/src/FacebookAds/Object/User.php +0 -319
  145. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountContentTypeValues.php +2 -0
  146. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountDeliveryEstimateOptimizationGoalValues.php +1 -0
  147. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedObjectiveValues.php +1 -0
  148. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedWhitelistedTypesValues.php +3 -0
  149. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdActivityEventTypeValues.php +3 -0
  150. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php +5 -0
  151. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityBidStrategyNewValues.php +1 -0
  152. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityBidStrategyOldValues.php +1 -0
  153. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityOptimizationGoalNewValues.php +1 -0
  154. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityOptimizationGoalOldValues.php +1 -0
  155. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignDeliveryEstimateOptimizationGoalValues.php +1 -0
  156. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php +5 -0
  157. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PostWithValues.php → AdCreativeInstantCheckoutSettingValues.php} +4 -3
  158. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php +5 -0
  159. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdNetworkAnalyticsSyncQueryResultBreakdownsValues.php +3 -0
  160. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php +2 -0
  161. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdSetBidStrategyValues.php +1 -0
  162. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{AdVideoVideoPollWwwPlacementValues.php → AdSetMultiOptimizationGoalWeightValues.php} +6 -6
  163. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdSetOptimizationGoalValues.php +1 -0
  164. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdStudyTypeValues.php +1 -0
  165. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +3 -0
  166. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoValidationAdPlacementsValues.php +1 -0
  167. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php +1 -0
  168. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAgreementRequestStatusValues.php +45 -0
  169. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupPageTasksValues.php +7 -3
  170. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetSharingAgreementRequestStatusValues.php +1 -0
  171. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessCreativeFolderSharingAgreementRequestStatusValues.php +45 -0
  172. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessImageValidationAdPlacementsValues.php +1 -0
  173. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessOwnedObjectOnBehalfOfRequestStatusValues.php +1 -0
  174. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessPagePermittedTasksValues.php +7 -3
  175. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessRoleRequestRoleValues.php +1 -0
  176. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessUserRoleValues.php +1 -0
  177. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CPASParentCatalogSettingsAttributionWindowsValues.php +1 -0
  178. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignBidStrategyValues.php +1 -0
  179. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignObjectiveValues.php +1 -0
  180. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignSpecialAdCategoriesValues.php +44 -0
  181. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MediaFingerprintFingerprintValidityValues.php → CommerceMerchantSettingsMerchantStatusValues.php} +4 -5
  182. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CommerceOrderFiltersValues.php +46 -0
  183. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CommerceOrderReasonCodeValues.php +50 -0
  184. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CommerceOrderStateValues.php +44 -0
  185. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ContentDeliveryReportPlatformValues.php +1 -0
  186. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ContentDeliveryReportPositionValues.php +3 -1
  187. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CustomAudienceContentTypeValues.php +2 -0
  188. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CustomConversionCustomEventTypeValues.php +1 -0
  189. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupGroupTypeValues.php +2 -0
  190. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupPurposeValues.php +2 -0
  191. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupSuggestionCategoryValues.php +0 -14
  192. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageBackdatedTimeGranularityValues.php +46 -0
  193. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionAndroidDestinationTypeValues.php +3 -0
  194. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionIphoneDestinationTypeValues.php +3 -0
  195. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionTypeValues.php +5 -0
  196. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionWebDestinationTypeValues.php +2 -0
  197. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostCheckinEntryPointValues.php → PageCheckinEntryPointValues.php} +2 -2
  198. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostFormattingValues.php → PageFormattingValues.php} +2 -2
  199. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PagePermittedTasksValues.php +7 -3
  200. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostPlaceAttachmentSettingValues.php → PagePlaceAttachmentSettingValues.php} +2 -2
  201. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostPostSurfacesBlacklistValues.php → PagePostSurfacesBlacklistValues.php} +2 -2
  202. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostPostingToRedspaceValues.php → PagePostingToRedspaceValues.php} +2 -2
  203. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageSenderActionValues.php +2 -0
  204. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageSubscribedFieldsValues.php +4 -0
  205. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostTargetSurfaceValues.php → PageTargetSurfaceValues.php} +2 -2
  206. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageTasksValues.php +7 -3
  207. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageTemporaryStatusValues.php +44 -0
  208. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostUnpublishedContentTypeValues.php → PageUnpublishedContentTypeValues.php} +2 -2
  209. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductCatalogVerticalValues.php +3 -0
  210. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductFeedFeedTypeValues.php +1 -0
  211. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductFeedUploadInputMethodValues.php +1 -0
  212. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProfileTypeValues.php +1 -0
  213. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/RequestHistoryHttpMethodValues.php +0 -43
  214. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/StreamingReactionReactionTypeValues.php +1 -0
  215. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/SystemUserRoleValues.php +1 -0
  216. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/UserResumeTypeValues.php +0 -42
  217. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/UserServiceTypeValues.php +0 -88
  218. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/VideoGameShowActionValues.php +0 -42
  219. vendor/facebook/php-business-sdk/src/FacebookAds/Object/VideoGameShow.php +0 -156
  220. vendor/facebook/php-business-sdk/src/FacebookAds/Object/WhatsAppBusinessAccount.php +24 -0
composer.json CHANGED
@@ -3,7 +3,7 @@
3
  "description": "Track conversions and every action on your online store",
4
  "type": "project",
5
  "require": {
6
- "facebook/php-business-sdk": "6.0.0",
7
  "glenscott/url-normalizer": "1.4.0",
8
  "techcrunch/wp-async-task": "dev-master"
9
  }
3
  "description": "Track conversions and every action on your online store",
4
  "type": "project",
5
  "require": {
6
+ "facebook/php-business-sdk": "7.0.1",
7
  "glenscott/url-normalizer": "1.4.0",
8
  "techcrunch/wp-async-task": "dev-master"
9
  }
composer.lock CHANGED
@@ -4,20 +4,20 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "de7dcb29de2632a7e987ab99f4a3277f",
8
  "packages": [
9
  {
10
  "name": "facebook/php-business-sdk",
11
- "version": "6.0.0",
12
  "source": {
13
  "type": "git",
14
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
15
- "reference": "32c8678d3c50e0570b68d7cbb23062c16a5faf15"
16
  },
17
  "dist": {
18
  "type": "zip",
19
- "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/32c8678d3c50e0570b68d7cbb23062c16a5faf15",
20
- "reference": "32c8678d3c50e0570b68d7cbb23062c16a5faf15",
21
  "shasum": ""
22
  },
23
  "require-dev": {
@@ -41,7 +41,7 @@
41
  "page",
42
  "sdk"
43
  ],
44
- "time": "2020-02-03T20:06:10+00:00"
45
  },
46
  {
47
  "name": "glenscott/url-normalizer",
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "1e264f615095706828f20f7172cfbd01",
8
  "packages": [
9
  {
10
  "name": "facebook/php-business-sdk",
11
+ "version": "7.0.1",
12
  "source": {
13
  "type": "git",
14
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
15
+ "reference": "ae15c52c45015f1cd9e1adbbf442a75698a6e214"
16
  },
17
  "dist": {
18
  "type": "zip",
19
+ "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/ae15c52c45015f1cd9e1adbbf442a75698a6e214",
20
+ "reference": "ae15c52c45015f1cd9e1adbbf442a75698a6e214",
21
  "shasum": ""
22
  },
23
  "require-dev": {
41
  "page",
42
  "sdk"
43
  ],
44
+ "time": "2020-06-04T00:19:55+00:00"
45
  },
46
  {
47
  "name": "glenscott/url-normalizer",
dist/scripts/public.js CHANGED
@@ -719,7 +719,7 @@ if (!Array.prototype.includes) {
719
  options.gdpr.ginger_integration_enabled ||
720
  options.gdpr.cookie_notice_integration_enabled ||
721
  options.gdpr.cookie_law_info_integration_enabled;
722
- if( ( "Purchase" === name || "CompleteRegistration" === name) && isApiDisabled){
723
  var json = {
724
  action: 'pys_api_event',
725
  pixel: 'facebook',
@@ -734,7 +734,7 @@ if (!Array.prototype.includes) {
734
  });
735
  }
736
 
737
- if("CompleteRegistration" === name && options.facebook.wooCRSendFromServer && options.facebook.serverApiEnabled) {
738
  return;
739
  }
740
 
@@ -1331,10 +1331,18 @@ if (!Array.prototype.includes) {
1331
 
1332
  if (is_variable) {
1333
  product_id = parseInt($form.find('*[name="add-to-cart"]').val());
1334
- qty = parseInt($form.find('input[name="quantity"]').val());
 
 
 
 
1335
  } else {
1336
  product_id = parseInt($form.find('*[name="add-to-cart"]').val());
1337
- qty = parseInt($form.find('input[name="quantity"]').val());
 
 
 
 
1338
  }
1339
 
1340
  Facebook.onWooAddToCartOnSingleEvent(product_id, qty, is_variable, $form);
719
  options.gdpr.ginger_integration_enabled ||
720
  options.gdpr.cookie_notice_integration_enabled ||
721
  options.gdpr.cookie_law_info_integration_enabled;
722
+ if( ("hCR" === name || "CompleteRegistration" === name || "Purchase" === name) && isApiDisabled){
723
  var json = {
724
  action: 'pys_api_event',
725
  pixel: 'facebook',
734
  });
735
  }
736
 
737
+ if("hCR" === name) {
738
  return;
739
  }
740
 
1331
 
1332
  if (is_variable) {
1333
  product_id = parseInt($form.find('*[name="add-to-cart"]').val());
1334
+ var qtyTag = $form.find('input[name="quantity"]');
1335
+ if(qtyTag.length <= 0) {
1336
+ qtyTag = $form.find('select[name="quantity"]');
1337
+ }
1338
+ qty = parseInt(qtyTag.val());
1339
  } else {
1340
  product_id = parseInt($form.find('*[name="add-to-cart"]').val());
1341
+ var qtyTag = $form.find('input[name="quantity"]');
1342
+ if(qtyTag.length <= 0) {
1343
+ qtyTag = $form.find('select[name="quantity"]');
1344
+ }
1345
+ qty = parseInt(qtyTag.val());
1346
  }
1347
 
1348
  Facebook.onWooAddToCartOnSingleEvent(product_id, qty, is_variable, $form);
facebook-pixel-master.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: PixelYourSite
5
  * Plugin URI: http://www.pixelyoursite.com/
6
  * Description: No codding <strong>Facebook Pixel</strong> and <strong>Google Analytics</strong> install. Track key actions with our Global Events, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our free add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff.
7
- * Version: 7.1.8
8
  * Author: PixelYourSite
9
  * Author URI: http://www.pixelyoursite.com
10
  * License: GPLv3
@@ -13,7 +13,7 @@
13
  * Tested up to: 5.4
14
  *
15
  * WC requires at least: 2.6.0
16
- * WC tested up to: 4.1
17
  *
18
  * Text Domain: pys
19
  */
@@ -22,6 +22,25 @@ if ( ! defined( 'ABSPATH' ) ) {
22
  exit; // Exit if accessed directly.
23
  }
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  /**
26
  * facebook-pixel-master.php used for backward compatibility.
27
  */
4
  * Plugin Name: PixelYourSite
5
  * Plugin URI: http://www.pixelyoursite.com/
6
  * Description: No codding <strong>Facebook Pixel</strong> and <strong>Google Analytics</strong> install. Track key actions with our Global Events, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our free add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff.
7
+ * Version: 7.1.9
8
  * Author: PixelYourSite
9
  * Author URI: http://www.pixelyoursite.com
10
  * License: GPLv3
13
  * Tested up to: 5.4
14
  *
15
  * WC requires at least: 2.6.0
16
+ * WC tested up to: 4.2
17
  *
18
  * Text Domain: pys
19
  */
22
  exit; // Exit if accessed directly.
23
  }
24
 
25
+ function isPysProActive() {
26
+
27
+ if ( ! function_exists( 'is_plugin_active' ) ) {
28
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
29
+ }
30
+
31
+ return is_plugin_active( 'pixelyoursite-pro/pixelyoursite-pro.php' );
32
+
33
+ }
34
+
35
+ register_activation_hook( __FILE__, 'pysFreeActivation' );
36
+ function pysFreeActivation() {
37
+
38
+ if ( isPysProActive() ) {
39
+ deactivate_plugins('pixelyoursite-pro/pixelyoursite-pro.php');
40
+ }
41
+
42
+ \PixelYourSite\manageAdminPermissions();
43
+ }
44
  /**
45
  * facebook-pixel-master.php used for backward compatibility.
46
  */
includes/class-events-manager.php CHANGED
@@ -366,12 +366,28 @@ class EventsManager {
366
  if ( Facebook()->enabled() && isEventEnabled( 'complete_registration_event_enabled' ) &&
367
  Facebook()->getOption("woo_complete_registration_fire_every_time")
368
  ) {
369
-
370
- $this->addStaticEvent( 'complete_registration',null,"facebook" );
371
- // send by server api
372
- $eventData = Facebook()->getEventData( 'complete_registration',null );
373
- if($eventData != null) {
374
- $this->addEventToFacebookServerApi(Facebook(),'complete_registration',$eventData);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
375
  }
376
 
377
  }
@@ -382,13 +398,17 @@ class EventsManager {
382
 
383
  }
384
 
385
- function addEventToFacebookServerApi($pixel,$eventType,$eventData) {
386
- $isDisabled = apply_filters( 'pys_disable_by_gdpr', false ) ||
387
  apply_filters( 'pys_disable_facebook_by_gdpr', false ) ||
388
  isCookiebotPluginActivated() && PYS()->getOption( 'gdpr_cookiebot_integration_enabled' ) ||
389
  isGingerPluginActivated() && PYS()->getOption( 'gdpr_ginger_integration_enabled' ) ||
390
  isCookieNoticePluginActivated() && PYS()->getOption( 'gdpr_cookie_notice_integration_enabled' ) ||
391
  isCookieLawInfoPluginActivated() && PYS()->getOption( 'gdpr_cookie_law_info_integration_enabled' );
 
 
 
 
392
 
393
 
394
  if( !$isDisabled ) {
@@ -447,7 +467,7 @@ class EventsManager {
447
  $pixelName = $_POST['pixel'];
448
  $event = $_POST['event'];
449
  $data = $_POST['data'];
450
-
451
  switch ($pixelName) {
452
  case 'facebook': {
453
  if(isset($data['content_ids'])) {
366
  if ( Facebook()->enabled() && isEventEnabled( 'complete_registration_event_enabled' ) &&
367
  Facebook()->getOption("woo_complete_registration_fire_every_time")
368
  ) {
369
+ $isGdprEnabled = $this->isGdprPluginEnabled();
370
+
371
+ if(Facebook()->isServerApiEnabled()) {
372
+ if(!Facebook()->getOption("woo_complete_registration_send_from_server") ) {
373
+ $this->addStaticEvent('complete_registration', null, "facebook");
374
+ } else {
375
+ if($isGdprEnabled) {
376
+ $this->addStaticEvent("hCR", null, "facebook");
377
+ }
378
+ }
379
+
380
+ if(!$isGdprEnabled) {
381
+ // send by server api
382
+ $eventData = Facebook()->getEventData( 'complete_registration',null );
383
+ if($eventData != null) {
384
+ $this->addEventToFacebookServerApi(Facebook(),'complete_registration',$eventData);
385
+ }
386
+ }
387
+
388
+
389
+ } else {
390
+ $this->addStaticEvent('complete_registration', null, "facebook");
391
  }
392
 
393
  }
398
 
399
  }
400
 
401
+ function isGdprPluginEnabled() {
402
+ return apply_filters( 'pys_disable_by_gdpr', false ) ||
403
  apply_filters( 'pys_disable_facebook_by_gdpr', false ) ||
404
  isCookiebotPluginActivated() && PYS()->getOption( 'gdpr_cookiebot_integration_enabled' ) ||
405
  isGingerPluginActivated() && PYS()->getOption( 'gdpr_ginger_integration_enabled' ) ||
406
  isCookieNoticePluginActivated() && PYS()->getOption( 'gdpr_cookie_notice_integration_enabled' ) ||
407
  isCookieLawInfoPluginActivated() && PYS()->getOption( 'gdpr_cookie_law_info_integration_enabled' );
408
+ }
409
+
410
+ function addEventToFacebookServerApi($pixel,$eventType,$eventData) {
411
+ $isDisabled = $this->isGdprPluginEnabled();
412
 
413
 
414
  if( !$isDisabled ) {
467
  $pixelName = $_POST['pixel'];
468
  $event = $_POST['event'];
469
  $data = $_POST['data'];
470
+ if($event == "hCR") $event="CompleteRegistration"; // de mask completer registration event if it was hidden
471
  switch ($pixelName) {
472
  case 'facebook': {
473
  if(isset($data['content_ids'])) {
includes/functions-common.php CHANGED
@@ -8,15 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) {
8
  exit; // Exit if accessed directly.
9
  }
10
 
11
- function isPysProActive() {
12
 
13
- if ( ! function_exists( 'is_plugin_active' ) ) {
14
- include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
15
- }
16
-
17
- return is_plugin_active( 'pixelyoursite-pro/pixelyoursite-pro.php' );
18
-
19
- }
20
 
21
  function isPinterestActive( $checkCompatibility = true ) {
22
 
8
  exit; // Exit if accessed directly.
9
  }
10
 
 
11
 
 
 
 
 
 
 
 
12
 
13
  function isPinterestActive( $checkCompatibility = true ) {
14
 
includes/functions-custom-event.php CHANGED
@@ -171,6 +171,8 @@ function renderTriggerTypeInput( &$event, $key ) {
171
 
172
  }
173
 
 
 
174
  /**
175
  * @param CustomEvent $event
176
  * @param string $key
171
 
172
  }
173
 
174
+
175
+
176
  /**
177
  * @param CustomEvent $event
178
  * @param string $key
includes/views/html-main-events-edit.php CHANGED
@@ -63,6 +63,7 @@ if(isset( $_REQUEST['id'] )) {
63
  <div class="col form-inline">
64
  <label>Fire event when</label>
65
  <?php Events\renderTriggerTypeInput( $event, 'trigger_type' ); ?>
 
66
  <div class="event-delay form-inline">
67
  <label>with delay</label>
68
  <?php Events\renderNumberInput( $event, 'delay', '0' ); ?>
63
  <div class="col form-inline">
64
  <label>Fire event when</label>
65
  <?php Events\renderTriggerTypeInput( $event, 'trigger_type' ); ?>
66
+
67
  <div class="event-delay form-inline">
68
  <label>with delay</label>
69
  <?php Events\renderNumberInput( $event, 'delay', '0' ); ?>
modules/facebook/facebook.php CHANGED
@@ -159,7 +159,8 @@ class Facebook extends Settings implements Pixel {
159
 
160
  case 'edd_purchase':
161
  return $this->getEddCartEventParams( 'Purchase' );
162
-
 
163
  case 'complete_registration':
164
  return $this->getCompleteRegistrationEventParams();
165
 
@@ -178,6 +179,7 @@ class Facebook extends Settings implements Pixel {
178
  $eventsManager = PYS()->getEventsManager();
179
 
180
  foreach ( $eventsManager->getStaticEvents( 'facebook' ) as $eventName => $events ) {
 
181
  foreach ( $events as $event ) {
182
  foreach ( $this->getPixelIDs() as $pixelID ) {
183
 
@@ -1030,7 +1032,7 @@ class Facebook extends Settings implements Pixel {
1030
  }
1031
  }
1032
 
1033
- private function getCompleteRegistrationEventParams() {
1034
 
1035
  if ( ! $this->getOption( 'complete_registration_event_enabled' ) ) {
1036
  return false;
@@ -1043,7 +1045,7 @@ class Facebook extends Settings implements Pixel {
1043
  }
1044
 
1045
  return $params = array(
1046
- 'name' => 'CompleteRegistration',
1047
  'data' => $params,
1048
  );
1049
 
159
 
160
  case 'edd_purchase':
161
  return $this->getEddCartEventParams( 'Purchase' );
162
+ case 'hCR':
163
+ return $this->getCompleteRegistrationEventParams('hCR');
164
  case 'complete_registration':
165
  return $this->getCompleteRegistrationEventParams();
166
 
179
  $eventsManager = PYS()->getEventsManager();
180
 
181
  foreach ( $eventsManager->getStaticEvents( 'facebook' ) as $eventName => $events ) {
182
+ if($eventName == "hCR") continue;
183
  foreach ( $events as $event ) {
184
  foreach ( $this->getPixelIDs() as $pixelID ) {
185
 
1032
  }
1033
  }
1034
 
1035
+ private function getCompleteRegistrationEventParams($args=null) {
1036
 
1037
  if ( ! $this->getOption( 'complete_registration_event_enabled' ) ) {
1038
  return false;
1045
  }
1046
 
1047
  return $params = array(
1048
+ 'name' => isset($args) && $args == "hCR" ? "hCR" : 'CompleteRegistration',
1049
  'data' => $params,
1050
  );
1051
 
pixelyoursite.php CHANGED
@@ -4,12 +4,19 @@ if ( ! defined( 'ABSPATH' ) ) {
4
  exit; // Exit if accessed directly.
5
  }
6
 
7
- define( 'PYS_FREE_VERSION', '7.1.8' );
8
  define( 'PYS_FREE_PINTEREST_MIN_VERSION', '2.0.6' );
9
  define( 'PYS_FREE_BING_MIN_VERSION', '1.0.0' );
10
  define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
11
  define( 'PYS_FREE_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
12
 
 
 
 
 
 
 
 
13
  require_once PYS_FREE_PATH.'/vendor/autoload.php';
14
  require_once PYS_FREE_PATH.'/includes/functions-common.php';
15
  require_once PYS_FREE_PATH.'/includes/functions-admin.php';
@@ -27,23 +34,6 @@ require_once PYS_FREE_PATH.'/includes/class-pixel.php';
27
  require_once PYS_FREE_PATH.'/includes/class-settings.php';
28
  require_once PYS_FREE_PATH.'/includes/class-plugin.php';
29
 
30
- register_activation_hook( __FILE__, 'pysFreeActivation' );
31
- function pysFreeActivation() {
32
-
33
- if ( PixelYourSite\isPysProActive() ) {
34
- wp_die( 'You must first deactivate PixelYourSite PRO version.', 'Plugin Activation', array(
35
- 'back_link' => true,
36
- ) );
37
- }
38
-
39
- \PixelYourSite\manageAdminPermissions();
40
-
41
- }
42
-
43
- if ( PixelYourSite\isPysProActive() ) {
44
- return; // exit early when PYS PRO is active
45
- }
46
-
47
  require_once PYS_FREE_PATH.'/includes/class-pys.php';
48
  require_once PYS_FREE_PATH.'/includes/class-events-manager.php';
49
  require_once PYS_FREE_PATH.'/includes/class-custom-event.php';
4
  exit; // Exit if accessed directly.
5
  }
6
 
7
+ define( 'PYS_FREE_VERSION', '7.1.9' );
8
  define( 'PYS_FREE_PINTEREST_MIN_VERSION', '2.0.6' );
9
  define( 'PYS_FREE_BING_MIN_VERSION', '1.0.0' );
10
  define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
11
  define( 'PYS_FREE_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
12
 
13
+
14
+
15
+
16
+
17
+ if ( isPysProActive()) {
18
+ return; // exit early when PYS PRO is active
19
+ }
20
  require_once PYS_FREE_PATH.'/vendor/autoload.php';
21
  require_once PYS_FREE_PATH.'/includes/functions-common.php';
22
  require_once PYS_FREE_PATH.'/includes/functions-admin.php';
34
  require_once PYS_FREE_PATH.'/includes/class-settings.php';
35
  require_once PYS_FREE_PATH.'/includes/class-plugin.php';
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  require_once PYS_FREE_PATH.'/includes/class-pys.php';
38
  require_once PYS_FREE_PATH.'/includes/class-events-manager.php';
39
  require_once PYS_FREE_PATH.'/includes/class-custom-event.php';
readme.txt CHANGED
@@ -1,792 +1,806 @@
1
- ===PixelYourSite - Your smart PIXEL (TAG) Manager===
2
- Contributors: PixelYourSite, themister
3
- Tags: Facebook Pixel, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pixel Events, Facebook, New Facebook Pixel Events, Dynamic Events, Standard Events, Facebook Events, Facebook Standard Events, Facebook Dynamic Product Ads, WooCommerce, WooCommerce Facebook Pixel, Facebook Custom Events, Facebook Conversion Value, WooCommerce Affiliate Products, Easy Digital Downloads Pixel, Easy Digital Downloads Google Analytics, Head & Footer scripts, Enhanced Ecommerce, Pinterest tag
4
- Requires at least: 3.0.1
5
- Requires PHP: 5.4
6
- Tested up to: 5.4
7
- Stable tag: 7.1.8
8
- License: GPLv3
9
- License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
-
11
- Facebook Pixel, Google Analytics, plus ANY other script. WooCommerce and EDD with Facebook Dynamic Product Ads and Google Enhanced Ecommerce. Track any action with events. Pinterest Tag support via a free add-on. Dedicated paid Bing Tag add-on.
12
-
13
- == Description ==
14
- **Manage your Facebook Pixel or Google Analytics code with a single plugin and add ANY other script (Head & Footer feature). The Pinterest Tag can be implemented via [free add-on](https://www.pixelyoursite.com/pinterest-tag).**
15
-
16
- PixelYourSite Global Events will automatically track important actions and send them to all your configured pixels (searches, form submit, comments, downloads).
17
-
18
- You can fire your own events with zero coding.
19
-
20
- **WooCommerce** and **Easy Digital Downloads** are fully supported, with Facebook Dynamic Ads pixel setup and Google Analytics Enhanced Ecommerce.
21
-
22
- Take a look at this video to see the plugin in action:
23
-
24
- [youtube https://www.youtube.com/watch?v=OUHU9lZ2lwQ]
25
-
26
- NEW: Facebook Pixel server-side events for WooCommerce (Purchase and CompleteRegistration): [Learn how to configure server-side events](https://www.pixelyoursite.com/documentation/configure-server-side-events)
27
-
28
- TRACK EVERYTHING WITH A SINGLE PLUGIN:
29
-
30
- The Facebook Pixel: one click install
31
- Google Analytics: one click install
32
- ANY script: add any other script with our flexible Head & Footer option
33
- The Pinterest Tag: via [free add-on](https://www.pixelyoursite.com/pinterest-tag)
34
- Google Ads (formerly AdWords) [pro feature](https://www.pixelyoursite.com/google-ads-tag)
35
- Microsoft (BING) UET tag [paid add-on](https://www.pixelyoursite.com/bing-tag)
36
-
37
- **Want to learn about your Facebook Pixel? We've put toghether [this help page](https://www.pixelyoursite.com/how-to-use-facebook-pixel)**
38
-
39
- FANTASTIC WOOCOMMERCE INTEGRATION:
40
-
41
- Facebook Pixe: every e-commerce related event is fired automatically. Conversion value is tracked for each event. All the events are Dynamic Product Ads ready (content_ids and content_type parameters always present).
42
- Google Analytics: Enhanced Ecommerce implementation.
43
- Head & Footer scripts: you can insert scripts on the WooCommerce “order-received” page.
44
- Pinterest e-commerce events.
45
-
46
- EASY DIGITAL DOWNLOADS INTEGRATION:
47
-
48
- The EDD integration works just like the WooCommerce integration, with full Dynamic Product Ads Facebook Pixel Support, Google Analytics Enhanced Ecommerce, and Pinterest Tag e-commerce events.
49
-
50
- TRACK IMPORTANT DATA WITH THE GLOBAL EVENTS:
51
-
52
- The plugin will automatically fire the Global Events and send them to all active pixels. They will help you track your visitors’ activity, create Facebook Custom Audiences or Custom Conversions, Google Goals, Google Audiences, and Pinterest Audiences.
53
-
54
- The GeneralEvent: fired on every page, it will send Facebook and Pinterest key data on how your users interact with your content. It’s parameters will track things like the page title, category, or ID. Super useful for targeted Custom Audiences.
55
- The Search event: fired when your visitors use the search form, it will track the searched string. WooCommerce searches will be Dynamic Ads ready, sending the product’s ID to allow retargeting.
56
- The Comment event: it will track comments.
57
- The Download event: will be fired when a downloadable filled is clicked. You can configure what file types should fire this event.
58
- The Form event: will be fired when a form is submitted
59
-
60
- FIRE YOUR OWN EVENTS:
61
-
62
- You can easily configure your own events and send them to all or just some of the networks (Facebook, Google, Pinterest).
63
-
64
- You can fire standard or custom events using triggers like:
65
-
66
- URL contains.
67
- URL equals.
68
- Delay event: fire after X seconds.
69
-
70
- GDPR SUPPORT:
71
-
72
- PixelYourSite works with 4 popular “cookie consent” plugins:
73
-
74
- Cookiebot - [link](https://wordpress.org/plugins/cookiebot/)
75
- GDPR Cookie Consent - [link](https://wordpress.org/plugins/cookie-law-info/)
76
- Cookie Notice Plugin - [link](https://wordpress.org/plugins/cookie-notice/)
77
- Ginger EU Cookie Law - [link](https://wordpress.org/plugins/ginger/)
78
-
79
- Additionally we offer filters that developers can use to create their own custom integrations. These filters can control the way each pixel works.
80
-
81
- FACEBOOK FOR WOOCOMMERCE INTEGRATION:
82
-
83
- You can use Facebook for WooCommerce plugin along with PixelYourSite. This will let you benefit from all our advanced pixel features and still have a Facebook page shop.
84
-
85
- When Facebook for WooCommerce is detected, the plugin will offer you the option to use their ID logic for all the WooCommerce specific events. This will ensure product matching between your site and their Product Catalog.
86
-
87
- [More details in this dedicated article](https://www.pixelyoursite.com/facebook-for-woocommerce-pixelyoursite)
88
-
89
- OTHER USEFUL FEATURES:
90
-
91
- Facebook Manual Advanced Matching.
92
- Remove Facebook default events.
93
- Google Analytics cross-domain measurement.
94
- Google Analytics Enhanced Link Attribution.
95
- Google Analytics Anonymize IPs.
96
- Pinterest Enhanced Matching.
97
-
98
- **EVEN MORE FEATURES WITH THE PRO VERSION:**
99
-
100
- [PixelYourSite Pro](https://www.pixelyoursite.com/) is used by thousands of businesses already and will offer you some extraordinary features.
101
-
102
- [Click here for a comparison between the free and pro versions](https://www.pixelyoursite.com/free-versus-pro)
103
-
104
- EVEN MORE GLOBAL EVENTS:
105
-
106
- The ClickEvent: fired on every click and with useful parameters that will help you to identify what element was clicked (HTML links, buttons, images, etc). This event will be sent to all networks (Facebook, Google Analytics, Google Ads, Pinterest).
107
- The WatchVideo event: fired when an embedded video is played, will let you identify the video name and will be send to all networks
108
- The user registration event: fired when new user account is created on your website, will be sent to all networks
109
- The AdSense event: fired when an AdSense ad is clicked, it lets you optimize your Facebook or Pinterest Ads for Google AdSense clicks, as well as creating Custom Audiences or Lookalikes.
110
-
111
- EVEN MORE EVENTS’ TRIGGERS:
112
-
113
- On top of the free triggers (URL equals and URL contains), the pro version will let you fire more complexe events:
114
-
115
- Clicks on CSS Selector: you can target virtually any clicks, like buttons, images etc.
116
- Mouse over CSS Selector
117
- Page Scroll: you can fire an event when any or a particular page is scrolled down to a percent.
118
-
119
- EVEN MORE FACEBOOK EVENTS PARAMETERS:
120
-
121
- The pro version will track a vast amount of data for each event, like the traffic source, UTMs, your visitor’s browser’s time (hour, day, month).
122
-
123
- These parameters can be used for [Custom Audiences or Custom Conversions](https://www.pixelyoursite.com/facebook-pixel-plugin/custom-audiences-conversions)
124
-
125
- EVEN MORE GOOGLE ANALYTICS FEATURES:
126
-
127
- Support for Google Optimize (free A/B testing service by Google).
128
-
129
- On top of the free version data, [the pro version](https://www.pixelyoursite.com/google-analytics) will track a number of useful Custom Dimensions.
130
-
131
- Browser’s hour, day, and month. They are useful if you sell globally and what to know at what time your visitors take a particular action (their time, not your server’s or Google Analytics time).
132
- Dynamic Remarketing vertical custom dimensions (Retail or Custom vertical). Useful if you want to configure dynamic remarketing via your Analytics account.
133
-
134
- EVEN MORE HEAD & FOOTER OPTIONS:
135
-
136
- The pro version [Head & Footer](https://www.pixelyoursite.com/head-footer-scripts) lets you use dynamic values: [id], [title], [categories], [email], [first_name], [last_name].
137
-
138
- For WooCommerce you’ll have some additional dynamic values: [order_number], [order_subtotal], [order_total], [currency].
139
-
140
- EVEN MORE WOOCOMMERCE FEATURES:
141
-
142
- Identify your most valuable customers with our Advanced Marketing Events. Useful to create Facebook Lookalikes or Google Similar Audiences.
143
- CSV Export for Facebook Custom Audiences with Lifetime Value. Useful for Facebook LTV Lookalikes.
144
- Super flexible events value configuration (include/exclude tax and shipping, use full price or a price percent for each event).
145
- Track the Lifetime Value for your customers as Purchase event parameter.
146
- Lots of extra parameters for the Facebook Purchase event. Useful to create advanced Custom Audiences. Check our [comparison tables](https://www.pixelyoursite.com/pixelyoursite-free-version) for details
147
- Fire the Purchase event on transaction only.
148
- Track WooCommerce affiliate buttons clicks.
149
- Track WooCommerce PayPal Standard clicks.
150
- [Google Ads Dynamic Remarketing parameters](https://www.pixelyoursite.com/google-ads-tag)
151
-
152
- For more info on how the pro version can help you with your Facebook Pixel, [visit this WooCommerce - Facebook Pixel page](https://www.pixelyoursite.com/facebook-pixel-plugin/woocommerce-facebook-pixel)
153
-
154
- GOOGLE ADS TAG (FORMER ADWORDS):
155
-
156
- The Pro version will implement the [Google Ads Tag](https://www.pixelyoursite.com/google-ads-tag) with Dynamic Retargeting support for WooCommerce and Easy Digital Downloads.
157
-
158
- Each Global event will be sent to Google Ads too, and you can configure Google Ads conversions.
159
-
160
- Add conversion label to any WooCommerce or EDD event.
161
-
162
- NOT ENOUGH? GET MORE WITH THE SUPER PACK:
163
-
164
- With the [Super Pack](https://www.pixelyoursite.com/super-pack) you get 5 extra add-ons:
165
-
166
- Multiple pixels: add multiple Facebook pixels, Google Analytics, or Google Ads tags
167
- Remove a pixel from a particular page
168
- Dynamic parameters for events
169
- WooCommerce custom “thank you pages”
170
- AMP support
171
-
172
- The super pack comes as a free bonus with our [Advanced and Agency licenses](https://www.pixelyoursite.com/facebook-pixel-plugin/buy-pixelyoursite-pro).
173
-
174
- DON’T MISS:
175
-
176
- For more details about how [PixelYourSite Pro](https://www.pixelyoursite.com/) can help your business, visit our website. Make sure you check our [free versus pro comparison page](https://www.pixelyoursite.com/free-versus-pro)
177
-
178
- **Learning Section**: we’ve put together a number of articles with all sort of tips and tricks that will help you with your ads. [Click here for our learning section](https://www.pixelyoursite.com/learn)
179
-
180
- **Video Tips**: watch short videos showing how to do all sort of ads related things. [Click here to watch the video tips](https://www.pixelyoursite.com/video)
181
-
182
- **Documentation**: learn how to use PixelYourSite free plugin. [Click here for the HELP articles](https://www.pixelyoursite.com/pixelyoursite-free-version)
183
-
184
-
185
- == Installation ==
186
- * From the WP admin panel, click \"Plugins\" -> \"Add new\".
187
- * In the browser input box, type \"PixelYourSite\".
188
- * Select the \"PixelYourSite\" plugin (authored by \"PixelYourSite\"), and click \"Install\".
189
- * Activate the plugin.
190
-
191
- OR...
192
-
193
- * Download the plugin from this page.
194
- * Save the .zip file to a location on your computer.
195
- * Open the WP admin panel, and click \"Plugins\" -> \"Add new\".
196
- * Click \"upload\".. then browse to the .zip file downloaded from this page.
197
- * Click \"Install\".. and then \"Activate plugin\".
198
-
199
- OR...
200
-
201
- * Download the plugin from this page.
202
- * Extract the .zip file to a location on your computer.
203
- * Use either FTP or your host's cPanel to gain access to your website file directories.
204
- * Browse to the `wp-content/plugins` directory.
205
- * Upload the extracted `wp_edit` folder to this directory location.
206
- * Open the WP admin panel.. click the \"Plugins\" page.. and click \"Activate\" under the newly added plugin.
207
-
208
-
209
- == Frequently Asked Questions ==
210
- We maintain an up-to-date FAQ page on our site: [Click Here for the FAQ Page](http://www.pixelyoursite.com/facebool-pixel-master-faq)
211
-
212
- **FACEBOOK PIXEL: Do I need to copy/paste the full Facebook Pixel code somewhere?**
213
-
214
- No, you just have to enter your pixel ID in the dedicated field. The plugin will do the rest for you.
215
-
216
- **FACEBOOK PIXEL: Where can I find the Facebook Pixel ID?**
217
-
218
- You can find it here:
219
- <a href="https://www.facebook.com/ads/manager/pixel/facebook_pixel" target="_blank">https://www.facebook.com/ads/manager/pixel/facebook_pixel</a>
220
-
221
- **FACEBOOK PIXEL: Can I use the plugin for Custom Audiences or Custom Conversions?**
222
-
223
- Absolutely yes! Actually, the plugin will super-optimize your site for Custom Audiences and Custom Conversions.
224
-
225
- You will be able to create the classical ones based on URLs, but also Custom Combinations, like people who visited posts from category XYZ, or tagged with tag ABC in the last 30 days.
226
-
227
- Use the PRO version, and you'll be able to do crazy things, like targeting people that came from Google and visited products under category "blue widget", or clients who bought products of at least $100, using the discount coupon "promo".
228
-
229
- **FACEBOOK PIXEL: I used the old Facebook Pixel, will my audiences still work?**
230
-
231
- Yes, they will, you won't lose anything.
232
-
233
- **FACEBOOK PIXEL: Does it work with WooCommerce?**
234
-
235
- Yes, it does. The plugin adds all the necessary events, like ViewContent, AddToCart, InitiateCheckout, and Purchase. This way you can easily track conversions and conversion value.
236
-
237
- **FACEBOOK PIXEL: Do I have to manually add the events for WooCommerce?**
238
-
239
- No, you don't, the plugin will take care of everything for you.
240
-
241
- **FACEBOOK PIXEL: Does it work with Easy Digital Downloads?**
242
-
243
- Yes, it works in the same way it does with WooCommerce.
244
-
245
- **FACEBOOK PIXEL: Does it work with Dynamic Product Ads (promote a product catalog)**
246
-
247
- Yes, all the WooCommerce and EDD pixel events are Dynamic Ads ready.
248
-
249
- **FACEBOOK PIXEL: Can I fire additional events if I need to?**
250
-
251
- Of course, you can fire any type of event (standard or custom).
252
-
253
- There are several triggers you can use:
254
-
255
- *URL includes (supports delay)
256
- *URL equals (supports delay)
257
- *Click on HTML link (pro)
258
- *Click on CSS Selector (pro)
259
- *Mouse over CSS Selector (pro)
260
- *Page scroll (pro)
261
-
262
- **FACEBOOK PIXEL: I have the pixel installed on my website and I am running a Facebook Campaign, but the reports are confusing me. How can I see my campaign results?**
263
-
264
- We have an article about how to create Custom Reports: [How to optimize your Facebook Ads Reports for events tracking](https://www.pixelyoursite.com/how-to-manage-reports-inside-your-facebook-ads-manager-video)
265
-
266
- **GOOGLE ANALYTICS: Do I need to copy/paste all the Google Analytics code?**
267
-
268
- No, you just need to copy/paste your Google Analytics UA id.
269
-
270
- **GOOGLE ANALYTICS: Where can I find my Google Analytics UA id?**
271
-
272
- You can find it right inside your Google Analytics account, under Property Settings.
273
- For more information on how to get your UA id, [follow this link](https://www.pixelyoursite.com/documentation/add-your-google-analytics-code)
274
-
275
- **GOOGLE ANALYTICS: Is Google Analytics Enhanced Ecommerce supported?**
276
-
277
- Yes, Google Analytics Enhanced Ecommerce data is tracked automatically for WooCommerce and Easy Digital Downloads.
278
-
279
- **HEAD AND FOOTER: Can I add any scripts I want with your Head and Footer option?**
280
-
281
- Yes, you can add any type of scripts you want.
282
-
283
- **HEAD AND FOOTER: Can I show scripts just on mobile or desktop?**
284
-
285
- Yes, you can.
286
- You can configure scripts for all devices, just for mobile, or just for desktop.
287
-
288
- **HEAD AND FOOTER: Can I hide scripts on some pages.**
289
-
290
- Yes, you can hide the global scripts on any page you want.
291
-
292
- **HEAD AND FOOTER: Can I add scripts on WooCommerce's order-received page?**
293
-
294
- Yes, you can add or hide scripts on the WooCommerce's order-received page.
295
-
296
- **PINTEREST TAG: Do I need to install your free Pinterest add-on?**
297
-
298
- Yes, if you want to implement the Pinterest tag you'll need our free Pinterest add-on.
299
- You can [get it from here](https://www.pixelyoursite.com/pinterest-tag)
300
-
301
- **PINTEREST TAG: Where can I find my Pinterest tag ID?**
302
-
303
- You can find your Pinterest tag ID inside your Pinterest account.
304
- For more information go to our [help page](https://www.pixelyoursite.com/documentation/add-your-pinterest-tag)
305
-
306
- **PINTEREST TAG: Can I fire my own Pinterest events?**
307
-
308
- Yes, you can fire your own Pinterest tags events effortless.
309
-
310
- There are several triggers you can use:
311
-
312
- *URL includes (supports delay)
313
- *URL equals (supports delay)
314
- *Click on HTML link (pro)
315
- *Click on CSS Selector (pro)
316
- *Mouse over CSS Selector (pro)
317
- *Page scroll (pro)
318
-
319
- **PINTEREST TAG: I use WooCommerce or EDD, do I need to add the Pinterest events myself?**
320
-
321
- No, absolutely not!
322
- The plugin will fire all the Pinterest e-commerce events automatically.
323
-
324
- **Will your plugin increase the loading time of my site?**
325
-
326
- The plugin itself is really fast. However, you have to remember that the pixel has to communicate with Facebook, Google, or Pinterest to send all the data, and this will add a little load on your site.
327
-
328
- Will this impact on your visitors? No, because all the requests are asynchronous, meaning that the browser will continue to load and your users will not see any delay whatsoever.
329
-
330
- **Are there any known incompatibilities with other themes or plugins?**
331
-
332
- There are a few you should consider:
333
-
334
- *Any plugin or solution that implements the same pixel or tag. Having the same tracking pixel added twice can cause problems.
335
-
336
- *We had a problem with Mamaya, a retargeting service.
337
-
338
- *It won’t work with LeadPages or any similar system because those pages are generated outside WordPress.
339
-
340
- *Some clients reported problems with Thrive landing pages. This happens because Thrive removes other plugins JS files.
341
-
342
- There's a strange solution: it appears that if you have the Yoast plugin installed the problem will go away.
343
-
344
- *Upsell plugins can cause problems with purchase tracking. If they add an intermediary page after the transaction, we have [a filter their developer can use to call our default Purchase event](https://bitbucket.org/snippets/the_mister/zeaXya)
345
-
346
- **Are there any situations when the plugin will connect to outside sources?**
347
-
348
- Yes, there are, and we will explain them here:
349
-
350
- *We offer you the possibility to voluntarily subscribe to our newsletter and get valuable tips. We manage our newsletter using ActiveCampaing. When you subscribe, we will call our server that intermediates the API connection, and then the data is sent to ActiveCampaign. The information that is passed: the name you provide and the email. If you check the "I use WooCommerce" checkbox, we will add this information as a tag, to give you better tips in the future.
351
-
352
- *Add-on updates: the plugin works with free or paid add-ons (for Pinterest, Bing, etc) that we provide and host on our server. When you install such an add-on, we will do checks for updates. If you have a valid license for the add-on, we will automatically download the latest version of the add-on from our servers. The core plugin (PixelYourSite itself) updates are provided using WordPress own servers.
353
-
354
- *When you install a pixel or a tag (like the Facebook Pixel or Google Analytics), the script will call for their specific files. These scripts are hosted on their servers (Facebook's servers, Google's servers).
355
-
356
- *If you install scripts using our Head & Footer option, these scripts may load files from third-party servers. You can check this using your browser's Console.
357
-
358
- **Do you record data about the websites' traffic**
359
-
360
- NO, absolutely not! We don't track any type of data about your website. We simply implement the pixel/tag code.
361
-
362
-
363
-
364
- == Screenshots ==
365
-
366
- 1. Add your Facebook pixel ID, Google Analytics ID, or Pinterest ID.
367
- 2. You don’t have to copy/paste all the Facebook pixel code, but just the pixel ID. You can find it in your Ads Manager, under the Pixels link.
368
- 3. You just need your Google Analytics Tracking ID, not the full code.
369
- 4. You simply need your Pinterest Tag ID.
370
- 5. You can exclude user roles from tracking (like Admin), so they won’t affect your stats.
371
- 6. You can allow other user roles to use the plugin.
372
- 7. The Global Events are fired automatically, tracking important actions and data.
373
- 8. The GeneralEvent is fired on every page, tracking important data about your content.
374
- 9. The Search event tracks searches. WooCommerce searches are Dynamic Ads ready.
375
- 10. The Form event is fired when a form is submitted.
376
- 11. The Comment event tracks comments.
377
- 12. The Downloads event tracks downloads. You can configure the file types.
378
- 13. You can fire your own events with NO coding.
379
- 14. Events have flexible triggers and can be sent to Facebook, Google Analytics, or Pinterest.
380
- 15. WooCommerce comes with Facebook Dynamic Ads events, Google Analytics Enhanced Ecommerce, and Pinterest e-commerce configuration.
381
- 16. You can track value for each WooCommerce events, plus other useful parameters.
382
- 17. The AddToCart event can be fired on cart buttons, cart page, or checkout page.
383
- 18. Easy Digital Downloads integrations comes with Facebook Dynamic Ads events, Google Analytics Enhanced Ecommerce, and Pinterest e-commerce setup.
384
- 19. Test your Facebook pixel with Pixel Helper Chrome extension.
385
- 20. Test your Google Analytics code with Google Tag Assistant Chrome extension.
386
- 21. Test your Pinterest tag with the Pinterest Tag Helper Chrome extension.
387
- 22. With the Head & Footer option you an add ANY script. There’s an option to insert scripts on the WooCommerce order-received page .
388
- 23. You’ll have an option to insert scripts on any pages or posts.
389
-
390
-
391
  == Changelog ==
392
 
393
- = PixelYourSite 7.1.8 =
394
-
395
- * NEW: Facebook Pixel server-side events for WooCommerce. It works for the Purchase and CompleteRegistration event.
396
-
397
- * NEW: Fire the CompleteRegistration event for each WooCommerce transaction and configure it to use PROFIT as value. You can send this event server-side only (hide it from the browser). This is useful if you want to track both the TOTAL and the PROFIT generated by your ads. Requires [WooCommerce Cost of Goods plugin by PixelYourSite](https://www.pixelyoursite.com/woocommerce-cost-of-goods)
398
-
399
- * FIX: Potential issue related to the Pinterest Tag add-on and WooCommerce events. Some events were not fired if there was no Facebook Pixel installed. You need to update the Pinterest Tag add-on too.
400
-
401
- * Declare compatibility with WooCommerce 4.1
402
-
403
- = PixelYourSite 7.1.6 =
404
-
405
- * This is a minor update that ensures compatibility with the latest changes from the [WooCommerce Cost of Goods plugin by PixelYourSite](https://www.pixelyoursite.com/woocommerce-cost-of-goods)
406
-
407
- = PixelYourSite 7.1.6 =
408
-
409
- * Small code update to declare WooCommerce 4.0 compatibility.
410
-
411
- * Fixes for some issues related to file paths. In some environments this was causing error on Elementor or WooCommerce admin pages.
412
-
413
- * A new option to use PROFIT as value for your Facebook Pixel WooCommerce events. It works with the [WooCommerce Cost of Goods plugin by PixelYourSite](https://www.pixelyoursite.com/woocommerce-cost-of-goods)
414
-
415
- = PixelYourSite 7.1.5 =
416
-
417
- * New features: Facebook Dynamic Ads events for blog posts. Simulate the DPA required events on normal blog posts. We will soon release a dedicated plugin that will help you import your blog content into a Facebook Product Catalog.
418
-
419
- * Google Analytics Enhanced Ecommerce: we removed the variation name from the product title and we added it as a separate parameter.
420
-
421
- * Google Analytics Enhanced Ecommerce: we fixed an error with variable products category.
422
-
423
- * Elementor: we fixed an error that was deleting Head & Footer scripts when a page was saved using Elementor.
424
-
425
- * UI updates to reflect new paid features: fire custom events once in X hours; Google Analytics list performance tracking.
426
-
427
- * Small code change to declare WooCommerce 3.9 compatibility.
428
-
429
-
430
- = PixelYourSite 7.1.4 =
431
-
432
- * Minor code changes to declare compatibility with WordPress 5.3 and WooCommerce 3.8.
433
-
434
-
435
- = PixelYourSite 7.1.3 =
436
-
437
- * Adding new options for WooCommerce and EDD events IDs: select between ID or SKU, use prefixes and postfixes, treat variable products like simple products. These features will work with the Pinterest add-on v2.0.8 (free), and the Bing add-on v1.0.2 (paid).
438
-
439
- * Fix for an old bug related to how On Page Events triggers work. In previous versions, final slashes were ignored for both “URL Match” and “URL Contains” conditions. This was fixed with this release.
440
- Recommendation: if you have manually added events using the On-Page trigger, test them to make sure they work as expected.
441
-
442
- * Fix for a bug related to the Pinterest add-on. In previous versions, the WooCommerce Checkout and PageVisit events could not be turned ON/OFF.
443
-
444
-
445
-
446
- = PixelYourSite 7.1.2 =
447
-
448
- * Name change - we removed "Facebook" from the plugin title, as per Facebook's request. The plugin will still offer great Facebook Pixel integration.
449
-
450
- * Banner update - we removed "Facebook" from our banners, as per Facebook's request.
451
-
452
- * Security and code improvements
453
-
454
-
455
- = PixelYourSite 7.1.1 =
456
-
457
- * Compatibility with WooCommerce 3.7
458
-
459
- * New structure for the Form and Comment events. It will help you better identify what actions have fired the events.
460
-
461
- Form Event for the Facebook Pixel and the Pinterest Tag:
462
-
463
- - form_class: a new parameter pulling the CSS class when it exits.
464
- - form_id: a new parameter pulling the CSS ID when it exits.
465
-
466
- Form event on Google Analytics:
467
-
468
- - event_categoty: Form.
469
- - event_action: the CSS class or ID (makes easier for you to identify the form).
470
- - event_label: the text on the form’s button.
471
-
472
- Comment event on Google Analytics:
473
-
474
- - event_categoty: Comment.
475
- - event_action: the “post type” (page, products, post, etc) comment.
476
- - event_label: the URL where the comment was posted.
477
-
478
- = PixelYourSite 7.1.0 =
479
-
480
- * This update ads support for our paid Microsoft (BING) UET Tag add-on.
481
-
482
- = PixelYourSite 7.0.5 =
483
-
484
- * Fixing a potential problem with Pinterest PageVisit and Checkout events when the Facebook Pixel was deactivated (for the Pinterest add-on users only).
485
-
486
-
487
- = PixelYourSite 7.0.4 =
488
-
489
- * New Feature: Google Analytics cross-domain measurement. Tell Analytics to see sessions on two related sites (such as an ecommerce site and a separate shopping cart site) as a single session.
490
-
491
- * UI changes to reflect some new features our PRO version has (Google Optimize, add conversion label to WooCommerce and EDD Google Ads events).
492
-
493
- * Pinterest add-on missing license notice.
494
-
495
- * Remove the pixels when you edit something with Elementor.
496
-
497
- = PixelYourSite 7.0.3 =
498
-
499
- * Fix: Google Analytics purchase event was missing the transaction ID, blocking Enhanced Ecommerce tracking.
500
-
501
- * Fix: Head & Footer option was stripping backslashes from custom code on post or pages.
502
-
503
- = PixelYourSite 7.0.2 =
504
-
505
- * IMPORTANT: fix for some fatal errors that could be triggered by the Pinterest add-on on WooCommerce and Easy Digital Downloads orders.
506
-
507
- = PixelYourSite 7.0.1 =
508
-
509
- * Fix for missing cookie dependency issue (GDPR integrations).
510
-
511
- * Adding developer Facebook ID in the pixel code (used internally by Facebook to identify partners activity).
512
-
513
- = PixelYourSite 7.0.0 =
514
-
515
- * Version 7.0.0 is a complete rewrite of the plugin, adding a lot more features.
516
-
517
- * New Google Analytics integration with Enhanced Ecommerce support for WooCommerce and Easy Digital Downloads.
518
-
519
- * Pinterest Tag support via free add-on.
520
-
521
- * Add ANY other script with the new Head & Footer option. It supports global or per-page scripts. You have the possibility to add scripts on the WooCommerce order-received page.
522
-
523
- * The Global Events will automatically track important actions: searches, form submit, comments, downloads.
524
-
525
- * You can configure your own events using “URL match” or URL include triggers” and add a “delay event” in seconds.
526
-
527
- * Every event can be sent to Facebook, Google Analytics, or Pinterest.
528
-
529
- * You can enable Facebook Advanced Matching.
530
-
531
- * The Pinterest Tag supports Enhanced Matching.
532
-
533
- * Google Analytics supports Enhanced Link Attribution and Anonymize IP.
534
-
535
- * The WooCommerce integrations tracks remove from cart as an event and has support for Google Enhanced Ecommerce tracking.
536
-
537
- * You can now grant permissions to manage the plugin based on the user’s role.
538
-
539
- * We’ve extended our GDPR integrations with twom morecookie consentplugins.
540
-
541
- * We’ve added filters for developers to control each pixel, plus a filter to control our AJAX option (useful to make GDPR custom integrations cache friendly).
542
-
543
-
544
- = PixelYourSite 5.3.3 =
545
-
546
- * Facebook for WooCommerce compatibility fix: we modify ViewCategory content_type parameter in order to ensure product matching when Facebook for WooCommerce id logic is used.
547
-
548
- * WordPress 5.0 compatibility check.
549
-
550
- = PixelYourSite 5.3.2 =
551
-
552
- * Facebook Pixel Standard Events updated to include the new ones that Facebook released. <a href="https://www.pixelyoursite.com/new-facebook-pixel-standard-events" target="_blank"> Details here</a>
553
-
554
-
555
- = PixelYourSite 5.3.1 =
556
-
557
- * GDPR related update - we've implemented a dedicated filter to disable pixel tracking before consent: pys_disable_by_gdpr
558
-
559
- * GDPR related update - we've added built-in integration with Ginger – EU Cookie Law plugin and Cookiebot
560
-
561
- = PixelYourSite 5.3.0 =
562
-
563
- * Additional improvements to the WooCommerce AddToCart event ("Cannot read property 'data' of undefined" error with some AJAX based themes)
564
-
565
- * Fixing potential security issue
566
-
567
-
568
- = PixelYourSite 5.2.1 =
569
-
570
- * AddToCart small improvements to ensure compatibility with some themes using AJAX cart
571
-
572
- * Plugin name update
573
-
574
- = PixelYourSite 5.2.0 =
575
-
576
- * Fixing a possible error with the add to cart button when WooCommerce and WPML are installed on some hostings (we were able to replicate it on SiteGround servers only)
577
-
578
- * Enabling the AddToCart event on the Cart page when WooCommerce "Redirect to the cart page after successful addition" option is active. This will ensure that the events are captured.
579
-
580
- * Other small improvements to the code related to the AddToCart event
581
-
582
- = PixelYourSite 5.1.0 =
583
-
584
- * Fixing possible compatibility problem with Facebook for WooCommerce extension
585
- * Improving Facebook for WooCommerce ID logic
586
-
587
- = PixelYourSite 5.0.9 =
588
-
589
- * ViewCategory - new WooCommerce event, compatible with Facebook Dynamic Product Ads (DPA)
590
-
591
- * New WooCommerce events parameter: contents - A list of JSON object that contains the product ids associated with the event as well as additional information about the products. It can help with DPA
592
-
593
- * Declaring compatibility with WooCommerce 3.2.6
594
-
595
- = PixelYourSite 5.0.8 =
596
-
597
- * AddToCart new option: fire the event on the Checkout Page. It will be helpful for some websites with customized structure.
598
-
599
- * The AddToCart event was improved to work with AJAX buttons on single product pages. This will help to catch events on a number of themes that use AJAX on the product pages.
600
-
601
- * We made additional changes to ensure compatibility with Facebook for WooCommerce latest version.
602
-
603
-
604
- = PixelYourSite 5.0.7 =
605
-
606
- * Purchase event 0 value error fixed (there wasn't any value parameter when the order value was zero)
607
-
608
-
609
- = PixelYourSite 5.0.6 =
610
-
611
-
612
- * Facebook for WooCommerce extension integration updated to match the new ID logic (PixelYourSite can be used together with Facebook for WooCommerce extension - this way you can have a Facebook shop without losing our powerful pixel features)
613
-
614
-
615
- = PixelYourSite 5.0.5.2 =
616
-
617
-
618
- * Quick fix for a small error with our previous release (we didn't include all the files)
619
-
620
-
621
- = PixelYourSite 5.0.5 =
622
-
623
- * Treat WooCommerce variable products like simple products - useful if your Product Catalog doesn't include variations. When ON, ViewContent content_type will be product and the main item ID will be used for all events instead of the variation item.
624
-
625
- = PixelYourSite 5.0.4 =
626
-
627
- * Changed WooCommerce ViewContent event content_type to product_group for variable products
628
-
629
- = PixelYourSite 5.0.3 =
630
-
631
- * WooCommerce and EDD content_ids potential issue fix (the content was not correctly wrapped, leaving room for errors when SKU was used instead of the default WordPress IDs)
632
-
633
- = PixelYourSite 5.0.2 =
634
-
635
- * Added agent identifier (dvpixelyoursite) as we were directly requested by Facebook
636
- * Checked and confirmed WooCommerce 3 compatibility
637
- * Dynamic WooCommerce Events Value based on the product price
638
- * Facebook for WooCommerce support
639
-
640
- = PixelYourSite 5.0.1 =
641
-
642
- * WooCommerce 2.7 compatibility update: we made sure everything works with the latest WooCommerce version.
643
-
644
- = PixelYourSite 5.0 =
645
-
646
- * Easy Digital Downloads Integration - Dynamic Ads (promote a product catalog) are fully supported.
647
-
648
- * WooCommerce & Easy Digital Downloads events global value.
649
-
650
- = PixelYourSite 4.0.3 =
651
-
652
- * Important security updates
653
-
654
- = PixelYourSite 4.0.2 =
655
-
656
- * WordPress 4.7 compatibility checked
657
-
658
- * Manage Events buttons fixed - they were not looking right on WP 4.7
659
-
660
- = PixelYourSite 4.0.1 =
661
-
662
- * fixing minor bugs
663
-
664
- = PixelYourSite 4.0.0 =
665
-
666
- * From version 4.0 the plugin uses JS to trigger the code. This allows us to add new useful features.
667
-
668
- * Delay Event option added for the GeneralEvent
669
-
670
- * Head/Footer option - you can decide where the pixel JS will be called. The default setting is in the page head.
671
-
672
- * Various text changes to reflect the new pro features
673
-
674
- * WooCommerce SKU id possible error fix
675
-
676
-
677
- = PixelYourSite 3.1.0 =
678
-
679
- * Changing GeneralEvent parameters names to avoid Pixel Helper warning (post_id and post_type are now being used)
680
-
681
- * Updating new pro features (tracking tags, advanced matching)
682
-
683
- * Minor fixes and code changes
684
-
685
- = PixelYourSite 3.0.3 =
686
-
687
- * Fixing PHP warnings and errors
688
-
689
- * Fixing encoding problems
690
-
691
- * Fixing incompatibility with some themes
692
-
693
- = PixelYourSite 3.0.2 =
694
-
695
- * Small fixes related to some possible HTML errors
696
-
697
- * Admin Notice modifications
698
-
699
- = PixelYourSite 3.0.1 =
700
-
701
- * Fixing potential problem with importing settings from older versions
702
-
703
-
704
- = PixelYourSite 3.0 =
705
-
706
- This is a major release, with a new design and new features:
707
-
708
- * Completely new design
709
-
710
- * New GeneralEvent feature for improved Custom Audience building (with a free guide)
711
-
712
- * ON/OFF option for user roles
713
-
714
- * Improved Events and Dynamic Events control
715
-
716
- * Facebook Dynamic Ads Pixel Setup for WooCommerce
717
-
718
-
719
- = PixelYourSite 2.2.4 =
720
-
721
- * Fixed a few back*end errors and conflicts
722
-
723
- * Adding new currencies
724
-
725
- = PixelYourSite 2.2.3 =
726
-
727
- * Learning links updated
728
-
729
- * Minor PHP warning fixed
730
-
731
- = PixelYourSite 2.2.2 =
732
-
733
- * Minor fix for admin notice
734
-
735
- = PixelYourSite 2.2.1 =
736
-
737
- * Fixing not closing admin notice error
738
-
739
-
740
- = PixelYourSite 2.2 =
741
-
742
- * Introducing Dynamic Events (pro)
743
-
744
- * Introducing our new Learning Section
745
-
746
- = PixelYourSite 2.1 =
747
-
748
- * Introducing new WooCommerce Paypal Standard events (pro)
749
-
750
- = PixelYourSite 2.0 =
751
-
752
- * This update adds full control on Standard Events, with the possibility to define all the available parameters for each event
753
-
754
- * You can also add the code for each event with the new event text field. This also lets you define custom events
755
-
756
- * WooCommerce Affiliate Products events: you can define events that will trigger on affiliate buttons clicks
757
-
758
- * Fixed a potential error for the WooCommerce Purchase Event
759
-
760
- = PixelYourSite 1.05 =
761
-
762
- * Updated offer for the PRO version
763
-
764
- = PixelYourSite 1.04 =
765
-
766
- * Fixed fresh install error (when no settings saved)
767
-
768
- = PixelYourSite 1.03 =
769
-
770
- * Fixed "Select options" error for variable products on categories pages
771
-
772
- = PixelYourSite 1.02 =
773
-
774
- * Fixed currency symbol error
775
- * Added super special offer for the PRO version
776
-
777
- = PixelYourSite 1.01 =
778
-
779
- * Dynamic AddToCart event for WooCommerce (the AddToCart event will trigger when a users click on the add to cart button)
780
- * Dynamic AddToCart works with WooCommerce short-codes.
781
- * Fixed a false error that was reported for the Purchase WooCommerce event by Pixel Helper extension on the Thank You page.
782
-
783
- = PixelYourSite 1.0 =
784
-
785
- * A new plugin is born: It will let you manage the Facebook Pixel with just a few clicks
786
-
787
-
788
- == Upgrade Notice ==
789
-
790
- = 5.0 =
791
-
792
- Version 5.0 comes with full Easy Digital Downloads integrations plus the ability to give each WooCommerce and EDD event a global value.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ===PixelYourSite - Your smart PIXEL (TAG) Manager===
2
+ Contributors: PixelYourSite, themister
3
+ Tags: Facebook Pixel, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pixel Events, Facebook, New Facebook Pixel Events, Dynamic Events, Standard Events, Facebook Events, Facebook Standard Events, Facebook Dynamic Product Ads, WooCommerce, WooCommerce Facebook Pixel, Facebook Custom Events, Facebook Conversion Value, WooCommerce Affiliate Products, Easy Digital Downloads Pixel, Easy Digital Downloads Google Analytics, Head & Footer scripts, Enhanced Ecommerce, Pinterest tag
4
+ Requires at least: 3.0.1
5
+ Requires PHP: 5.4
6
+ Tested up to: 5.4
7
+ Stable tag: 7.1.9
8
+ License: GPLv3
9
+ License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
+
11
+ Facebook Pixel, Google Analytics, plus ANY other script. WooCommerce and EDD with Facebook Dynamic Product Ads and Google Enhanced Ecommerce. Track any action with events. Pinterest Tag support via a free add-on. Dedicated paid Bing Tag add-on.
12
+
13
+ == Description ==
14
+ **Manage your Facebook Pixel or Google Analytics code with a single plugin and add ANY other script (Head & Footer feature). The Pinterest Tag can be implemented via [free add-on](https://www.pixelyoursite.com/pinterest-tag).**
15
+
16
+ PixelYourSite Global Events will automatically track important actions and send them to all your configured pixels (searches, form submit, comments, downloads).
17
+
18
+ You can fire your own events with zero coding.
19
+
20
+ **WooCommerce** and **Easy Digital Downloads** are fully supported, with Facebook Dynamic Ads pixel setup and Google Analytics Enhanced Ecommerce.
21
+
22
+ Take a look at this video to see the plugin in action:
23
+
24
+ [youtube https://www.youtube.com/watch?v=OUHU9lZ2lwQ]
25
+
26
+ NEW: Facebook Pixel server-side events for WooCommerce (Purchase and CompleteRegistration): [Learn how to configure server-side events](https://www.pixelyoursite.com/documentation/configure-server-side-events)
27
+
28
+ TRACK EVERYTHING WITH A SINGLE PLUGIN:
29
+
30
+ The Facebook Pixel: one click install
31
+ Google Analytics: one click install
32
+ ANY script: add any other script with our flexible Head & Footer option
33
+ The Pinterest Tag: via [free add-on](https://www.pixelyoursite.com/pinterest-tag)
34
+ Google Ads (formerly AdWords) [pro feature](https://www.pixelyoursite.com/google-ads-tag)
35
+ Microsoft (BING) UET tag [paid add-on](https://www.pixelyoursite.com/bing-tag)
36
+
37
+ **Want to learn about your Facebook Pixel? We've put toghether [this help page](https://www.pixelyoursite.com/how-to-use-facebook-pixel)**
38
+
39
+ FANTASTIC WOOCOMMERCE INTEGRATION:
40
+
41
+ Facebook Pixe: every e-commerce related event is fired automatically. Conversion value is tracked for each event. All the events are Dynamic Product Ads ready (content_ids and content_type parameters always present).
42
+ Google Analytics: Enhanced Ecommerce implementation.
43
+ Head & Footer scripts: you can insert scripts on the WooCommerce “order-received” page.
44
+ Pinterest e-commerce events.
45
+
46
+ EASY DIGITAL DOWNLOADS INTEGRATION:
47
+
48
+ The EDD integration works just like the WooCommerce integration, with full Dynamic Product Ads Facebook Pixel Support, Google Analytics Enhanced Ecommerce, and Pinterest Tag e-commerce events.
49
+
50
+ TRACK IMPORTANT DATA WITH THE GLOBAL EVENTS:
51
+
52
+ The plugin will automatically fire the Global Events and send them to all active pixels. They will help you track your visitors’ activity, create Facebook Custom Audiences or Custom Conversions, Google Goals, Google Audiences, and Pinterest Audiences.
53
+
54
+ The GeneralEvent: fired on every page, it will send Facebook and Pinterest key data on how your users interact with your content. It’s parameters will track things like the page title, category, or ID. Super useful for targeted Custom Audiences.
55
+ The Search event: fired when your visitors use the search form, it will track the searched string. WooCommerce searches will be Dynamic Ads ready, sending the product’s ID to allow retargeting.
56
+ The Comment event: it will track comments.
57
+ The Download event: will be fired when a downloadable filled is clicked. You can configure what file types should fire this event.
58
+ The Form event: will be fired when a form is submitted
59
+
60
+ FIRE YOUR OWN EVENTS:
61
+
62
+ You can easily configure your own events and send them to all or just some of the networks (Facebook, Google, Pinterest).
63
+
64
+ You can fire standard or custom events using triggers like:
65
+
66
+ URL contains.
67
+ URL equals.
68
+ Delay event: fire after X seconds.
69
+
70
+ GDPR SUPPORT:
71
+
72
+ PixelYourSite works with 4 popular “cookie consent” plugins:
73
+
74
+ Cookiebot - [link](https://wordpress.org/plugins/cookiebot/)
75
+ GDPR Cookie Consent - [link](https://wordpress.org/plugins/cookie-law-info/)
76
+ Cookie Notice Plugin - [link](https://wordpress.org/plugins/cookie-notice/)
77
+ Ginger EU Cookie Law - [link](https://wordpress.org/plugins/ginger/)
78
+
79
+ Additionally we offer filters that developers can use to create their own custom integrations. These filters can control the way each pixel works.
80
+
81
+ FACEBOOK FOR WOOCOMMERCE INTEGRATION:
82
+
83
+ You can use Facebook for WooCommerce plugin along with PixelYourSite. This will let you benefit from all our advanced pixel features and still have a Facebook page shop.
84
+
85
+ When Facebook for WooCommerce is detected, the plugin will offer you the option to use their ID logic for all the WooCommerce specific events. This will ensure product matching between your site and their Product Catalog.
86
+
87
+ [More details in this dedicated article](https://www.pixelyoursite.com/facebook-for-woocommerce-pixelyoursite)
88
+
89
+ OTHER USEFUL FEATURES:
90
+
91
+ Facebook Manual Advanced Matching.
92
+ Remove Facebook default events.
93
+ Google Analytics cross-domain measurement.
94
+ Google Analytics Enhanced Link Attribution.
95
+ Google Analytics Anonymize IPs.
96
+ Pinterest Enhanced Matching.
97
+
98
+ **EVEN MORE FEATURES WITH THE PRO VERSION:**
99
+
100
+ [PixelYourSite Pro](https://www.pixelyoursite.com/) is used by thousands of businesses already and will offer you some extraordinary features.
101
+
102
+ [Click here for a comparison between the free and pro versions](https://www.pixelyoursite.com/free-versus-pro)
103
+
104
+ EVEN MORE GLOBAL EVENTS:
105
+
106
+ The ClickEvent: fired on every click and with useful parameters that will help you to identify what element was clicked (HTML links, buttons, images, etc). This event will be sent to all networks (Facebook, Google Analytics, Google Ads, Pinterest).
107
+ The WatchVideo event: fired when an embedded video is played, will let you identify the video name and will be send to all networks
108
+ The user registration event: fired when new user account is created on your website, will be sent to all networks
109
+ The AdSense event: fired when an AdSense ad is clicked, it lets you optimize your Facebook or Pinterest Ads for Google AdSense clicks, as well as creating Custom Audiences or Lookalikes.
110
+
111
+ EVEN MORE EVENTS’ TRIGGERS:
112
+
113
+ On top of the free triggers (URL equals and URL contains), the pro version will let you fire more complexe events:
114
+
115
+ Clicks on CSS Selector: you can target virtually any clicks, like buttons, images etc.
116
+ Mouse over CSS Selector
117
+ Page Scroll: you can fire an event when any or a particular page is scrolled down to a percent.
118
+
119
+ EVEN MORE FACEBOOK EVENTS PARAMETERS:
120
+
121
+ The pro version will track a vast amount of data for each event, like the traffic source, UTMs, your visitor’s browser’s time (hour, day, month).
122
+
123
+ These parameters can be used for [Custom Audiences or Custom Conversions](https://www.pixelyoursite.com/facebook-pixel-plugin/custom-audiences-conversions)
124
+
125
+ EVEN MORE GOOGLE ANALYTICS FEATURES:
126
+
127
+ Support for Google Optimize (free A/B testing service by Google).
128
+
129
+ On top of the free version data, [the pro version](https://www.pixelyoursite.com/google-analytics) will track a number of useful Custom Dimensions.
130
+
131
+ Browser’s hour, day, and month. They are useful if you sell globally and what to know at what time your visitors take a particular action (their time, not your server’s or Google Analytics time).
132
+ Dynamic Remarketing vertical custom dimensions (Retail or Custom vertical). Useful if you want to configure dynamic remarketing via your Analytics account.
133
+
134
+ EVEN MORE HEAD & FOOTER OPTIONS:
135
+
136
+ The pro version [Head & Footer](https://www.pixelyoursite.com/head-footer-scripts) lets you use dynamic values: [id], [title], [categories], [email], [first_name], [last_name].
137
+
138
+ For WooCommerce you’ll have some additional dynamic values: [order_number], [order_subtotal], [order_total], [currency].
139
+
140
+ EVEN MORE WOOCOMMERCE FEATURES:
141
+
142
+ Identify your most valuable customers with our Advanced Marketing Events. Useful to create Facebook Lookalikes or Google Similar Audiences.
143
+ CSV Export for Facebook Custom Audiences with Lifetime Value. Useful for Facebook LTV Lookalikes.
144
+ Super flexible events value configuration (include/exclude tax and shipping, use full price or a price percent for each event).
145
+ Track the Lifetime Value for your customers as Purchase event parameter.
146
+ Lots of extra parameters for the Facebook Purchase event. Useful to create advanced Custom Audiences. Check our [comparison tables](https://www.pixelyoursite.com/pixelyoursite-free-version) for details
147
+ Fire the Purchase event on transaction only.
148
+ Track WooCommerce affiliate buttons clicks.
149
+ Track WooCommerce PayPal Standard clicks.
150
+ [Google Ads Dynamic Remarketing parameters](https://www.pixelyoursite.com/google-ads-tag)
151
+
152
+ For more info on how the pro version can help you with your Facebook Pixel, [visit this WooCommerce - Facebook Pixel page](https://www.pixelyoursite.com/facebook-pixel-plugin/woocommerce-facebook-pixel)
153
+
154
+ GOOGLE ADS TAG (FORMER ADWORDS):
155
+
156
+ The Pro version will implement the [Google Ads Tag](https://www.pixelyoursite.com/google-ads-tag) with Dynamic Retargeting support for WooCommerce and Easy Digital Downloads.
157
+
158
+ Each Global event will be sent to Google Ads too, and you can configure Google Ads conversions.
159
+
160
+ Add conversion label to any WooCommerce or EDD event.
161
+
162
+ NOT ENOUGH? GET MORE WITH THE SUPER PACK:
163
+
164
+ With the [Super Pack](https://www.pixelyoursite.com/super-pack) you get 5 extra add-ons:
165
+
166
+ Multiple pixels: add multiple Facebook pixels, Google Analytics, or Google Ads tags
167
+ Remove a pixel from a particular page
168
+ Dynamic parameters for events
169
+ WooCommerce custom “thank you pages”
170
+ AMP support
171
+
172
+ The super pack comes as a free bonus with our [Advanced and Agency licenses](https://www.pixelyoursite.com/facebook-pixel-plugin/buy-pixelyoursite-pro).
173
+
174
+ DON’T MISS:
175
+
176
+ For more details about how [PixelYourSite Pro](https://www.pixelyoursite.com/) can help your business, visit our website. Make sure you check our [free versus pro comparison page](https://www.pixelyoursite.com/free-versus-pro)
177
+
178
+ **Learning Section**: we’ve put together a number of articles with all sort of tips and tricks that will help you with your ads. [Click here for our learning section](https://www.pixelyoursite.com/learn)
179
+
180
+ **Video Tips**: watch short videos showing how to do all sort of ads related things. [Click here to watch the video tips](https://www.pixelyoursite.com/video)
181
+
182
+ **Documentation**: learn how to use PixelYourSite free plugin. [Click here for the HELP articles](https://www.pixelyoursite.com/pixelyoursite-free-version)
183
+
184
+
185
+ == Installation ==
186
+ * From the WP admin panel, click \"Plugins\" -> \"Add new\".
187
+ * In the browser input box, type \"PixelYourSite\".
188
+ * Select the \"PixelYourSite\" plugin (authored by \"PixelYourSite\"), and click \"Install\".
189
+ * Activate the plugin.
190
+
191
+ OR...
192
+
193
+ * Download the plugin from this page.
194
+ * Save the .zip file to a location on your computer.
195
+ * Open the WP admin panel, and click \"Plugins\" -> \"Add new\".
196
+ * Click \"upload\".. then browse to the .zip file downloaded from this page.
197
+ * Click \"Install\".. and then \"Activate plugin\".
198
+
199
+ OR...
200
+
201
+ * Download the plugin from this page.
202
+ * Extract the .zip file to a location on your computer.
203
+ * Use either FTP or your host's cPanel to gain access to your website file directories.
204
+ * Browse to the `wp-content/plugins` directory.
205
+ * Upload the extracted `wp_edit` folder to this directory location.
206
+ * Open the WP admin panel.. click the \"Plugins\" page.. and click \"Activate\" under the newly added plugin.
207
+
208
+
209
+ == Frequently Asked Questions ==
210
+ We maintain an up-to-date FAQ page on our site: [Click Here for the FAQ Page](http://www.pixelyoursite.com/facebool-pixel-master-faq)
211
+
212
+ **FACEBOOK PIXEL: Do I need to copy/paste the full Facebook Pixel code somewhere?**
213
+
214
+ No, you just have to enter your pixel ID in the dedicated field. The plugin will do the rest for you.
215
+
216
+ **FACEBOOK PIXEL: Where can I find the Facebook Pixel ID?**
217
+
218
+ You can find it here:
219
+ <a href="https://www.facebook.com/ads/manager/pixel/facebook_pixel" target="_blank">https://www.facebook.com/ads/manager/pixel/facebook_pixel</a>
220
+
221
+ **FACEBOOK PIXEL: Can I use the plugin for Custom Audiences or Custom Conversions?**
222
+
223
+ Absolutely yes! Actually, the plugin will super-optimize your site for Custom Audiences and Custom Conversions.
224
+
225
+ You will be able to create the classical ones based on URLs, but also Custom Combinations, like people who visited posts from category XYZ, or tagged with tag ABC in the last 30 days.
226
+
227
+ Use the PRO version, and you'll be able to do crazy things, like targeting people that came from Google and visited products under category "blue widget", or clients who bought products of at least $100, using the discount coupon "promo".
228
+
229
+ **FACEBOOK PIXEL: I used the old Facebook Pixel, will my audiences still work?**
230
+
231
+ Yes, they will, you won't lose anything.
232
+
233
+ **FACEBOOK PIXEL: Does it work with WooCommerce?**
234
+
235
+ Yes, it does. The plugin adds all the necessary events, like ViewContent, AddToCart, InitiateCheckout, and Purchase. This way you can easily track conversions and conversion value.
236
+
237
+ **FACEBOOK PIXEL: Do I have to manually add the events for WooCommerce?**
238
+
239
+ No, you don't, the plugin will take care of everything for you.
240
+
241
+ **FACEBOOK PIXEL: Does it work with Easy Digital Downloads?**
242
+
243
+ Yes, it works in the same way it does with WooCommerce.
244
+
245
+ **FACEBOOK PIXEL: Does it work with Dynamic Product Ads (promote a product catalog)**
246
+
247
+ Yes, all the WooCommerce and EDD pixel events are Dynamic Ads ready.
248
+
249
+ **FACEBOOK PIXEL: Can I fire additional events if I need to?**
250
+
251
+ Of course, you can fire any type of event (standard or custom).
252
+
253
+ There are several triggers you can use:
254
+
255
+ *URL includes (supports delay)
256
+ *URL equals (supports delay)
257
+ *Click on HTML link (pro)
258
+ *Click on CSS Selector (pro)
259
+ *Mouse over CSS Selector (pro)
260
+ *Page scroll (pro)
261
+
262
+ **FACEBOOK PIXEL: I have the pixel installed on my website and I am running a Facebook Campaign, but the reports are confusing me. How can I see my campaign results?**
263
+
264
+ We have an article about how to create Custom Reports: [How to optimize your Facebook Ads Reports for events tracking](https://www.pixelyoursite.com/how-to-manage-reports-inside-your-facebook-ads-manager-video)
265
+
266
+ **GOOGLE ANALYTICS: Do I need to copy/paste all the Google Analytics code?**
267
+
268
+ No, you just need to copy/paste your Google Analytics UA id.
269
+
270
+ **GOOGLE ANALYTICS: Where can I find my Google Analytics UA id?**
271
+
272
+ You can find it right inside your Google Analytics account, under Property Settings.
273
+ For more information on how to get your UA id, [follow this link](https://www.pixelyoursite.com/documentation/add-your-google-analytics-code)
274
+
275
+ **GOOGLE ANALYTICS: Is Google Analytics Enhanced Ecommerce supported?**
276
+
277
+ Yes, Google Analytics Enhanced Ecommerce data is tracked automatically for WooCommerce and Easy Digital Downloads.
278
+
279
+ **HEAD AND FOOTER: Can I add any scripts I want with your Head and Footer option?**
280
+
281
+ Yes, you can add any type of scripts you want.
282
+
283
+ **HEAD AND FOOTER: Can I show scripts just on mobile or desktop?**
284
+
285
+ Yes, you can.
286
+ You can configure scripts for all devices, just for mobile, or just for desktop.
287
+
288
+ **HEAD AND FOOTER: Can I hide scripts on some pages.**
289
+
290
+ Yes, you can hide the global scripts on any page you want.
291
+
292
+ **HEAD AND FOOTER: Can I add scripts on WooCommerce's order-received page?**
293
+
294
+ Yes, you can add or hide scripts on the WooCommerce's order-received page.
295
+
296
+ **PINTEREST TAG: Do I need to install your free Pinterest add-on?**
297
+
298
+ Yes, if you want to implement the Pinterest tag you'll need our free Pinterest add-on.
299
+ You can [get it from here](https://www.pixelyoursite.com/pinterest-tag)
300
+
301
+ **PINTEREST TAG: Where can I find my Pinterest tag ID?**
302
+
303
+ You can find your Pinterest tag ID inside your Pinterest account.
304
+ For more information go to our [help page](https://www.pixelyoursite.com/documentation/add-your-pinterest-tag)
305
+
306
+ **PINTEREST TAG: Can I fire my own Pinterest events?**
307
+
308
+ Yes, you can fire your own Pinterest tags events effortless.
309
+
310
+ There are several triggers you can use:
311
+
312
+ *URL includes (supports delay)
313
+ *URL equals (supports delay)
314
+ *Click on HTML link (pro)
315
+ *Click on CSS Selector (pro)
316
+ *Mouse over CSS Selector (pro)
317
+ *Page scroll (pro)
318
+
319
+ **PINTEREST TAG: I use WooCommerce or EDD, do I need to add the Pinterest events myself?**
320
+
321
+ No, absolutely not!
322
+ The plugin will fire all the Pinterest e-commerce events automatically.
323
+
324
+ **Will your plugin increase the loading time of my site?**
325
+
326
+ The plugin itself is really fast. However, you have to remember that the pixel has to communicate with Facebook, Google, or Pinterest to send all the data, and this will add a little load on your site.
327
+
328
+ Will this impact on your visitors? No, because all the requests are asynchronous, meaning that the browser will continue to load and your users will not see any delay whatsoever.
329
+
330
+ **Are there any known incompatibilities with other themes or plugins?**
331
+
332
+ There are a few you should consider:
333
+
334
+ *Any plugin or solution that implements the same pixel or tag. Having the same tracking pixel added twice can cause problems.
335
+
336
+ *We had a problem with Mamaya, a retargeting service.
337
+
338
+ *It won’t work with LeadPages or any similar system because those pages are generated outside WordPress.
339
+
340
+ *Some clients reported problems with Thrive landing pages. This happens because Thrive removes other plugins JS files.
341
+
342
+ There's a strange solution: it appears that if you have the Yoast plugin installed the problem will go away.
343
+
344
+ *Upsell plugins can cause problems with purchase tracking. If they add an intermediary page after the transaction, we have [a filter their developer can use to call our default Purchase event](https://bitbucket.org/snippets/the_mister/zeaXya)
345
+
346
+ **Are there any situations when the plugin will connect to outside sources?**
347
+
348
+ Yes, there are, and we will explain them here:
349
+
350
+ *We offer you the possibility to voluntarily subscribe to our newsletter and get valuable tips. We manage our newsletter using ActiveCampaing. When you subscribe, we will call our server that intermediates the API connection, and then the data is sent to ActiveCampaign. The information that is passed: the name you provide and the email. If you check the "I use WooCommerce" checkbox, we will add this information as a tag, to give you better tips in the future.
351
+
352
+ *Add-on updates: the plugin works with free or paid add-ons (for Pinterest, Bing, etc) that we provide and host on our server. When you install such an add-on, we will do checks for updates. If you have a valid license for the add-on, we will automatically download the latest version of the add-on from our servers. The core plugin (PixelYourSite itself) updates are provided using WordPress own servers.
353
+
354
+ *When you install a pixel or a tag (like the Facebook Pixel or Google Analytics), the script will call for their specific files. These scripts are hosted on their servers (Facebook's servers, Google's servers).
355
+
356
+ *If you install scripts using our Head & Footer option, these scripts may load files from third-party servers. You can check this using your browser's Console.
357
+
358
+ **Do you record data about the websites' traffic**
359
+
360
+ NO, absolutely not! We don't track any type of data about your website. We simply implement the pixel/tag code.
361
+
362
+
363
+
364
+ == Screenshots ==
365
+
366
+ 1. Add your Facebook pixel ID, Google Analytics ID, or Pinterest ID.
367
+ 2. You don’t have to copy/paste all the Facebook pixel code, but just the pixel ID. You can find it in your Ads Manager, under the Pixels link.
368
+ 3. You just need your Google Analytics Tracking ID, not the full code.
369
+ 4. You simply need your Pinterest Tag ID.
370
+ 5. You can exclude user roles from tracking (like Admin), so they won’t affect your stats.
371
+ 6. You can allow other user roles to use the plugin.
372
+ 7. The Global Events are fired automatically, tracking important actions and data.
373
+ 8. The GeneralEvent is fired on every page, tracking important data about your content.
374
+ 9. The Search event tracks searches. WooCommerce searches are Dynamic Ads ready.
375
+ 10. The Form event is fired when a form is submitted.
376
+ 11. The Comment event tracks comments.
377
+ 12. The Downloads event tracks downloads. You can configure the file types.
378
+ 13. You can fire your own events with NO coding.
379
+ 14. Events have flexible triggers and can be sent to Facebook, Google Analytics, or Pinterest.
380
+ 15. WooCommerce comes with Facebook Dynamic Ads events, Google Analytics Enhanced Ecommerce, and Pinterest e-commerce configuration.
381
+ 16. You can track value for each WooCommerce events, plus other useful parameters.
382
+ 17. The AddToCart event can be fired on cart buttons, cart page, or checkout page.
383
+ 18. Easy Digital Downloads integrations comes with Facebook Dynamic Ads events, Google Analytics Enhanced Ecommerce, and Pinterest e-commerce setup.
384
+ 19. Test your Facebook pixel with Pixel Helper Chrome extension.
385
+ 20. Test your Google Analytics code with Google Tag Assistant Chrome extension.
386
+ 21. Test your Pinterest tag with the Pinterest Tag Helper Chrome extension.
387
+ 22. With the Head & Footer option you an add ANY script. There’s an option to insert scripts on the WooCommerce order-received page .
388
+ 23. You’ll have an option to insert scripts on any pages or posts.
389
+
390
+
391
  == Changelog ==
392
 
393
+ = PixelYourSite 7.1.9 =
394
+
395
+ * Fix for a potential issue where AddToCart value was NaN
396
+
397
+ * Automatically deactivation of the free version when installing the pro plugin
398
+
399
+ * Facebook server-side API update
400
+
401
+ * Remove CompleteRegistration from code when the event is send server-side - [hiding the profit](https://www.pixelyoursite.com/strategy/track-profit-and-total-for-facebook-ads)
402
+
403
+ * Code update to declare WooCommerce 4.2 compatibility
404
+
405
+
406
+
407
+ = PixelYourSite 7.1.8 =
408
+
409
+ * NEW: Facebook Pixel server-side events for WooCommerce. It works for the Purchase and CompleteRegistration event.
410
+
411
+ * NEW: Fire the CompleteRegistration event for each WooCommerce transaction and configure it to use PROFIT as value. You can send this event server-side only (hide it from the browser). This is useful if you want to track both the TOTAL and the PROFIT generated by your ads. Requires [WooCommerce Cost of Goods plugin by PixelYourSite](https://www.pixelyoursite.com/woocommerce-cost-of-goods)
412
+
413
+ * FIX: Potential issue related to the Pinterest Tag add-on and WooCommerce events. Some events were not fired if there was no Facebook Pixel installed. You need to update the Pinterest Tag add-on too.
414
+
415
+ * Declare compatibility with WooCommerce 4.1
416
+
417
+ = PixelYourSite 7.1.6 =
418
+
419
+ * This is a minor update that ensures compatibility with the latest changes from the [WooCommerce Cost of Goods plugin by PixelYourSite](https://www.pixelyoursite.com/woocommerce-cost-of-goods)
420
+
421
+ = PixelYourSite 7.1.6 =
422
+
423
+ * Small code update to declare WooCommerce 4.0 compatibility.
424
+
425
+ * Fixes for some issues related to file paths. In some environments this was causing error on Elementor or WooCommerce admin pages.
426
+
427
+ * A new option to use PROFIT as value for your Facebook Pixel WooCommerce events. It works with the [WooCommerce Cost of Goods plugin by PixelYourSite](https://www.pixelyoursite.com/woocommerce-cost-of-goods)
428
+
429
+ = PixelYourSite 7.1.5 =
430
+
431
+ * New features: Facebook Dynamic Ads events for blog posts. Simulate the DPA required events on normal blog posts. We will soon release a dedicated plugin that will help you import your blog content into a Facebook Product Catalog.
432
+
433
+ * Google Analytics Enhanced Ecommerce: we removed the variation name from the product title and we added it as a separate parameter.
434
+
435
+ * Google Analytics Enhanced Ecommerce: we fixed an error with variable products category.
436
+
437
+ * Elementor: we fixed an error that was deleting Head & Footer scripts when a page was saved using Elementor.
438
+
439
+ * UI updates to reflect new paid features: fire custom events once in X hours; Google Analytics list performance tracking.
440
+
441
+ * Small code change to declare WooCommerce 3.9 compatibility.
442
+
443
+
444
+ = PixelYourSite 7.1.4 =
445
+
446
+ * Minor code changes to declare compatibility with WordPress 5.3 and WooCommerce 3.8.
447
+
448
+
449
+ = PixelYourSite 7.1.3 =
450
+
451
+ * Adding new options for WooCommerce and EDD events IDs: select between ID or SKU, use prefixes and postfixes, treat variable products like simple products. These features will work with the Pinterest add-on v2.0.8 (free), and the Bing add-on v1.0.2 (paid).
452
+
453
+ * Fix for an old bug related to how On Page Events triggers work. In previous versions, final slashes were ignored for both “URL Match” and “URL Contains” conditions. This was fixed with this release.
454
+ Recommendation: if you have manually added events using the On-Page trigger, test them to make sure they work as expected.
455
+
456
+ * Fix for a bug related to the Pinterest add-on. In previous versions, the WooCommerce Checkout and PageVisit events could not be turned ON/OFF.
457
+
458
+
459
+
460
+ = PixelYourSite 7.1.2 =
461
+
462
+ * Name change - we removed "Facebook" from the plugin title, as per Facebook's request. The plugin will still offer great Facebook Pixel integration.
463
+
464
+ * Banner update - we removed "Facebook" from our banners, as per Facebook's request.
465
+
466
+ * Security and code improvements
467
+
468
+
469
+ = PixelYourSite 7.1.1 =
470
+
471
+ * Compatibility with WooCommerce 3.7
472
+
473
+ * New structure for the Form and Comment events. It will help you better identify what actions have fired the events.
474
+
475
+ Form Event for the Facebook Pixel and the Pinterest Tag:
476
+
477
+ - form_class: a new parameter pulling the CSS class when it exits.
478
+ - form_id: a new parameter pulling the CSS ID when it exits.
479
+
480
+ Form event on Google Analytics:
481
+
482
+ - event_categoty: Form.
483
+ - event_action: the CSS class or ID (makes easier for you to identify the form).
484
+ - event_label: the text on the form’s button.
485
+
486
+ Comment event on Google Analytics:
487
+
488
+ - event_categoty: Comment.
489
+ - event_action: the “post type” (page, products, post, etc) comment.
490
+ - event_label: the URL where the comment was posted.
491
+
492
+ = PixelYourSite 7.1.0 =
493
+
494
+ * This update ads support for our paid Microsoft (BING) UET Tag add-on.
495
+
496
+ = PixelYourSite 7.0.5 =
497
+
498
+ * Fixing a potential problem with Pinterest PageVisit and Checkout events when the Facebook Pixel was deactivated (for the Pinterest add-on users only).
499
+
500
+
501
+ = PixelYourSite 7.0.4 =
502
+
503
+ * New Feature: Google Analytics cross-domain measurement. Tell Analytics to see sessions on two related sites (such as an ecommerce site and a separate shopping cart site) as a single session.
504
+
505
+ * UI changes to reflect some new features our PRO version has (Google Optimize, add conversion label to WooCommerce and EDD Google Ads events).
506
+
507
+ * Pinterest add-on missing license notice.
508
+
509
+ * Remove the pixels when you edit something with Elementor.
510
+
511
+ = PixelYourSite 7.0.3 =
512
+
513
+ * Fix: Google Analytics purchase event was missing the transaction ID, blocking Enhanced Ecommerce tracking.
514
+
515
+ * Fix: Head & Footer option was stripping backslashes from custom code on post or pages.
516
+
517
+ = PixelYourSite 7.0.2 =
518
+
519
+ * IMPORTANT: fix for some fatal errors that could be triggered by the Pinterest add-on on WooCommerce and Easy Digital Downloads orders.
520
+
521
+ = PixelYourSite 7.0.1 =
522
+
523
+ * Fix for missing cookie dependency issue (GDPR integrations).
524
+
525
+ * Adding developer Facebook ID in the pixel code (used internally by Facebook to identify partners activity).
526
+
527
+ = PixelYourSite 7.0.0 =
528
+
529
+ * Version 7.0.0 is a complete rewrite of the plugin, adding a lot more features.
530
+
531
+ * New Google Analytics integration with Enhanced Ecommerce support for WooCommerce and Easy Digital Downloads.
532
+
533
+ * Pinterest Tag support via free add-on.
534
+
535
+ * Add ANY other script with the new Head & Footer option. It supports global or per-page scripts. You have the possibility to add scripts on the WooCommerce order-received page.
536
+
537
+ * The Global Events will automatically track important actions: searches, form submit, comments, downloads.
538
+
539
+ * You can configure your own events using “URL match” or URL include triggers” and add a delay eventin seconds.
540
+
541
+ * Every event can be sent to Facebook, Google Analytics, or Pinterest.
542
+
543
+ * You can enable Facebook Advanced Matching.
544
+
545
+ * The Pinterest Tag supports Enhanced Matching.
546
+
547
+ * Google Analytics supports Enhanced Link Attribution and Anonymize IP.
548
+
549
+ * The WooCommerce integrations tracks remove from cart as an event and has support for Google Enhanced Ecommerce tracking.
550
+
551
+ * You can now grant permissions to manage the plugin based on the user’s role.
552
+
553
+ * We’ve extended our GDPR integrations with twom more “cookie consent” plugins.
554
+
555
+ * We’ve added filters for developers to control each pixel, plus a filter to control our AJAX option (useful to make GDPR custom integrations cache friendly).
556
+
557
+
558
+ = PixelYourSite 5.3.3 =
559
+
560
+ * Facebook for WooCommerce compatibility fix: we modify ViewCategory content_type parameter in order to ensure product matching when Facebook for WooCommerce id logic is used.
561
+
562
+ * WordPress 5.0 compatibility check.
563
+
564
+ = PixelYourSite 5.3.2 =
565
+
566
+ * Facebook Pixel Standard Events updated to include the new ones that Facebook released. <a href="https://www.pixelyoursite.com/new-facebook-pixel-standard-events" target="_blank"> Details here</a>
567
+
568
+
569
+ = PixelYourSite 5.3.1 =
570
+
571
+ * GDPR related update - we've implemented a dedicated filter to disable pixel tracking before consent: pys_disable_by_gdpr
572
+
573
+ * GDPR related update - we've added built-in integration with Ginger – EU Cookie Law plugin and Cookiebot
574
+
575
+ = PixelYourSite 5.3.0 =
576
+
577
+ * Additional improvements to the WooCommerce AddToCart event ("Cannot read property 'data' of undefined" error with some AJAX based themes)
578
+
579
+ * Fixing potential security issue
580
+
581
+
582
+ = PixelYourSite 5.2.1 =
583
+
584
+ * AddToCart small improvements to ensure compatibility with some themes using AJAX cart
585
+
586
+ * Plugin name update
587
+
588
+ = PixelYourSite 5.2.0 =
589
+
590
+ * Fixing a possible error with the add to cart button when WooCommerce and WPML are installed on some hostings (we were able to replicate it on SiteGround servers only)
591
+
592
+ * Enabling the AddToCart event on the Cart page when WooCommerce "Redirect to the cart page after successful addition" option is active. This will ensure that the events are captured.
593
+
594
+ * Other small improvements to the code related to the AddToCart event
595
+
596
+ = PixelYourSite 5.1.0 =
597
+
598
+ * Fixing possible compatibility problem with Facebook for WooCommerce extension
599
+ * Improving Facebook for WooCommerce ID logic
600
+
601
+ = PixelYourSite 5.0.9 =
602
+
603
+ * ViewCategory - new WooCommerce event, compatible with Facebook Dynamic Product Ads (DPA)
604
+
605
+ * New WooCommerce events parameter: contents - A list of JSON object that contains the product ids associated with the event as well as additional information about the products. It can help with DPA
606
+
607
+ * Declaring compatibility with WooCommerce 3.2.6
608
+
609
+ = PixelYourSite 5.0.8 =
610
+
611
+ * AddToCart new option: fire the event on the Checkout Page. It will be helpful for some websites with customized structure.
612
+
613
+ * The AddToCart event was improved to work with AJAX buttons on single product pages. This will help to catch events on a number of themes that use AJAX on the product pages.
614
+
615
+ * We made additional changes to ensure compatibility with Facebook for WooCommerce latest version.
616
+
617
+
618
+ = PixelYourSite 5.0.7 =
619
+
620
+ * Purchase event 0 value error fixed (there wasn't any value parameter when the order value was zero)
621
+
622
+
623
+ = PixelYourSite 5.0.6 =
624
+
625
+
626
+ * Facebook for WooCommerce extension integration updated to match the new ID logic (PixelYourSite can be used together with Facebook for WooCommerce extension - this way you can have a Facebook shop without losing our powerful pixel features)
627
+
628
+
629
+ = PixelYourSite 5.0.5.2 =
630
+
631
+
632
+ * Quick fix for a small error with our previous release (we didn't include all the files)
633
+
634
+
635
+ = PixelYourSite 5.0.5 =
636
+
637
+ * Treat WooCommerce variable products like simple products - useful if your Product Catalog doesn't include variations. When ON, ViewContent content_type will be product and the main item ID will be used for all events instead of the variation item.
638
+
639
+ = PixelYourSite 5.0.4 =
640
+
641
+ * Changed WooCommerce ViewContent event content_type to product_group for variable products
642
+
643
+ = PixelYourSite 5.0.3 =
644
+
645
+ * WooCommerce and EDD content_ids potential issue fix (the content was not correctly wrapped, leaving room for errors when SKU was used instead of the default WordPress IDs)
646
+
647
+ = PixelYourSite 5.0.2 =
648
+
649
+ * Added agent identifier (dvpixelyoursite) as we were directly requested by Facebook
650
+ * Checked and confirmed WooCommerce 3 compatibility
651
+ * Dynamic WooCommerce Events Value based on the product price
652
+ * Facebook for WooCommerce support
653
+
654
+ = PixelYourSite 5.0.1 =
655
+
656
+ * WooCommerce 2.7 compatibility update: we made sure everything works with the latest WooCommerce version.
657
+
658
+ = PixelYourSite 5.0 =
659
+
660
+ * Easy Digital Downloads Integration - Dynamic Ads (promote a product catalog) are fully supported.
661
+
662
+ * WooCommerce & Easy Digital Downloads events global value.
663
+
664
+ = PixelYourSite 4.0.3 =
665
+
666
+ * Important security updates
667
+
668
+ = PixelYourSite 4.0.2 =
669
+
670
+ * WordPress 4.7 compatibility checked
671
+
672
+ * Manage Events buttons fixed - they were not looking right on WP 4.7
673
+
674
+ = PixelYourSite 4.0.1 =
675
+
676
+ * fixing minor bugs
677
+
678
+ = PixelYourSite 4.0.0 =
679
+
680
+ * From version 4.0 the plugin uses JS to trigger the code. This allows us to add new useful features.
681
+
682
+ * Delay Event option added for the GeneralEvent
683
+
684
+ * Head/Footer option - you can decide where the pixel JS will be called. The default setting is in the page head.
685
+
686
+ * Various text changes to reflect the new pro features
687
+
688
+ * WooCommerce SKU id possible error fix
689
+
690
+
691
+ = PixelYourSite 3.1.0 =
692
+
693
+ * Changing GeneralEvent parameters names to avoid Pixel Helper warning (post_id and post_type are now being used)
694
+
695
+ * Updating new pro features (tracking tags, advanced matching)
696
+
697
+ * Minor fixes and code changes
698
+
699
+ = PixelYourSite 3.0.3 =
700
+
701
+ * Fixing PHP warnings and errors
702
+
703
+ * Fixing encoding problems
704
+
705
+ * Fixing incompatibility with some themes
706
+
707
+ = PixelYourSite 3.0.2 =
708
+
709
+ * Small fixes related to some possible HTML errors
710
+
711
+ * Admin Notice modifications
712
+
713
+ = PixelYourSite 3.0.1 =
714
+
715
+ * Fixing potential problem with importing settings from older versions
716
+
717
+
718
+ = PixelYourSite 3.0 =
719
+
720
+ This is a major release, with a new design and new features:
721
+
722
+ * Completely new design
723
+
724
+ * New GeneralEvent feature for improved Custom Audience building (with a free guide)
725
+
726
+ * ON/OFF option for user roles
727
+
728
+ * Improved Events and Dynamic Events control
729
+
730
+ * Facebook Dynamic Ads Pixel Setup for WooCommerce
731
+
732
+
733
+ = PixelYourSite 2.2.4 =
734
+
735
+ * Fixed a few back*end errors and conflicts
736
+
737
+ * Adding new currencies
738
+
739
+ = PixelYourSite 2.2.3 =
740
+
741
+ * Learning links updated
742
+
743
+ * Minor PHP warning fixed
744
+
745
+ = PixelYourSite 2.2.2 =
746
+
747
+ * Minor fix for admin notice
748
+
749
+ = PixelYourSite 2.2.1 =
750
+
751
+ * Fixing not closing admin notice error
752
+
753
+
754
+ = PixelYourSite 2.2 =
755
+
756
+ * Introducing Dynamic Events (pro)
757
+
758
+ * Introducing our new Learning Section
759
+
760
+ = PixelYourSite 2.1 =
761
+
762
+ * Introducing new WooCommerce Paypal Standard events (pro)
763
+
764
+ = PixelYourSite 2.0 =
765
+
766
+ * This update adds full control on Standard Events, with the possibility to define all the available parameters for each event
767
+
768
+ * You can also add the code for each event with the new event text field. This also lets you define custom events
769
+
770
+ * WooCommerce Affiliate Products events: you can define events that will trigger on affiliate buttons clicks
771
+
772
+ * Fixed a potential error for the WooCommerce Purchase Event
773
+
774
+ = PixelYourSite 1.05 =
775
+
776
+ * Updated offer for the PRO version
777
+
778
+ = PixelYourSite 1.04 =
779
+
780
+ * Fixed fresh install error (when no settings saved)
781
+
782
+ = PixelYourSite 1.03 =
783
+
784
+ * Fixed "Select options" error for variable products on categories pages
785
+
786
+ = PixelYourSite 1.02 =
787
+
788
+ * Fixed currency symbol error
789
+ * Added super special offer for the PRO version
790
+
791
+ = PixelYourSite 1.01 =
792
+
793
+ * Dynamic AddToCart event for WooCommerce (the AddToCart event will trigger when a users click on the add to cart button)
794
+ * Dynamic AddToCart works with WooCommerce short-codes.
795
+ * Fixed a false error that was reported for the Purchase WooCommerce event by Pixel Helper extension on the Thank You page.
796
+
797
+ = PixelYourSite 1.0 =
798
+
799
+ * A new plugin is born: It will let you manage the Facebook Pixel with just a few clicks
800
+
801
+
802
+ == Upgrade Notice ==
803
+
804
+ = 5.0 =
805
+
806
+ Version 5.0 comes with full Easy Digital Downloads integrations plus the ability to give each WooCommerce and EDD event a global value.
vendor/composer/installed.json CHANGED
@@ -1,24 +1,24 @@
1
  [
2
  {
3
  "name": "facebook/php-business-sdk",
4
- "version": "6.0.0",
5
- "version_normalized": "6.0.0.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
9
- "reference": "32c8678d3c50e0570b68d7cbb23062c16a5faf15"
10
  },
11
  "dist": {
12
  "type": "zip",
13
- "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/32c8678d3c50e0570b68d7cbb23062c16a5faf15",
14
- "reference": "32c8678d3c50e0570b68d7cbb23062c16a5faf15",
15
  "shasum": ""
16
  },
17
  "require-dev": {
18
  "phpunit/phpunit": "~8",
19
  "symfony/finder": "~2.6"
20
  },
21
- "time": "2020-02-03T20:06:10+00:00",
22
  "type": "library",
23
  "installation-source": "dist",
24
  "autoload": {
1
  [
2
  {
3
  "name": "facebook/php-business-sdk",
4
+ "version": "7.0.1",
5
+ "version_normalized": "7.0.1.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
9
+ "reference": "ae15c52c45015f1cd9e1adbbf442a75698a6e214"
10
  },
11
  "dist": {
12
  "type": "zip",
13
+ "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/ae15c52c45015f1cd9e1adbbf442a75698a6e214",
14
+ "reference": "ae15c52c45015f1cd9e1adbbf442a75698a6e214",
15
  "shasum": ""
16
  },
17
  "require-dev": {
18
  "phpunit/phpunit": "~8",
19
  "symfony/finder": "~2.6"
20
  },
21
+ "time": "2020-06-04T00:19:55+00:00",
22
  "type": "library",
23
  "installation-source": "dist",
24
  "autoload": {
vendor/facebook/php-business-sdk/.gitignore ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /local
2
+ /vendor
3
+ /composer.lock
4
+ /composer.local.*
5
+ /composer.phar
6
+ /coverage.clover
7
+ .DS_Store
8
+ /.idea
9
+ /builds
10
+ arcanist/.phutil_module_cache
11
+ # VIM Swap Files #
12
+ *.swp
13
+ *.swo
14
+
vendor/facebook/php-business-sdk/.travis.yml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ language: php
2
+
3
+ dist: trusty
4
+
5
+ php:
6
+ - 7.2
7
+ - 7.3
8
+ - 7.4
9
+ - hhvm
10
+
11
+ sudo: false
12
+
13
+ install:
14
+ - composer self-update && composer --version
15
+ - composer install --dev --prefer-source
16
+
17
+ script:
18
+ - vendor/bin/phpunit -v -c $PWD/test/phpunit-travis.xml --coverage-clover=coverage.clover
19
+
20
+ after_script:
21
+ - wget https://scrutinizer-ci.com/ocular.phar
22
+ - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
23
+
24
+ notifications:
25
+ email: false
26
+
27
+ matrix:
28
+ fast_finish: true
29
+ allow_failures:
30
+ - php: hhvm
vendor/facebook/php-business-sdk/CHANGELOG.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+
6
+ ## Unreleased
7
+ ## v6.0.2
8
+ ### Added
9
+ - Add support for custom properties in the Server-Side API
10
+
11
+ ## v6.0.0
12
+ ### Changed
13
+ - Graph API call upgrade to [v6.0](https://developers.facebook.com/docs/graph-api/changelog/version6.0)
14
+
15
+ ## v5.0.5
16
+ ### Added
17
+ - Server-side API added search_string to CustomData and fixed setLastName in UserData object.
18
+
19
+ ## v5.0.3
20
+ ### Added
21
+ - Added function `getHeaders` in RequestException class which provides header information
22
+ ### Fixed
23
+ - Server Side API CustomData model normalization fix
24
+
25
+ ## v5.0.2
26
+
27
+ ### Added
28
+ - Added `CrashRepoter`, more context available [here](https://developers.facebook.com/docs/business-sdk/guides/crash-reports)
29
+
30
+ ## v5.0.1
31
+ ### Added
32
+ - Added strongly typed Server-Side API for Web (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/using-the-api)
33
+
34
+ ## v5.0.0
35
+ ### Changed
36
+ - Graph API call upgrade to [v5.0](https://developers.facebook.com/docs/graph-api/changelog/version5.0)
37
+
38
+ ## v4.0.6
39
+
40
+ ### Fixed
41
+ - Add back `source` param in `Adaccount->createAdVideo`.
42
+
43
+ ## v4.0.5
44
+
45
+ ### Fixed
46
+ - Introduce `addUsersMultiKey` and `removeUsersMultiKey` in `CustomAudience` to still allow add users to `CustomAudience` with multiple keys after `CustomAudienceMultiKey` been deprecated.
47
+
48
+ ## v4.0.0
49
+ ### Changed
50
+ - Graph API call upgrade to [v4.0](https://developers.facebook.com/docs/graph-api/changelog/version4.0)
51
+
52
+ ## v3.3.1
53
+ ### Changed
54
+ - Remove list of API call from Business SDK, any [these APIs](https://developers.facebook.com/docs/graph-api/changelog/4-30-2019-endpoint-deprecations) included in Business SDK will be deprecated.
55
+
56
+ ## v3.3.0
57
+ ### Changed
58
+ - Graph API call upgrade to [v3.3](https://developers.facebook.com/docs/graph-api/changelog/version3.3)
59
+ ### Deprecated
60
+ - Deprecated `parentID` in `AbstractCrudObject`.
61
+ - Deprecated `CustomAudienceMultiKey`, use class `CustomAudience` instead.
62
+ - Deprecated functions `create`, `read`, `update` in `AbstractCrudObject`. Check out our [recommended way](https://github.com/facebook/facebook-php-business-sdk#object-classes) to make API call.
63
+ ***`read` will reset the object fields, while `getSelf` will get a new object.*** For example :
64
+ ```
65
+ $async_job = $adaccount->getInsightsAsync($fields, $params);
66
+
67
+ $async_job = $async_job->getSelf();
68
+
69
+ while (!$async_job->isComplete()) {
70
+ sleep(1);
71
+ $async_job = $async_job->getSelf();
72
+ }
73
+ ```
74
+
vendor/facebook/php-business-sdk/CODE_OF_CONDUCT.md ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ # Code of Conduct
2
+
3
+ Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.facebook.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
vendor/facebook/php-business-sdk/CONTRIBUTING.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributing to Facebook Ads API SDK for PHP
2
+ We want to make contributing to this project as easy and transparent as
3
+ possible.
4
+
5
+ ## Code of Conduct
6
+ The code of conduct is described in [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md)
7
+
8
+ ## Our Development Process
9
+ The Facebook Ads API SDK for PHP is currently developed in Facebook's internal
10
+ repositories and then exported out to GitHub by a Facebook team member. We invite
11
+ you to submit pull requests directly to GitHub and, after review, these can be
12
+ merged into the project.
13
+
14
+ ## Pull Requests
15
+ We actively welcome your pull requests.
16
+
17
+ 1. Fork the repo and create your branch from `master`.
18
+ 2. If you've added code that should be tested, add tests.
19
+ 3. If you've changed APIs, update the documentation.
20
+ 4. Ensure the test suite passes.
21
+ 5. Make sure your code lints.
22
+ 6. If you haven't already, complete the Contributor License Agreement ("CLA").
23
+
24
+ ## Contributor License Agreement ("CLA")
25
+ In order to accept your pull request, we need you to submit a CLA. You only need
26
+ to do this once to work on any of Facebook's open source projects.
27
+
28
+ Complete your CLA [here](https://code.facebook.com/cla)
29
+
30
+ ## Issues
31
+ Since we want to handle bugs more efficiently, we encourage you report bug to
32
+ our dedicated bug reporting channel. If you encounter a bug with Business SDK
33
+ (PHP), please report the issue at
34
+ [our developer bug reporting channel](https://developers.facebook.com/support/bugs/).
35
+
36
+ Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
37
+ disclosure of security bugs. In those cases, please go through the process
38
+ outlined on that page
39
+
40
+ ## Coding Style
41
+ Please follow [PHP Coding Standards](https://secure.phabricator.com/book/phabcontrib/article/php_coding_standards/)
42
+
43
+ ## License
44
+ By contributing to Facebook Ads API SDK for PHP, you agree that your contributions
45
+ will be licensed under the LICENSE file in the root directory of this source tree.
vendor/facebook/php-business-sdk/DEVELOPER_GUIDE.md ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Facebook Ads SDK - Developer Guide
2
+
3
+ ## Introduction
4
+
5
+ This guide assumes you have an app that has been whitelisted for the Facebook Ads API, that you have a fully working development environment with all required dependencies and that are ready to start coding. If you haven't done this, please see the [README](./README.md) file.
6
+
7
+ We also assume you are somewhat familiar with namespaces in PHP. If not, we recommend you take some time to read the [namespace basics](http://www.php.net/manual/en/language.namespaces.basics.php) in the PHP Manual.
8
+
9
+ You should also have the documentation for the [Facebook Marketing APIs](https://developers.facebook.com/docs/ads-api) available as you will need to refer to this to understand which combination of parameters are required for the different object types.
10
+
11
+ ## Bootstrapping <a name="bootstrapping"></a>
12
+ The classes within the Facebook Ads SDK are designed to be included using an autoloader compliant with the [PSR-4](http://www.php-fig.org/psr/psr-4/). If you are using [Composer](https://getcomposer.org/) to include dependencies, you will find an implementation available within the vendor folder. This guide assumes you are using this autoloader.
13
+
14
+ ```php
15
+ <?php
16
+ define('VENDOR_DIR', '/path/to/sdk/'); // Path to the Vendor directory
17
+ $loader = include VENDOR_DIR.'/vendor/autoload.php';
18
+ ```
19
+
20
+ ### Authentication <a name="authentication"></a>
21
+ To make any request to the Ads API, you will need to have a valid access token and the user has accepted the `ads_management` permission.
22
+
23
+ ## The Api Object
24
+
25
+ The `FacebookAds\Api` object is the basis of the Ads SDK which encapsulates a `FacebookAds\Session` and is used to execute requests against the Graph API.
26
+
27
+ An easy to use init method is provided:
28
+
29
+ ```php
30
+ use FacebookAds\Api;
31
+
32
+ // Set the default application to be used with this session and register an instance of the Api object
33
+ Api::init('<APP_ID>', '<APP_SECRET>', '<ACCESS_TOKEN>');
34
+
35
+ // The instace is now retrivable
36
+ $api = Api::instance();
37
+ ```
38
+
39
+ ### Making requests to the Graph <a name="making_requests"></a>
40
+
41
+ Generally you should not need to make requests to the Graph API directly as these calls are handled by the implementation of objects within the SDK. However, there may be some case where you do want to query the Graph directly. In this case, you can use the `call` method of the `Api` class which returns a `FacebookAds\Http\RequestInterface`, by default the registered class is `FacebookAds\Http\Request`:
42
+
43
+ ```php
44
+ $response = $api->call(
45
+ '/61405622',
46
+ Api::HTTP_METHOD_GET,
47
+ array('fields'=>'name')
48
+ );
49
+ var_dump($response->getContent());
50
+ ```
51
+
52
+ ### Handling Multiple Access Tokens <a name="multiple_tokens"></a>
53
+ The first time an `Api` object is instantiated, we store a static reference to that object within the `Api` class and this is used as the default instance within the SDK. This saves you from having to pass around a reference to an `Api` instance within your application.
54
+
55
+ A common requirement amongst Facebook Ads API developers however is to be able to handle multiple sessions within a single script execution. For example, you may have a process which syncs updated objects for multiple app users into some local datastore.
56
+
57
+ To enable this, we provide two ways to manage sessions.
58
+
59
+ The first is by mutating the default instance used by the application. The default instance can be accessed using the method `Api::instance()`. You can also change the default instance using the static method `Api::setInstance($api)`.
60
+
61
+ The second is to explicitly define the `Api` instance you want to use when querying the Graph. This is achieved by passing an instance to the constructor of any class that extends from `Object\AbstractCrudObject`.
62
+
63
+ ```php
64
+ use FacebookAds\Object\Ad;
65
+ $my_ad = new Ad($id, $parent_id=null, $api);
66
+ ```
67
+
68
+ ## Objects Types
69
+
70
+
71
+ ### CRUD Objects
72
+ For any entity that can be directly queried from the Graph API we have provided classes which extend `Object\AbstractCrudObject`. This provides `create`, `read`, `update` and `delete` methods for the majority of these entities. However, in some cases the Graph API does not support all of these operations and you will receive an `\Exception` if you attempt to call an unsupported method.
73
+
74
+ When setting class variables on an object of this type we perform some basic validation to ensure the field is a valid field and an `\Exception` will be thrown if a field name is not found within the [field definition](#field_definition) for that class.
75
+
76
+ ### Simple Objects
77
+ There is another set of entities which cannot be directly queried from the Graph such as an `AdPreview`. This type of object extends `Object\AbstractObject` which provides methods to access the response data.
78
+
79
+ ### Field definitions <a name="field_definition"></a>
80
+
81
+ For each object type, we provide a class enumerating the available fields of that object. These can be found within the `FacebookAds\Object\Fields` namespace and provide a way to reference fields without using strings. You can alternatively use strings if you find this easier.
82
+
83
+ For example, you can set the data of an object using the field definitions in the following way:
84
+
85
+ ```php
86
+ $someObject->setData(array(
87
+ MyObjectFields::ID => 1234,
88
+ MyObjectFields::NAME => 'My Name',
89
+ ));
90
+ ```
91
+
92
+ Alternatively, you can use the string equivalent:
93
+
94
+ ```php
95
+ $someObject->setData(array(
96
+ 'id'=>1234,
97
+ 'name'=>'My Name',
98
+ ));
99
+ ```
100
+
101
+ Similarly the same applies for direct assignation:
102
+
103
+ ```php
104
+ //Using field definitions:
105
+ $someObject->{SomeObjectFields::ID} = 123;
106
+
107
+ //Equivalent to using the variable name directly:
108
+ $someObject->id = 123;
109
+ ```
110
+
111
+ ### The Cursor Class
112
+ When requesting multiple objects from the Graph, responses may be returned in pages of data which can be traversed using cursors. We encapsulate this information into a `Cursor` class which represents the set of objects in the current page along with information about how to access subsequent pages of objects. This class implements the `\Iterable` and `\Countable` interfaces.
113
+
114
+ ## Reading Objects
115
+
116
+ ### Reading a single object
117
+ To read an object from the Graph you will need its `id`. By default, only the `id` field of an object is queried and you should specify when reading an object the fields you need. It is not recommended that you request all fields unless you require them all.
118
+
119
+ ```php
120
+ use FacebookAds\Object\AdAccount;
121
+ use FacebookAds\Object\Fields\AdAccountFields;
122
+
123
+ $required_fields = array(
124
+ AdAccountFields::ID,
125
+ AdAccountFields::NAME,
126
+ AdAccountFields::DAILY_SPEND_LIMIT,
127
+ );
128
+
129
+ $adaccount = (new AdAccount($id))->read($required_fields);
130
+ ```
131
+ See [Defining Default Fields](#default_fields) within the section about Extending the SDK for an example of how to avoid defining the fields you require every request.
132
+
133
+
134
+ ### Reading multiple objects
135
+ We provide the static method `readIds($ids = array(...), $fields = array(...))` to enable you to request many objects of a single type and will return a `Cursor`:
136
+
137
+ ```php
138
+ use FacebookAds\Object\AdAccount;
139
+ use FacebookAds\Object\Fields\AdAccountFields;
140
+
141
+ $required_fields = array(
142
+ AdAccountFields::ID,
143
+ AdAccountFields::NAME,
144
+ AdAccountFields::DAILY_SPEND_LIMIT,
145
+ );
146
+ $account_ids = array('act_x', 'act_y'...)
147
+ $adaccounts = AdAccount::readIds($account_ids, $required_fields);
148
+ foreach($adaccounts as $account) {
149
+ echo $account->id."\n";
150
+ }
151
+ ```
152
+
153
+ ## Creating Objects
154
+
155
+ When creating objects on the Graph, they are generally created by making a POST request to an edge of a parent object. For example, ads are created using the endpoint `https://graph.facebook.com/act_123123/ads`. Therefore when creating an object, you must know the `id` of the parent object which is generally the id of an AdAccount. You should consult the [Facebook Developer Documentation](https://developers.facebook.com/docs/ads-api) to see which parent object to use.
156
+
157
+ ```php
158
+ use FacebookAds\Object\Ad;
159
+ use FacebookAds\Object\Fields\AdFields;
160
+
161
+ $account_id = 'act_123123';
162
+ $ad = new Ad($id=null, $account_id);
163
+
164
+ $ad->setData(array(
165
+ AdFields::NAME => 'My Test Ad',
166
+ AdFields::ADSET_ID => $adset_id,
167
+ ));
168
+
169
+ $ad->create(array(
170
+ Ad::STATUS_PARAM_NAME => Ad::STATUS_PAUSED,
171
+ ));
172
+ echo $ad->{AdFields::ID};
173
+ ```
174
+
175
+ ## Updating Objects
176
+
177
+ When you mutate an AdObject, we record which variables have changed and make it easy for you to write these change to the Graph API by calling the `update` method.
178
+
179
+ Please note that in some cases the variable name used to update an attribute of an entity differs from the one read from Graph API. Any variable you change will be included in the request to update an object an you will likely receive an `\Exception` if the field name is incorrect. Please consult the [Facebook Developer Documentation](https://developers.facebook.com/docs/ads-api) to see which fields are required.
180
+
181
+ ```php
182
+ use FacebookAds\Object\Ad;
183
+ use FacebookAds\Object\Fields\AdFields;
184
+
185
+ $ad = new Ad($id);
186
+ $ad->name = 'Updated Name';
187
+ $ad->update();
188
+ ```
189
+
190
+ ## Deleting Objects
191
+
192
+
193
+ ### Deleting a single object
194
+
195
+ To delete an object, you only need call the `delete` method on an instance of that object. Note, you do not have had to have read the object from the Graph API, all you need is the `id` of the object.
196
+
197
+ ```php
198
+ use FacebookAds\Object\Ad;
199
+ use FacebookAds\Object\Fields\AdFields;
200
+
201
+ $ad = new Ad($id);
202
+ $ad->delete();
203
+ ```
204
+
205
+ ### Deleting multiple objects
206
+
207
+ We provide the static method `deleteIds($ids = array(...))` to enable you to delete many objects at the same time. This method returns a boolean value and will only return `true` if all objects were successfully deleted. A return value of `false` means one or more failed to be deleted. Please also note that we do not verify the type of the `id` you have passed into this function.
208
+
209
+ ```php
210
+ use FacebookAds\Object\Ad;
211
+ $status = Ad::deleteIds($ids = array(...));
212
+ ```
213
+
214
+ ### Save Helper
215
+
216
+ On object that extends `AbstractCrudObject` you can call the `save` method which will call `create` if the object does not have a value for `id` set, or will call `update` a value is present.
217
+
218
+
219
+ ## Connections
220
+
221
+ Objects on the Graph API may also have connections. A connection provides a way to retrieve objects which relate to the current object, for example, you can retrieve all the ads relative to an ad account using the URL `https://graph.facebook.com/act_123123/ads`.
222
+
223
+ For each connection an object has, we provide a helper method to retrieve its related objects. In the case of `ObjectObject\AdAccount` we provide several of these methods including `getAds($required_fields)` which will return a `Cursor` containing a page of `Object\Ad` objects.
224
+
225
+ ```php
226
+ use FacebookAds\Object\AdAccount;
227
+ $account = new AdAccount($id);
228
+ $ads = $account->getAds($fields = array('name')));
229
+ foreach($ads as $ad) {
230
+ echo $ad->name."\n";
231
+ }
232
+ ```
233
+
234
+ You only need the `id` of the object on which you want to call a connection method, therefore you do not need to have read the object from the Graph API first.
235
+
236
+ For cases where these helper methods are not available, see [Requesting Connections Without Helper Methods](#generic_connections).
237
+
238
+ ## Targeting <a name="targeting"></a>
239
+
240
+ Facebook's targeting can generally be broken down into [interests](https://developers.facebook.com/docs/reference/ads-api/interest-targeting), [demographics](https://developers.facebook.com/docs/reference/ads-api/demographic-targeting), [behaviors](https://developers.facebook.com/docs/reference/ads-api/behavior-targeting) and [geo targeting](https://developers.facebook.com/docs/reference/ads-api/targeting-specs/#location). Many of these need to be queried from the Graph API search endpoint.
241
+
242
+ To query targeting using the Ads SDK, you can use the `Object\TargetingSearch` class.
243
+
244
+ ## Examples
245
+
246
+ This set of examples will walk you through:
247
+
248
+ 1. Reading AdAccounts for a user
249
+ * Creating a Campaign
250
+ * Searching targeting criteria
251
+ * Creating an AdSet
252
+ * Creating an AdImage
253
+ * Creating an AdCreative
254
+ * Creating an Ad
255
+
256
+ Examples can be found within the `examples/` folder of the SDK. This assumes you have bootstrap code with an access token:
257
+
258
+ ```php
259
+ <?php
260
+ define('SDK_DIR', '/path/to/sdk/'); // Path to the SDK directory
261
+
262
+ $loader = include SDK_DIR.'/vendor/autoload.php';
263
+
264
+ use FacebookAds\Api;
265
+
266
+ Api::init($app_id, $app_secret, $access_token);
267
+
268
+ ```
269
+
270
+ ### 1. Reading AdAccounts
271
+
272
+ The `FacebookSession` contains the `id` of the user who has the active session and this can be used to read their `AdAccount` connections.
273
+
274
+ ```php
275
+ use FacebookAds\Object\AdUser;
276
+ use FacebookAds\Object\Fields\AdUserFields;
277
+ use FacebookAds\Object\AdAccount;
278
+ use FacebookAds\Object\Fields\AdAccountFields;
279
+
280
+ $user = new AdUser('me');
281
+ $user->read(array(AdUserFields::ID));
282
+
283
+ $accounts = $user->getAdAccounts(array(
284
+ AdAccountFields::ID,
285
+ AdAccountFields::NAME,
286
+ ));
287
+
288
+ // Print out the accounts
289
+ echo "Accounts:\n";
290
+ foreach($accounts as $account) {
291
+ echo $account->id . ' - ' .$account->name."\n";
292
+ }
293
+
294
+ // Grab the first account for next steps (you should probably choose one)
295
+ $account = (count($accounts)) ? $accounts->getObjects()[0] : null;
296
+ echo "\nUsing this account: ";
297
+ echo $account->id."\n";
298
+ ```
299
+
300
+ ### 2. Creating a Campaign
301
+
302
+ Now we have an `AdAccount` for the current user we can go ahead an create our [Campaign](https://developers.facebook.com/docs/reference/ads-api/adcampaign). All `ads` within your `campaign` should have the same objective. You can find the available objectives within the [`AdObjectives`](src/FacebookAds/Object/Values/AdObjectives.php) class.
303
+
304
+ In the following example we create a paused campaign so your ads do not go live, however you can omit the status field if you want your ad to run.
305
+
306
+ ```php
307
+ use FacebookAds\Object\Campaign;
308
+ use FacebookAds\Object\Fields\CampaignFields;
309
+ use FacebookAds\Object\Values\AdObjectives;
310
+ use FacebookAds\Object\Values\AdBuyingTypes;
311
+
312
+ $campaign = new Campaign(null, $account->id);
313
+ $campaign->setData(array(
314
+ CampaignFields::NAME => 'My First Campaign',
315
+ CampaignFields::OBJECTIVE => AdObjectives::LINK_CLICKS,
316
+ ));
317
+
318
+ $campaign->create(array(
319
+ Campaign::STATUS_PARAM_NAME => Campaign::STATUS_PAUSED,
320
+ ));
321
+ echo "Campaign ID:".$campaign->id."\n";
322
+ ```
323
+
324
+
325
+ ### 3. Searching Targeting
326
+
327
+ The final thing we need before creating an `Ad` is some targeting. Many attributes of targeting can be found defined in the developer documentation, however some categories need you to search, such as interests. For this, we provide the `TargetingSearch` class.
328
+
329
+ ```php
330
+ use FacebookAds\Object\TargetingSearch;
331
+ use FacebookAds\Object\Search\TargetingSearchTypes;
332
+
333
+ $results = TargetingSearch::search(
334
+ $type = TargetingSearchTypes::INTEREST,
335
+ $class = null,
336
+ $query = 'facebook london',
337
+ );
338
+
339
+ // we'll take the top result for now
340
+ $target = (count($results)) ? $results->getObjects()[0] : null;
341
+ echo "Using target: ".$target->name."\n";
342
+ ```
343
+
344
+ Targeting for the moment is expressed in the form of a multidimensional array:
345
+
346
+ ```php
347
+ $targeting = array(
348
+ 'geo_locations' => array(
349
+ 'countries' => array('GB'),
350
+ ),
351
+ 'interests' => array(
352
+ array(
353
+ 'id' => $target->id,
354
+ 'name'=>$target->name,
355
+ ),
356
+ ),
357
+ );
358
+ ```
359
+
360
+
361
+ ### 4. Creating an AdSet
362
+
363
+ An [`AdSet`](https://developers.facebook.com/docs/reference/ads-api/adset) is a set of [`Ad`](https://developers.facebook.com/docs/reference/ads-api/adgroup) objects and it is best practice to ensure all `Ad` objects within an `AdSet` have the same targeting.
364
+
365
+ The `AdSet` holds the attributes about the duration of a campaign and the budget. When deciding a budget, you should also choose between `lifetime_budget` and `daily_budget`.
366
+
367
+ ```php
368
+ use FacebookAds\Object\AdSet;
369
+ use FacebookAds\Object\Fields\AdSetFields;
370
+ use FacebookAds\Object\Values\BillingEvents;
371
+ use FacebookAds\Object\Values\OptimizationGoals;
372
+
373
+ $adset = new AdSet(null, $account->id);
374
+ $adset->setData(array(
375
+ AdSetFields::NAME => 'My First AdSet',
376
+ AdSetFields::CAMPAIGN_ID => $campaign->id,
377
+ AdSetFields::DAILY_BUDGET => '150',
378
+ AdSetFields::OPTIMIZATION_GOAL => OptimizationGoals::REACH,
379
+ AdSetFields::BILLING_EVENT => BillingEvents::IMPRESSIONS,
380
+ AdSetFields::BID_AMOUNT => 2,
381
+ AdSetFields::TARGETING => $targeting,
382
+ AdSetFields::START_TIME =>
383
+ (new \DateTime("+1 week"))->format(\DateTime::ISO8601),
384
+ AdSetFields::END_TIME =>
385
+ (new \DateTime("+2 week"))->format(\DateTime::ISO8601),
386
+ ));
387
+
388
+ $adset->create();
389
+ echo 'AdSet ID: '.$adset->id."\n";
390
+ ```
391
+ ### 5. Create an AdImage
392
+
393
+ Now you have a `AdSet`, you will be able to create an `Ad`, however, first you will need to upload the image you want to use as part of the `AdCreative`.
394
+
395
+ ```php
396
+ use FacebookAds\Object\AdImage;
397
+ use FacebookAds\Object\Fields\AdImageFields;
398
+
399
+ $image = new AdImage(null, $account->id);
400
+ $image->filename = SDK_DIR.'/test/misc/FB-f-Logo__blue_512.png';
401
+
402
+ $image->create();
403
+ echo 'Image Hash: '.$image->hash."\n";
404
+ ```
405
+
406
+ ### 6. Creating an AdCreative
407
+
408
+ You can create an `AdCreative` in two ways. The first is by including a JSON object when creating an `Ad` and the second, which we will demonstrate here, is by explicitly creation an `AdCreative` and using its `id` when creating an `Ad`.
409
+
410
+ ```php
411
+ use FacebookAds\Object\AdCreative;
412
+ use FacebookAds\Object\Fields\AdCreativeFields;
413
+
414
+ $creative = new AdCreative(null, $account->id);
415
+ $creative->setData(array(
416
+ AdCreativeFields::NAME => 'Sample Creative',
417
+ AdCreativeFields::TITLE => 'Welcome to the Jungle',
418
+ AdCreativeFields::BODY => 'We\'ve got fun \'n\' games',
419
+ AdCreativeFields::IMAGE_HASH => $image->hash,
420
+ AdCreativeFields::OBJECT_URL => 'http://www.example.com/',
421
+ ));
422
+
423
+ $creative->create();
424
+ echo 'Creative ID: '.$creative->id . "\n";
425
+ ```
426
+
427
+ ### 7. Creating an Ad
428
+
429
+ The final step is to create the [`Ad`](https://developers.facebook.com/docs/reference/ads-api/adgroup/). The `Ad` contains all of the information about bid, creative and targeting. It should also have the asme objective as the `Campaign` we created.
430
+
431
+ ```php
432
+ use FacebookAds\Object\Ad;
433
+ use FacebookAds\Object\Fields\AdFields;
434
+
435
+ $ad = new Ad(null, $account->id);
436
+ $ad->setData(array(
437
+ AdFields::CREATIVE => array('creative_id' => $creative->id),
438
+ AdFields::NAME => 'My First Ad',
439
+ AdFields::ADSET_ID => $adset->id,
440
+ ));
441
+
442
+ $ad->create();
443
+ echo 'Ad ID:'.$ad->id."\n";
444
+ ```
445
+ ## Extending the SDK
446
+
447
+ There are many scenarios in which you may want to extend the SDK, and when developing this SDK we attempted to balance extensibility with ease of use for new developers.
448
+
449
+ ### Defining Default Fields to Read <a name="default_fields"></a>
450
+ We noted earlier that by default no fields are requested when calling the `read` method of a class implementing `AbstractCrudObject`, however if you always require the same set of fields throughout your application we have provided a simple way to do this.
451
+
452
+ Within your own namespace, you can extend the any class implementing `AbstractCrudObject` and override the static variable `$defaultReadFields` to be an array of fields you want to be read by default. You should try to not change the classes in the SDK directly as this may break forward compatibly.
453
+
454
+ ```php
455
+ namespace MyNamespace\Object;
456
+
457
+ use FacebookAds\Object\Fields\AdAccountFields;
458
+
459
+ class AdAccount extends FacebookAds\Object\AdAccount {
460
+
461
+ protected static $defaultReadFields = array(
462
+ AdAccountFields::ID,
463
+ AdAccountFields::NAME,
464
+ AdAccountFields::DAILY_SPEND_LIMIT,
465
+ AdAccountFields::CURRENCY,
466
+ );
467
+ }
468
+ ```
469
+
470
+ Within your application, whenever you use an `AdAccount`, you should use the one within your namespace instead of the `FacebookAds` one.
471
+
472
+ ```php
473
+ use MyNamespace\Object\AdAccount;
474
+ $adaccount = (new AdAccount($id))->read();
475
+ echo $adaccount->name;
476
+ ```
477
+
478
+ ### Requesting Connections Without Helper Methods<a name="generic_connections"></a>
479
+
480
+ As detailed in the [Connections](#connections) section, we provide helper methods to request objects relative to an object. However, in some cases these methods may not have been implemented, or if you have extended our based objects as in the example of [defining default fields to read](#default_fields), calling a connection helper method on a base object will return objects of the \FacebookAds namespace type.
481
+
482
+ In this case, you can use our generic connection methods to retrieve the correct type of object for any class extending `AbstractCrudObject`. To enable this, we provide two methods, `getOneByConnection` and `getManyByConnection` or which the latter is the most commonly used.
483
+
484
+ ```php
485
+ use FacebookAds\Object\AdAccount;
486
+
487
+ // Ad in your namespace which you have used to extend the
488
+ // FacebookAds\Object\Ad class
489
+ use MyNamespace\Object\Ad;
490
+
491
+ $account = new AdAccount($id);
492
+ $my_adaccount_objects = $account->getManyByConnection(
493
+ Ad::className(), $fields = array(...), $params = array(...));
494
+
495
+ ```
vendor/facebook/php-business-sdk/LICENSE ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
2
+
3
+ You are hereby granted a non-exclusive, worldwide, royalty-free license to
4
+ use, copy, modify, and distribute this software in source code or binary
5
+ form for use in connection with the web services and APIs provided by
6
+ Facebook.
7
+
8
+ As with any software that integrates with the Facebook platform, your use
9
+ of this software is subject to the Facebook Developer Principles and
10
+ Policies [http://developers.facebook.com/policy/]. This copyright notice
11
+ shall be included in all copies or substantial portions of the software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19
+ DEALINGS IN THE SOFTWARE.
vendor/facebook/php-business-sdk/README.md ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Facebook Business SDK for PHP
2
+
3
+ [![Packagist](https://img.shields.io/packagist/v/facebook/php-business-sdk.svg?style=flat-square)](https://packagist.org/packages/facebook/php-business-sdk)
4
+ [![License](https://img.shields.io/badge/license-Facebook%20Platform-blue.svg?style=flat-square)](https://github.com/facebook/facebook-php-business-sdk/blob/master/LICENSE)
5
+ [![Travis](https://img.shields.io/travis/facebook/facebook-php-business-sdk.svg?style=flat-square)](https://travis-ci.org/facebook/facebook-php-business-sdk)
6
+ [![Scrutinizer](https://img.shields.io/scrutinizer/g/facebook/facebook-php-business-sdk.svg?style=flat-square)](https://scrutinizer-ci.com/g/facebook/facebook-php-business-sdk)
7
+ [![Scrutinizer Coverage](https://img.shields.io/scrutinizer/coverage/g/facebook/facebook-php-business-sdk.svg?style=flat-square)](https://scrutinizer-ci.com/g/facebook/facebook-php-business-sdk)
8
+
9
+ ## Introduction
10
+
11
+ The Facebook <a href="https://developers.facebook.com/docs/business-sdk" target="_blank">Business SDK</a> is a one-stop shop to help our partners better serve their businesses. Partners are using multiple Facebook API's to server the needs of their clients. Adopting all these API's and keeping them up to date across the various platforms can be time consuming and ultimately prohibitive. For this reason Facebook has developed the Business SDK bundling many of its APIs into one SDK to ease implementation and upkeep. The Business SDK is an upgraded version of the Marketing API SDK that includes the Marketing API as well as many Facebook APIs from different platforms such as Pages, Business Manager, Instagram, etc.
12
+
13
+ ## Quick Start
14
+
15
+ Business SDK <a href="https://developers.facebook.com/docs/business-sdk/getting-started" target="_blank">Getting Started Guide</a>
16
+
17
+ ## Pre-requisites
18
+
19
+ ### Register An App
20
+
21
+ To get started with the SDK, you must have an app
22
+ registered on <a href="https://developers.facebook.com/" target="_blank">developers.facebook.com</a>.
23
+
24
+ To manage the Marketing API, please visit your
25
+ <a href="https://developers.facebook.com/apps/<YOUR APP ID>/dashboard"> App Dashboard </a>
26
+ and add the <b>Marketing API</b> product to your app.
27
+
28
+ **IMPORTANT**: For security, it is recommended that you turn on 'App Secret
29
+ Proof for Server API calls' in your app's Settings->Advanced page.
30
+
31
+ ### Obtain An Access Token
32
+
33
+ When someone connects with an app using Facebook Login and approves the request
34
+ for permissions, the app obtains an access token that provides temporary, secure
35
+ access to Facebook APIs.
36
+
37
+ An access token is an opaque string that identifies a User, app, or Page.
38
+
39
+ For example, to access the Marketing API, you need to generate a User access token
40
+ for your app and ask for the ``ads_management`` permission; to access Pages API,
41
+ you need to generate a Page access token for your app and ask for the ``manage_page`` permission.
42
+
43
+ Refer to our
44
+ <a href="https://developers.facebook.com/docs/facebook-login/access-tokens" target="_blank">
45
+ Access Token Guide</a> to learn more.
46
+
47
+ For now, we can use the
48
+ <a href="https://developers.facebook.com/tools/explorer" target="_blank">Graph Explorer</a>
49
+ to get an access token.
50
+
51
+ ## Installation
52
+
53
+ The Facebook Business SDK requires PHP 5.6 or greater.
54
+
55
+ ### Composer
56
+
57
+ The Facebook Business SDK uses composer to manage dependencies. Visit the <a href="https://getcomposer.org/download/" target="_blank">composer documentation</a> to learn how to install composer.
58
+
59
+ Add the following to your `composer.json` file:
60
+
61
+ ```json
62
+ {
63
+ "require": {
64
+ "facebook/php-business-sdk": "5.0.5"
65
+ }
66
+ }
67
+ ```
68
+ then install it through composer:
69
+
70
+ ```shell
71
+ php composer.phar install --no-dev
72
+ ```
73
+
74
+ This SDK and its dependencies will be installed under `./vendor`.
75
+
76
+ ### Alternatives
77
+
78
+ This repository is written following the [psr-4 autoloading standard](http://www.php-fig.org/psr/psr-4/). Any psr-4 compatible autoloader can be used.
79
+
80
+ ## Usage
81
+
82
+ ### Api main class
83
+
84
+ The `FacebookAds\Api` object is the foundation of the Business SDK which encapsulates a `FacebookAds\Session` and is used to execute requests against the Graph API.
85
+
86
+ To instantiate an Api object you will need a valid access token:
87
+ ```php
88
+ use FacebookAds\Api;
89
+
90
+ // Initialize a new Session and instantiate an Api object
91
+ Api::init($app_id, $app_secret, $access_token);
92
+
93
+ // The Api object is now available through singleton
94
+ $api = Api::instance();
95
+
96
+ ```
97
+
98
+ Once instantiated, the Api object will allow you to start making requests to the Graph API.
99
+
100
+ ### Fields names
101
+
102
+ Due to the high number of field names in the Graph API existing objects, in order to facilitate your code maintainability, enum-like classes are provided.
103
+ These files are stored under the `FacebookAds/Object/Fields` directory.
104
+ You can access object properties in the same manner you would usually do in php:
105
+
106
+ ```php
107
+ use FacebookAds\Object\AdAccount;
108
+
109
+ $account = new AdAccount();
110
+ $account->name = 'My account name';
111
+ echo $account->name;
112
+ ```
113
+
114
+ or using the enums:
115
+
116
+ ```php
117
+ use FacebookAds\Object\AdAccount;
118
+ use FacebookAds\Object\Fields\AdAccountFields;
119
+
120
+ $account = new AdAccount();
121
+ $account->{AdAccountFields::NAME} = 'My account name';
122
+ echo $account->{AdAccountFields::NAME};
123
+ ```
124
+
125
+ ### Object classes
126
+
127
+ Facebook Ads entities are defined as classes under the `FacebookAds/Object` directory.
128
+
129
+ #### Read Objects
130
+
131
+ ```php
132
+ use FacebookAds\Object\AdAccount;
133
+
134
+ $account = (new AdAccount($account_id))->getSelf();
135
+ ```
136
+
137
+ For some objects, the Ads API doesn't return all available fields by default. The first argument of the object's read method is an array of field names to be requested.
138
+
139
+ ```php
140
+ use FacebookAds\Object\AdAccount;
141
+ use FacebookAds\Object\Fields\AdAccountFields;
142
+
143
+ $fields = array(
144
+ AdAccountFields::ID,
145
+ AdAccountFields::NAME,
146
+ );
147
+
148
+ $account = (new AdAccount($account_id))->getSelf($fields);
149
+ ```
150
+ Requesting an high number of fields may cause the response time to visibly increase, you should always request only the fields you really need.
151
+
152
+ #### Create Objects
153
+
154
+ ```php
155
+ use FacebookAds\Object\AdSet;
156
+ use FacebookAds\Object\AdAccount;
157
+ use FacebookAds\Object\Fields\AdSetFields;
158
+
159
+ $account_id = 'act_123123';
160
+ $campaign_id = '123456';
161
+
162
+ $account = new AdAccount($account_id);
163
+ $adset = $account->createAdSet(
164
+ array(),
165
+ array(
166
+ AdSetFields::NAME => 'My Test AdSet',
167
+ AdSetFields::CAMPAIGN_ID => campaign_id,
168
+ AdSetFields::DAILY_BUDGET => 150,
169
+ AdSetFields::START_TIME => (new \DateTime("+1 week"))->format(\DateTime::ISO8601),
170
+ AdSetFields::END_TIME => (new \DateTime("+2 week"))->format(\DateTime::ISO8601),
171
+ AdSetFields::BILLING_EVENT => 'IMPRESSIONS',
172
+ AdSetFields::TARGETING => array('geo_locations' => array('countries' => array('US'))),
173
+ AdSetFields::BID_AMOUNT => '1000',
174
+ )
175
+ );
176
+
177
+ echo $adset->id;
178
+ ```
179
+
180
+ #### Update Objects
181
+
182
+ ```php
183
+ use FacebookAds\Object\AdSet;
184
+ use FacebookAds\Object\Fields\AdSetFields;
185
+
186
+ $ad_set_id = '123456';
187
+
188
+ $set = new AdSet($ad_set_id);
189
+ $fields = array(
190
+ );
191
+ $params = array(
192
+ AdSetFields::NAME => 'My new AdSet name',
193
+ );
194
+ $set->updateSelf($fields, $params);
195
+ ```
196
+
197
+ #### Delete Objects
198
+
199
+ ```php
200
+ use FacebookAds\Object\AdSet;
201
+
202
+ $ad_set_id = '123456';
203
+
204
+ $set = new AdSet($ad_set_id);
205
+ $set->deleteSelf();
206
+ ```
207
+
208
+ ### Cursors
209
+
210
+ Since the release of the Facebook Graph API 2.0, pagination is handled through [cursors](https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#paging).
211
+ Here cursors are defined as in `\FacebookAds\Cursor`. Cursors are generally returned from connection methods:
212
+
213
+ ```php
214
+ use FacebookAds\Object\AdAccount;
215
+ use FacebookAds\Object\Fields\CampaignFields;
216
+
217
+ $account = new AdAccount('<ACT_ID>');
218
+ $cursor = $account->getCampaigns(['id','name']);
219
+
220
+ // Loop over objects
221
+ foreach ($cursor as $campaign) {
222
+ echo $campaign->{CampaignFields::NAME}.PHP_EOL;
223
+ }
224
+
225
+ // Access objects by index
226
+ if ($cursor->count() > 0) {
227
+ echo "The first campaign in the cursor is: ".$cursor[0]->{CampaignFields::NAME}.PHP_EOL;
228
+ }
229
+
230
+ // Fetch the next page
231
+ $cursor->fetchAfter();
232
+ // New Objects will be appended to the cursor
233
+ ```
234
+
235
+ #### Implicit Fetching
236
+
237
+ Whenever all object connected to a parent are required (carelessly from the number of HTTP requests) implicit fetching can help reducing the amount of code required.
238
+ If cursor has Implicit Fetching enabled, while iterating (foreach, Cursor::next(), Cursor::prev()) the page end is reached, the SDK will automatically fetch and append a new page, until cursor end.
239
+ Implicit Fetching will make you lose control of the number of HTTP request that will be sent and, for this reason, is disabled by default.
240
+ Implicit Fetching can be enabled for a specific cursor:
241
+
242
+ ```php
243
+ $cursor->setUseImplicitFetch(true);
244
+ ```
245
+
246
+ Or globally:
247
+
248
+ ```php
249
+ use FacebookAds\Cursor;
250
+
251
+ Cursor::setDefaultUseImplicitFetch(true);
252
+ ```
253
+
254
+ #### Reverse Iterations
255
+
256
+ Cursors are bi-directional, and can be iterated in reverse order:
257
+
258
+ ```php
259
+ use FacebookAds\Object\AbstractCrudObject;
260
+
261
+ /** @var \FacebookAds\Cursor $cursor */
262
+ $cursor->setUseImplicitFetch(true);
263
+
264
+ $cursor->end();
265
+ while ($cursor->valid()) {
266
+ echo $cursor->current()->{AbstractCrudObject::FIELD_ID}.PHP_EOL;
267
+ $cursor->prev();
268
+ }
269
+
270
+ ```
271
+
272
+ ## Tests
273
+
274
+ The 'test' folder contains the test cases. These are logically divided in unit and integration tests.
275
+ Integration tests require an active Facebook Ad Account, a Facebook Application and a valid Access Token.
276
+
277
+ Note: we are currently unable to securely and reliably run integration tests on a public CI system. Our integrations with Travis and Scrutinizer (including badges at the top of this file) include only unit tests.
278
+
279
+
280
+ ### Install dependencies
281
+
282
+ From the root folder run:
283
+
284
+ ```shell
285
+ php composer.phar install --dev
286
+ ```
287
+
288
+ ### Execute unit tests only
289
+
290
+ ```shell
291
+ ./vendor/bin/phpunit -c test/phpunit-travis.xml
292
+ ```
293
+
294
+ To run tests individually (be sure not to be pointing to an integration test file):
295
+
296
+ ```shell
297
+ ./vendor/bin/phpunit -c test/phpunit-travis.xml path/to/class/file
298
+ ```
299
+
300
+
301
+ ### Execute all tests (unit + integration)
302
+
303
+ Setup your integration config:
304
+
305
+ 1 - Copy the config file template.
306
+
307
+ ```shell
308
+ cp test/config.php.dist test/config.php
309
+ ```
310
+
311
+ 2 - Edit `test/config.php` with your informations.
312
+
313
+ Execute:
314
+
315
+ ```shell
316
+ ./vendor/bin/phpunit -c test/
317
+ ```
318
+
319
+ To run tests individually:
320
+
321
+ ```shell
322
+ ./vendor/bin/phpunit -c test/ path/to/class/file
323
+ ```
324
+
325
+ ## Debug
326
+
327
+ If this SDK is not working as expected, it may be either a SDK issue or API issue.
328
+
329
+ This can be identified by constructing a raw cURL request and seeing if the response is as expected
330
+
331
+ for example:
332
+
333
+ ```php
334
+ require __DIR__ . '/vendor/autoload.php';
335
+ use FacebookAds\Api;
336
+ use FacebookAds\Object\AdAccount;
337
+
338
+ Api::init($app_id, $app_secret, $access_token);
339
+ $api = Api::instance();
340
+
341
+ use FacebookAds\Logger\CurlLogger;
342
+ $api->setLogger(new CurlLogger());
343
+ $account = new AdAccount($account_id);
344
+ $account->read(array('id'));
345
+ ```
346
+
347
+ When running this code, this cURL request will be printed to the console as:
348
+ ```
349
+ curl -G \
350
+ -d 'fields=id' \
351
+ -d 'access_token=<access_token>' \
352
+ https://graph.facebook.com/v3.1/<act_accountid>
353
+ ```
354
+
355
+ ## SDK Codegen
356
+ Our SDK is autogenerated from [SDK Codegen](https://github.com/facebook/facebook-business-sdk-codegen). If you want to learn more about how our SDK code is generated, please check this repository.
357
+
358
+ ## Issue
359
+ Since we want to handle bugs more efficiently, we've decided to close issue reporting in Github and move to our dedicated bug reporting channel.
360
+ If you encounter a bug with Business SDK (PHP), please report the issue at [our developer bug reporting channel](https://developers.facebook.com/support/bugs/).
vendor/facebook/php-business-sdk/composer.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "facebook/php-business-sdk",
3
+ "description": "PHP SDK for Facebook Business",
4
+ "type": "library",
5
+ "keywords": [
6
+ "facebook",
7
+ "ads",
8
+ "business",
9
+ "sdk",
10
+ "instagram",
11
+ "page"
12
+ ],
13
+ "homepage": "https://developers.facebook.com/",
14
+ "require-dev": {
15
+ "phpunit/phpunit": "~8",
16
+ "symfony/finder": "~2.6"
17
+ },
18
+ "autoload": {
19
+ "psr-4": {
20
+ "FacebookAds\\": "src/FacebookAds/"
21
+ }
22
+ }
23
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/ApiConfig.php CHANGED
@@ -23,7 +23,7 @@
23
  */
24
  namespace FacebookAds;
25
  class ApiConfig {
26
- const APIVersion = '6.0';
27
- const SDKVersion = '6.0.0';
28
  const TYPE_CHECKER_STRICT_MODE = false;
29
  }
23
  */
24
  namespace FacebookAds;
25
  class ApiConfig {
26
+ const APIVersion = '7.0';
27
+ const SDKVersion = '7.0.1';
28
  const TYPE_CHECKER_STRICT_MODE = false;
29
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php CHANGED
@@ -134,6 +134,10 @@ class RequestException extends Exception {
134
  json_decode(stripslashes(static::idx($error_data, 'error_data')), true);
135
  }
136
 
 
 
 
 
137
  return array(
138
  'code' =>
139
  static::idx($error_data, 'code', static::idx($response_data, 'code')),
134
  json_decode(stripslashes(static::idx($error_data, 'error_data')), true);
135
  }
136
 
137
+ if (is_null(static::idx($error_data, 'error_data'))) {
138
+ $error_data["error_data"] = array();
139
+ }
140
+
141
  return array(
142
  'code' =>
143
  static::idx($error_data, 'code', static::idx($response_data, 'code')),
vendor/facebook/php-business-sdk/src/FacebookAds/Http/SimpleRequest.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Http;
26
+
27
+ class SimpleRequest extends Request{
28
+
29
+ /**
30
+ * @var string
31
+ */
32
+ const DEFAULT_WWWW_BASE_DOMAIN = 'connect.facebook.net';
33
+
34
+ /**
35
+ * @param Client $client
36
+ */
37
+ public function __construct(Client $client) {
38
+ parent::__construct($client);
39
+ //Setting the curl options inside the client to avoid SSL certificates usage
40
+ $client -> getAdapter()->setOpts( new \ArrayObject(array(
41
+ CURLOPT_CONNECTTIMEOUT => 10,
42
+ CURLOPT_TIMEOUT => 60,
43
+ CURLOPT_RETURNTRANSFER => true,
44
+ CURLOPT_HEADER => true,
45
+ CURLOPT_SSL_VERIFYPEER => 0)));
46
+ }
47
+
48
+ /**
49
+ * @return string
50
+ */
51
+ public function getDomain() {
52
+ if ($this->domain === null) {
53
+ $this->domain = sprintf(
54
+ "%s",
55
+ self::DEFAULT_WWWW_BASE_DOMAIN);
56
+ }
57
+
58
+ return $this->domain;
59
+ }
60
+
61
+ /**
62
+ * @return string
63
+ */
64
+ public function getUrl() {
65
+ $delimiter = null;
66
+ if ($this->getQueryParams()->count() ) {
67
+ $delimiter = strpos($this->getPath(), '?') ? '&' : '?';
68
+ }
69
+ return $this->getProtocol().$this->getDomain()
70
+ .'/'.$this->getPath()
71
+ .$delimiter
72
+ .http_build_query($this->getQueryParams()->export(), '', '&');
73
+ }
74
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccount.php CHANGED
@@ -51,6 +51,7 @@ use FacebookAds\Object\Values\AdCreativeAuthorizationCategoryValues;
51
  use FacebookAds\Object\Values\AdCreativeCategorizationCriteriaValues;
52
  use FacebookAds\Object\Values\AdCreativeCategoryMediaSourceValues;
53
  use FacebookAds\Object\Values\AdCreativeDynamicAdVoiceValues;
 
54
  use FacebookAds\Object\Values\AdCreativeOperatorValues;
55
  use FacebookAds\Object\Values\AdDatePresetValues;
56
  use FacebookAds\Object\Values\AdExecutionOptionsValues;
@@ -67,6 +68,7 @@ use FacebookAds\Object\Values\AdSetDestinationTypeValues;
67
  use FacebookAds\Object\Values\AdSetEffectiveStatusValues;
68
  use FacebookAds\Object\Values\AdSetExecutionOptionsValues;
69
  use FacebookAds\Object\Values\AdSetFullFunnelExplorationModeValues;
 
70
  use FacebookAds\Object\Values\AdSetOperatorValues;
71
  use FacebookAds\Object\Values\AdSetOptimizationGoalValues;
72
  use FacebookAds\Object\Values\AdSetOptimizationSubEventValues;
@@ -97,7 +99,7 @@ use FacebookAds\Object\Values\CampaignEffectiveStatusValues;
97
  use FacebookAds\Object\Values\CampaignExecutionOptionsValues;
98
  use FacebookAds\Object\Values\CampaignObjectiveValues;
99
  use FacebookAds\Object\Values\CampaignOperatorValues;
100
- use FacebookAds\Object\Values\CampaignSpecialAdCategoryValues;
101
  use FacebookAds\Object\Values\CampaignStatusValues;
102
  use FacebookAds\Object\Values\ContentDeliveryReportPlatformValues;
103
  use FacebookAds\Object\Values\ContentDeliveryReportPositionValues;
@@ -364,6 +366,7 @@ class AdAccount extends AbstractCrudObject {
364
  'image_url' => 'string',
365
  'instagram_actor_id' => 'string',
366
  'instagram_permalink_url' => 'string',
 
367
  'interactive_components_spec' => 'map',
368
  'is_dco_internal' => 'bool',
369
  'link_og_id' => 'string',
@@ -393,6 +396,7 @@ class AdAccount extends AbstractCrudObject {
393
  'categorization_criteria_enum' => AdCreativeCategorizationCriteriaValues::getInstance()->getValues(),
394
  'category_media_source_enum' => AdCreativeCategoryMediaSourceValues::getInstance()->getValues(),
395
  'dynamic_ad_voice_enum' => AdCreativeDynamicAdVoiceValues::getInstance()->getValues(),
 
396
  );
397
 
398
  $request = new ApiRequest(
@@ -637,140 +641,6 @@ class AdAccount extends AbstractCrudObject {
637
  return $pending ? $request : $request->execute();
638
  }
639
 
640
- public function createAdReportSchedule(array $fields = array(), array $params = array(), $pending = false) {
641
- $this->assureId();
642
-
643
- $param_types = array(
644
- 'actions_group_by' => 'list<actions_group_by_enum>',
645
- 'breakdowns' => 'list<string>',
646
- 'builtin_column_set' => 'builtin_column_set_enum',
647
- 'creation_source' => 'creation_source_enum',
648
- 'custom_column_set_id' => 'string',
649
- 'data_columns' => 'list<string>',
650
- 'date_interval' => 'Object',
651
- 'date_preset' => 'date_preset_enum',
652
- 'emails' => 'list<string>',
653
- 'export_columns' => 'Object',
654
- 'filters' => 'list<Object>',
655
- 'format_version' => 'unsigned int',
656
- 'insights_section' => 'Object',
657
- 'level' => 'level_enum',
658
- 'name' => 'string',
659
- 'normalized_filter' => 'list<Object>',
660
- 'schedule_frequency' => 'schedule_frequency_enum',
661
- 'sort' => 'list<Object>',
662
- 'sort_by' => 'string',
663
- 'sort_dir' => 'string',
664
- 'start_date' => 'Object',
665
- 'status' => 'status_enum',
666
- 'subscribers' => 'list<int>',
667
- 'time_increment' => 'string',
668
- 'user_attribution_windows' => 'list<string>',
669
- 'user_columns' => 'list<string>',
670
- 'user_filter' => 'list<Object>',
671
- );
672
- $enums = array(
673
- 'actions_group_by_enum' => array(
674
- 'action_brand',
675
- 'action_canvas_component_id',
676
- 'action_canvas_component_name',
677
- 'action_carousel_card_id',
678
- 'action_carousel_card_name',
679
- 'action_category',
680
- 'action_converted_brand_tag_id',
681
- 'action_converted_category_tag_id',
682
- 'action_converted_product_id',
683
- 'action_destination',
684
- 'action_device',
685
- 'action_event_channel',
686
- 'action_target_id',
687
- 'action_type',
688
- 'action_video_sound',
689
- 'action_video_type',
690
- 'attribution_model_type',
691
- 'interactive_component_sticker_id',
692
- 'interactive_component_sticker_response',
693
- ),
694
- 'builtin_column_set_enum' => array(
695
- '',
696
- 'APP_ENGAGEMENT',
697
- 'AUDIENCE_DIRECT',
698
- 'BIDDING_AND_OPTIMIZATION',
699
- 'CAROUSEL_ENGAGEMENT',
700
- 'CROSS_DEVICE',
701
- 'DELIVERY',
702
- 'ENGAGEMENT',
703
- 'HOUSEHOLD',
704
- 'MESSAGING_ENGAGEMENT',
705
- 'MESSENGER',
706
- 'OFFLINE_CONVERSIONS',
707
- 'PERFORMANCE',
708
- 'PERFORMANCE_LEGACY',
709
- 'TARGETING_AND_CREATIVE',
710
- 'VALIDATION_VIEW',
711
- 'VIDEO_ENGAGEMENT',
712
- ),
713
- 'creation_source_enum' => array(
714
- 'adsExcelAddin',
715
- 'adsManagerReporting',
716
- 'newAdsManager',
717
- ),
718
- 'date_preset_enum' => array(
719
- 'last_14d',
720
- 'last_28d',
721
- 'last_30d',
722
- 'last_3d',
723
- 'last_7d',
724
- 'last_90d',
725
- 'last_month',
726
- 'last_quarter',
727
- 'last_week_mon_sun',
728
- 'last_week_sun_sat',
729
- 'last_year',
730
- 'lifetime',
731
- 'this_month',
732
- 'this_quarter',
733
- 'this_week_mon_today',
734
- 'this_week_sun_today',
735
- 'this_year',
736
- 'today',
737
- 'yesterday',
738
- ),
739
- 'level_enum' => array(
740
- 'account',
741
- 'ad',
742
- 'adgroup',
743
- 'campaign',
744
- 'campaign_group',
745
- 'politicalad',
746
- ),
747
- 'schedule_frequency_enum' => array(
748
- 'daily',
749
- 'monthly',
750
- 'weekly',
751
- ),
752
- 'status_enum' => array(
753
- 'Active',
754
- 'Deleted',
755
- 'Paused',
756
- ),
757
- );
758
-
759
- $request = new ApiRequest(
760
- $this->api,
761
- $this->data['id'],
762
- RequestInterface::METHOD_POST,
763
- '/adreportschedules',
764
- new AbstractCrudObject(),
765
- 'EDGE',
766
- array(),
767
- new TypeChecker($param_types, $enums)
768
- );
769
- $request->addParams($params);
770
- $request->addFields($fields);
771
- return $pending ? $request : $request->execute();
772
- }
773
-
774
  public function getAdRulesHistory(array $fields = array(), array $params = array(), $pending = false) {
775
  $this->assureId();
776
 
@@ -857,13 +727,10 @@ class AdAccount extends AbstractCrudObject {
857
  $this->assureId();
858
 
859
  $param_types = array(
860
- 'ad_draft_id' => 'string',
861
  'date_preset' => 'date_preset_enum',
862
  'effective_status' => 'list<string>',
863
- 'include_drafts' => 'bool',
864
  'time_range' => 'Object',
865
  'updated_since' => 'int',
866
- 'use_employee_draft' => 'bool',
867
  );
868
  $enums = array(
869
  'date_preset_enum' => AdDatePresetValues::getInstance()->getValues(),
@@ -932,7 +799,7 @@ class AdAccount extends AbstractCrudObject {
932
 
933
  $param_types = array(
934
  'page_id' => 'int',
935
- 'show_ad_limit_by_actor' => 'bool',
936
  );
937
  $enums = array(
938
  );
@@ -982,13 +849,10 @@ class AdAccount extends AbstractCrudObject {
982
  $this->assureId();
983
 
984
  $param_types = array(
985
- 'ad_draft_id' => 'string',
986
  'date_preset' => 'date_preset_enum',
987
  'effective_status' => 'list<effective_status_enum>',
988
- 'include_drafts' => 'bool',
989
  'is_completed' => 'bool',
990
  'time_range' => 'Object',
991
- 'use_employee_draft' => 'bool',
992
  );
993
  $enums = array(
994
  'date_preset_enum' => AdSetDatePresetValues::getInstance()->getValues(),
@@ -1041,6 +905,7 @@ class AdAccount extends AbstractCrudObject {
1041
  'lifetime_min_spend_target' => 'unsigned int',
1042
  'lifetime_spend_cap' => 'unsigned int',
1043
  'line_number' => 'unsigned int',
 
1044
  'name' => 'string',
1045
  'optimization_goal' => 'optimization_goal_enum',
1046
  'optimization_sub_event' => 'optimization_sub_event_enum',
@@ -1066,6 +931,7 @@ class AdAccount extends AbstractCrudObject {
1066
  'destination_type_enum' => AdSetDestinationTypeValues::getInstance()->getValues(),
1067
  'execution_options_enum' => AdSetExecutionOptionsValues::getInstance()->getValues(),
1068
  'full_funnel_exploration_mode_enum' => AdSetFullFunnelExplorationModeValues::getInstance()->getValues(),
 
1069
  'optimization_goal_enum' => AdSetOptimizationGoalValues::getInstance()->getValues(),
1070
  'optimization_sub_event_enum' => AdSetOptimizationSubEventValues::getInstance()->getValues(),
1071
  'status_enum' => AdSetStatusValues::getInstance()->getValues(),
@@ -1668,54 +1534,6 @@ class AdAccount extends AbstractCrudObject {
1668
  return $pending ? $request : $request->execute();
1669
  }
1670
 
1671
- public function createBatchReplace(array $fields = array(), array $params = array(), $pending = false) {
1672
- $this->assureId();
1673
-
1674
- $param_types = array(
1675
- 'payload' => 'list<string>',
1676
- );
1677
- $enums = array(
1678
- );
1679
-
1680
- $request = new ApiRequest(
1681
- $this->api,
1682
- $this->data['id'],
1683
- RequestInterface::METHOD_POST,
1684
- '/batchreplace',
1685
- new AbstractCrudObject(),
1686
- 'EDGE',
1687
- array(),
1688
- new TypeChecker($param_types, $enums)
1689
- );
1690
- $request->addParams($params);
1691
- $request->addFields($fields);
1692
- return $pending ? $request : $request->execute();
1693
- }
1694
-
1695
- public function createBatchUpload(array $fields = array(), array $params = array(), $pending = false) {
1696
- $this->assureId();
1697
-
1698
- $param_types = array(
1699
- 'payload' => 'list<string>',
1700
- );
1701
- $enums = array(
1702
- );
1703
-
1704
- $request = new ApiRequest(
1705
- $this->api,
1706
- $this->data['id'],
1707
- RequestInterface::METHOD_POST,
1708
- '/batchupload',
1709
- new AbstractCrudObject(),
1710
- 'EDGE',
1711
- array(),
1712
- new TypeChecker($param_types, $enums)
1713
- );
1714
- $request->addParams($params);
1715
- $request->addFields($fields);
1716
- return $pending ? $request : $request->execute();
1717
- }
1718
-
1719
  public function createBlockListDraft(array $fields = array(), array $params = array(), $pending = false) {
1720
  $this->assureId();
1721
 
@@ -1802,10 +1620,8 @@ class AdAccount extends AbstractCrudObject {
1802
  $param_types = array(
1803
  'date_preset' => 'date_preset_enum',
1804
  'effective_status' => 'list<effective_status_enum>',
1805
- 'include_drafts' => 'bool',
1806
  'is_completed' => 'bool',
1807
  'time_range' => 'Object',
1808
- 'use_employee_draft' => 'bool',
1809
  );
1810
  $enums = array(
1811
  'date_preset_enum' => CampaignDatePresetValues::getInstance()->getValues(),
@@ -1833,7 +1649,6 @@ class AdAccount extends AbstractCrudObject {
1833
  $param_types = array(
1834
  'adlabels' => 'list<Object>',
1835
  'bid_strategy' => 'bid_strategy_enum',
1836
- 'budget_rebalance_flag' => 'bool',
1837
  'buying_type' => 'string',
1838
  'daily_budget' => 'unsigned int',
1839
  'execution_options' => 'list<execution_options_enum>',
@@ -1844,7 +1659,7 @@ class AdAccount extends AbstractCrudObject {
1844
  'pacing_type' => 'list<string>',
1845
  'promoted_object' => 'Object',
1846
  'source_campaign_id' => 'string',
1847
- 'special_ad_category' => 'special_ad_category_enum',
1848
  'spend_cap' => 'unsigned int',
1849
  'status' => 'status_enum',
1850
  'topline_id' => 'string',
@@ -1854,7 +1669,7 @@ class AdAccount extends AbstractCrudObject {
1854
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
1855
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
1856
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
1857
- 'special_ad_category_enum' => CampaignSpecialAdCategoryValues::getInstance()->getValues(),
1858
  'status_enum' => CampaignStatusValues::getInstance()->getValues(),
1859
  );
1860
 
@@ -1904,6 +1719,7 @@ class AdAccount extends AbstractCrudObject {
1904
 
1905
  $param_types = array(
1906
  'end_date' => 'datetime',
 
1907
  'platform' => 'platform_enum',
1908
  'position' => 'position_enum',
1909
  'start_date' => 'datetime',
51
  use FacebookAds\Object\Values\AdCreativeCategorizationCriteriaValues;
52
  use FacebookAds\Object\Values\AdCreativeCategoryMediaSourceValues;
53
  use FacebookAds\Object\Values\AdCreativeDynamicAdVoiceValues;
54
+ use FacebookAds\Object\Values\AdCreativeInstantCheckoutSettingValues;
55
  use FacebookAds\Object\Values\AdCreativeOperatorValues;
56
  use FacebookAds\Object\Values\AdDatePresetValues;
57
  use FacebookAds\Object\Values\AdExecutionOptionsValues;
68
  use FacebookAds\Object\Values\AdSetEffectiveStatusValues;
69
  use FacebookAds\Object\Values\AdSetExecutionOptionsValues;
70
  use FacebookAds\Object\Values\AdSetFullFunnelExplorationModeValues;
71
+ use FacebookAds\Object\Values\AdSetMultiOptimizationGoalWeightValues;
72
  use FacebookAds\Object\Values\AdSetOperatorValues;
73
  use FacebookAds\Object\Values\AdSetOptimizationGoalValues;
74
  use FacebookAds\Object\Values\AdSetOptimizationSubEventValues;
99
  use FacebookAds\Object\Values\CampaignExecutionOptionsValues;
100
  use FacebookAds\Object\Values\CampaignObjectiveValues;
101
  use FacebookAds\Object\Values\CampaignOperatorValues;
102
+ use FacebookAds\Object\Values\CampaignSpecialAdCategoriesValues;
103
  use FacebookAds\Object\Values\CampaignStatusValues;
104
  use FacebookAds\Object\Values\ContentDeliveryReportPlatformValues;
105
  use FacebookAds\Object\Values\ContentDeliveryReportPositionValues;
366
  'image_url' => 'string',
367
  'instagram_actor_id' => 'string',
368
  'instagram_permalink_url' => 'string',
369
+ 'instant_checkout_setting' => 'instant_checkout_setting_enum',
370
  'interactive_components_spec' => 'map',
371
  'is_dco_internal' => 'bool',
372
  'link_og_id' => 'string',
396
  'categorization_criteria_enum' => AdCreativeCategorizationCriteriaValues::getInstance()->getValues(),
397
  'category_media_source_enum' => AdCreativeCategoryMediaSourceValues::getInstance()->getValues(),
398
  'dynamic_ad_voice_enum' => AdCreativeDynamicAdVoiceValues::getInstance()->getValues(),
399
+ 'instant_checkout_setting_enum' => AdCreativeInstantCheckoutSettingValues::getInstance()->getValues(),
400
  );
401
 
402
  $request = new ApiRequest(
641
  return $pending ? $request : $request->execute();
642
  }
643
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
644
  public function getAdRulesHistory(array $fields = array(), array $params = array(), $pending = false) {
645
  $this->assureId();
646
 
727
  $this->assureId();
728
 
729
  $param_types = array(
 
730
  'date_preset' => 'date_preset_enum',
731
  'effective_status' => 'list<string>',
 
732
  'time_range' => 'Object',
733
  'updated_since' => 'int',
 
734
  );
735
  $enums = array(
736
  'date_preset_enum' => AdDatePresetValues::getInstance()->getValues(),
799
 
800
  $param_types = array(
801
  'page_id' => 'int',
802
+ 'show_breakdown_by_actor' => 'bool',
803
  );
804
  $enums = array(
805
  );
849
  $this->assureId();
850
 
851
  $param_types = array(
 
852
  'date_preset' => 'date_preset_enum',
853
  'effective_status' => 'list<effective_status_enum>',
 
854
  'is_completed' => 'bool',
855
  'time_range' => 'Object',
 
856
  );
857
  $enums = array(
858
  'date_preset_enum' => AdSetDatePresetValues::getInstance()->getValues(),
905
  'lifetime_min_spend_target' => 'unsigned int',
906
  'lifetime_spend_cap' => 'unsigned int',
907
  'line_number' => 'unsigned int',
908
+ 'multi_optimization_goal_weight' => 'multi_optimization_goal_weight_enum',
909
  'name' => 'string',
910
  'optimization_goal' => 'optimization_goal_enum',
911
  'optimization_sub_event' => 'optimization_sub_event_enum',
931
  'destination_type_enum' => AdSetDestinationTypeValues::getInstance()->getValues(),
932
  'execution_options_enum' => AdSetExecutionOptionsValues::getInstance()->getValues(),
933
  'full_funnel_exploration_mode_enum' => AdSetFullFunnelExplorationModeValues::getInstance()->getValues(),
934
+ 'multi_optimization_goal_weight_enum' => AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues(),
935
  'optimization_goal_enum' => AdSetOptimizationGoalValues::getInstance()->getValues(),
936
  'optimization_sub_event_enum' => AdSetOptimizationSubEventValues::getInstance()->getValues(),
937
  'status_enum' => AdSetStatusValues::getInstance()->getValues(),
1534
  return $pending ? $request : $request->execute();
1535
  }
1536
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1537
  public function createBlockListDraft(array $fields = array(), array $params = array(), $pending = false) {
1538
  $this->assureId();
1539
 
1620
  $param_types = array(
1621
  'date_preset' => 'date_preset_enum',
1622
  'effective_status' => 'list<effective_status_enum>',
 
1623
  'is_completed' => 'bool',
1624
  'time_range' => 'Object',
 
1625
  );
1626
  $enums = array(
1627
  'date_preset_enum' => CampaignDatePresetValues::getInstance()->getValues(),
1649
  $param_types = array(
1650
  'adlabels' => 'list<Object>',
1651
  'bid_strategy' => 'bid_strategy_enum',
 
1652
  'buying_type' => 'string',
1653
  'daily_budget' => 'unsigned int',
1654
  'execution_options' => 'list<execution_options_enum>',
1659
  'pacing_type' => 'list<string>',
1660
  'promoted_object' => 'Object',
1661
  'source_campaign_id' => 'string',
1662
+ 'special_ad_categories' => 'list<special_ad_categories_enum>',
1663
  'spend_cap' => 'unsigned int',
1664
  'status' => 'status_enum',
1665
  'topline_id' => 'string',
1669
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
1670
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
1671
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
1672
+ 'special_ad_categories_enum' => CampaignSpecialAdCategoriesValues::getInstance()->getValues(),
1673
  'status_enum' => CampaignStatusValues::getInstance()->getValues(),
1674
  );
1675
 
1719
 
1720
  $param_types = array(
1721
  'end_date' => 'datetime',
1722
+ 'page_id' => 'unsigned int',
1723
  'platform' => 'platform_enum',
1724
  'position' => 'position_enum',
1725
  'start_date' => 'datetime',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdCreative.php CHANGED
@@ -35,6 +35,7 @@ use FacebookAds\Object\Values\AdCreativeCallToActionTypeValues;
35
  use FacebookAds\Object\Values\AdCreativeCategorizationCriteriaValues;
36
  use FacebookAds\Object\Values\AdCreativeCategoryMediaSourceValues;
37
  use FacebookAds\Object\Values\AdCreativeDynamicAdVoiceValues;
 
38
  use FacebookAds\Object\Values\AdCreativeObjectTypeValues;
39
  use FacebookAds\Object\Values\AdCreativeOperatorValues;
40
  use FacebookAds\Object\Values\AdCreativeStatusValues;
@@ -79,6 +80,7 @@ class AdCreative extends AbstractCrudObject {
79
  $ref_enums['CategorizationCriteria'] = AdCreativeCategorizationCriteriaValues::getInstance()->getValues();
80
  $ref_enums['CategoryMediaSource'] = AdCreativeCategoryMediaSourceValues::getInstance()->getValues();
81
  $ref_enums['DynamicAdVoice'] = AdCreativeDynamicAdVoiceValues::getInstance()->getValues();
 
82
  $ref_enums['Operator'] = AdCreativeOperatorValues::getInstance()->getValues();
83
  return $ref_enums;
84
  }
@@ -89,30 +91,6 @@ class AdCreative extends AbstractCrudObject {
89
  }
90
  }
91
 
92
- public function deleteAdLabels(array $fields = array(), array $params = array(), $pending = false) {
93
- $this->assureId();
94
-
95
- $param_types = array(
96
- 'adlabels' => 'list<Object>',
97
- );
98
- $enums = array(
99
- );
100
-
101
- $request = new ApiRequest(
102
- $this->api,
103
- $this->data['id'],
104
- RequestInterface::METHOD_DELETE,
105
- '/adlabels',
106
- new AbstractCrudObject(),
107
- 'EDGE',
108
- array(),
109
- new TypeChecker($param_types, $enums)
110
- );
111
- $request->addParams($params);
112
- $request->addFields($fields);
113
- return $pending ? $request : $request->execute();
114
- }
115
-
116
  public function createAdLabel(array $fields = array(), array $params = array(), $pending = false) {
117
  $this->assureId();
118
 
35
  use FacebookAds\Object\Values\AdCreativeCategorizationCriteriaValues;
36
  use FacebookAds\Object\Values\AdCreativeCategoryMediaSourceValues;
37
  use FacebookAds\Object\Values\AdCreativeDynamicAdVoiceValues;
38
+ use FacebookAds\Object\Values\AdCreativeInstantCheckoutSettingValues;
39
  use FacebookAds\Object\Values\AdCreativeObjectTypeValues;
40
  use FacebookAds\Object\Values\AdCreativeOperatorValues;
41
  use FacebookAds\Object\Values\AdCreativeStatusValues;
80
  $ref_enums['CategorizationCriteria'] = AdCreativeCategorizationCriteriaValues::getInstance()->getValues();
81
  $ref_enums['CategoryMediaSource'] = AdCreativeCategoryMediaSourceValues::getInstance()->getValues();
82
  $ref_enums['DynamicAdVoice'] = AdCreativeDynamicAdVoiceValues::getInstance()->getValues();
83
+ $ref_enums['InstantCheckoutSetting'] = AdCreativeInstantCheckoutSettingValues::getInstance()->getValues();
84
  $ref_enums['Operator'] = AdCreativeOperatorValues::getInstance()->getValues();
85
  return $ref_enums;
86
  }
91
  }
92
  }
93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  public function createAdLabel(array $fields = array(), array $params = array(), $pending = false) {
95
  $this->assureId();
96
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/{AdsTALHealthCheckError.php → AdCreativeAdDisclaimer.php} RENAMED
@@ -28,7 +28,7 @@ use FacebookAds\ApiRequest;
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\AdsTALHealthCheckErrorFields;
32
 
33
  /**
34
  * This class is auto-generated.
@@ -39,13 +39,13 @@ use FacebookAds\Object\Fields\AdsTALHealthCheckErrorFields;
39
  *
40
  */
41
 
42
- class AdsTALHealthCheckError extends AbstractObject {
43
 
44
  /**
45
- * @return AdsTALHealthCheckErrorFields
46
  */
47
  public static function getFieldsEnum() {
48
- return AdsTALHealthCheckErrorFields::getInstance();
49
  }
50
 
51
  protected static function getReferencedEnums() {
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\AdCreativeAdDisclaimerFields;
32
 
33
  /**
34
  * This class is auto-generated.
39
  *
40
  */
41
 
42
+ class AdCreativeAdDisclaimer extends AbstractObject {
43
 
44
  /**
45
+ * @return AdCreativeAdDisclaimerFields
46
  */
47
  public static function getFieldsEnum() {
48
+ return AdCreativeAdDisclaimerFields::getInstance();
49
  }
50
 
51
  protected static function getReferencedEnums() {
vendor/facebook/php-business-sdk/src/FacebookAds/Object/{RequestHistory.php → AdCreativePhotoDataMediaElements.php} RENAMED
@@ -28,8 +28,7 @@ use FacebookAds\ApiRequest;
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\RequestHistoryFields;
32
- use FacebookAds\Object\Values\RequestHistoryHttpMethodValues;
33
 
34
  /**
35
  * This class is auto-generated.
@@ -40,18 +39,17 @@ use FacebookAds\Object\Values\RequestHistoryHttpMethodValues;
40
  *
41
  */
42
 
43
- class RequestHistory extends AbstractObject {
44
 
45
  /**
46
- * @return RequestHistoryFields
47
  */
48
  public static function getFieldsEnum() {
49
- return RequestHistoryFields::getInstance();
50
  }
51
 
52
  protected static function getReferencedEnums() {
53
  $ref_enums = array();
54
- $ref_enums['HttpMethod'] = RequestHistoryHttpMethodValues::getInstance()->getValues();
55
  return $ref_enums;
56
  }
57
 
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\AdCreativePhotoDataMediaElementsFields;
 
32
 
33
  /**
34
  * This class is auto-generated.
39
  *
40
  */
41
 
42
+ class AdCreativePhotoDataMediaElements extends AbstractObject {
43
 
44
  /**
45
+ * @return AdCreativePhotoDataMediaElementsFields
46
  */
47
  public static function getFieldsEnum() {
48
+ return AdCreativePhotoDataMediaElementsFields::getInstance();
49
  }
50
 
51
  protected static function getReferencedEnums() {
52
  $ref_enums = array();
 
53
  return $ref_enums;
54
  }
55
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdPlacePageSet.php CHANGED
@@ -88,28 +88,4 @@ class AdPlacePageSet extends AbstractCrudObject {
88
  return $pending ? $request : $request->execute();
89
  }
90
 
91
- public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
92
- $this->assureId();
93
-
94
- $param_types = array(
95
- 'name' => 'string',
96
- );
97
- $enums = array(
98
- );
99
-
100
- $request = new ApiRequest(
101
- $this->api,
102
- $this->data['id'],
103
- RequestInterface::METHOD_POST,
104
- '/',
105
- new AdPlacePageSet(),
106
- 'NODE',
107
- AdPlacePageSet::getFieldsEnum()->getValues(),
108
- new TypeChecker($param_types, $enums)
109
- );
110
- $request->addParams($params);
111
- $request->addFields($fields);
112
- return $pending ? $request : $request->execute();
113
- }
114
-
115
  }
88
  return $pending ? $request : $request->execute();
89
  }
90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdReportRun.php CHANGED
@@ -84,29 +84,6 @@ class AdReportRun extends AbstractCrudObject {
84
  return $pending ? $request : $request->execute();
85
  }
86
 
87
- public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) {
88
- $this->assureId();
89
-
90
- $param_types = array(
91
- );
92
- $enums = array(
93
- );
94
-
95
- $request = new ApiRequest(
96
- $this->api,
97
- $this->data['id'],
98
- RequestInterface::METHOD_DELETE,
99
- '/',
100
- new AbstractCrudObject(),
101
- 'NODE',
102
- array(),
103
- new TypeChecker($param_types, $enums)
104
- );
105
- $request->addParams($params);
106
- $request->addFields($fields);
107
- return $pending ? $request : $request->execute();
108
- }
109
-
110
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
111
  $this->assureId();
112
 
@@ -130,31 +107,6 @@ class AdReportRun extends AbstractCrudObject {
130
  return $pending ? $request : $request->execute();
131
  }
132
 
133
- public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
134
- $this->assureId();
135
-
136
- $param_types = array(
137
- 'emails' => 'list<string>',
138
- 'is_bookmarked' => 'bool',
139
- );
140
- $enums = array(
141
- );
142
-
143
- $request = new ApiRequest(
144
- $this->api,
145
- $this->data['id'],
146
- RequestInterface::METHOD_POST,
147
- '/',
148
- new AdReportRun(),
149
- 'NODE',
150
- AdReportRun::getFieldsEnum()->getValues(),
151
- new TypeChecker($param_types, $enums)
152
- );
153
- $request->addParams($params);
154
- $request->addFields($fields);
155
- return $pending ? $request : $request->execute();
156
- }
157
-
158
  public function setDataTrigger(array $data) {
159
  if (array_key_exists('report_run_id', $data)) {
160
  $this->data['id'] = $data['report_run_id'];
84
  return $pending ? $request : $request->execute();
85
  }
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
88
  $this->assureId();
89
 
107
  return $pending ? $request : $request->execute();
108
  }
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  public function setDataTrigger(array $data) {
111
  if (array_key_exists('report_run_id', $data)) {
112
  $this->data['id'] = $data['report_run_id'];
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdReportSpec.php CHANGED
@@ -54,29 +54,6 @@ class AdReportSpec extends AbstractCrudObject {
54
  }
55
 
56
 
57
- public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) {
58
- $this->assureId();
59
-
60
- $param_types = array(
61
- );
62
- $enums = array(
63
- );
64
-
65
- $request = new ApiRequest(
66
- $this->api,
67
- $this->data['id'],
68
- RequestInterface::METHOD_DELETE,
69
- '/',
70
- new AbstractCrudObject(),
71
- 'NODE',
72
- array(),
73
- new TypeChecker($param_types, $enums)
74
- );
75
- $request->addParams($params);
76
- $request->addFields($fields);
77
- return $pending ? $request : $request->execute();
78
- }
79
-
80
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
81
  $this->assureId();
82
 
54
  }
55
 
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
58
  $this->assureId();
59
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdSet.php CHANGED
@@ -41,6 +41,7 @@ use FacebookAds\Object\Values\AdSetDestinationTypeValues;
41
  use FacebookAds\Object\Values\AdSetEffectiveStatusValues;
42
  use FacebookAds\Object\Values\AdSetExecutionOptionsValues;
43
  use FacebookAds\Object\Values\AdSetFullFunnelExplorationModeValues;
 
44
  use FacebookAds\Object\Values\AdSetOperatorValues;
45
  use FacebookAds\Object\Values\AdSetOptimizationGoalValues;
46
  use FacebookAds\Object\Values\AdSetOptimizationSubEventValues;
@@ -100,6 +101,7 @@ class AdSet extends AbstractArchivableCrudObject
100
  $ref_enums['DestinationType'] = AdSetDestinationTypeValues::getInstance()->getValues();
101
  $ref_enums['ExecutionOptions'] = AdSetExecutionOptionsValues::getInstance()->getValues();
102
  $ref_enums['FullFunnelExplorationMode'] = AdSetFullFunnelExplorationModeValues::getInstance()->getValues();
 
103
  $ref_enums['OptimizationSubEvent'] = AdSetOptimizationSubEventValues::getInstance()->getValues();
104
  $ref_enums['TuneForCategory'] = AdSetTuneForCategoryValues::getInstance()->getValues();
105
  $ref_enums['Operator'] = AdSetOperatorValues::getInstance()->getValues();
@@ -265,10 +267,8 @@ class AdSet extends AbstractArchivableCrudObject
265
  $this->assureId();
266
 
267
  $param_types = array(
268
- 'ad_draft_id' => 'string',
269
  'date_preset' => 'date_preset_enum',
270
  'effective_status' => 'list<string>',
271
- 'include_drafts' => 'bool',
272
  'time_range' => 'Object',
273
  'updated_since' => 'int',
274
  );
@@ -655,6 +655,7 @@ class AdSet extends AbstractArchivableCrudObject
655
  'lifetime_imps' => 'unsigned int',
656
  'lifetime_min_spend_target' => 'unsigned int',
657
  'lifetime_spend_cap' => 'unsigned int',
 
658
  'name' => 'string',
659
  'optimization_goal' => 'optimization_goal_enum',
660
  'optimization_sub_event' => 'optimization_sub_event_enum',
@@ -678,6 +679,7 @@ class AdSet extends AbstractArchivableCrudObject
678
  'destination_type_enum' => AdSetDestinationTypeValues::getInstance()->getValues(),
679
  'execution_options_enum' => AdSetExecutionOptionsValues::getInstance()->getValues(),
680
  'full_funnel_exploration_mode_enum' => AdSetFullFunnelExplorationModeValues::getInstance()->getValues(),
 
681
  'optimization_goal_enum' => AdSetOptimizationGoalValues::getInstance()->getValues(),
682
  'optimization_sub_event_enum' => AdSetOptimizationSubEventValues::getInstance()->getValues(),
683
  'status_enum' => AdSetStatusValues::getInstance()->getValues(),
41
  use FacebookAds\Object\Values\AdSetEffectiveStatusValues;
42
  use FacebookAds\Object\Values\AdSetExecutionOptionsValues;
43
  use FacebookAds\Object\Values\AdSetFullFunnelExplorationModeValues;
44
+ use FacebookAds\Object\Values\AdSetMultiOptimizationGoalWeightValues;
45
  use FacebookAds\Object\Values\AdSetOperatorValues;
46
  use FacebookAds\Object\Values\AdSetOptimizationGoalValues;
47
  use FacebookAds\Object\Values\AdSetOptimizationSubEventValues;
101
  $ref_enums['DestinationType'] = AdSetDestinationTypeValues::getInstance()->getValues();
102
  $ref_enums['ExecutionOptions'] = AdSetExecutionOptionsValues::getInstance()->getValues();
103
  $ref_enums['FullFunnelExplorationMode'] = AdSetFullFunnelExplorationModeValues::getInstance()->getValues();
104
+ $ref_enums['MultiOptimizationGoalWeight'] = AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues();
105
  $ref_enums['OptimizationSubEvent'] = AdSetOptimizationSubEventValues::getInstance()->getValues();
106
  $ref_enums['TuneForCategory'] = AdSetTuneForCategoryValues::getInstance()->getValues();
107
  $ref_enums['Operator'] = AdSetOperatorValues::getInstance()->getValues();
267
  $this->assureId();
268
 
269
  $param_types = array(
 
270
  'date_preset' => 'date_preset_enum',
271
  'effective_status' => 'list<string>',
 
272
  'time_range' => 'Object',
273
  'updated_since' => 'int',
274
  );
655
  'lifetime_imps' => 'unsigned int',
656
  'lifetime_min_spend_target' => 'unsigned int',
657
  'lifetime_spend_cap' => 'unsigned int',
658
+ 'multi_optimization_goal_weight' => 'multi_optimization_goal_weight_enum',
659
  'name' => 'string',
660
  'optimization_goal' => 'optimization_goal_enum',
661
  'optimization_sub_event' => 'optimization_sub_event_enum',
679
  'destination_type_enum' => AdSetDestinationTypeValues::getInstance()->getValues(),
680
  'execution_options_enum' => AdSetExecutionOptionsValues::getInstance()->getValues(),
681
  'full_funnel_exploration_mode_enum' => AdSetFullFunnelExplorationModeValues::getInstance()->getValues(),
682
+ 'multi_optimization_goal_weight_enum' => AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues(),
683
  'optimization_goal_enum' => AdSetOptimizationGoalValues::getInstance()->getValues(),
684
  'optimization_sub_event_enum' => AdSetOptimizationSubEventValues::getInstance()->getValues(),
685
  'status_enum' => AdSetStatusValues::getInstance()->getValues(),
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdStudy.php CHANGED
@@ -87,29 +87,6 @@ class AdStudy extends AbstractCrudObject {
87
  return $pending ? $request : $request->execute();
88
  }
89
 
90
- public function getHealthCheckErrors(array $fields = array(), array $params = array(), $pending = false) {
91
- $this->assureId();
92
-
93
- $param_types = array(
94
- );
95
- $enums = array(
96
- );
97
-
98
- $request = new ApiRequest(
99
- $this->api,
100
- $this->data['id'],
101
- RequestInterface::METHOD_GET,
102
- '/health_check_errors',
103
- new AdsTALHealthCheckError(),
104
- 'EDGE',
105
- AdsTALHealthCheckError::getFieldsEnum()->getValues(),
106
- new TypeChecker($param_types, $enums)
107
- );
108
- $request->addParams($params);
109
- $request->addFields($fields);
110
- return $pending ? $request : $request->execute();
111
- }
112
-
113
  public function getObjectives(array $fields = array(), array $params = array(), $pending = false) {
114
  $this->assureId();
115
 
87
  return $pending ? $request : $request->execute();
88
  }
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  public function getObjectives(array $fields = array(), array $params = array(), $pending = false) {
91
  $this->assureId();
92
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdStudyObjective.php CHANGED
@@ -245,6 +245,7 @@ class AdStudyObjective extends AbstractCrudObject {
245
 
246
  $param_types = array(
247
  'breakdowns' => 'list<breakdowns_enum>',
 
248
  );
249
  $enums = array(
250
  'breakdowns_enum' => array(
245
 
246
  $param_types = array(
247
  'breakdowns' => 'list<breakdowns_enum>',
248
+ 'ds' => 'string',
249
  );
250
  $enums = array(
251
  'breakdowns_enum' => array(
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdVideo.php CHANGED
@@ -39,7 +39,6 @@ use FacebookAds\Object\Values\AdVideoTypeValues;
39
  use FacebookAds\Object\Values\AdVideoUnpublishedContentTypeValues;
40
  use FacebookAds\Object\Values\AdVideoUploadPhaseValues;
41
  use FacebookAds\Object\Values\AdVideoValidationAdPlacementsValues;
42
- use FacebookAds\Object\Values\AdVideoVideoPollWwwPlacementValues;
43
  use FacebookAds\Object\Values\CommentCommentPrivacyValueValues;
44
  use FacebookAds\Object\Values\CommentFilterValues;
45
  use FacebookAds\Object\Values\CommentLiveFilterValues;
@@ -86,7 +85,6 @@ class AdVideo extends AbstractCrudObject {
86
  $ref_enums['ValidationAdPlacements'] = AdVideoValidationAdPlacementsValues::getInstance()->getValues();
87
  $ref_enums['Type'] = AdVideoTypeValues::getInstance()->getValues();
88
  $ref_enums['BackdatedTimeGranularity'] = AdVideoBackdatedTimeGranularityValues::getInstance()->getValues();
89
- $ref_enums['VideoPollWwwPlacement'] = AdVideoVideoPollWwwPlacementValues::getInstance()->getValues();
90
  return $ref_enums;
91
  }
92
 
@@ -303,32 +301,6 @@ class AdVideo extends AbstractCrudObject {
303
  return $pending ? $request : $request->execute();
304
  }
305
 
306
- public function createPollSetting(array $fields = array(), array $params = array(), $pending = false) {
307
- $this->assureId();
308
-
309
- $param_types = array(
310
- 'enable_was_live_voting' => 'bool',
311
- 'video_poll_www_placement' => 'video_poll_www_placement_enum',
312
- );
313
- $enums = array(
314
- 'video_poll_www_placement_enum' => AdVideoVideoPollWwwPlacementValues::getInstance()->getValues(),
315
- );
316
-
317
- $request = new ApiRequest(
318
- $this->api,
319
- $this->data['id'],
320
- RequestInterface::METHOD_POST,
321
- '/poll_settings',
322
- new AdVideo(),
323
- 'EDGE',
324
- AdVideo::getFieldsEnum()->getValues(),
325
- new TypeChecker($param_types, $enums)
326
- );
327
- $request->addParams($params);
328
- $request->addFields($fields);
329
- return $pending ? $request : $request->execute();
330
- }
331
-
332
  public function getPolls(array $fields = array(), array $params = array(), $pending = false) {
333
  $this->assureId();
334
 
39
  use FacebookAds\Object\Values\AdVideoUnpublishedContentTypeValues;
40
  use FacebookAds\Object\Values\AdVideoUploadPhaseValues;
41
  use FacebookAds\Object\Values\AdVideoValidationAdPlacementsValues;
 
42
  use FacebookAds\Object\Values\CommentCommentPrivacyValueValues;
43
  use FacebookAds\Object\Values\CommentFilterValues;
44
  use FacebookAds\Object\Values\CommentLiveFilterValues;
85
  $ref_enums['ValidationAdPlacements'] = AdVideoValidationAdPlacementsValues::getInstance()->getValues();
86
  $ref_enums['Type'] = AdVideoTypeValues::getInstance()->getValues();
87
  $ref_enums['BackdatedTimeGranularity'] = AdVideoBackdatedTimeGranularityValues::getInstance()->getValues();
 
88
  return $ref_enums;
89
  }
90
 
301
  return $pending ? $request : $request->execute();
302
  }
303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  public function getPolls(array $fields = array(), array $params = array(), $pending = false) {
305
  $this->assureId();
306
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/{BusinessPixelTOS.php → AdsInterest.php} RENAMED
@@ -28,7 +28,7 @@ use FacebookAds\ApiRequest;
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\BusinessPixelTOSFields;
32
 
33
  /**
34
  * This class is auto-generated.
@@ -39,20 +39,13 @@ use FacebookAds\Object\Fields\BusinessPixelTOSFields;
39
  *
40
  */
41
 
42
- class BusinessPixelTOS extends AbstractCrudObject {
43
 
44
  /**
45
- * @deprecated getEndpoint function is deprecated
46
- */
47
- protected function getEndpoint() {
48
- return 'pixel_tos';
49
- }
50
-
51
- /**
52
- * @return BusinessPixelTOSFields
53
  */
54
  public static function getFieldsEnum() {
55
- return BusinessPixelTOSFields::getInstance();
56
  }
57
 
58
  protected static function getReferencedEnums() {
@@ -74,9 +67,9 @@ class BusinessPixelTOS extends AbstractCrudObject {
74
  $this->data['id'],
75
  RequestInterface::METHOD_GET,
76
  '/',
77
- new BusinessPixelTOS(),
78
  'NODE',
79
- BusinessPixelTOS::getFieldsEnum()->getValues(),
80
  new TypeChecker($param_types, $enums)
81
  );
82
  $request->addParams($params);
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\AdsInterestFields;
32
 
33
  /**
34
  * This class is auto-generated.
39
  *
40
  */
41
 
42
+ class AdsInterest extends AbstractCrudObject {
43
 
44
  /**
45
+ * @return AdsInterestFields
 
 
 
 
 
 
 
46
  */
47
  public static function getFieldsEnum() {
48
+ return AdsInterestFields::getInstance();
49
  }
50
 
51
  protected static function getReferencedEnums() {
67
  $this->data['id'],
68
  RequestInterface::METHOD_GET,
69
  '/',
70
+ new AdsInterest(),
71
  'NODE',
72
+ AdsInterest::getFieldsEnum()->getValues(),
73
  new TypeChecker($param_types, $enums)
74
  );
75
  $request->addParams($params);
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdsPixel.php CHANGED
@@ -72,30 +72,6 @@ class AdsPixel extends AbstractCrudObject {
72
  }
73
 
74
 
75
- public function deleteAssignedUsers(array $fields = array(), array $params = array(), $pending = false) {
76
- $this->assureId();
77
-
78
- $param_types = array(
79
- 'user' => 'int',
80
- );
81
- $enums = array(
82
- );
83
-
84
- $request = new ApiRequest(
85
- $this->api,
86
- $this->data['id'],
87
- RequestInterface::METHOD_DELETE,
88
- '/assigned_users',
89
- new AbstractCrudObject(),
90
- 'EDGE',
91
- array(),
92
- new TypeChecker($param_types, $enums)
93
- );
94
- $request->addParams($params);
95
- $request->addFields($fields);
96
- return $pending ? $request : $request->execute();
97
- }
98
-
99
  public function getAssignedUsers(array $fields = array(), array $params = array(), $pending = false) {
100
  $this->assureId();
101
 
@@ -175,9 +151,13 @@ class AdsPixel extends AbstractCrudObject {
175
 
176
  $param_types = array(
177
  'data' => 'list<string>',
 
178
  'partner_agent' => 'string',
179
  'test_event_code' => 'string',
180
  'trace' => 'unsigned int',
 
 
 
181
  );
182
  $enums = array(
183
  );
@@ -355,7 +335,7 @@ class AdsPixel extends AbstractCrudObject {
355
  'enable_automatic_matching' => 'bool',
356
  'first_party_cookie_status' => 'first_party_cookie_status_enum',
357
  'name' => 'string',
358
- 'server_events_business_id' => 'string',
359
  );
360
  $enums = array(
361
  'automatic_matching_fields_enum' => AdsPixelAutomaticMatchingFieldsValues::getInstance()->getValues(),
72
  }
73
 
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  public function getAssignedUsers(array $fields = array(), array $params = array(), $pending = false) {
76
  $this->assureId();
77
 
151
 
152
  $param_types = array(
153
  'data' => 'list<string>',
154
+ 'namespace_id' => 'string',
155
  'partner_agent' => 'string',
156
  'test_event_code' => 'string',
157
  'trace' => 'unsigned int',
158
+ 'upload_id' => 'string',
159
+ 'upload_source' => 'string',
160
+ 'upload_tag' => 'string',
161
  );
162
  $enums = array(
163
  );
335
  'enable_automatic_matching' => 'bool',
336
  'first_party_cookie_status' => 'first_party_cookie_status_enum',
337
  'name' => 'string',
338
+ 'server_events_business_ids' => 'list<string>',
339
  );
340
  $enums = array(
341
  'automatic_matching_fields_enum' => AdsPixelAutomaticMatchingFieldsValues::getInstance()->getValues(),
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Album.php CHANGED
@@ -36,6 +36,7 @@ use FacebookAds\Object\Values\CommentOrderValues;
36
  use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues;
37
  use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues;
38
  use FacebookAds\Object\Values\ProfilePictureSourceTypeValues;
 
39
 
40
  /**
41
  * This class is auto-generated.
@@ -128,6 +129,29 @@ class Album extends AbstractCrudObject {
128
  return $pending ? $request : $request->execute();
129
  }
130
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  public function createLike(array $fields = array(), array $params = array(), $pending = false) {
132
  $this->assureId();
133
 
@@ -281,6 +305,31 @@ class Album extends AbstractCrudObject {
281
  return $pending ? $request : $request->execute();
282
  }
283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  public function getSharedPosts(array $fields = array(), array $params = array(), $pending = false) {
285
  $this->assureId();
286
 
36
  use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues;
37
  use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues;
38
  use FacebookAds\Object\Values\ProfilePictureSourceTypeValues;
39
+ use FacebookAds\Object\Values\ProfileTypeValues;
40
 
41
  /**
42
  * This class is auto-generated.
129
  return $pending ? $request : $request->execute();
130
  }
131
 
132
+ public function getLikes(array $fields = array(), array $params = array(), $pending = false) {
133
+ $this->assureId();
134
+
135
+ $param_types = array(
136
+ );
137
+ $enums = array(
138
+ );
139
+
140
+ $request = new ApiRequest(
141
+ $this->api,
142
+ $this->data['id'],
143
+ RequestInterface::METHOD_GET,
144
+ '/likes',
145
+ new Profile(),
146
+ 'EDGE',
147
+ Profile::getFieldsEnum()->getValues(),
148
+ new TypeChecker($param_types, $enums)
149
+ );
150
+ $request->addParams($params);
151
+ $request->addFields($fields);
152
+ return $pending ? $request : $request->execute();
153
+ }
154
+
155
  public function createLike(array $fields = array(), array $params = array(), $pending = false) {
156
  $this->assureId();
157
 
305
  return $pending ? $request : $request->execute();
306
  }
307
 
308
+ public function getReactions(array $fields = array(), array $params = array(), $pending = false) {
309
+ $this->assureId();
310
+
311
+ $param_types = array(
312
+ 'type' => 'type_enum',
313
+ );
314
+ $enums = array(
315
+ 'type_enum' => ProfileTypeValues::getInstance()->getValues(),
316
+ );
317
+
318
+ $request = new ApiRequest(
319
+ $this->api,
320
+ $this->data['id'],
321
+ RequestInterface::METHOD_GET,
322
+ '/reactions',
323
+ new Profile(),
324
+ 'EDGE',
325
+ Profile::getFieldsEnum()->getValues(),
326
+ new TypeChecker($param_types, $enums)
327
+ );
328
+ $request->addParams($params);
329
+ $request->addFields($fields);
330
+ return $pending ? $request : $request->execute();
331
+ }
332
+
333
  public function getSharedPosts(array $fields = array(), array $params = array(), $pending = false) {
334
  $this->assureId();
335
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Application.php CHANGED
@@ -192,6 +192,7 @@ class Application extends AbstractCrudObject {
192
  'include_video_data' => 'bool',
193
  'install_referrer' => 'string',
194
  'installer_package' => 'string',
 
195
  'migration_bundle' => 'string',
196
  'page_id' => 'unsigned int',
197
  'page_scoped_user_id' => 'unsigned int',
@@ -792,55 +793,6 @@ class Application extends AbstractCrudObject {
792
  return $pending ? $request : $request->execute();
793
  }
794
 
795
- public function getFullAppIndexingInfos(array $fields = array(), array $params = array(), $pending = false) {
796
- $this->assureId();
797
-
798
- $param_types = array(
799
- 'app_version' => 'string',
800
- );
801
- $enums = array(
802
- );
803
-
804
- $request = new ApiRequest(
805
- $this->api,
806
- $this->data['id'],
807
- RequestInterface::METHOD_GET,
808
- '/full_app_indexing_infos',
809
- new AbstractCrudObject(),
810
- 'EDGE',
811
- array(),
812
- new TypeChecker($param_types, $enums)
813
- );
814
- $request->addParams($params);
815
- $request->addFields($fields);
816
- return $pending ? $request : $request->execute();
817
- }
818
-
819
- public function createFullAppIndexingInfo(array $fields = array(), array $params = array(), $pending = false) {
820
- $this->assureId();
821
-
822
- $param_types = array(
823
- 'app_version' => 'string',
824
- 'full_app_indexing_info_classes' => 'list<map>',
825
- );
826
- $enums = array(
827
- );
828
-
829
- $request = new ApiRequest(
830
- $this->api,
831
- $this->data['id'],
832
- RequestInterface::METHOD_POST,
833
- '/full_app_indexing_infos',
834
- new AbstractCrudObject(),
835
- 'EDGE',
836
- array(),
837
- new TypeChecker($param_types, $enums)
838
- );
839
- $request->addParams($params);
840
- $request->addFields($fields);
841
- return $pending ? $request : $request->execute();
842
- }
843
-
844
  public function getInsightsPushSchedule(array $fields = array(), array $params = array(), $pending = false) {
845
  $this->assureId();
846
 
@@ -1116,39 +1068,6 @@ class Application extends AbstractCrudObject {
1116
  return $pending ? $request : $request->execute();
1117
  }
1118
 
1119
- public function createMonetization(array $fields = array(), array $params = array(), $pending = false) {
1120
- $this->assureId();
1121
-
1122
- $param_types = array(
1123
- 'breakdowns' => 'list<breakdowns_enum>',
1124
- 'campaign_id' => 'string',
1125
- 'device_list' => 'list<string>',
1126
- 'query_id' => 'string',
1127
- 'request_id' => 'string',
1128
- 'since' => 'datetime',
1129
- 'until' => 'datetime',
1130
- );
1131
- $enums = array(
1132
- 'breakdowns_enum' => array(
1133
- 'COUNTRY',
1134
- ),
1135
- );
1136
-
1137
- $request = new ApiRequest(
1138
- $this->api,
1139
- $this->data['id'],
1140
- RequestInterface::METHOD_POST,
1141
- '/monetization',
1142
- new AbstractCrudObject(),
1143
- 'EDGE',
1144
- array(),
1145
- new TypeChecker($param_types, $enums)
1146
- );
1147
- $request->addParams($params);
1148
- $request->addFields($fields);
1149
- return $pending ? $request : $request->execute();
1150
- }
1151
-
1152
  public function createOccludesPopup(array $fields = array(), array $params = array(), $pending = false) {
1153
  $this->assureId();
1154
 
@@ -1564,6 +1483,7 @@ class Application extends AbstractCrudObject {
1564
 
1565
  $param_types = array(
1566
  'data' => 'list<Object>',
 
1567
  );
1568
  $enums = array(
1569
  );
@@ -1620,7 +1540,6 @@ class Application extends AbstractCrudObject {
1620
  'app_domains' => 'list<string>',
1621
  'app_name' => 'string',
1622
  'app_type' => 'bool',
1623
- 'auth_dialog_data_help_url' => 'string',
1624
  'auth_dialog_headline' => 'string',
1625
  'auth_dialog_perms_explanation' => 'string',
1626
  'auth_referral_default_activity_privacy' => 'string',
@@ -1632,28 +1551,20 @@ class Application extends AbstractCrudObject {
1632
  'canvas_fluid_height' => 'bool',
1633
  'canvas_fluid_width' => 'bool',
1634
  'canvas_url' => 'string',
1635
- 'category' => 'string',
1636
  'configured_ios_sso' => 'bool',
1637
  'contact_email' => 'string',
1638
- 'created_time' => 'Object',
1639
- 'creator_uid' => 'int',
1640
  'deauth_callback_url' => 'string',
1641
- 'hosting_url' => 'string',
1642
  'ios_bundle_id' => 'list<string>',
1643
  'ipad_app_store_id' => 'string',
1644
  'iphone_app_store_id' => 'string',
1645
- 'migrations' => 'string',
1646
  'mobile_web_url' => 'string',
1647
  'namespace' => 'string',
1648
  'page_tab_default_name' => 'string',
1649
- 'page_tab_url' => 'string',
1650
  'privacy_policy_url' => 'string',
1651
  'restrictions' => 'string',
1652
  'secure_canvas_url' => 'string',
1653
  'secure_page_tab_url' => 'string',
1654
  'server_ip_whitelist' => 'list<string>',
1655
- 'social_discovery' => 'bool',
1656
- 'subcategory' => 'string',
1657
  'terms_of_service_url' => 'string',
1658
  'url_scheme_suffix' => 'string',
1659
  'user_support_email' => 'string',
192
  'include_video_data' => 'bool',
193
  'install_referrer' => 'string',
194
  'installer_package' => 'string',
195
+ 'limited_data_use' => 'bool',
196
  'migration_bundle' => 'string',
197
  'page_id' => 'unsigned int',
198
  'page_scoped_user_id' => 'unsigned int',
793
  return $pending ? $request : $request->execute();
794
  }
795
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
796
  public function getInsightsPushSchedule(array $fields = array(), array $params = array(), $pending = false) {
797
  $this->assureId();
798
 
1068
  return $pending ? $request : $request->execute();
1069
  }
1070
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1071
  public function createOccludesPopup(array $fields = array(), array $params = array(), $pending = false) {
1072
  $this->assureId();
1073
 
1483
 
1484
  $param_types = array(
1485
  'data' => 'list<Object>',
1486
+ 'limited_data_use' => 'bool',
1487
  );
1488
  $enums = array(
1489
  );
1540
  'app_domains' => 'list<string>',
1541
  'app_name' => 'string',
1542
  'app_type' => 'bool',
 
1543
  'auth_dialog_headline' => 'string',
1544
  'auth_dialog_perms_explanation' => 'string',
1545
  'auth_referral_default_activity_privacy' => 'string',
1551
  'canvas_fluid_height' => 'bool',
1552
  'canvas_fluid_width' => 'bool',
1553
  'canvas_url' => 'string',
 
1554
  'configured_ios_sso' => 'bool',
1555
  'contact_email' => 'string',
 
 
1556
  'deauth_callback_url' => 'string',
 
1557
  'ios_bundle_id' => 'list<string>',
1558
  'ipad_app_store_id' => 'string',
1559
  'iphone_app_store_id' => 'string',
 
1560
  'mobile_web_url' => 'string',
1561
  'namespace' => 'string',
1562
  'page_tab_default_name' => 'string',
 
1563
  'privacy_policy_url' => 'string',
1564
  'restrictions' => 'string',
1565
  'secure_canvas_url' => 'string',
1566
  'secure_page_tab_url' => 'string',
1567
  'server_ip_whitelist' => 'list<string>',
 
 
1568
  'terms_of_service_url' => 'string',
1569
  'url_scheme_suffix' => 'string',
1570
  'user_support_email' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Business.php CHANGED
@@ -44,7 +44,9 @@ use FacebookAds\Object\Values\AdVideoUnpublishedContentTypeValues;
44
  use FacebookAds\Object\Values\AdVideoUploadPhaseValues;
45
  use FacebookAds\Object\Values\AdVideoValidationAdPlacementsValues;
46
  use FacebookAds\Object\Values\AdsPixelSortByValues;
 
47
  use FacebookAds\Object\Values\BusinessAssetSharingAgreementRequestStatusValues;
 
48
  use FacebookAds\Object\Values\BusinessImageValidationAdPlacementsValues;
49
  use FacebookAds\Object\Values\BusinessPagePermittedTasksValues;
50
  use FacebookAds\Object\Values\BusinessPermittedTasksValues;
@@ -434,6 +436,32 @@ class Business extends AbstractCrudObject {
434
  return $pending ? $request : $request->execute();
435
  }
436
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
437
  public function createBlockListDraft(array $fields = array(), array $params = array(), $pending = false) {
438
  $this->assureId();
439
 
@@ -870,11 +898,35 @@ class Business extends AbstractCrudObject {
870
  return $pending ? $request : $request->execute();
871
  }
872
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
873
  public function getContentDeliveryReport(array $fields = array(), array $params = array(), $pending = false) {
874
  $this->assureId();
875
 
876
  $param_types = array(
877
  'end_date' => 'datetime',
 
878
  'platform' => 'platform_enum',
879
  'position' => 'position_enum',
880
  'start_date' => 'datetime',
@@ -900,6 +952,29 @@ class Business extends AbstractCrudObject {
900
  return $pending ? $request : $request->execute();
901
  }
902
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
903
  public function getCreativeFolders(array $fields = array(), array $params = array(), $pending = false) {
904
  $this->assureId();
905
 
@@ -1056,6 +1131,7 @@ class Business extends AbstractCrudObject {
1056
  $this->assureId();
1057
 
1058
  $param_types = array(
 
1059
  );
1060
  $enums = array(
1061
  );
@@ -1130,6 +1206,32 @@ class Business extends AbstractCrudObject {
1130
  return $pending ? $request : $request->execute();
1131
  }
1132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1133
  public function deleteInstagramAccounts(array $fields = array(), array $params = array(), $pending = false) {
1134
  $this->assureId();
1135
 
@@ -1537,7 +1639,7 @@ class Business extends AbstractCrudObject {
1537
  $this->assureId();
1538
 
1539
  $param_types = array(
1540
- 'ig_password' => 'string',
1541
  'page_id' => 'int',
1542
  );
1543
  $enums = array(
@@ -1608,10 +1710,12 @@ class Business extends AbstractCrudObject {
1608
  $this->assureId();
1609
 
1610
  $param_types = array(
 
1611
  'da_display_settings' => 'Object',
1612
  'destination_catalog_settings' => 'map',
1613
  'flight_catalog_settings' => 'map',
1614
  'name' => 'string',
 
1615
  'store_catalog_settings' => 'map',
1616
  'vertical' => 'vertical_enum',
1617
  );
@@ -1848,7 +1952,7 @@ class Business extends AbstractCrudObject {
1848
  return $pending ? $request : $request->execute();
1849
  }
1850
 
1851
- public function getPixelTos(array $fields = array(), array $params = array(), $pending = false) {
1852
  $this->assureId();
1853
 
1854
  $param_types = array(
@@ -1859,11 +1963,11 @@ class Business extends AbstractCrudObject {
1859
  $request = new ApiRequest(
1860
  $this->api,
1861
  $this->data['id'],
1862
- RequestInterface::METHOD_GET,
1863
  '/pixel_tos',
1864
- new BusinessPixelTOS(),
1865
  'EDGE',
1866
- BusinessPixelTOS::getFieldsEnum()->getValues(),
1867
  new TypeChecker($param_types, $enums)
1868
  );
1869
  $request->addParams($params);
@@ -1871,22 +1975,25 @@ class Business extends AbstractCrudObject {
1871
  return $pending ? $request : $request->execute();
1872
  }
1873
 
1874
- public function createPixelTo(array $fields = array(), array $params = array(), $pending = false) {
1875
  $this->assureId();
1876
 
1877
  $param_types = array(
 
 
1878
  );
1879
  $enums = array(
 
1880
  );
1881
 
1882
  $request = new ApiRequest(
1883
  $this->api,
1884
  $this->data['id'],
1885
- RequestInterface::METHOD_POST,
1886
- '/pixel_tos',
1887
- new BusinessPixelTOS(),
1888
  'EDGE',
1889
- BusinessPixelTOS::getFieldsEnum()->getValues(),
1890
  new TypeChecker($param_types, $enums)
1891
  );
1892
  $request->addParams($params);
@@ -1894,25 +2001,25 @@ class Business extends AbstractCrudObject {
1894
  return $pending ? $request : $request->execute();
1895
  }
1896
 
1897
- public function getReceivedAudienceSharingRequests(array $fields = array(), array $params = array(), $pending = false) {
1898
  $this->assureId();
1899
 
1900
  $param_types = array(
1901
- 'initiator_id' => 'string',
1902
  'request_status' => 'request_status_enum',
 
1903
  );
1904
  $enums = array(
1905
- 'request_status_enum' => BusinessAssetSharingAgreementRequestStatusValues::getInstance()->getValues(),
1906
  );
1907
 
1908
  $request = new ApiRequest(
1909
  $this->api,
1910
  $this->data['id'],
1911
  RequestInterface::METHOD_GET,
1912
- '/received_audience_sharing_requests',
1913
- new BusinessAssetSharingAgreement(),
1914
  'EDGE',
1915
- BusinessAssetSharingAgreement::getFieldsEnum()->getValues(),
1916
  new TypeChecker($param_types, $enums)
1917
  );
1918
  $request->addParams($params);
44
  use FacebookAds\Object\Values\AdVideoUploadPhaseValues;
45
  use FacebookAds\Object\Values\AdVideoValidationAdPlacementsValues;
46
  use FacebookAds\Object\Values\AdsPixelSortByValues;
47
+ use FacebookAds\Object\Values\BusinessAgreementRequestStatusValues;
48
  use FacebookAds\Object\Values\BusinessAssetSharingAgreementRequestStatusValues;
49
+ use FacebookAds\Object\Values\BusinessCreativeFolderSharingAgreementRequestStatusValues;
50
  use FacebookAds\Object\Values\BusinessImageValidationAdPlacementsValues;
51
  use FacebookAds\Object\Values\BusinessPagePermittedTasksValues;
52
  use FacebookAds\Object\Values\BusinessPermittedTasksValues;
436
  return $pending ? $request : $request->execute();
437
  }
438
 
439
+ public function getAttemptedSharingAgreements(array $fields = array(), array $params = array(), $pending = false) {
440
+ $this->assureId();
441
+
442
+ $param_types = array(
443
+ 'request_status' => 'request_status_enum',
444
+ 'requesting_business_id' => 'string',
445
+ );
446
+ $enums = array(
447
+ 'request_status_enum' => BusinessCreativeFolderSharingAgreementRequestStatusValues::getInstance()->getValues(),
448
+ );
449
+
450
+ $request = new ApiRequest(
451
+ $this->api,
452
+ $this->data['id'],
453
+ RequestInterface::METHOD_GET,
454
+ '/attempted_sharing_agreements',
455
+ new BusinessCreativeFolderSharingAgreement(),
456
+ 'EDGE',
457
+ BusinessCreativeFolderSharingAgreement::getFieldsEnum()->getValues(),
458
+ new TypeChecker($param_types, $enums)
459
+ );
460
+ $request->addParams($params);
461
+ $request->addFields($fields);
462
+ return $pending ? $request : $request->execute();
463
+ }
464
+
465
  public function createBlockListDraft(array $fields = array(), array $params = array(), $pending = false) {
466
  $this->assureId();
467
 
898
  return $pending ? $request : $request->execute();
899
  }
900
 
901
+ public function getCommerceMerchantSettings(array $fields = array(), array $params = array(), $pending = false) {
902
+ $this->assureId();
903
+
904
+ $param_types = array(
905
+ );
906
+ $enums = array(
907
+ );
908
+
909
+ $request = new ApiRequest(
910
+ $this->api,
911
+ $this->data['id'],
912
+ RequestInterface::METHOD_GET,
913
+ '/commerce_merchant_settings',
914
+ new CommerceMerchantSettings(),
915
+ 'EDGE',
916
+ CommerceMerchantSettings::getFieldsEnum()->getValues(),
917
+ new TypeChecker($param_types, $enums)
918
+ );
919
+ $request->addParams($params);
920
+ $request->addFields($fields);
921
+ return $pending ? $request : $request->execute();
922
+ }
923
+
924
  public function getContentDeliveryReport(array $fields = array(), array $params = array(), $pending = false) {
925
  $this->assureId();
926
 
927
  $param_types = array(
928
  'end_date' => 'datetime',
929
+ 'page_id' => 'unsigned int',
930
  'platform' => 'platform_enum',
931
  'position' => 'position_enum',
932
  'start_date' => 'datetime',
952
  return $pending ? $request : $request->execute();
953
  }
954
 
955
+ public function getCreativeAssetTags(array $fields = array(), array $params = array(), $pending = false) {
956
+ $this->assureId();
957
+
958
+ $param_types = array(
959
+ );
960
+ $enums = array(
961
+ );
962
+
963
+ $request = new ApiRequest(
964
+ $this->api,
965
+ $this->data['id'],
966
+ RequestInterface::METHOD_GET,
967
+ '/creative_asset_tags',
968
+ new CreativeAssetTag(),
969
+ 'EDGE',
970
+ CreativeAssetTag::getFieldsEnum()->getValues(),
971
+ new TypeChecker($param_types, $enums)
972
+ );
973
+ $request->addParams($params);
974
+ $request->addFields($fields);
975
+ return $pending ? $request : $request->execute();
976
+ }
977
+
978
  public function getCreativeFolders(array $fields = array(), array $params = array(), $pending = false) {
979
  $this->assureId();
980
 
1131
  $this->assureId();
1132
 
1133
  $param_types = array(
1134
+ 'order_by_is_owned_credential' => 'bool',
1135
  );
1136
  $enums = array(
1137
  );
1206
  return $pending ? $request : $request->execute();
1207
  }
1208
 
1209
+ public function getInitiatedSharingAgreements(array $fields = array(), array $params = array(), $pending = false) {
1210
+ $this->assureId();
1211
+
1212
+ $param_types = array(
1213
+ 'receiving_business_id' => 'string',
1214
+ 'request_status' => 'request_status_enum',
1215
+ );
1216
+ $enums = array(
1217
+ 'request_status_enum' => BusinessAgreementRequestStatusValues::getInstance()->getValues(),
1218
+ );
1219
+
1220
+ $request = new ApiRequest(
1221
+ $this->api,
1222
+ $this->data['id'],
1223
+ RequestInterface::METHOD_GET,
1224
+ '/initiated_sharing_agreements',
1225
+ new BusinessAgreement(),
1226
+ 'EDGE',
1227
+ BusinessAgreement::getFieldsEnum()->getValues(),
1228
+ new TypeChecker($param_types, $enums)
1229
+ );
1230
+ $request->addParams($params);
1231
+ $request->addFields($fields);
1232
+ return $pending ? $request : $request->execute();
1233
+ }
1234
+
1235
  public function deleteInstagramAccounts(array $fields = array(), array $params = array(), $pending = false) {
1236
  $this->assureId();
1237
 
1639
  $this->assureId();
1640
 
1641
  $param_types = array(
1642
+ 'code' => 'string',
1643
  'page_id' => 'int',
1644
  );
1645
  $enums = array(
1710
  $this->assureId();
1711
 
1712
  $param_types = array(
1713
+ 'commerce_merchant_settings' => 'Object',
1714
  'da_display_settings' => 'Object',
1715
  'destination_catalog_settings' => 'map',
1716
  'flight_catalog_settings' => 'map',
1717
  'name' => 'string',
1718
+ 'onsite_commerce_merchant' => 'Object',
1719
  'store_catalog_settings' => 'map',
1720
  'vertical' => 'vertical_enum',
1721
  );
1952
  return $pending ? $request : $request->execute();
1953
  }
1954
 
1955
+ public function createPixelTo(array $fields = array(), array $params = array(), $pending = false) {
1956
  $this->assureId();
1957
 
1958
  $param_types = array(
1963
  $request = new ApiRequest(
1964
  $this->api,
1965
  $this->data['id'],
1966
+ RequestInterface::METHOD_POST,
1967
  '/pixel_tos',
1968
+ new AbstractCrudObject(),
1969
  'EDGE',
1970
+ array(),
1971
  new TypeChecker($param_types, $enums)
1972
  );
1973
  $request->addParams($params);
1975
  return $pending ? $request : $request->execute();
1976
  }
1977
 
1978
+ public function getReceivedAudienceSharingRequests(array $fields = array(), array $params = array(), $pending = false) {
1979
  $this->assureId();
1980
 
1981
  $param_types = array(
1982
+ 'initiator_id' => 'string',
1983
+ 'request_status' => 'request_status_enum',
1984
  );
1985
  $enums = array(
1986
+ 'request_status_enum' => BusinessAssetSharingAgreementRequestStatusValues::getInstance()->getValues(),
1987
  );
1988
 
1989
  $request = new ApiRequest(
1990
  $this->api,
1991
  $this->data['id'],
1992
+ RequestInterface::METHOD_GET,
1993
+ '/received_audience_sharing_requests',
1994
+ new BusinessAssetSharingAgreement(),
1995
  'EDGE',
1996
+ BusinessAssetSharingAgreement::getFieldsEnum()->getValues(),
1997
  new TypeChecker($param_types, $enums)
1998
  );
1999
  $request->addParams($params);
2001
  return $pending ? $request : $request->execute();
2002
  }
2003
 
2004
+ public function getReceivedSharingAgreements(array $fields = array(), array $params = array(), $pending = false) {
2005
  $this->assureId();
2006
 
2007
  $param_types = array(
 
2008
  'request_status' => 'request_status_enum',
2009
+ 'requesting_business_id' => 'string',
2010
  );
2011
  $enums = array(
2012
+ 'request_status_enum' => BusinessAgreementRequestStatusValues::getInstance()->getValues(),
2013
  );
2014
 
2015
  $request = new ApiRequest(
2016
  $this->api,
2017
  $this->data['id'],
2018
  RequestInterface::METHOD_GET,
2019
+ '/received_sharing_agreements',
2020
+ new BusinessAgreement(),
2021
  'EDGE',
2022
+ BusinessAgreement::getFieldsEnum()->getValues(),
2023
  new TypeChecker($param_types, $enums)
2024
  );
2025
  $request->addParams($params);
vendor/facebook/php-business-sdk/src/FacebookAds/Object/{OpenGraphObject.php → BusinessAgreement.php} RENAMED
@@ -28,8 +28,8 @@ use FacebookAds\ApiRequest;
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\OpenGraphObjectFields;
32
- use FacebookAds\Object\Values\ProfileTypeValues;
33
 
34
  /**
35
  * This class is auto-generated.
@@ -40,39 +40,38 @@ use FacebookAds\Object\Values\ProfileTypeValues;
40
  *
41
  */
42
 
43
- class OpenGraphObject extends AbstractCrudObject {
44
 
45
  /**
46
- * @return OpenGraphObjectFields
47
  */
48
  public static function getFieldsEnum() {
49
- return OpenGraphObjectFields::getInstance();
50
  }
51
 
52
  protected static function getReferencedEnums() {
53
  $ref_enums = array();
 
54
  return $ref_enums;
55
  }
56
 
57
 
58
- public function getReactions(array $fields = array(), array $params = array(), $pending = false) {
59
  $this->assureId();
60
 
61
  $param_types = array(
62
- 'type' => 'type_enum',
63
  );
64
  $enums = array(
65
- 'type_enum' => ProfileTypeValues::getInstance()->getValues(),
66
  );
67
 
68
  $request = new ApiRequest(
69
  $this->api,
70
  $this->data['id'],
71
  RequestInterface::METHOD_GET,
72
- '/reactions',
73
- new Profile(),
74
- 'EDGE',
75
- Profile::getFieldsEnum()->getValues(),
76
  new TypeChecker($param_types, $enums)
77
  );
78
  $request->addParams($params);
@@ -80,22 +79,25 @@ class OpenGraphObject extends AbstractCrudObject {
80
  return $pending ? $request : $request->execute();
81
  }
82
 
83
- public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
84
  $this->assureId();
85
 
86
  $param_types = array(
 
 
87
  );
88
  $enums = array(
 
89
  );
90
 
91
  $request = new ApiRequest(
92
  $this->api,
93
  $this->data['id'],
94
- RequestInterface::METHOD_GET,
95
  '/',
96
- new OpenGraphObject(),
97
  'NODE',
98
- OpenGraphObject::getFieldsEnum()->getValues(),
99
  new TypeChecker($param_types, $enums)
100
  );
101
  $request->addParams($params);
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\BusinessAgreementFields;
32
+ use FacebookAds\Object\Values\BusinessAgreementRequestStatusValues;
33
 
34
  /**
35
  * This class is auto-generated.
40
  *
41
  */
42
 
43
+ class BusinessAgreement extends AbstractCrudObject {
44
 
45
  /**
46
+ * @return BusinessAgreementFields
47
  */
48
  public static function getFieldsEnum() {
49
+ return BusinessAgreementFields::getInstance();
50
  }
51
 
52
  protected static function getReferencedEnums() {
53
  $ref_enums = array();
54
+ $ref_enums['RequestStatus'] = BusinessAgreementRequestStatusValues::getInstance()->getValues();
55
  return $ref_enums;
56
  }
57
 
58
 
59
+ public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
60
  $this->assureId();
61
 
62
  $param_types = array(
 
63
  );
64
  $enums = array(
 
65
  );
66
 
67
  $request = new ApiRequest(
68
  $this->api,
69
  $this->data['id'],
70
  RequestInterface::METHOD_GET,
71
+ '/',
72
+ new BusinessAgreement(),
73
+ 'NODE',
74
+ BusinessAgreement::getFieldsEnum()->getValues(),
75
  new TypeChecker($param_types, $enums)
76
  );
77
  $request->addParams($params);
79
  return $pending ? $request : $request->execute();
80
  }
81
 
82
+ public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
83
  $this->assureId();
84
 
85
  $param_types = array(
86
+ 'asset_id' => 'unsigned int',
87
+ 'request_status' => 'request_status_enum',
88
  );
89
  $enums = array(
90
+ 'request_status_enum' => BusinessAgreementRequestStatusValues::getInstance()->getValues(),
91
  );
92
 
93
  $request = new ApiRequest(
94
  $this->api,
95
  $this->data['id'],
96
+ RequestInterface::METHOD_POST,
97
  '/',
98
+ new BusinessAgreement(),
99
  'NODE',
100
+ BusinessAgreement::getFieldsEnum()->getValues(),
101
  new TypeChecker($param_types, $enums)
102
  );
103
  $request->addParams($params);
vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessCreativeFolder.php CHANGED
@@ -65,30 +65,6 @@ class BusinessCreativeFolder extends AbstractCrudObject {
65
  }
66
 
67
 
68
- public function deleteAgencies(array $fields = array(), array $params = array(), $pending = false) {
69
- $this->assureId();
70
-
71
- $param_types = array(
72
- 'business' => 'string',
73
- );
74
- $enums = array(
75
- );
76
-
77
- $request = new ApiRequest(
78
- $this->api,
79
- $this->data['id'],
80
- RequestInterface::METHOD_DELETE,
81
- '/agencies',
82
- new AbstractCrudObject(),
83
- 'EDGE',
84
- array(),
85
- new TypeChecker($param_types, $enums)
86
- );
87
- $request->addParams($params);
88
- $request->addFields($fields);
89
- return $pending ? $request : $request->execute();
90
- }
91
-
92
  public function getAgencies(array $fields = array(), array $params = array(), $pending = false) {
93
  $this->assureId();
94
 
65
  }
66
 
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  public function getAgencies(array $fields = array(), array $params = array(), $pending = false) {
69
  $this->assureId();
70
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessCreativeFolderSharingAgreement.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object;
26
+
27
+ use FacebookAds\ApiRequest;
28
+ use FacebookAds\Cursor;
29
+ use FacebookAds\Http\RequestInterface;
30
+ use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\BusinessCreativeFolderSharingAgreementFields;
32
+ use FacebookAds\Object\Values\BusinessCreativeFolderSharingAgreementRequestStatusValues;
33
+
34
+ /**
35
+ * This class is auto-generated.
36
+ *
37
+ * For any issues or feature requests related to this class, please let us know
38
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
39
+ * pull request for this class.
40
+ *
41
+ */
42
+
43
+ class BusinessCreativeFolderSharingAgreement extends AbstractCrudObject {
44
+
45
+ /**
46
+ * @return BusinessCreativeFolderSharingAgreementFields
47
+ */
48
+ public static function getFieldsEnum() {
49
+ return BusinessCreativeFolderSharingAgreementFields::getInstance();
50
+ }
51
+
52
+ protected static function getReferencedEnums() {
53
+ $ref_enums = array();
54
+ $ref_enums['RequestStatus'] = BusinessCreativeFolderSharingAgreementRequestStatusValues::getInstance()->getValues();
55
+ return $ref_enums;
56
+ }
57
+
58
+
59
+ public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
60
+ $this->assureId();
61
+
62
+ $param_types = array(
63
+ );
64
+ $enums = array(
65
+ );
66
+
67
+ $request = new ApiRequest(
68
+ $this->api,
69
+ $this->data['id'],
70
+ RequestInterface::METHOD_GET,
71
+ '/',
72
+ new BusinessCreativeFolderSharingAgreement(),
73
+ 'NODE',
74
+ BusinessCreativeFolderSharingAgreement::getFieldsEnum()->getValues(),
75
+ new TypeChecker($param_types, $enums)
76
+ );
77
+ $request->addParams($params);
78
+ $request->addFields($fields);
79
+ return $pending ? $request : $request->execute();
80
+ }
81
+
82
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessImage.php CHANGED
@@ -86,6 +86,80 @@ class BusinessImage extends AbstractCrudObject {
86
  return $pending ? $request : $request->execute();
87
  }
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  public function getInsights(array $fields = array(), array $params = array(), $pending = false) {
90
  $this->assureId();
91
 
86
  return $pending ? $request : $request->execute();
87
  }
88
 
89
+ public function deleteCreativeAssetTags(array $fields = array(), array $params = array(), $pending = false) {
90
+ $this->assureId();
91
+
92
+ $param_types = array(
93
+ 'business_id' => 'string',
94
+ 'tag_name' => 'string',
95
+ );
96
+ $enums = array(
97
+ );
98
+
99
+ $request = new ApiRequest(
100
+ $this->api,
101
+ $this->data['id'],
102
+ RequestInterface::METHOD_DELETE,
103
+ '/creative_asset_tags',
104
+ new AbstractCrudObject(),
105
+ 'EDGE',
106
+ array(),
107
+ new TypeChecker($param_types, $enums)
108
+ );
109
+ $request->addParams($params);
110
+ $request->addFields($fields);
111
+ return $pending ? $request : $request->execute();
112
+ }
113
+
114
+ public function getCreativeAssetTags(array $fields = array(), array $params = array(), $pending = false) {
115
+ $this->assureId();
116
+
117
+ $param_types = array(
118
+ 'business_id' => 'string',
119
+ );
120
+ $enums = array(
121
+ );
122
+
123
+ $request = new ApiRequest(
124
+ $this->api,
125
+ $this->data['id'],
126
+ RequestInterface::METHOD_GET,
127
+ '/creative_asset_tags',
128
+ new CreativeAssetTag(),
129
+ 'EDGE',
130
+ CreativeAssetTag::getFieldsEnum()->getValues(),
131
+ new TypeChecker($param_types, $enums)
132
+ );
133
+ $request->addParams($params);
134
+ $request->addFields($fields);
135
+ return $pending ? $request : $request->execute();
136
+ }
137
+
138
+ public function createCreativeAssetTag(array $fields = array(), array $params = array(), $pending = false) {
139
+ $this->assureId();
140
+
141
+ $param_types = array(
142
+ 'business_id' => 'string',
143
+ 'tag_name' => 'string',
144
+ );
145
+ $enums = array(
146
+ );
147
+
148
+ $request = new ApiRequest(
149
+ $this->api,
150
+ $this->data['id'],
151
+ RequestInterface::METHOD_POST,
152
+ '/creative_asset_tags',
153
+ new BusinessImage(),
154
+ 'EDGE',
155
+ BusinessImage::getFieldsEnum()->getValues(),
156
+ new TypeChecker($param_types, $enums)
157
+ );
158
+ $request->addParams($params);
159
+ $request->addFields($fields);
160
+ return $pending ? $request : $request->execute();
161
+ }
162
+
163
  public function getInsights(array $fields = array(), array $params = array(), $pending = false) {
164
  $this->assureId();
165
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessOwnedObjectOnBehalfOfRequest.php CHANGED
@@ -56,29 +56,6 @@ class BusinessOwnedObjectOnBehalfOfRequest extends AbstractCrudObject {
56
  }
57
 
58
 
59
- public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) {
60
- $this->assureId();
61
-
62
- $param_types = array(
63
- );
64
- $enums = array(
65
- );
66
-
67
- $request = new ApiRequest(
68
- $this->api,
69
- $this->data['id'],
70
- RequestInterface::METHOD_DELETE,
71
- '/',
72
- new AbstractCrudObject(),
73
- 'NODE',
74
- array(),
75
- new TypeChecker($param_types, $enums)
76
- );
77
- $request->addParams($params);
78
- $request->addFields($fields);
79
- return $pending ? $request : $request->execute();
80
- }
81
-
82
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
83
  $this->assureId();
84
 
56
  }
57
 
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
60
  $this->assureId();
61
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Campaign.php CHANGED
@@ -46,6 +46,7 @@ use FacebookAds\Object\Values\CampaignEffectiveStatusValues;
46
  use FacebookAds\Object\Values\CampaignExecutionOptionsValues;
47
  use FacebookAds\Object\Values\CampaignObjectiveValues;
48
  use FacebookAds\Object\Values\CampaignOperatorValues;
 
49
  use FacebookAds\Object\Values\CampaignSpecialAdCategoryValues;
50
  use FacebookAds\Object\Values\CampaignStatusOptionValues;
51
  use FacebookAds\Object\Values\CampaignStatusValues;
@@ -91,8 +92,9 @@ class Campaign extends AbstractArchivableCrudObject {
91
  $ref_enums['DatePreset'] = CampaignDatePresetValues::getInstance()->getValues();
92
  $ref_enums['ExecutionOptions'] = CampaignExecutionOptionsValues::getInstance()->getValues();
93
  $ref_enums['Objective'] = CampaignObjectiveValues::getInstance()->getValues();
94
- $ref_enums['SpecialAdCategory'] = CampaignSpecialAdCategoryValues::getInstance()->getValues();
95
  $ref_enums['Operator'] = CampaignOperatorValues::getInstance()->getValues();
 
96
  $ref_enums['StatusOption'] = CampaignStatusOptionValues::getInstance()->getValues();
97
  return $ref_enums;
98
  }
@@ -175,10 +177,8 @@ class Campaign extends AbstractArchivableCrudObject {
175
  $this->assureId();
176
 
177
  $param_types = array(
178
- 'ad_draft_id' => 'string',
179
  'date_preset' => 'date_preset_enum',
180
  'effective_status' => 'list<string>',
181
- 'include_drafts' => 'bool',
182
  'time_range' => 'Object',
183
  'updated_since' => 'int',
184
  );
@@ -205,10 +205,8 @@ class Campaign extends AbstractArchivableCrudObject {
205
  $this->assureId();
206
 
207
  $param_types = array(
208
- 'ad_draft_id' => 'string',
209
  'date_preset' => 'date_preset_enum',
210
  'effective_status' => 'list<effective_status_enum>',
211
- 'include_drafts' => 'bool',
212
  'is_completed' => 'bool',
213
  'time_range' => 'Object',
214
  );
@@ -237,6 +235,7 @@ class Campaign extends AbstractArchivableCrudObject {
237
 
238
  $param_types = array(
239
  'end_date' => 'datetime',
 
240
  'platform' => 'platform_enum',
241
  'position' => 'position_enum',
242
  'start_date' => 'datetime',
@@ -508,6 +507,7 @@ class Campaign extends AbstractArchivableCrudObject {
508
  'objective' => 'objective_enum',
509
  'pacing_type' => 'list<string>',
510
  'promoted_object' => 'Object',
 
511
  'special_ad_category' => 'special_ad_category_enum',
512
  'spend_cap' => 'unsigned int',
513
  'status' => 'status_enum',
@@ -517,6 +517,7 @@ class Campaign extends AbstractArchivableCrudObject {
517
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
518
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
519
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
 
520
  'special_ad_category_enum' => CampaignSpecialAdCategoryValues::getInstance()->getValues(),
521
  'status_enum' => CampaignStatusValues::getInstance()->getValues(),
522
  );
46
  use FacebookAds\Object\Values\CampaignExecutionOptionsValues;
47
  use FacebookAds\Object\Values\CampaignObjectiveValues;
48
  use FacebookAds\Object\Values\CampaignOperatorValues;
49
+ use FacebookAds\Object\Values\CampaignSpecialAdCategoriesValues;
50
  use FacebookAds\Object\Values\CampaignSpecialAdCategoryValues;
51
  use FacebookAds\Object\Values\CampaignStatusOptionValues;
52
  use FacebookAds\Object\Values\CampaignStatusValues;
92
  $ref_enums['DatePreset'] = CampaignDatePresetValues::getInstance()->getValues();
93
  $ref_enums['ExecutionOptions'] = CampaignExecutionOptionsValues::getInstance()->getValues();
94
  $ref_enums['Objective'] = CampaignObjectiveValues::getInstance()->getValues();
95
+ $ref_enums['SpecialAdCategories'] = CampaignSpecialAdCategoriesValues::getInstance()->getValues();
96
  $ref_enums['Operator'] = CampaignOperatorValues::getInstance()->getValues();
97
+ $ref_enums['SpecialAdCategory'] = CampaignSpecialAdCategoryValues::getInstance()->getValues();
98
  $ref_enums['StatusOption'] = CampaignStatusOptionValues::getInstance()->getValues();
99
  return $ref_enums;
100
  }
177
  $this->assureId();
178
 
179
  $param_types = array(
 
180
  'date_preset' => 'date_preset_enum',
181
  'effective_status' => 'list<string>',
 
182
  'time_range' => 'Object',
183
  'updated_since' => 'int',
184
  );
205
  $this->assureId();
206
 
207
  $param_types = array(
 
208
  'date_preset' => 'date_preset_enum',
209
  'effective_status' => 'list<effective_status_enum>',
 
210
  'is_completed' => 'bool',
211
  'time_range' => 'Object',
212
  );
235
 
236
  $param_types = array(
237
  'end_date' => 'datetime',
238
+ 'page_id' => 'unsigned int',
239
  'platform' => 'platform_enum',
240
  'position' => 'position_enum',
241
  'start_date' => 'datetime',
507
  'objective' => 'objective_enum',
508
  'pacing_type' => 'list<string>',
509
  'promoted_object' => 'Object',
510
+ 'special_ad_categories' => 'list<special_ad_categories_enum>',
511
  'special_ad_category' => 'special_ad_category_enum',
512
  'spend_cap' => 'unsigned int',
513
  'status' => 'status_enum',
517
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
518
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
519
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
520
+ 'special_ad_categories_enum' => CampaignSpecialAdCategoriesValues::getInstance()->getValues(),
521
  'special_ad_category_enum' => CampaignSpecialAdCategoryValues::getInstance()->getValues(),
522
  'status_enum' => CampaignStatusValues::getInstance()->getValues(),
523
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/{LeadGenFormPreviewDetails.php → CatalogItemAppLinks.php} RENAMED
@@ -28,7 +28,7 @@ use FacebookAds\ApiRequest;
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\LeadGenFormPreviewDetailsFields;
32
 
33
  /**
34
  * This class is auto-generated.
@@ -39,13 +39,13 @@ use FacebookAds\Object\Fields\LeadGenFormPreviewDetailsFields;
39
  *
40
  */
41
 
42
- class LeadGenFormPreviewDetails extends AbstractObject {
43
 
44
  /**
45
- * @return LeadGenFormPreviewDetailsFields
46
  */
47
  public static function getFieldsEnum() {
48
- return LeadGenFormPreviewDetailsFields::getInstance();
49
  }
50
 
51
  protected static function getReferencedEnums() {
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\CatalogItemAppLinksFields;
32
 
33
  /**
34
  * This class is auto-generated.
39
  *
40
  */
41
 
42
+ class CatalogItemAppLinks extends AbstractObject {
43
 
44
  /**
45
+ * @return CatalogItemAppLinksFields
46
  */
47
  public static function getFieldsEnum() {
48
+ return CatalogItemAppLinksFields::getInstance();
49
  }
50
 
51
  protected static function getReferencedEnums() {
vendor/facebook/php-business-sdk/src/FacebookAds/Object/{CustomAudiencePrefillState.php → CatalogItemAppealStatus.php} RENAMED
@@ -28,7 +28,7 @@ use FacebookAds\ApiRequest;
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\CustomAudiencePrefillStateFields;
32
 
33
  /**
34
  * This class is auto-generated.
@@ -39,13 +39,13 @@ use FacebookAds\Object\Fields\CustomAudiencePrefillStateFields;
39
  *
40
  */
41
 
42
- class CustomAudiencePrefillState extends AbstractObject {
43
 
44
  /**
45
- * @return CustomAudiencePrefillStateFields
46
  */
47
  public static function getFieldsEnum() {
48
- return CustomAudiencePrefillStateFields::getInstance();
49
  }
50
 
51
  protected static function getReferencedEnums() {
28
  use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\CatalogItemAppealStatusFields;
32
 
33
  /**
34
  * This class is auto-generated.
39
  *
40
  */
41
 
42
+ class CatalogItemAppealStatus extends AbstractObject {
43
 
44
  /**
45
+ * @return CatalogItemAppealStatusFields
46
  */
47
  public static function getFieldsEnum() {
48
+ return CatalogItemAppealStatusFields::getInstance();
49
  }
50
 
51
  protected static function getReferencedEnums() {
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Comment.php CHANGED
@@ -156,6 +156,29 @@ class Comment extends AbstractCrudObject {
156
  return $pending ? $request : $request->execute();
157
  }
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  public function createLike(array $fields = array(), array $params = array(), $pending = false) {
160
  $this->assureId();
161
 
156
  return $pending ? $request : $request->execute();
157
  }
158
 
159
+ public function getLikes(array $fields = array(), array $params = array(), $pending = false) {
160
+ $this->assureId();
161
+
162
+ $param_types = array(
163
+ );
164
+ $enums = array(
165
+ );
166
+
167
+ $request = new ApiRequest(
168
+ $this->api,
169
+ $this->data['id'],
170
+ RequestInterface::METHOD_GET,
171
+ '/likes',
172
+ new Profile(),
173
+ 'EDGE',
174
+ Profile::getFieldsEnum()->getValues(),
175
+ new TypeChecker($param_types, $enums)
176
+ );
177
+ $request->addParams($params);
178
+ $request->addFields($fields);
179
+ return $pending ? $request : $request->execute();
180
+ }
181
+
182
  public function createLike(array $fields = array(), array $params = array(), $pending = false) {
183
  $this->assureId();
184
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettings.php ADDED
@@ -0,0 +1,332 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object;
26
+
27
+ use FacebookAds\ApiRequest;
28
+ use FacebookAds\Cursor;
29
+ use FacebookAds\Http\RequestInterface;
30
+ use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\CommerceMerchantSettingsFields;
32
+ use FacebookAds\Object\Values\CommerceMerchantSettingsMerchantStatusValues;
33
+
34
+ /**
35
+ * This class is auto-generated.
36
+ *
37
+ * For any issues or feature requests related to this class, please let us know
38
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
39
+ * pull request for this class.
40
+ *
41
+ */
42
+
43
+ class CommerceMerchantSettings extends AbstractCrudObject {
44
+
45
+ /**
46
+ * @return CommerceMerchantSettingsFields
47
+ */
48
+ public static function getFieldsEnum() {
49
+ return CommerceMerchantSettingsFields::getInstance();
50
+ }
51
+
52
+ protected static function getReferencedEnums() {
53
+ $ref_enums = array();
54
+ $ref_enums['MerchantStatus'] = CommerceMerchantSettingsMerchantStatusValues::getInstance()->getValues();
55
+ return $ref_enums;
56
+ }
57
+
58
+
59
+ public function createFacebookChannel(array $fields = array(), array $params = array(), $pending = false) {
60
+ $this->assureId();
61
+
62
+ $param_types = array(
63
+ 'pages' => 'list<string>',
64
+ );
65
+ $enums = array(
66
+ );
67
+
68
+ $request = new ApiRequest(
69
+ $this->api,
70
+ $this->data['id'],
71
+ RequestInterface::METHOD_POST,
72
+ '/facebook_channel',
73
+ new CommerceMerchantSettings(),
74
+ 'EDGE',
75
+ CommerceMerchantSettings::getFieldsEnum()->getValues(),
76
+ new TypeChecker($param_types, $enums)
77
+ );
78
+ $request->addParams($params);
79
+ $request->addFields($fields);
80
+ return $pending ? $request : $request->execute();
81
+ }
82
+
83
+ public function deleteInstagramChannel(array $fields = array(), array $params = array(), $pending = false) {
84
+ $this->assureId();
85
+
86
+ $param_types = array(
87
+ );
88
+ $enums = array(
89
+ );
90
+
91
+ $request = new ApiRequest(
92
+ $this->api,
93
+ $this->data['id'],
94
+ RequestInterface::METHOD_DELETE,
95
+ '/instagram_channel',
96
+ new AbstractCrudObject(),
97
+ 'EDGE',
98
+ array(),
99
+ new TypeChecker($param_types, $enums)
100
+ );
101
+ $request->addParams($params);
102
+ $request->addFields($fields);
103
+ return $pending ? $request : $request->execute();
104
+ }
105
+
106
+ public function createInstagramChannel(array $fields = array(), array $params = array(), $pending = false) {
107
+ $this->assureId();
108
+
109
+ $param_types = array(
110
+ 'instagram_business_accounts' => 'list<string>',
111
+ 'instagram_users' => 'list<string>',
112
+ );
113
+ $enums = array(
114
+ );
115
+
116
+ $request = new ApiRequest(
117
+ $this->api,
118
+ $this->data['id'],
119
+ RequestInterface::METHOD_POST,
120
+ '/instagram_channel',
121
+ new CommerceMerchantSettings(),
122
+ 'EDGE',
123
+ CommerceMerchantSettings::getFieldsEnum()->getValues(),
124
+ new TypeChecker($param_types, $enums)
125
+ );
126
+ $request->addParams($params);
127
+ $request->addFields($fields);
128
+ return $pending ? $request : $request->execute();
129
+ }
130
+
131
+ public function getOrderManagementApps(array $fields = array(), array $params = array(), $pending = false) {
132
+ $this->assureId();
133
+
134
+ $param_types = array(
135
+ );
136
+ $enums = array(
137
+ );
138
+
139
+ $request = new ApiRequest(
140
+ $this->api,
141
+ $this->data['id'],
142
+ RequestInterface::METHOD_GET,
143
+ '/order_management_apps',
144
+ new Application(),
145
+ 'EDGE',
146
+ Application::getFieldsEnum()->getValues(),
147
+ new TypeChecker($param_types, $enums)
148
+ );
149
+ $request->addParams($params);
150
+ $request->addFields($fields);
151
+ return $pending ? $request : $request->execute();
152
+ }
153
+
154
+ public function createOrderManagementApp(array $fields = array(), array $params = array(), $pending = false) {
155
+ $this->assureId();
156
+
157
+ $param_types = array(
158
+ );
159
+ $enums = array(
160
+ );
161
+
162
+ $request = new ApiRequest(
163
+ $this->api,
164
+ $this->data['id'],
165
+ RequestInterface::METHOD_POST,
166
+ '/order_management_apps',
167
+ new CommerceMerchantSettings(),
168
+ 'EDGE',
169
+ CommerceMerchantSettings::getFieldsEnum()->getValues(),
170
+ new TypeChecker($param_types, $enums)
171
+ );
172
+ $request->addParams($params);
173
+ $request->addFields($fields);
174
+ return $pending ? $request : $request->execute();
175
+ }
176
+
177
+ public function getProductCatalogs(array $fields = array(), array $params = array(), $pending = false) {
178
+ $this->assureId();
179
+
180
+ $param_types = array(
181
+ );
182
+ $enums = array(
183
+ );
184
+
185
+ $request = new ApiRequest(
186
+ $this->api,
187
+ $this->data['id'],
188
+ RequestInterface::METHOD_GET,
189
+ '/product_catalogs',
190
+ new ProductCatalog(),
191
+ 'EDGE',
192
+ ProductCatalog::getFieldsEnum()->getValues(),
193
+ new TypeChecker($param_types, $enums)
194
+ );
195
+ $request->addParams($params);
196
+ $request->addFields($fields);
197
+ return $pending ? $request : $request->execute();
198
+ }
199
+
200
+ public function getReturns(array $fields = array(), array $params = array(), $pending = false) {
201
+ $this->assureId();
202
+
203
+ $param_types = array(
204
+ 'end_time_created' => 'datetime',
205
+ 'merchant_return_id' => 'string',
206
+ 'start_time_created' => 'datetime',
207
+ 'statuses' => 'list<statuses_enum>',
208
+ );
209
+ $enums = array(
210
+ 'statuses_enum' => array(
211
+ 'APPROVED',
212
+ 'DISAPPROVED',
213
+ 'MERCHANT_MARKED_COMPLETED',
214
+ 'REFUNDED',
215
+ 'REQUESTED',
216
+ ),
217
+ );
218
+
219
+ $request = new ApiRequest(
220
+ $this->api,
221
+ $this->data['id'],
222
+ RequestInterface::METHOD_GET,
223
+ '/returns',
224
+ new AbstractCrudObject(),
225
+ 'EDGE',
226
+ array(),
227
+ new TypeChecker($param_types, $enums)
228
+ );
229
+ $request->addParams($params);
230
+ $request->addFields($fields);
231
+ return $pending ? $request : $request->execute();
232
+ }
233
+
234
+ public function getSetupStatus(array $fields = array(), array $params = array(), $pending = false) {
235
+ $this->assureId();
236
+
237
+ $param_types = array(
238
+ );
239
+ $enums = array(
240
+ );
241
+
242
+ $request = new ApiRequest(
243
+ $this->api,
244
+ $this->data['id'],
245
+ RequestInterface::METHOD_GET,
246
+ '/setup_status',
247
+ new CommerceMerchantSettingsSetupStatus(),
248
+ 'EDGE',
249
+ CommerceMerchantSettingsSetupStatus::getFieldsEnum()->getValues(),
250
+ new TypeChecker($param_types, $enums)
251
+ );
252
+ $request->addParams($params);
253
+ $request->addFields($fields);
254
+ return $pending ? $request : $request->execute();
255
+ }
256
+
257
+ public function getTaxSettings(array $fields = array(), array $params = array(), $pending = false) {
258
+ $this->assureId();
259
+
260
+ $param_types = array(
261
+ );
262
+ $enums = array(
263
+ );
264
+
265
+ $request = new ApiRequest(
266
+ $this->api,
267
+ $this->data['id'],
268
+ RequestInterface::METHOD_GET,
269
+ '/tax_settings',
270
+ new AbstractCrudObject(),
271
+ 'EDGE',
272
+ array(),
273
+ new TypeChecker($param_types, $enums)
274
+ );
275
+ $request->addParams($params);
276
+ $request->addFields($fields);
277
+ return $pending ? $request : $request->execute();
278
+ }
279
+
280
+ public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
281
+ $this->assureId();
282
+
283
+ $param_types = array(
284
+ );
285
+ $enums = array(
286
+ );
287
+
288
+ $request = new ApiRequest(
289
+ $this->api,
290
+ $this->data['id'],
291
+ RequestInterface::METHOD_GET,
292
+ '/',
293
+ new CommerceMerchantSettings(),
294
+ 'NODE',
295
+ CommerceMerchantSettings::getFieldsEnum()->getValues(),
296
+ new TypeChecker($param_types, $enums)
297
+ );
298
+ $request->addParams($params);
299
+ $request->addFields($fields);
300
+ return $pending ? $request : $request->execute();
301
+ }
302
+
303
+ public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
304
+ $this->assureId();
305
+
306
+ $param_types = array(
307
+ 'contact_email' => 'string',
308
+ 'merchant_alert_email' => 'string',
309
+ 'merchant_status' => 'merchant_status_enum',
310
+ 'onsite_commerce_merchant' => 'Object',
311
+ 'terms' => 'string',
312
+ );
313
+ $enums = array(
314
+ 'merchant_status_enum' => CommerceMerchantSettingsMerchantStatusValues::getInstance()->getValues(),
315
+ );
316
+
317
+ $request = new ApiRequest(
318
+ $this->api,
319
+ $this->data['id'],
320
+ RequestInterface::METHOD_POST,
321
+ '/',
322
+ new CommerceMerchantSettings(),
323
+ 'NODE',
324
+ CommerceMerchantSettings::getFieldsEnum()->getValues(),
325
+ new TypeChecker($param_types, $enums)
326
+ );
327
+ $request->addParams($params);
328
+ $request->addFields($fields);
329
+ return $pending ? $request : $request->execute();
330
+ }
331
+
332
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettingsSetupStatus.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object;
26
+
27
+ use FacebookAds\ApiRequest;
28
+ use FacebookAds\Cursor;
29
+ use FacebookAds\Http\RequestInterface;
30
+ use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\CommerceMerchantSettingsSetupStatusFields;
32
+
33
+ /**
34
+ * This class is auto-generated.
35
+ *
36
+ * For any issues or feature requests related to this class, please let us know
37
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
38
+ * pull request for this class.
39
+ *
40
+ */
41
+
42
+ class CommerceMerchantSettingsSetupStatus extends AbstractObject {
43
+
44
+ /**
45
+ * @return CommerceMerchantSettingsSetupStatusFields
46
+ */
47
+ public static function getFieldsEnum() {
48
+ return CommerceMerchantSettingsSetupStatusFields::getInstance();
49
+ }
50
+
51
+ protected static function getReferencedEnums() {
52
+ $ref_enums = array();
53
+ return $ref_enums;
54
+ }
55
+
56
+
57
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceOrder.php ADDED
@@ -0,0 +1,397 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object;
26
+
27
+ use FacebookAds\ApiRequest;
28
+ use FacebookAds\Cursor;
29
+ use FacebookAds\Http\RequestInterface;
30
+ use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\CommerceOrderFields;
32
+ use FacebookAds\Object\Values\CommerceOrderFiltersValues;
33
+ use FacebookAds\Object\Values\CommerceOrderReasonCodeValues;
34
+ use FacebookAds\Object\Values\CommerceOrderStateValues;
35
+
36
+ /**
37
+ * This class is auto-generated.
38
+ *
39
+ * For any issues or feature requests related to this class, please let us know
40
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
41
+ * pull request for this class.
42
+ *
43
+ */
44
+
45
+ class CommerceOrder extends AbstractCrudObject {
46
+
47
+ /**
48
+ * @return CommerceOrderFields
49
+ */
50
+ public static function getFieldsEnum() {
51
+ return CommerceOrderFields::getInstance();
52
+ }
53
+
54
+ protected static function getReferencedEnums() {
55
+ $ref_enums = array();
56
+ $ref_enums['ReasonCode'] = CommerceOrderReasonCodeValues::getInstance()->getValues();
57
+ $ref_enums['Filters'] = CommerceOrderFiltersValues::getInstance()->getValues();
58
+ $ref_enums['State'] = CommerceOrderStateValues::getInstance()->getValues();
59
+ return $ref_enums;
60
+ }
61
+
62
+
63
+ public function createAcknowledgeOrder(array $fields = array(), array $params = array(), $pending = false) {
64
+ $this->assureId();
65
+
66
+ $param_types = array(
67
+ 'idempotency_key' => 'string',
68
+ 'merchant_order_reference' => 'string',
69
+ );
70
+ $enums = array(
71
+ );
72
+
73
+ $request = new ApiRequest(
74
+ $this->api,
75
+ $this->data['id'],
76
+ RequestInterface::METHOD_POST,
77
+ '/acknowledge_order',
78
+ new CommerceOrder(),
79
+ 'EDGE',
80
+ CommerceOrder::getFieldsEnum()->getValues(),
81
+ new TypeChecker($param_types, $enums)
82
+ );
83
+ $request->addParams($params);
84
+ $request->addFields($fields);
85
+ return $pending ? $request : $request->execute();
86
+ }
87
+
88
+ public function getCancellations(array $fields = array(), array $params = array(), $pending = false) {
89
+ $this->assureId();
90
+
91
+ $param_types = array(
92
+ );
93
+ $enums = array(
94
+ );
95
+
96
+ $request = new ApiRequest(
97
+ $this->api,
98
+ $this->data['id'],
99
+ RequestInterface::METHOD_GET,
100
+ '/cancellations',
101
+ new AbstractCrudObject(),
102
+ 'EDGE',
103
+ array(),
104
+ new TypeChecker($param_types, $enums)
105
+ );
106
+ $request->addParams($params);
107
+ $request->addFields($fields);
108
+ return $pending ? $request : $request->execute();
109
+ }
110
+
111
+ public function createCancellation(array $fields = array(), array $params = array(), $pending = false) {
112
+ $this->assureId();
113
+
114
+ $param_types = array(
115
+ 'cancel_reason' => 'map',
116
+ 'idempotency_key' => 'string',
117
+ 'items' => 'list<map>',
118
+ 'restock_items' => 'bool',
119
+ );
120
+ $enums = array(
121
+ );
122
+
123
+ $request = new ApiRequest(
124
+ $this->api,
125
+ $this->data['id'],
126
+ RequestInterface::METHOD_POST,
127
+ '/cancellations',
128
+ new CommerceOrder(),
129
+ 'EDGE',
130
+ CommerceOrder::getFieldsEnum()->getValues(),
131
+ new TypeChecker($param_types, $enums)
132
+ );
133
+ $request->addParams($params);
134
+ $request->addFields($fields);
135
+ return $pending ? $request : $request->execute();
136
+ }
137
+
138
+ public function getItems(array $fields = array(), array $params = array(), $pending = false) {
139
+ $this->assureId();
140
+
141
+ $param_types = array(
142
+ );
143
+ $enums = array(
144
+ );
145
+
146
+ $request = new ApiRequest(
147
+ $this->api,
148
+ $this->data['id'],
149
+ RequestInterface::METHOD_GET,
150
+ '/items',
151
+ new AbstractCrudObject(),
152
+ 'EDGE',
153
+ array(),
154
+ new TypeChecker($param_types, $enums)
155
+ );
156
+ $request->addParams($params);
157
+ $request->addFields($fields);
158
+ return $pending ? $request : $request->execute();
159
+ }
160
+
161
+ public function getPayments(array $fields = array(), array $params = array(), $pending = false) {
162
+ $this->assureId();
163
+
164
+ $param_types = array(
165
+ );
166
+ $enums = array(
167
+ );
168
+
169
+ $request = new ApiRequest(
170
+ $this->api,
171
+ $this->data['id'],
172
+ RequestInterface::METHOD_GET,
173
+ '/payments',
174
+ new AbstractCrudObject(),
175
+ 'EDGE',
176
+ array(),
177
+ new TypeChecker($param_types, $enums)
178
+ );
179
+ $request->addParams($params);
180
+ $request->addFields($fields);
181
+ return $pending ? $request : $request->execute();
182
+ }
183
+
184
+ public function getPromotions(array $fields = array(), array $params = array(), $pending = false) {
185
+ $this->assureId();
186
+
187
+ $param_types = array(
188
+ );
189
+ $enums = array(
190
+ );
191
+
192
+ $request = new ApiRequest(
193
+ $this->api,
194
+ $this->data['id'],
195
+ RequestInterface::METHOD_GET,
196
+ '/promotions',
197
+ new AbstractCrudObject(),
198
+ 'EDGE',
199
+ array(),
200
+ new TypeChecker($param_types, $enums)
201
+ );
202
+ $request->addParams($params);
203
+ $request->addFields($fields);
204
+ return $pending ? $request : $request->execute();
205
+ }
206
+
207
+ public function getRefunds(array $fields = array(), array $params = array(), $pending = false) {
208
+ $this->assureId();
209
+
210
+ $param_types = array(
211
+ );
212
+ $enums = array(
213
+ );
214
+
215
+ $request = new ApiRequest(
216
+ $this->api,
217
+ $this->data['id'],
218
+ RequestInterface::METHOD_GET,
219
+ '/refunds',
220
+ new AbstractCrudObject(),
221
+ 'EDGE',
222
+ array(),
223
+ new TypeChecker($param_types, $enums)
224
+ );
225
+ $request->addParams($params);
226
+ $request->addFields($fields);
227
+ return $pending ? $request : $request->execute();
228
+ }
229
+
230
+ public function createRefund(array $fields = array(), array $params = array(), $pending = false) {
231
+ $this->assureId();
232
+
233
+ $param_types = array(
234
+ 'deductions' => 'list<map>',
235
+ 'idempotency_key' => 'string',
236
+ 'items' => 'list<map>',
237
+ 'reason_code' => 'reason_code_enum',
238
+ 'reason_text' => 'string',
239
+ 'return_id' => 'string',
240
+ 'shipping' => 'map',
241
+ );
242
+ $enums = array(
243
+ 'reason_code_enum' => CommerceOrderReasonCodeValues::getInstance()->getValues(),
244
+ );
245
+
246
+ $request = new ApiRequest(
247
+ $this->api,
248
+ $this->data['id'],
249
+ RequestInterface::METHOD_POST,
250
+ '/refunds',
251
+ new CommerceOrder(),
252
+ 'EDGE',
253
+ CommerceOrder::getFieldsEnum()->getValues(),
254
+ new TypeChecker($param_types, $enums)
255
+ );
256
+ $request->addParams($params);
257
+ $request->addFields($fields);
258
+ return $pending ? $request : $request->execute();
259
+ }
260
+
261
+ public function getReturns(array $fields = array(), array $params = array(), $pending = false) {
262
+ $this->assureId();
263
+
264
+ $param_types = array(
265
+ 'merchant_return_id' => 'string',
266
+ 'statuses' => 'list<statuses_enum>',
267
+ );
268
+ $enums = array(
269
+ 'statuses_enum' => array(
270
+ 'APPROVED',
271
+ 'DISAPPROVED',
272
+ 'MERCHANT_MARKED_COMPLETED',
273
+ 'REFUNDED',
274
+ 'REQUESTED',
275
+ ),
276
+ );
277
+
278
+ $request = new ApiRequest(
279
+ $this->api,
280
+ $this->data['id'],
281
+ RequestInterface::METHOD_GET,
282
+ '/returns',
283
+ new AbstractCrudObject(),
284
+ 'EDGE',
285
+ array(),
286
+ new TypeChecker($param_types, $enums)
287
+ );
288
+ $request->addParams($params);
289
+ $request->addFields($fields);
290
+ return $pending ? $request : $request->execute();
291
+ }
292
+
293
+ public function getShipments(array $fields = array(), array $params = array(), $pending = false) {
294
+ $this->assureId();
295
+
296
+ $param_types = array(
297
+ );
298
+ $enums = array(
299
+ );
300
+
301
+ $request = new ApiRequest(
302
+ $this->api,
303
+ $this->data['id'],
304
+ RequestInterface::METHOD_GET,
305
+ '/shipments',
306
+ new AbstractCrudObject(),
307
+ 'EDGE',
308
+ array(),
309
+ new TypeChecker($param_types, $enums)
310
+ );
311
+ $request->addParams($params);
312
+ $request->addFields($fields);
313
+ return $pending ? $request : $request->execute();
314
+ }
315
+
316
+ public function createShipment(array $fields = array(), array $params = array(), $pending = false) {
317
+ $this->assureId();
318
+
319
+ $param_types = array(
320
+ 'external_redemption_link' => 'string',
321
+ 'external_shipment_id' => 'string',
322
+ 'fulfillment' => 'map',
323
+ 'idempotency_key' => 'string',
324
+ 'items' => 'list<map>',
325
+ 'merchant_order_reference' => 'string',
326
+ 'shipment_origin_postal_code' => 'string',
327
+ 'shipping_tax_details' => 'map',
328
+ 'tracking_info' => 'map',
329
+ );
330
+ $enums = array(
331
+ );
332
+
333
+ $request = new ApiRequest(
334
+ $this->api,
335
+ $this->data['id'],
336
+ RequestInterface::METHOD_POST,
337
+ '/shipments',
338
+ new CommerceOrder(),
339
+ 'EDGE',
340
+ CommerceOrder::getFieldsEnum()->getValues(),
341
+ new TypeChecker($param_types, $enums)
342
+ );
343
+ $request->addParams($params);
344
+ $request->addFields($fields);
345
+ return $pending ? $request : $request->execute();
346
+ }
347
+
348
+ public function createUpdateShipment(array $fields = array(), array $params = array(), $pending = false) {
349
+ $this->assureId();
350
+
351
+ $param_types = array(
352
+ 'fulfillment_id' => 'string',
353
+ 'idempotency_key' => 'string',
354
+ 'tracking_info' => 'map',
355
+ );
356
+ $enums = array(
357
+ );
358
+
359
+ $request = new ApiRequest(
360
+ $this->api,
361
+ $this->data['id'],
362
+ RequestInterface::METHOD_POST,
363
+ '/update_shipment',
364
+ new CommerceOrder(),
365
+ 'EDGE',
366
+ CommerceOrder::getFieldsEnum()->getValues(),
367
+ new TypeChecker($param_types, $enums)
368
+ );
369
+ $request->addParams($params);
370
+ $request->addFields($fields);
371
+ return $pending ? $request : $request->execute();
372
+ }
373
+
374
+ public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
375
+ $this->assureId();
376
+
377
+ $param_types = array(
378
+ );
379
+ $enums = array(
380
+ );
381
+
382
+ $request = new ApiRequest(
383
+ $this->api,
384
+ $this->data['id'],
385
+ RequestInterface::METHOD_GET,
386
+ '/',
387
+ new CommerceOrder(),
388
+ 'NODE',
389
+ CommerceOrder::getFieldsEnum()->getValues(),
390
+ new TypeChecker($param_types, $enums)
391
+ );
392
+ $request->addParams($params);
393
+ $request->addFields($fields);
394
+ return $pending ? $request : $request->execute();
395
+ }
396
+
397
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceOrderTransactionDetail.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object;
26
+
27
+ use FacebookAds\ApiRequest;
28
+ use FacebookAds\Cursor;
29
+ use FacebookAds\Http\RequestInterface;
30
+ use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\CommerceOrderTransactionDetailFields;
32
+
33
+ /**
34
+ * This class is auto-generated.
35
+ *
36
+ * For any issues or feature requests related to this class, please let us know
37
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
38
+ * pull request for this class.
39
+ *
40
+ */
41
+
42
+ class CommerceOrderTransactionDetail extends AbstractCrudObject {
43
+
44
+ /**
45
+ * @return CommerceOrderTransactionDetailFields
46
+ */
47
+ public static function getFieldsEnum() {
48
+ return CommerceOrderTransactionDetailFields::getInstance();
49
+ }
50
+
51
+ protected static function getReferencedEnums() {
52
+ $ref_enums = array();
53
+ return $ref_enums;
54
+ }
55
+
56
+
57
+ public function getTaxDetails(array $fields = array(), array $params = array(), $pending = false) {
58
+ $this->assureId();
59
+
60
+ $param_types = array(
61
+ );
62
+ $enums = array(
63
+ );
64
+
65
+ $request = new ApiRequest(
66
+ $this->api,
67
+ $this->data['id'],
68
+ RequestInterface::METHOD_GET,
69
+ '/tax_details',
70
+ new AbstractCrudObject(),
71
+ 'EDGE',
72
+ array(),
73
+ new TypeChecker($param_types, $enums)
74
+ );
75
+ $request->addParams($params);
76
+ $request->addFields($fields);
77
+ return $pending ? $request : $request->execute();
78
+ }
79
+
80
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommercePayout.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object;
26
+
27
+ use FacebookAds\ApiRequest;
28
+ use FacebookAds\Cursor;
29
+ use FacebookAds\Http\RequestInterface;
30
+ use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\CommercePayoutFields;
32
+
33
+ /**
34
+ * This class is auto-generated.
35
+ *
36
+ * For any issues or feature requests related to this class, please let us know
37
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
38
+ * pull request for this class.
39
+ *
40
+ */
41
+
42
+ class CommercePayout extends AbstractObject {
43
+
44
+ /**
45
+ * @return CommercePayoutFields
46
+ */
47
+ public static function getFieldsEnum() {
48
+ return CommercePayoutFields::getInstance();
49
+ }
50
+
51
+ protected static function getReferencedEnums() {
52
+ $ref_enums = array();
53
+ return $ref_enums;
54
+ }
55
+
56
+
57
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/CreativeAssetTag.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object;
26
+
27
+ use FacebookAds\ApiRequest;
28
+ use FacebookAds\Cursor;
29
+ use FacebookAds\Http\RequestInterface;
30
+ use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\CreativeAssetTagFields;
32
+
33
+ /**
34
+ * This class is auto-generated.
35
+ *
36
+ * For any issues or feature requests related to this class, please let us know
37
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
38
+ * pull request for this class.
39
+ *
40
+ */
41
+
42
+ class CreativeAssetTag extends AbstractObject {
43
+
44
+ /**
45
+ * @return CreativeAssetTagFields
46
+ */
47
+ public static function getFieldsEnum() {
48
+ return CreativeAssetTagFields::getInstance();
49
+ }
50
+
51
+ protected static function getReferencedEnums() {
52
+ $ref_enums = array();
53
+ return $ref_enums;
54
+ }
55
+
56
+
57
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/CustomAudience.php CHANGED
@@ -185,29 +185,6 @@ class CustomAudience extends AbstractCrudObject {
185
  return $pending ? $request : $request->execute();
186
  }
187
 
188
- public function getPrefills(array $fields = array(), array $params = array(), $pending = false) {
189
- $this->assureId();
190
-
191
- $param_types = array(
192
- );
193
- $enums = array(
194
- );
195
-
196
- $request = new ApiRequest(
197
- $this->api,
198
- $this->data['id'],
199
- RequestInterface::METHOD_GET,
200
- '/prefills',
201
- new CustomAudiencePrefillState(),
202
- 'EDGE',
203
- CustomAudiencePrefillState::getFieldsEnum()->getValues(),
204
- new TypeChecker($param_types, $enums)
205
- );
206
- $request->addParams($params);
207
- $request->addFields($fields);
208
- return $pending ? $request : $request->execute();
209
- }
210
-
211
  public function getSessions(array $fields = array(), array $params = array(), $pending = false) {
212
  $this->assureId();
213
 
185
  return $pending ? $request : $request->execute();
186
  }
187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  public function getSessions(array $fields = array(), array $params = array(), $pending = false) {
189
  $this->assureId();
190
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/DynamicItemDisplayBundle.php DELETED
@@ -1,161 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object;
26
-
27
- use FacebookAds\ApiRequest;
28
- use FacebookAds\Cursor;
29
- use FacebookAds\Http\RequestInterface;
30
- use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\DynamicItemDisplayBundleFields;
32
-
33
- /**
34
- * This class is auto-generated.
35
- *
36
- * For any issues or feature requests related to this class, please let us know
37
- * on github and we'll fix in our codegen framework. We'll not be able to accept
38
- * pull request for this class.
39
- *
40
- */
41
-
42
- class DynamicItemDisplayBundle extends AbstractCrudObject {
43
-
44
- /**
45
- * @deprecated getEndpoint function is deprecated
46
- */
47
- protected function getEndpoint() {
48
- return 'bundles';
49
- }
50
-
51
- /**
52
- * @return DynamicItemDisplayBundleFields
53
- */
54
- public static function getFieldsEnum() {
55
- return DynamicItemDisplayBundleFields::getInstance();
56
- }
57
-
58
- protected static function getReferencedEnums() {
59
- $ref_enums = array();
60
- return $ref_enums;
61
- }
62
-
63
-
64
- public function getBundleFolders(array $fields = array(), array $params = array(), $pending = false) {
65
- $this->assureId();
66
-
67
- $param_types = array(
68
- );
69
- $enums = array(
70
- );
71
-
72
- $request = new ApiRequest(
73
- $this->api,
74
- $this->data['id'],
75
- RequestInterface::METHOD_GET,
76
- '/bundle_folders',
77
- new DynamicItemDisplayBundleFolder(),
78
- 'EDGE',
79
- DynamicItemDisplayBundleFolder::getFieldsEnum()->getValues(),
80
- new TypeChecker($param_types, $enums)
81
- );
82
- $request->addParams($params);
83
- $request->addFields($fields);
84
- return $pending ? $request : $request->execute();
85
- }
86
-
87
- public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) {
88
- $this->assureId();
89
-
90
- $param_types = array(
91
- );
92
- $enums = array(
93
- );
94
-
95
- $request = new ApiRequest(
96
- $this->api,
97
- $this->data['id'],
98
- RequestInterface::METHOD_DELETE,
99
- '/',
100
- new AbstractCrudObject(),
101
- 'NODE',
102
- array(),
103
- new TypeChecker($param_types, $enums)
104
- );
105
- $request->addParams($params);
106
- $request->addFields($fields);
107
- return $pending ? $request : $request->execute();
108
- }
109
-
110
- public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
111
- $this->assureId();
112
-
113
- $param_types = array(
114
- );
115
- $enums = array(
116
- );
117
-
118
- $request = new ApiRequest(
119
- $this->api,
120
- $this->data['id'],
121
- RequestInterface::METHOD_GET,
122
- '/',
123
- new DynamicItemDisplayBundle(),
124
- 'NODE',
125
- DynamicItemDisplayBundle::getFieldsEnum()->getValues(),
126
- new TypeChecker($param_types, $enums)
127
- );
128
- $request->addParams($params);
129
- $request->addFields($fields);
130
- return $pending ? $request : $request->execute();
131
- }
132
-
133
- public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
134
- $this->assureId();
135
-
136
- $param_types = array(
137
- 'additional_urls' => 'map',
138
- 'description' => 'string',
139
- 'name' => 'string',
140
- 'text_tokens' => 'map',
141
- 'url' => 'string',
142
- );
143
- $enums = array(
144
- );
145
-
146
- $request = new ApiRequest(
147
- $this->api,
148
- $this->data['id'],
149
- RequestInterface::METHOD_POST,
150
- '/',
151
- new DynamicItemDisplayBundle(),
152
- 'NODE',
153
- DynamicItemDisplayBundle::getFieldsEnum()->getValues(),
154
- new TypeChecker($param_types, $enums)
155
- );
156
- $request->addParams($params);
157
- $request->addFields($fields);
158
- return $pending ? $request : $request->execute();
159
- }
160
-
161
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/DynamicItemDisplayBundleFolder.php DELETED
@@ -1,182 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object;
26
-
27
- use FacebookAds\ApiRequest;
28
- use FacebookAds\Cursor;
29
- use FacebookAds\Http\RequestInterface;
30
- use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\DynamicItemDisplayBundleFolderFields;
32
-
33
- /**
34
- * This class is auto-generated.
35
- *
36
- * For any issues or feature requests related to this class, please let us know
37
- * on github and we'll fix in our codegen framework. We'll not be able to accept
38
- * pull request for this class.
39
- *
40
- */
41
-
42
- class DynamicItemDisplayBundleFolder extends AbstractCrudObject {
43
-
44
- /**
45
- * @deprecated getEndpoint function is deprecated
46
- */
47
- protected function getEndpoint() {
48
- return 'bundle_folders';
49
- }
50
-
51
- /**
52
- * @return DynamicItemDisplayBundleFolderFields
53
- */
54
- public static function getFieldsEnum() {
55
- return DynamicItemDisplayBundleFolderFields::getInstance();
56
- }
57
-
58
- protected static function getReferencedEnums() {
59
- $ref_enums = array();
60
- return $ref_enums;
61
- }
62
-
63
-
64
- public function deleteBundles(array $fields = array(), array $params = array(), $pending = false) {
65
- $this->assureId();
66
-
67
- $param_types = array(
68
- 'bundle' => 'string',
69
- );
70
- $enums = array(
71
- );
72
-
73
- $request = new ApiRequest(
74
- $this->api,
75
- $this->data['id'],
76
- RequestInterface::METHOD_DELETE,
77
- '/bundles',
78
- new AbstractCrudObject(),
79
- 'EDGE',
80
- array(),
81
- new TypeChecker($param_types, $enums)
82
- );
83
- $request->addParams($params);
84
- $request->addFields($fields);
85
- return $pending ? $request : $request->execute();
86
- }
87
-
88
- public function createBundle(array $fields = array(), array $params = array(), $pending = false) {
89
- $this->assureId();
90
-
91
- $param_types = array(
92
- 'bundle' => 'string',
93
- );
94
- $enums = array(
95
- );
96
-
97
- $request = new ApiRequest(
98
- $this->api,
99
- $this->data['id'],
100
- RequestInterface::METHOD_POST,
101
- '/bundles',
102
- new DynamicItemDisplayBundleFolder(),
103
- 'EDGE',
104
- DynamicItemDisplayBundleFolder::getFieldsEnum()->getValues(),
105
- new TypeChecker($param_types, $enums)
106
- );
107
- $request->addParams($params);
108
- $request->addFields($fields);
109
- return $pending ? $request : $request->execute();
110
- }
111
-
112
- public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) {
113
- $this->assureId();
114
-
115
- $param_types = array(
116
- );
117
- $enums = array(
118
- );
119
-
120
- $request = new ApiRequest(
121
- $this->api,
122
- $this->data['id'],
123
- RequestInterface::METHOD_DELETE,
124
- '/',
125
- new AbstractCrudObject(),
126
- 'NODE',
127
- array(),
128
- new TypeChecker($param_types, $enums)
129
- );
130
- $request->addParams($params);
131
- $request->addFields($fields);
132
- return $pending ? $request : $request->execute();
133
- }
134
-
135
- public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
136
- $this->assureId();
137
-
138
- $param_types = array(
139
- );
140
- $enums = array(
141
- );
142
-
143
- $request = new ApiRequest(
144
- $this->api,
145
- $this->data['id'],
146
- RequestInterface::METHOD_GET,
147
- '/',
148
- new DynamicItemDisplayBundleFolder(),
149
- 'NODE',
150
- DynamicItemDisplayBundleFolder::getFieldsEnum()->getValues(),
151
- new TypeChecker($param_types, $enums)
152
- );
153
- $request->addParams($params);
154
- $request->addFields($fields);
155
- return $pending ? $request : $request->execute();
156
- }
157
-
158
- public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
159
- $this->assureId();
160
-
161
- $param_types = array(
162
- 'name' => 'string',
163
- );
164
- $enums = array(
165
- );
166
-
167
- $request = new ApiRequest(
168
- $this->api,
169
- $this->data['id'],
170
- RequestInterface::METHOD_POST,
171
- '/',
172
- new DynamicItemDisplayBundleFolder(),
173
- 'NODE',
174
- DynamicItemDisplayBundleFolder::getFieldsEnum()->getValues(),
175
- new TypeChecker($param_types, $enums)
176
- );
177
- $request->addParams($params);
178
- $request->addFields($fields);
179
- return $pending ? $request : $request->execute();
180
- }
181
-
182
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountActivityFields.php CHANGED
@@ -37,8 +37,6 @@ use FacebookAds\Enum\AbstractEnum;
37
 
38
  class AdAccountActivityFields extends AbstractEnum {
39
 
40
- const BILLING_ADDRESS_NEW = 'billing_address_new';
41
- const BILLING_ADDRESS_OLD = 'billing_address_old';
42
  const CREATED_BY = 'created_by';
43
  const CREATED_TIME = 'created_time';
44
  const CREDIT_NEW = 'credit_new';
@@ -71,9 +69,7 @@ class AdAccountActivityFields extends AbstractEnum {
71
 
72
  public function getFieldTypes() {
73
  return array(
74
- 'billing_address_new' => 'string',
75
- 'billing_address_old' => 'string',
76
- 'created_by' => 'string',
77
  'created_time' => 'datetime',
78
  'credit_new' => 'Object',
79
  'credit_old' => 'Object',
@@ -88,8 +84,8 @@ class AdAccountActivityFields extends AbstractEnum {
88
  'grace_period_time_new' => 'int',
89
  'grace_period_time_old' => 'int',
90
  'id' => 'string',
91
- 'manager_id_new' => 'string',
92
- 'manager_id_old' => 'string',
93
  'name_new' => 'string',
94
  'name_old' => 'string',
95
  'spend_cap_new' => 'Object',
37
 
38
  class AdAccountActivityFields extends AbstractEnum {
39
 
 
 
40
  const CREATED_BY = 'created_by';
41
  const CREATED_TIME = 'created_time';
42
  const CREDIT_NEW = 'credit_new';
69
 
70
  public function getFieldTypes() {
71
  return array(
72
+ 'created_by' => 'Profile',
 
 
73
  'created_time' => 'datetime',
74
  'credit_new' => 'Object',
75
  'credit_old' => 'Object',
84
  'grace_period_time_new' => 'int',
85
  'grace_period_time_old' => 'int',
86
  'id' => 'string',
87
+ 'manager_id_new' => 'Profile',
88
+ 'manager_id_old' => 'Profile',
89
  'name_new' => 'string',
90
  'name_old' => 'string',
91
  'spend_cap_new' => 'Object',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountCreationRequestFields.php CHANGED
@@ -57,7 +57,6 @@ class AdAccountCreationRequestFields extends AbstractEnum {
57
  const ID = 'id';
58
  const IS_SMB = 'is_smb';
59
  const IS_TEST = 'is_test';
60
- const IS_UNDER_AUTHORIZATION = 'is_under_authorization';
61
  const LEGAL_ENTITY_NAME_IN_LOCAL_LANGUAGE = 'legal_entity_name_in_local_language';
62
  const OE_REQUEST_ID = 'oe_request_id';
63
  const OFFICIAL_WEBSITE_URL = 'official_website_url';
@@ -94,7 +93,6 @@ class AdAccountCreationRequestFields extends AbstractEnum {
94
  'id' => 'string',
95
  'is_smb' => 'bool',
96
  'is_test' => 'bool',
97
- 'is_under_authorization' => 'bool',
98
  'legal_entity_name_in_local_language' => 'string',
99
  'oe_request_id' => 'string',
100
  'official_website_url' => 'string',
57
  const ID = 'id';
58
  const IS_SMB = 'is_smb';
59
  const IS_TEST = 'is_test';
 
60
  const LEGAL_ENTITY_NAME_IN_LOCAL_LANGUAGE = 'legal_entity_name_in_local_language';
61
  const OE_REQUEST_ID = 'oe_request_id';
62
  const OFFICIAL_WEBSITE_URL = 'official_website_url';
93
  'id' => 'string',
94
  'is_smb' => 'bool',
95
  'is_test' => 'bool',
 
96
  'legal_entity_name_in_local_language' => 'string',
97
  'oe_request_id' => 'string',
98
  'official_website_url' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php CHANGED
@@ -43,6 +43,7 @@ class AdAssetFeedSpecFields extends AbstractEnum {
43
  const AUTOTRANSLATE = 'autotranslate';
44
  const BODIES = 'bodies';
45
  const CALL_TO_ACTION_TYPES = 'call_to_action_types';
 
46
  const CAPTIONS = 'captions';
47
  const CAROUSELS = 'carousels';
48
  const DESCRIPTIONS = 'descriptions';
@@ -61,6 +62,7 @@ class AdAssetFeedSpecFields extends AbstractEnum {
61
  'autotranslate' => 'list<string>',
62
  'bodies' => 'list<AdAssetFeedSpecBody>',
63
  'call_to_action_types' => 'list<CallToActionTypes>',
 
64
  'captions' => 'list<AdAssetFeedSpecCaption>',
65
  'carousels' => 'list<Object>',
66
  'descriptions' => 'list<AdAssetFeedSpecDescription>',
43
  const AUTOTRANSLATE = 'autotranslate';
44
  const BODIES = 'bodies';
45
  const CALL_TO_ACTION_TYPES = 'call_to_action_types';
46
+ const CALL_TO_ACTIONS = 'call_to_actions';
47
  const CAPTIONS = 'captions';
48
  const CAROUSELS = 'carousels';
49
  const DESCRIPTIONS = 'descriptions';
62
  'autotranslate' => 'list<string>',
63
  'bodies' => 'list<AdAssetFeedSpecBody>',
64
  'call_to_action_types' => 'list<CallToActionTypes>',
65
+ 'call_to_actions' => 'list<Object>',
66
  'captions' => 'list<AdAssetFeedSpecCaption>',
67
  'carousels' => 'list<Object>',
68
  'descriptions' => 'list<AdAssetFeedSpecDescription>',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignActivityFields.php CHANGED
@@ -112,8 +112,8 @@ class AdCampaignActivityFields extends AbstractEnum {
112
  'bid_type_old' => 'string',
113
  'billing_event_new' => 'BillingEventNew',
114
  'billing_event_old' => 'BillingEventOld',
115
- 'brande_audience_id_new' => 'string',
116
- 'brande_audience_id_old' => 'string',
117
  'budget_limit_new' => 'Object',
118
  'budget_limit_old' => 'Object',
119
  'created_time' => 'datetime',
112
  'bid_type_old' => 'string',
113
  'billing_event_new' => 'BillingEventNew',
114
  'billing_event_old' => 'BillingEventOld',
115
+ 'brande_audience_id_new' => 'BrandAudience',
116
+ 'brande_audience_id_old' => 'BrandAudience',
117
  'budget_limit_new' => 'Object',
118
  'budget_limit_old' => 'Object',
119
  'created_time' => 'datetime',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignLearningStageInfoFields.php CHANGED
@@ -39,19 +39,15 @@ class AdCampaignLearningStageInfoFields extends AbstractEnum {
39
 
40
  const ATTRIBUTION_WINDOWS = 'attribution_windows';
41
  const CONVERSIONS = 'conversions';
42
- const EXIT_REASON = 'exit_reason';
43
  const LAST_SIG_EDIT_TS = 'last_sig_edit_ts';
44
  const STATUS = 'status';
45
- const TYPES = 'types';
46
 
47
  public function getFieldTypes() {
48
  return array(
49
  'attribution_windows' => 'list<string>',
50
  'conversions' => 'unsigned int',
51
- 'exit_reason' => 'string',
52
  'last_sig_edit_ts' => 'int',
53
  'status' => 'string',
54
- 'types' => 'list<string>',
55
  );
56
  }
57
  }
39
 
40
  const ATTRIBUTION_WINDOWS = 'attribution_windows';
41
  const CONVERSIONS = 'conversions';
 
42
  const LAST_SIG_EDIT_TS = 'last_sig_edit_ts';
43
  const STATUS = 'status';
 
44
 
45
  public function getFieldTypes() {
46
  return array(
47
  'attribution_windows' => 'list<string>',
48
  'conversions' => 'unsigned int',
 
49
  'last_sig_edit_ts' => 'int',
50
  'status' => 'string',
 
51
  );
52
  }
53
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativeAdDisclaimerFields.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Fields;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ */
37
+
38
+ class AdCreativeAdDisclaimerFields extends AbstractEnum {
39
+
40
+ const TEXT = 'text';
41
+ const TITLE = 'title';
42
+ const URL = 'url';
43
+
44
+ public function getFieldTypes() {
45
+ return array(
46
+ 'text' => 'string',
47
+ 'title' => 'string',
48
+ 'url' => 'string',
49
+ );
50
+ }
51
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativeFields.php CHANGED
@@ -94,6 +94,7 @@ class AdCreativeFields extends AbstractEnum {
94
  const VIDEO_ID = 'video_id';
95
  const CALL_TO_ACTION = 'call_to_action';
96
  const IMAGE_FILE = 'image_file';
 
97
  const IS_DCO_INTERNAL = 'is_dco_internal';
98
 
99
  public function getFieldTypes() {
@@ -155,6 +156,7 @@ class AdCreativeFields extends AbstractEnum {
155
  'video_id' => 'string',
156
  'call_to_action' => 'Object',
157
  'image_file' => 'string',
 
158
  'is_dco_internal' => 'bool',
159
  );
160
  }
94
  const VIDEO_ID = 'video_id';
95
  const CALL_TO_ACTION = 'call_to_action';
96
  const IMAGE_FILE = 'image_file';
97
+ const INSTANT_CHECKOUT_SETTING = 'instant_checkout_setting';
98
  const IS_DCO_INTERNAL = 'is_dco_internal';
99
 
100
  public function getFieldTypes() {
156
  'video_id' => 'string',
157
  'call_to_action' => 'Object',
158
  'image_file' => 'string',
159
+ 'instant_checkout_setting' => 'InstantCheckoutSetting',
160
  'is_dco_internal' => 'bool',
161
  );
162
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativePhotoDataMediaElementsFields.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Fields;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ */
37
+
38
+ class AdCreativePhotoDataMediaElementsFields extends AbstractEnum {
39
+
40
+ const ELEMENT_ID = 'element_id';
41
+ const ELEMENT_TYPE = 'element_type';
42
+ const X = 'x';
43
+ const Y = 'y';
44
+
45
+ public function getFieldTypes() {
46
+ return array(
47
+ 'element_id' => 'string',
48
+ 'element_type' => 'string',
49
+ 'x' => 'float',
50
+ 'y' => 'float',
51
+ );
52
+ }
53
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativeVideoDataFields.php CHANGED
@@ -42,6 +42,7 @@ class AdCreativeVideoDataFields extends AbstractEnum {
42
  const BRANDED_CONTENT_SPONSOR_PAGE_ID = 'branded_content_sponsor_page_id';
43
  const CALL_TO_ACTION = 'call_to_action';
44
  const COLLECTION_THUMBNAILS = 'collection_thumbnails';
 
45
  const IMAGE_HASH = 'image_hash';
46
  const IMAGE_URL = 'image_url';
47
  const LINK_DESCRIPTION = 'link_description';
@@ -61,6 +62,7 @@ class AdCreativeVideoDataFields extends AbstractEnum {
61
  'branded_content_sponsor_page_id' => 'string',
62
  'call_to_action' => 'AdCreativeLinkDataCallToAction',
63
  'collection_thumbnails' => 'list<AdCreativeCollectionThumbnailInfo>',
 
64
  'image_hash' => 'string',
65
  'image_url' => 'string',
66
  'link_description' => 'string',
42
  const BRANDED_CONTENT_SPONSOR_PAGE_ID = 'branded_content_sponsor_page_id';
43
  const CALL_TO_ACTION = 'call_to_action';
44
  const COLLECTION_THUMBNAILS = 'collection_thumbnails';
45
+ const CUSTOMIZATION_RULES_SPEC = 'customization_rules_spec';
46
  const IMAGE_HASH = 'image_hash';
47
  const IMAGE_URL = 'image_url';
48
  const LINK_DESCRIPTION = 'link_description';
62
  'branded_content_sponsor_page_id' => 'string',
63
  'call_to_action' => 'AdCreativeLinkDataCallToAction',
64
  'collection_thumbnails' => 'list<AdCreativeCollectionThumbnailInfo>',
65
+ 'customization_rules_spec' => 'list<AdCustomizationRuleSpec>',
66
  'image_hash' => 'string',
67
  'image_url' => 'string',
68
  'link_description' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCustomizationRuleSpecFields.php CHANGED
@@ -40,22 +40,26 @@ class AdCustomizationRuleSpecFields extends AbstractEnum {
40
  const CAPTION = 'caption';
41
  const CUSTOMIZATION_SPEC = 'customization_spec';
42
  const DESCRIPTION = 'description';
 
43
  const LINK = 'link';
44
  const MESSAGE = 'message';
45
  const NAME = 'name';
46
  const PRIORITY = 'priority';
47
  const TEMPLATE_URL_SPEC = 'template_url_spec';
 
48
 
49
  public function getFieldTypes() {
50
  return array(
51
  'caption' => 'string',
52
  'customization_spec' => 'Object',
53
  'description' => 'string',
 
54
  'link' => 'string',
55
  'message' => 'string',
56
  'name' => 'string',
57
  'priority' => 'int',
58
  'template_url_spec' => 'AdCreativeTemplateURLSpec',
 
59
  );
60
  }
61
  }
40
  const CAPTION = 'caption';
41
  const CUSTOMIZATION_SPEC = 'customization_spec';
42
  const DESCRIPTION = 'description';
43
+ const IMAGE_HASH = 'image_hash';
44
  const LINK = 'link';
45
  const MESSAGE = 'message';
46
  const NAME = 'name';
47
  const PRIORITY = 'priority';
48
  const TEMPLATE_URL_SPEC = 'template_url_spec';
49
+ const VIDEO_ID = 'video_id';
50
 
51
  public function getFieldTypes() {
52
  return array(
53
  'caption' => 'string',
54
  'customization_spec' => 'Object',
55
  'description' => 'string',
56
+ 'image_hash' => 'string',
57
  'link' => 'string',
58
  'message' => 'string',
59
  'name' => 'string',
60
  'priority' => 'int',
61
  'template_url_spec' => 'AdCreativeTemplateURLSpec',
62
+ 'video_id' => 'int',
63
  );
64
  }
65
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdFields.php CHANGED
@@ -57,7 +57,6 @@ class AdFields extends AbstractEnum {
57
  const ENGAGEMENT_AUDIENCE = 'engagement_audience';
58
  const FAILED_DELIVERY_CHECKS = 'failed_delivery_checks';
59
  const ID = 'id';
60
- const IS_AUTOBID = 'is_autobid';
61
  const ISSUES_INFO = 'issues_info';
62
  const LAST_UPDATED_BY_APP_ID = 'last_updated_by_app_id';
63
  const NAME = 'name';
@@ -101,7 +100,6 @@ class AdFields extends AbstractEnum {
101
  'engagement_audience' => 'bool',
102
  'failed_delivery_checks' => 'list<DeliveryCheck>',
103
  'id' => 'string',
104
- 'is_autobid' => 'bool',
105
  'issues_info' => 'list<AdgroupIssuesInfo>',
106
  'last_updated_by_app_id' => 'string',
107
  'name' => 'string',
57
  const ENGAGEMENT_AUDIENCE = 'engagement_audience';
58
  const FAILED_DELIVERY_CHECKS = 'failed_delivery_checks';
59
  const ID = 'id';
 
60
  const ISSUES_INFO = 'issues_info';
61
  const LAST_UPDATED_BY_APP_ID = 'last_updated_by_app_id';
62
  const NAME = 'name';
100
  'engagement_audience' => 'bool',
101
  'failed_delivery_checks' => 'list<DeliveryCheck>',
102
  'id' => 'string',
 
103
  'issues_info' => 'list<AdgroupIssuesInfo>',
104
  'last_updated_by_app_id' => 'string',
105
  'name' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdSetFields.php CHANGED
@@ -66,10 +66,12 @@ class AdSetFields extends AbstractEnum {
66
  const INSTAGRAM_ACTOR_ID = 'instagram_actor_id';
67
  const IS_DYNAMIC_CREATIVE = 'is_dynamic_creative';
68
  const ISSUES_INFO = 'issues_info';
 
69
  const LIFETIME_BUDGET = 'lifetime_budget';
70
  const LIFETIME_IMPS = 'lifetime_imps';
71
  const LIFETIME_MIN_SPEND_TARGET = 'lifetime_min_spend_target';
72
  const LIFETIME_SPEND_CAP = 'lifetime_spend_cap';
 
73
  const NAME = 'name';
74
  const OPTIMIZATION_GOAL = 'optimization_goal';
75
  const OPTIMIZATION_SUB_EVENT = 'optimization_sub_event';
@@ -131,10 +133,12 @@ class AdSetFields extends AbstractEnum {
131
  'instagram_actor_id' => 'string',
132
  'is_dynamic_creative' => 'bool',
133
  'issues_info' => 'list<AdCampaignIssuesInfo>',
 
134
  'lifetime_budget' => 'string',
135
  'lifetime_imps' => 'int',
136
  'lifetime_min_spend_target' => 'string',
137
  'lifetime_spend_cap' => 'string',
 
138
  'name' => 'string',
139
  'optimization_goal' => 'OptimizationGoal',
140
  'optimization_sub_event' => 'string',
66
  const INSTAGRAM_ACTOR_ID = 'instagram_actor_id';
67
  const IS_DYNAMIC_CREATIVE = 'is_dynamic_creative';
68
  const ISSUES_INFO = 'issues_info';
69
+ const LEARNING_STAGE_INFO = 'learning_stage_info';
70
  const LIFETIME_BUDGET = 'lifetime_budget';
71
  const LIFETIME_IMPS = 'lifetime_imps';
72
  const LIFETIME_MIN_SPEND_TARGET = 'lifetime_min_spend_target';
73
  const LIFETIME_SPEND_CAP = 'lifetime_spend_cap';
74
+ const MULTI_OPTIMIZATION_GOAL_WEIGHT = 'multi_optimization_goal_weight';
75
  const NAME = 'name';
76
  const OPTIMIZATION_GOAL = 'optimization_goal';
77
  const OPTIMIZATION_SUB_EVENT = 'optimization_sub_event';
133
  'instagram_actor_id' => 'string',
134
  'is_dynamic_creative' => 'bool',
135
  'issues_info' => 'list<AdCampaignIssuesInfo>',
136
+ 'learning_stage_info' => 'AdCampaignLearningStageInfo',
137
  'lifetime_budget' => 'string',
138
  'lifetime_imps' => 'int',
139
  'lifetime_min_spend_target' => 'string',
140
  'lifetime_spend_cap' => 'string',
141
+ 'multi_optimization_goal_weight' => 'string',
142
  'name' => 'string',
143
  'optimization_goal' => 'OptimizationGoal',
144
  'optimization_sub_event' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupActivityFields.php CHANGED
@@ -92,8 +92,8 @@ class AdgroupActivityFields extends AbstractEnum {
92
 
93
  public function getFieldTypes() {
94
  return array(
95
- 'ad_creative_id_new' => 'string',
96
- 'ad_creative_id_old' => 'string',
97
  'asset_feed_id_new' => 'string',
98
  'asset_feed_id_old' => 'string',
99
  'bid_amount_new' => 'int',
@@ -128,8 +128,8 @@ class AdgroupActivityFields extends AbstractEnum {
128
  'reason_old' => 'string',
129
  'run_status_new' => 'string',
130
  'run_status_old' => 'string',
131
- 'source_adgroup_id_new' => 'string',
132
- 'source_adgroup_id_old' => 'string',
133
  'start_time_new' => 'datetime',
134
  'start_time_old' => 'datetime',
135
  'stop_time_new' => 'datetime',
92
 
93
  public function getFieldTypes() {
94
  return array(
95
+ 'ad_creative_id_new' => 'AdCreative',
96
+ 'ad_creative_id_old' => 'AdCreative',
97
  'asset_feed_id_new' => 'string',
98
  'asset_feed_id_old' => 'string',
99
  'bid_amount_new' => 'int',
128
  'reason_old' => 'string',
129
  'run_status_new' => 'string',
130
  'run_status_old' => 'string',
131
+ 'source_adgroup_id_new' => 'Ad',
132
+ 'source_adgroup_id_old' => 'Ad',
133
  'start_time_new' => 'datetime',
134
  'start_time_old' => 'datetime',
135
  'stop_time_new' => 'datetime',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php CHANGED
@@ -45,7 +45,9 @@ class AdgroupPlacementSpecificReviewFeedbackFields extends AbstractEnum {
45
  const DAILY_DEALS = 'daily_deals';
46
  const DAILY_DEALS_LEGACY = 'daily_deals_legacy';
47
  const DPA = 'dpa';
 
48
  const FACEBOOK = 'facebook';
 
49
  const INSTAGRAM = 'instagram';
50
  const INSTAGRAM_SHOP = 'instagram_shop';
51
  const LEAD_GEN_HONEYPOT = 'lead_gen_honeypot';
@@ -74,7 +76,9 @@ class AdgroupPlacementSpecificReviewFeedbackFields extends AbstractEnum {
74
  'daily_deals' => 'map<string, string>',
75
  'daily_deals_legacy' => 'map<string, string>',
76
  'dpa' => 'map<string, string>',
 
77
  'facebook' => 'map<string, string>',
 
78
  'instagram' => 'map<string, string>',
79
  'instagram_shop' => 'map<string, string>',
80
  'lead_gen_honeypot' => 'map<string, string>',
45
  const DAILY_DEALS = 'daily_deals';
46
  const DAILY_DEALS_LEGACY = 'daily_deals_legacy';
47
  const DPA = 'dpa';
48
+ const DRI_COUNTERFEIT = 'dri_counterfeit';
49
  const FACEBOOK = 'facebook';
50
+ const FACEBOOK_PAGES_LIVE_SHOPPING = 'facebook_pages_live_shopping';
51
  const INSTAGRAM = 'instagram';
52
  const INSTAGRAM_SHOP = 'instagram_shop';
53
  const LEAD_GEN_HONEYPOT = 'lead_gen_honeypot';
76
  'daily_deals' => 'map<string, string>',
77
  'daily_deals_legacy' => 'map<string, string>',
78
  'dpa' => 'map<string, string>',
79
+ 'dri_counterfeit' => 'map<string, string>',
80
  'facebook' => 'map<string, string>',
81
+ 'facebook_pages_live_shopping' => 'map<string, string>',
82
  'instagram' => 'map<string, string>',
83
  'instagram_shop' => 'map<string, string>',
84
  'lead_gen_honeypot' => 'map<string, string>',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdsInsightsFields.php CHANGED
@@ -42,14 +42,10 @@ class AdsInsightsFields extends AbstractEnum {
42
  const ACCOUNT_NAME = 'account_name';
43
  const ACTION_VALUES = 'action_values';
44
  const ACTIONS = 'actions';
45
- const ACTIONS_PER_IMPRESSION = 'actions_per_impression';
46
- const ACTIONS_RESULTS = 'actions_results';
47
- const ACTIVITY_RECENCY = 'activity_recency';
48
  const AD_BID_TYPE = 'ad_bid_type';
49
  const AD_BID_VALUE = 'ad_bid_value';
50
  const AD_CLICK_ACTIONS = 'ad_click_actions';
51
  const AD_DELIVERY = 'ad_delivery';
52
- const AD_FORMAT_ASSET = 'ad_format_asset';
53
  const AD_ID = 'ad_id';
54
  const AD_IMPRESSION_ACTIONS = 'ad_impression_actions';
55
  const AD_NAME = 'ad_name';
@@ -62,103 +58,49 @@ class AdsInsightsFields extends AbstractEnum {
62
  const ADSET_ID = 'adset_id';
63
  const ADSET_NAME = 'adset_name';
64
  const ADSET_START = 'adset_start';
65
- const AGE = 'age';
66
  const AGE_TARGETING = 'age_targeting';
67
- const AMOUNT_IN_CATALOG_CURRENCY = 'amount_in_catalog_currency';
68
- const APP_STORE_CLICKS = 'app_store_clicks';
69
- const ATTENTION_EVENTS_PER_IMPRESSION = 'attention_events_per_impression';
70
- const ATTENTION_EVENTS_UNQ_PER_REACH = 'attention_events_unq_per_reach';
71
  const AUCTION_BID = 'auction_bid';
72
  const AUCTION_COMPETITIVENESS = 'auction_competitiveness';
73
  const AUCTION_MAX_COMPETITOR_BID = 'auction_max_competitor_bid';
74
- const BODY_ASSET = 'body_asset';
75
  const BUYING_TYPE = 'buying_type';
76
- const CALL_TO_ACTION_ASSET = 'call_to_action_asset';
77
- const CALL_TO_ACTION_CLICKS = 'call_to_action_clicks';
78
- const CAMPAIGN_DELIVERY = 'campaign_delivery';
79
- const CAMPAIGN_END = 'campaign_end';
80
  const CAMPAIGN_ID = 'campaign_id';
81
  const CAMPAIGN_NAME = 'campaign_name';
82
- const CAMPAIGN_START = 'campaign_start';
83
- const CANCEL_SUBSCRIPTION_ACTIONS = 'cancel_subscription_actions';
84
  const CANVAS_AVG_VIEW_PERCENT = 'canvas_avg_view_percent';
85
  const CANVAS_AVG_VIEW_TIME = 'canvas_avg_view_time';
86
- const CARD_VIEWS = 'card_views';
87
- const CATALOG_SEGMENT_ACTIONS = 'catalog_segment_actions';
88
- const CATALOG_SEGMENT_VALUE_IN_CATALOG_CURRENCY = 'catalog_segment_value_in_catalog_currency';
89
  const CATALOG_SEGMENT_VALUE_MOBILE_PURCHASE_ROAS = 'catalog_segment_value_mobile_purchase_roas';
 
90
  const CATALOG_SEGMENT_VALUE_WEBSITE_PURCHASE_ROAS = 'catalog_segment_value_website_purchase_roas';
91
  const CLICKS = 'clicks';
92
- const CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTIONS = 'conditional_time_spent_ms_over_10s_actions';
93
- const CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTIONS = 'conditional_time_spent_ms_over_15s_actions';
94
- const CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTIONS = 'conditional_time_spent_ms_over_2s_actions';
95
- const CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTIONS = 'conditional_time_spent_ms_over_3s_actions';
96
- const CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTIONS = 'conditional_time_spent_ms_over_6s_actions';
97
- const CONTACT_ACTIONS = 'contact_actions';
98
- const CONTACT_VALUE = 'contact_value';
99
  const CONVERSION_RATE_RANKING = 'conversion_rate_ranking';
100
  const CONVERSION_VALUES = 'conversion_values';
101
  const CONVERSIONS = 'conversions';
102
  const COST_PER_15_SEC_VIDEO_VIEW = 'cost_per_15_sec_video_view';
103
  const COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW = 'cost_per_2_sec_continuous_video_view';
104
- const COST_PER_ACTION_RESULT = 'cost_per_action_result';
105
  const COST_PER_ACTION_TYPE = 'cost_per_action_type';
106
  const COST_PER_AD_CLICK = 'cost_per_ad_click';
107
- const COST_PER_COMPLETED_VIDEO_VIEW = 'cost_per_completed_video_view';
108
- const COST_PER_CONTACT = 'cost_per_contact';
109
  const COST_PER_CONVERSION = 'cost_per_conversion';
110
- const COST_PER_CUSTOMIZE_PRODUCT = 'cost_per_customize_product';
111
  const COST_PER_DDA_COUNTBY_CONVS = 'cost_per_dda_countby_convs';
112
- const COST_PER_DONATE = 'cost_per_donate';
113
- const COST_PER_DWELL = 'cost_per_dwell';
114
- const COST_PER_DWELL_3_SEC = 'cost_per_dwell_3_sec';
115
- const COST_PER_DWELL_5_SEC = 'cost_per_dwell_5_sec';
116
- const COST_PER_DWELL_7_SEC = 'cost_per_dwell_7_sec';
117
  const COST_PER_ESTIMATED_AD_RECALLERS = 'cost_per_estimated_ad_recallers';
118
- const COST_PER_FIND_LOCATION = 'cost_per_find_location';
119
  const COST_PER_INLINE_LINK_CLICK = 'cost_per_inline_link_click';
120
  const COST_PER_INLINE_POST_ENGAGEMENT = 'cost_per_inline_post_engagement';
121
  const COST_PER_ONE_THOUSAND_AD_IMPRESSION = 'cost_per_one_thousand_ad_impression';
122
  const COST_PER_OUTBOUND_CLICK = 'cost_per_outbound_click';
123
- const COST_PER_SCHEDULE = 'cost_per_schedule';
124
- const COST_PER_START_TRIAL = 'cost_per_start_trial';
125
  const COST_PER_STORE_VISIT_ACTION = 'cost_per_store_visit_action';
126
- const COST_PER_SUBMIT_APPLICATION = 'cost_per_submit_application';
127
- const COST_PER_SUBSCRIBE = 'cost_per_subscribe';
128
  const COST_PER_THRUPLAY = 'cost_per_thruplay';
129
- const COST_PER_TOTAL_ACTION = 'cost_per_total_action';
130
  const COST_PER_UNIQUE_ACTION_TYPE = 'cost_per_unique_action_type';
131
  const COST_PER_UNIQUE_CLICK = 'cost_per_unique_click';
132
  const COST_PER_UNIQUE_CONVERSION = 'cost_per_unique_conversion';
133
  const COST_PER_UNIQUE_INLINE_LINK_CLICK = 'cost_per_unique_inline_link_click';
134
  const COST_PER_UNIQUE_OUTBOUND_CLICK = 'cost_per_unique_outbound_click';
135
- const COUNTRY = 'country';
136
  const CPC = 'cpc';
137
  const CPM = 'cpm';
138
  const CPP = 'cpp';
139
  const CREATED_TIME = 'created_time';
140
- const CREATIVE_FINGERPRINT = 'creative_fingerprint';
141
  const CTR = 'ctr';
142
- const CUSTOMIZE_PRODUCT_ACTIONS = 'customize_product_actions';
143
- const CUSTOMIZE_PRODUCT_VALUE = 'customize_product_value';
144
  const DATE_START = 'date_start';
145
  const DATE_STOP = 'date_stop';
146
  const DDA_COUNTBY_CONVS = 'dda_countby_convs';
147
- const DEDUPING_1ST_SOURCE_RATIO = 'deduping_1st_source_ratio';
148
- const DEDUPING_2ND_SOURCE_RATIO = 'deduping_2nd_source_ratio';
149
- const DEDUPING_3RD_SOURCE_RATIO = 'deduping_3rd_source_ratio';
150
- const DEDUPING_RATIO = 'deduping_ratio';
151
- const DEEPLINK_CLICKS = 'deeplink_clicks';
152
- const DESCRIPTION_ASSET = 'description_asset';
153
- const DEVICE_PLATFORM = 'device_platform';
154
- const DMA = 'dma';
155
- const DONATE_ACTIONS = 'donate_actions';
156
- const DONATE_VALUE = 'donate_value';
157
- const DWELL_3_SEC = 'dwell_3_sec';
158
- const DWELL_5_SEC = 'dwell_5_sec';
159
- const DWELL_7_SEC = 'dwell_7_sec';
160
- const DWELL_RATE = 'dwell_rate';
161
- const EARNED_IMPRESSION = 'earned_impression';
162
  const ENGAGEMENT_RATE_RANKING = 'engagement_rate_ranking';
163
  const ESTIMATED_AD_RECALL_RATE = 'estimated_ad_recall_rate';
164
  const ESTIMATED_AD_RECALL_RATE_LOWER_BOUND = 'estimated_ad_recall_rate_lower_bound';
@@ -166,78 +108,38 @@ class AdsInsightsFields extends AbstractEnum {
166
  const ESTIMATED_AD_RECALLERS = 'estimated_ad_recallers';
167
  const ESTIMATED_AD_RECALLERS_LOWER_BOUND = 'estimated_ad_recallers_lower_bound';
168
  const ESTIMATED_AD_RECALLERS_UPPER_BOUND = 'estimated_ad_recallers_upper_bound';
169
- const FIND_LOCATION_ACTIONS = 'find_location_actions';
170
- const FIND_LOCATION_VALUE = 'find_location_value';
171
  const FREQUENCY = 'frequency';
172
- const FREQUENCY_VALUE = 'frequency_value';
173
  const FULL_VIEW_IMPRESSIONS = 'full_view_impressions';
174
  const FULL_VIEW_REACH = 'full_view_reach';
175
- const GENDER = 'gender';
176
  const GENDER_TARGETING = 'gender_targeting';
177
- const HOURLY_STATS_AGGREGATED_BY_ADVERTISER_TIME_ZONE = 'hourly_stats_aggregated_by_advertiser_time_zone';
178
- const HOURLY_STATS_AGGREGATED_BY_AUDIENCE_TIME_ZONE = 'hourly_stats_aggregated_by_audience_time_zone';
179
- const IMAGE_ASSET = 'image_asset';
180
- const IMPRESSION_DEVICE = 'impression_device';
181
  const IMPRESSIONS = 'impressions';
182
- const IMPRESSIONS_AUTO_REFRESH = 'impressions_auto_refresh';
183
- const IMPRESSIONS_GROSS = 'impressions_gross';
184
  const INLINE_LINK_CLICK_CTR = 'inline_link_click_ctr';
185
  const INLINE_LINK_CLICKS = 'inline_link_clicks';
186
  const INLINE_POST_ENGAGEMENT = 'inline_post_engagement';
187
  const INSTANT_EXPERIENCE_CLICKS_TO_OPEN = 'instant_experience_clicks_to_open';
188
  const INSTANT_EXPERIENCE_CLICKS_TO_START = 'instant_experience_clicks_to_start';
189
  const INSTANT_EXPERIENCE_OUTBOUND_CLICKS = 'instant_experience_outbound_clicks';
190
- const INTERACTIVE_COMPONENT_TAP = 'interactive_component_tap';
191
  const LABELS = 'labels';
192
- const LINK_URL_ASSET = 'link_url_asset';
193
  const LOCATION = 'location';
194
- const MEDIA_ASSET = 'media_asset';
195
  const MOBILE_APP_PURCHASE_ROAS = 'mobile_app_purchase_roas';
196
- const NEWSFEED_AVG_POSITION = 'newsfeed_avg_position';
197
- const NEWSFEED_CLICKS = 'newsfeed_clicks';
198
- const NEWSFEED_IMPRESSIONS = 'newsfeed_impressions';
199
  const OBJECTIVE = 'objective';
200
- const OPTIMIZATION_GOAL = 'optimization_goal';
201
  const OUTBOUND_CLICKS = 'outbound_clicks';
202
  const OUTBOUND_CLICKS_CTR = 'outbound_clicks_ctr';
203
- const PERFORMANCE_INDICATOR = 'performance_indicator';
204
- const PLACE_PAGE_ID = 'place_page_id';
205
  const PLACE_PAGE_NAME = 'place_page_name';
206
- const PLACEMENT = 'placement';
207
- const PLATFORM_POSITION = 'platform_position';
208
- const PRODUCT_ID = 'product_id';
209
- const PUBLISHER_PLATFORM = 'publisher_platform';
210
  const PURCHASE_ROAS = 'purchase_roas';
 
211
  const QUALITY_RANKING = 'quality_ranking';
212
  const QUALITY_SCORE_ECTR = 'quality_score_ectr';
213
  const QUALITY_SCORE_ECVR = 'quality_score_ecvr';
214
  const QUALITY_SCORE_ORGANIC = 'quality_score_organic';
215
  const REACH = 'reach';
216
- const RECURRING_SUBSCRIPTION_PAYMENT_ACTIONS = 'recurring_subscription_payment_actions';
217
- const REGION = 'region';
218
- const RULE_ASSET = 'rule_asset';
219
- const SCHEDULE_ACTIONS = 'schedule_actions';
220
- const SCHEDULE_VALUE = 'schedule_value';
221
  const SOCIAL_SPEND = 'social_spend';
222
  const SPEND = 'spend';
223
- const START_TRIAL_ACTIONS = 'start_trial_actions';
224
- const START_TRIAL_VALUE = 'start_trial_value';
225
  const STORE_VISIT_ACTIONS = 'store_visit_actions';
226
- const SUBMIT_APPLICATION_ACTIONS = 'submit_application_actions';
227
- const SUBMIT_APPLICATION_VALUE = 'submit_application_value';
228
- const SUBSCRIBE_ACTIONS = 'subscribe_actions';
229
- const SUBSCRIBE_VALUE = 'subscribe_value';
230
- const THUMB_STOPS = 'thumb_stops';
231
- const TITLE_ASSET = 'title_asset';
232
- const TODAY_SPEND = 'today_spend';
233
- const TOTAL_ACTION_VALUE = 'total_action_value';
234
- const TOTAL_ACTIONS = 'total_actions';
235
- const TOTAL_UNIQUE_ACTIONS = 'total_unique_actions';
236
  const UNIQUE_ACTIONS = 'unique_actions';
237
  const UNIQUE_CLICKS = 'unique_clicks';
238
  const UNIQUE_CONVERSIONS = 'unique_conversions';
239
  const UNIQUE_CTR = 'unique_ctr';
240
- const UNIQUE_IMPRESSIONS = 'unique_impressions';
241
  const UNIQUE_INLINE_LINK_CLICK_CTR = 'unique_inline_link_click_ctr';
242
  const UNIQUE_INLINE_LINK_CLICKS = 'unique_inline_link_clicks';
243
  const UNIQUE_LINK_CLICKS_CTR = 'unique_link_clicks_ctr';
@@ -248,10 +150,7 @@ class AdsInsightsFields extends AbstractEnum {
248
  const UPDATED_TIME = 'updated_time';
249
  const VIDEO_15_SEC_WATCHED_ACTIONS = 'video_15_sec_watched_actions';
250
  const VIDEO_30_SEC_WATCHED_ACTIONS = 'video_30_sec_watched_actions';
251
- const VIDEO_ASSET = 'video_asset';
252
  const VIDEO_AVG_TIME_WATCHED_ACTIONS = 'video_avg_time_watched_actions';
253
- const VIDEO_COMPLETE_WATCHED_ACTIONS = 'video_complete_watched_actions';
254
- const VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTIONS = 'video_completed_view_or_15s_passed_actions';
255
  const VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTIONS = 'video_continuous_2_sec_watched_actions';
256
  const VIDEO_P100_WATCHED_ACTIONS = 'video_p100_watched_actions';
257
  const VIDEO_P25_WATCHED_ACTIONS = 'video_p25_watched_actions';
@@ -265,7 +164,6 @@ class AdsInsightsFields extends AbstractEnum {
265
  const VIDEO_PLAY_RETENTION_GRAPH_ACTIONS = 'video_play_retention_graph_actions';
266
  const VIDEO_THRUPLAY_WATCHED_ACTIONS = 'video_thruplay_watched_actions';
267
  const VIDEO_TIME_WATCHED_ACTIONS = 'video_time_watched_actions';
268
- const WEBSITE_CLICKS = 'website_clicks';
269
  const WEBSITE_CTR = 'website_ctr';
270
  const WEBSITE_PURCHASE_ROAS = 'website_purchase_roas';
271
  const WISH_BID = 'wish_bid';
@@ -277,14 +175,10 @@ class AdsInsightsFields extends AbstractEnum {
277
  'account_name' => 'string',
278
  'action_values' => 'list<AdsActionStats>',
279
  'actions' => 'list<AdsActionStats>',
280
- 'actions_per_impression' => 'string',
281
- 'actions_results' => 'AdsActionStats',
282
- 'activity_recency' => 'string',
283
  'ad_bid_type' => 'string',
284
  'ad_bid_value' => 'string',
285
  'ad_click_actions' => 'list<AdsActionStats>',
286
  'ad_delivery' => 'string',
287
- 'ad_format_asset' => 'string',
288
  'ad_id' => 'string',
289
  'ad_impression_actions' => 'list<AdsActionStats>',
290
  'ad_name' => 'string',
@@ -297,103 +191,49 @@ class AdsInsightsFields extends AbstractEnum {
297
  'adset_id' => 'string',
298
  'adset_name' => 'string',
299
  'adset_start' => 'string',
300
- 'age' => 'string',
301
  'age_targeting' => 'string',
302
- 'amount_in_catalog_currency' => 'list<AdsActionStats>',
303
- 'app_store_clicks' => 'string',
304
- 'attention_events_per_impression' => 'string',
305
- 'attention_events_unq_per_reach' => 'string',
306
  'auction_bid' => 'string',
307
  'auction_competitiveness' => 'string',
308
  'auction_max_competitor_bid' => 'string',
309
- 'body_asset' => 'Object',
310
  'buying_type' => 'string',
311
- 'call_to_action_asset' => 'Object',
312
- 'call_to_action_clicks' => 'string',
313
- 'campaign_delivery' => 'string',
314
- 'campaign_end' => 'string',
315
  'campaign_id' => 'string',
316
  'campaign_name' => 'string',
317
- 'campaign_start' => 'string',
318
- 'cancel_subscription_actions' => 'list<AdsActionStats>',
319
  'canvas_avg_view_percent' => 'string',
320
  'canvas_avg_view_time' => 'string',
321
- 'card_views' => 'string',
322
- 'catalog_segment_actions' => 'list<AdsActionStats>',
323
- 'catalog_segment_value_in_catalog_currency' => 'list<AdsActionStats>',
324
  'catalog_segment_value_mobile_purchase_roas' => 'list<AdsActionStats>',
 
325
  'catalog_segment_value_website_purchase_roas' => 'list<AdsActionStats>',
326
  'clicks' => 'string',
327
- 'conditional_time_spent_ms_over_10s_actions' => 'list<AdsActionStats>',
328
- 'conditional_time_spent_ms_over_15s_actions' => 'list<AdsActionStats>',
329
- 'conditional_time_spent_ms_over_2s_actions' => 'list<AdsActionStats>',
330
- 'conditional_time_spent_ms_over_3s_actions' => 'list<AdsActionStats>',
331
- 'conditional_time_spent_ms_over_6s_actions' => 'list<AdsActionStats>',
332
- 'contact_actions' => 'list<AdsActionStats>',
333
- 'contact_value' => 'list<AdsActionStats>',
334
  'conversion_rate_ranking' => 'string',
335
  'conversion_values' => 'list<AdsActionStats>',
336
  'conversions' => 'list<AdsActionStats>',
337
  'cost_per_15_sec_video_view' => 'list<AdsActionStats>',
338
  'cost_per_2_sec_continuous_video_view' => 'list<AdsActionStats>',
339
- 'cost_per_action_result' => 'AdsActionStats',
340
  'cost_per_action_type' => 'list<AdsActionStats>',
341
  'cost_per_ad_click' => 'list<AdsActionStats>',
342
- 'cost_per_completed_video_view' => 'list<AdsActionStats>',
343
- 'cost_per_contact' => 'list<AdsActionStats>',
344
  'cost_per_conversion' => 'list<AdsActionStats>',
345
- 'cost_per_customize_product' => 'list<AdsActionStats>',
346
  'cost_per_dda_countby_convs' => 'string',
347
- 'cost_per_donate' => 'list<AdsActionStats>',
348
- 'cost_per_dwell' => 'string',
349
- 'cost_per_dwell_3_sec' => 'string',
350
- 'cost_per_dwell_5_sec' => 'string',
351
- 'cost_per_dwell_7_sec' => 'string',
352
  'cost_per_estimated_ad_recallers' => 'string',
353
- 'cost_per_find_location' => 'list<AdsActionStats>',
354
  'cost_per_inline_link_click' => 'string',
355
  'cost_per_inline_post_engagement' => 'string',
356
  'cost_per_one_thousand_ad_impression' => 'list<AdsActionStats>',
357
  'cost_per_outbound_click' => 'list<AdsActionStats>',
358
- 'cost_per_schedule' => 'list<AdsActionStats>',
359
- 'cost_per_start_trial' => 'list<AdsActionStats>',
360
  'cost_per_store_visit_action' => 'list<AdsActionStats>',
361
- 'cost_per_submit_application' => 'list<AdsActionStats>',
362
- 'cost_per_subscribe' => 'list<AdsActionStats>',
363
  'cost_per_thruplay' => 'list<AdsActionStats>',
364
- 'cost_per_total_action' => 'string',
365
  'cost_per_unique_action_type' => 'list<AdsActionStats>',
366
  'cost_per_unique_click' => 'string',
367
  'cost_per_unique_conversion' => 'list<AdsActionStats>',
368
  'cost_per_unique_inline_link_click' => 'string',
369
  'cost_per_unique_outbound_click' => 'list<AdsActionStats>',
370
- 'country' => 'string',
371
  'cpc' => 'string',
372
  'cpm' => 'string',
373
  'cpp' => 'string',
374
  'created_time' => 'string',
375
- 'creative_fingerprint' => 'string',
376
  'ctr' => 'string',
377
- 'customize_product_actions' => 'list<AdsActionStats>',
378
- 'customize_product_value' => 'list<AdsActionStats>',
379
  'date_start' => 'string',
380
  'date_stop' => 'string',
381
  'dda_countby_convs' => 'string',
382
- 'deduping_1st_source_ratio' => 'string',
383
- 'deduping_2nd_source_ratio' => 'string',
384
- 'deduping_3rd_source_ratio' => 'string',
385
- 'deduping_ratio' => 'string',
386
- 'deeplink_clicks' => 'string',
387
- 'description_asset' => 'Object',
388
- 'device_platform' => 'string',
389
- 'dma' => 'string',
390
- 'donate_actions' => 'list<AdsActionStats>',
391
- 'donate_value' => 'list<AdsActionStats>',
392
- 'dwell_3_sec' => 'string',
393
- 'dwell_5_sec' => 'string',
394
- 'dwell_7_sec' => 'string',
395
- 'dwell_rate' => 'string',
396
- 'earned_impression' => 'string',
397
  'engagement_rate_ranking' => 'string',
398
  'estimated_ad_recall_rate' => 'string',
399
  'estimated_ad_recall_rate_lower_bound' => 'string',
@@ -401,78 +241,38 @@ class AdsInsightsFields extends AbstractEnum {
401
  'estimated_ad_recallers' => 'string',
402
  'estimated_ad_recallers_lower_bound' => 'string',
403
  'estimated_ad_recallers_upper_bound' => 'string',
404
- 'find_location_actions' => 'list<AdsActionStats>',
405
- 'find_location_value' => 'list<AdsActionStats>',
406
  'frequency' => 'string',
407
- 'frequency_value' => 'string',
408
  'full_view_impressions' => 'string',
409
  'full_view_reach' => 'string',
410
- 'gender' => 'string',
411
  'gender_targeting' => 'string',
412
- 'hourly_stats_aggregated_by_advertiser_time_zone' => 'string',
413
- 'hourly_stats_aggregated_by_audience_time_zone' => 'string',
414
- 'image_asset' => 'Object',
415
- 'impression_device' => 'string',
416
  'impressions' => 'string',
417
- 'impressions_auto_refresh' => 'string',
418
- 'impressions_gross' => 'string',
419
  'inline_link_click_ctr' => 'string',
420
  'inline_link_clicks' => 'string',
421
  'inline_post_engagement' => 'string',
422
  'instant_experience_clicks_to_open' => 'string',
423
  'instant_experience_clicks_to_start' => 'string',
424
  'instant_experience_outbound_clicks' => 'string',
425
- 'interactive_component_tap' => 'list<AdsActionStats>',
426
  'labels' => 'string',
427
- 'link_url_asset' => 'Object',
428
  'location' => 'string',
429
- 'media_asset' => 'Object',
430
  'mobile_app_purchase_roas' => 'list<AdsActionStats>',
431
- 'newsfeed_avg_position' => 'string',
432
- 'newsfeed_clicks' => 'string',
433
- 'newsfeed_impressions' => 'string',
434
  'objective' => 'string',
435
- 'optimization_goal' => 'string',
436
  'outbound_clicks' => 'list<AdsActionStats>',
437
  'outbound_clicks_ctr' => 'list<AdsActionStats>',
438
- 'performance_indicator' => 'string',
439
- 'place_page_id' => 'string',
440
  'place_page_name' => 'string',
441
- 'placement' => 'string',
442
- 'platform_position' => 'string',
443
- 'product_id' => 'string',
444
- 'publisher_platform' => 'string',
445
  'purchase_roas' => 'list<AdsActionStats>',
 
446
  'quality_ranking' => 'string',
447
  'quality_score_ectr' => 'string',
448
  'quality_score_ecvr' => 'string',
449
  'quality_score_organic' => 'string',
450
  'reach' => 'string',
451
- 'recurring_subscription_payment_actions' => 'list<AdsActionStats>',
452
- 'region' => 'string',
453
- 'rule_asset' => 'Object',
454
- 'schedule_actions' => 'list<AdsActionStats>',
455
- 'schedule_value' => 'list<AdsActionStats>',
456
  'social_spend' => 'string',
457
  'spend' => 'string',
458
- 'start_trial_actions' => 'list<AdsActionStats>',
459
- 'start_trial_value' => 'list<AdsActionStats>',
460
  'store_visit_actions' => 'list<AdsActionStats>',
461
- 'submit_application_actions' => 'list<AdsActionStats>',
462
- 'submit_application_value' => 'list<AdsActionStats>',
463
- 'subscribe_actions' => 'list<AdsActionStats>',
464
- 'subscribe_value' => 'list<AdsActionStats>',
465
- 'thumb_stops' => 'string',
466
- 'title_asset' => 'Object',
467
- 'today_spend' => 'string',
468
- 'total_action_value' => 'string',
469
- 'total_actions' => 'string',
470
- 'total_unique_actions' => 'string',
471
  'unique_actions' => 'list<AdsActionStats>',
472
  'unique_clicks' => 'string',
473
  'unique_conversions' => 'list<AdsActionStats>',
474
  'unique_ctr' => 'string',
475
- 'unique_impressions' => 'string',
476
  'unique_inline_link_click_ctr' => 'string',
477
  'unique_inline_link_clicks' => 'string',
478
  'unique_link_clicks_ctr' => 'string',
@@ -483,10 +283,7 @@ class AdsInsightsFields extends AbstractEnum {
483
  'updated_time' => 'string',
484
  'video_15_sec_watched_actions' => 'list<AdsActionStats>',
485
  'video_30_sec_watched_actions' => 'list<AdsActionStats>',
486
- 'video_asset' => 'Object',
487
  'video_avg_time_watched_actions' => 'list<AdsActionStats>',
488
- 'video_complete_watched_actions' => 'list<AdsActionStats>',
489
- 'video_completed_view_or_15s_passed_actions' => 'list<AdsActionStats>',
490
  'video_continuous_2_sec_watched_actions' => 'list<AdsActionStats>',
491
  'video_p100_watched_actions' => 'list<AdsActionStats>',
492
  'video_p25_watched_actions' => 'list<AdsActionStats>',
@@ -500,7 +297,6 @@ class AdsInsightsFields extends AbstractEnum {
500
  'video_play_retention_graph_actions' => 'list<Object>',
501
  'video_thruplay_watched_actions' => 'list<AdsActionStats>',
502
  'video_time_watched_actions' => 'list<AdsActionStats>',
503
- 'website_clicks' => 'string',
504
  'website_ctr' => 'list<AdsActionStats>',
505
  'website_purchase_roas' => 'list<AdsActionStats>',
506
  'wish_bid' => 'string',
42
  const ACCOUNT_NAME = 'account_name';
43
  const ACTION_VALUES = 'action_values';
44
  const ACTIONS = 'actions';
 
 
 
45
  const AD_BID_TYPE = 'ad_bid_type';
46
  const AD_BID_VALUE = 'ad_bid_value';
47
  const AD_CLICK_ACTIONS = 'ad_click_actions';
48
  const AD_DELIVERY = 'ad_delivery';
 
49
  const AD_ID = 'ad_id';
50
  const AD_IMPRESSION_ACTIONS = 'ad_impression_actions';
51
  const AD_NAME = 'ad_name';
58
  const ADSET_ID = 'adset_id';
59
  const ADSET_NAME = 'adset_name';
60
  const ADSET_START = 'adset_start';
 
61
  const AGE_TARGETING = 'age_targeting';
 
 
 
 
62
  const AUCTION_BID = 'auction_bid';
63
  const AUCTION_COMPETITIVENESS = 'auction_competitiveness';
64
  const AUCTION_MAX_COMPETITOR_BID = 'auction_max_competitor_bid';
 
65
  const BUYING_TYPE = 'buying_type';
 
 
 
 
66
  const CAMPAIGN_ID = 'campaign_id';
67
  const CAMPAIGN_NAME = 'campaign_name';
 
 
68
  const CANVAS_AVG_VIEW_PERCENT = 'canvas_avg_view_percent';
69
  const CANVAS_AVG_VIEW_TIME = 'canvas_avg_view_time';
70
+ const CATALOG_SEGMENT_VALUE = 'catalog_segment_value';
 
 
71
  const CATALOG_SEGMENT_VALUE_MOBILE_PURCHASE_ROAS = 'catalog_segment_value_mobile_purchase_roas';
72
+ const CATALOG_SEGMENT_VALUE_OMNI_PURCHASE_ROAS = 'catalog_segment_value_omni_purchase_roas';
73
  const CATALOG_SEGMENT_VALUE_WEBSITE_PURCHASE_ROAS = 'catalog_segment_value_website_purchase_roas';
74
  const CLICKS = 'clicks';
 
 
 
 
 
 
 
75
  const CONVERSION_RATE_RANKING = 'conversion_rate_ranking';
76
  const CONVERSION_VALUES = 'conversion_values';
77
  const CONVERSIONS = 'conversions';
78
  const COST_PER_15_SEC_VIDEO_VIEW = 'cost_per_15_sec_video_view';
79
  const COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW = 'cost_per_2_sec_continuous_video_view';
 
80
  const COST_PER_ACTION_TYPE = 'cost_per_action_type';
81
  const COST_PER_AD_CLICK = 'cost_per_ad_click';
 
 
82
  const COST_PER_CONVERSION = 'cost_per_conversion';
 
83
  const COST_PER_DDA_COUNTBY_CONVS = 'cost_per_dda_countby_convs';
 
 
 
 
 
84
  const COST_PER_ESTIMATED_AD_RECALLERS = 'cost_per_estimated_ad_recallers';
 
85
  const COST_PER_INLINE_LINK_CLICK = 'cost_per_inline_link_click';
86
  const COST_PER_INLINE_POST_ENGAGEMENT = 'cost_per_inline_post_engagement';
87
  const COST_PER_ONE_THOUSAND_AD_IMPRESSION = 'cost_per_one_thousand_ad_impression';
88
  const COST_PER_OUTBOUND_CLICK = 'cost_per_outbound_click';
 
 
89
  const COST_PER_STORE_VISIT_ACTION = 'cost_per_store_visit_action';
 
 
90
  const COST_PER_THRUPLAY = 'cost_per_thruplay';
 
91
  const COST_PER_UNIQUE_ACTION_TYPE = 'cost_per_unique_action_type';
92
  const COST_PER_UNIQUE_CLICK = 'cost_per_unique_click';
93
  const COST_PER_UNIQUE_CONVERSION = 'cost_per_unique_conversion';
94
  const COST_PER_UNIQUE_INLINE_LINK_CLICK = 'cost_per_unique_inline_link_click';
95
  const COST_PER_UNIQUE_OUTBOUND_CLICK = 'cost_per_unique_outbound_click';
 
96
  const CPC = 'cpc';
97
  const CPM = 'cpm';
98
  const CPP = 'cpp';
99
  const CREATED_TIME = 'created_time';
 
100
  const CTR = 'ctr';
 
 
101
  const DATE_START = 'date_start';
102
  const DATE_STOP = 'date_stop';
103
  const DDA_COUNTBY_CONVS = 'dda_countby_convs';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  const ENGAGEMENT_RATE_RANKING = 'engagement_rate_ranking';
105
  const ESTIMATED_AD_RECALL_RATE = 'estimated_ad_recall_rate';
106
  const ESTIMATED_AD_RECALL_RATE_LOWER_BOUND = 'estimated_ad_recall_rate_lower_bound';
108
  const ESTIMATED_AD_RECALLERS = 'estimated_ad_recallers';
109
  const ESTIMATED_AD_RECALLERS_LOWER_BOUND = 'estimated_ad_recallers_lower_bound';
110
  const ESTIMATED_AD_RECALLERS_UPPER_BOUND = 'estimated_ad_recallers_upper_bound';
 
 
111
  const FREQUENCY = 'frequency';
 
112
  const FULL_VIEW_IMPRESSIONS = 'full_view_impressions';
113
  const FULL_VIEW_REACH = 'full_view_reach';
 
114
  const GENDER_TARGETING = 'gender_targeting';
 
 
 
 
115
  const IMPRESSIONS = 'impressions';
 
 
116
  const INLINE_LINK_CLICK_CTR = 'inline_link_click_ctr';
117
  const INLINE_LINK_CLICKS = 'inline_link_clicks';
118
  const INLINE_POST_ENGAGEMENT = 'inline_post_engagement';
119
  const INSTANT_EXPERIENCE_CLICKS_TO_OPEN = 'instant_experience_clicks_to_open';
120
  const INSTANT_EXPERIENCE_CLICKS_TO_START = 'instant_experience_clicks_to_start';
121
  const INSTANT_EXPERIENCE_OUTBOUND_CLICKS = 'instant_experience_outbound_clicks';
 
122
  const LABELS = 'labels';
 
123
  const LOCATION = 'location';
 
124
  const MOBILE_APP_PURCHASE_ROAS = 'mobile_app_purchase_roas';
 
 
 
125
  const OBJECTIVE = 'objective';
 
126
  const OUTBOUND_CLICKS = 'outbound_clicks';
127
  const OUTBOUND_CLICKS_CTR = 'outbound_clicks_ctr';
 
 
128
  const PLACE_PAGE_NAME = 'place_page_name';
 
 
 
 
129
  const PURCHASE_ROAS = 'purchase_roas';
130
+ const QUALIFYING_QUESTION_QUALIFY_ANSWER_RATE = 'qualifying_question_qualify_answer_rate';
131
  const QUALITY_RANKING = 'quality_ranking';
132
  const QUALITY_SCORE_ECTR = 'quality_score_ectr';
133
  const QUALITY_SCORE_ECVR = 'quality_score_ecvr';
134
  const QUALITY_SCORE_ORGANIC = 'quality_score_organic';
135
  const REACH = 'reach';
 
 
 
 
 
136
  const SOCIAL_SPEND = 'social_spend';
137
  const SPEND = 'spend';
 
 
138
  const STORE_VISIT_ACTIONS = 'store_visit_actions';
 
 
 
 
 
 
 
 
 
 
139
  const UNIQUE_ACTIONS = 'unique_actions';
140
  const UNIQUE_CLICKS = 'unique_clicks';
141
  const UNIQUE_CONVERSIONS = 'unique_conversions';
142
  const UNIQUE_CTR = 'unique_ctr';
 
143
  const UNIQUE_INLINE_LINK_CLICK_CTR = 'unique_inline_link_click_ctr';
144
  const UNIQUE_INLINE_LINK_CLICKS = 'unique_inline_link_clicks';
145
  const UNIQUE_LINK_CLICKS_CTR = 'unique_link_clicks_ctr';
150
  const UPDATED_TIME = 'updated_time';
151
  const VIDEO_15_SEC_WATCHED_ACTIONS = 'video_15_sec_watched_actions';
152
  const VIDEO_30_SEC_WATCHED_ACTIONS = 'video_30_sec_watched_actions';
 
153
  const VIDEO_AVG_TIME_WATCHED_ACTIONS = 'video_avg_time_watched_actions';
 
 
154
  const VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTIONS = 'video_continuous_2_sec_watched_actions';
155
  const VIDEO_P100_WATCHED_ACTIONS = 'video_p100_watched_actions';
156
  const VIDEO_P25_WATCHED_ACTIONS = 'video_p25_watched_actions';
164
  const VIDEO_PLAY_RETENTION_GRAPH_ACTIONS = 'video_play_retention_graph_actions';
165
  const VIDEO_THRUPLAY_WATCHED_ACTIONS = 'video_thruplay_watched_actions';
166
  const VIDEO_TIME_WATCHED_ACTIONS = 'video_time_watched_actions';
 
167
  const WEBSITE_CTR = 'website_ctr';
168
  const WEBSITE_PURCHASE_ROAS = 'website_purchase_roas';
169
  const WISH_BID = 'wish_bid';
175
  'account_name' => 'string',
176
  'action_values' => 'list<AdsActionStats>',
177
  'actions' => 'list<AdsActionStats>',
 
 
 
178
  'ad_bid_type' => 'string',
179
  'ad_bid_value' => 'string',
180
  'ad_click_actions' => 'list<AdsActionStats>',
181
  'ad_delivery' => 'string',
 
182
  'ad_id' => 'string',
183
  'ad_impression_actions' => 'list<AdsActionStats>',
184
  'ad_name' => 'string',
191
  'adset_id' => 'string',
192
  'adset_name' => 'string',
193
  'adset_start' => 'string',
 
194
  'age_targeting' => 'string',
 
 
 
 
195
  'auction_bid' => 'string',
196
  'auction_competitiveness' => 'string',
197
  'auction_max_competitor_bid' => 'string',
 
198
  'buying_type' => 'string',
 
 
 
 
199
  'campaign_id' => 'string',
200
  'campaign_name' => 'string',
 
 
201
  'canvas_avg_view_percent' => 'string',
202
  'canvas_avg_view_time' => 'string',
203
+ 'catalog_segment_value' => 'list<AdsActionStats>',
 
 
204
  'catalog_segment_value_mobile_purchase_roas' => 'list<AdsActionStats>',
205
+ 'catalog_segment_value_omni_purchase_roas' => 'list<AdsActionStats>',
206
  'catalog_segment_value_website_purchase_roas' => 'list<AdsActionStats>',
207
  'clicks' => 'string',
 
 
 
 
 
 
 
208
  'conversion_rate_ranking' => 'string',
209
  'conversion_values' => 'list<AdsActionStats>',
210
  'conversions' => 'list<AdsActionStats>',
211
  'cost_per_15_sec_video_view' => 'list<AdsActionStats>',
212
  'cost_per_2_sec_continuous_video_view' => 'list<AdsActionStats>',
 
213
  'cost_per_action_type' => 'list<AdsActionStats>',
214
  'cost_per_ad_click' => 'list<AdsActionStats>',
 
 
215
  'cost_per_conversion' => 'list<AdsActionStats>',
 
216
  'cost_per_dda_countby_convs' => 'string',
 
 
 
 
 
217
  'cost_per_estimated_ad_recallers' => 'string',
 
218
  'cost_per_inline_link_click' => 'string',
219
  'cost_per_inline_post_engagement' => 'string',
220
  'cost_per_one_thousand_ad_impression' => 'list<AdsActionStats>',
221
  'cost_per_outbound_click' => 'list<AdsActionStats>',
 
 
222
  'cost_per_store_visit_action' => 'list<AdsActionStats>',
 
 
223
  'cost_per_thruplay' => 'list<AdsActionStats>',
 
224
  'cost_per_unique_action_type' => 'list<AdsActionStats>',
225
  'cost_per_unique_click' => 'string',
226
  'cost_per_unique_conversion' => 'list<AdsActionStats>',
227
  'cost_per_unique_inline_link_click' => 'string',
228
  'cost_per_unique_outbound_click' => 'list<AdsActionStats>',
 
229
  'cpc' => 'string',
230
  'cpm' => 'string',
231
  'cpp' => 'string',
232
  'created_time' => 'string',
 
233
  'ctr' => 'string',
 
 
234
  'date_start' => 'string',
235
  'date_stop' => 'string',
236
  'dda_countby_convs' => 'string',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
  'engagement_rate_ranking' => 'string',
238
  'estimated_ad_recall_rate' => 'string',
239
  'estimated_ad_recall_rate_lower_bound' => 'string',
241
  'estimated_ad_recallers' => 'string',
242
  'estimated_ad_recallers_lower_bound' => 'string',
243
  'estimated_ad_recallers_upper_bound' => 'string',
 
 
244
  'frequency' => 'string',
 
245
  'full_view_impressions' => 'string',
246
  'full_view_reach' => 'string',
 
247
  'gender_targeting' => 'string',
 
 
 
 
248
  'impressions' => 'string',
 
 
249
  'inline_link_click_ctr' => 'string',
250
  'inline_link_clicks' => 'string',
251
  'inline_post_engagement' => 'string',
252
  'instant_experience_clicks_to_open' => 'string',
253
  'instant_experience_clicks_to_start' => 'string',
254
  'instant_experience_outbound_clicks' => 'string',
 
255
  'labels' => 'string',
 
256
  'location' => 'string',
 
257
  'mobile_app_purchase_roas' => 'list<AdsActionStats>',
 
 
 
258
  'objective' => 'string',
 
259
  'outbound_clicks' => 'list<AdsActionStats>',
260
  'outbound_clicks_ctr' => 'list<AdsActionStats>',
 
 
261
  'place_page_name' => 'string',
 
 
 
 
262
  'purchase_roas' => 'list<AdsActionStats>',
263
+ 'qualifying_question_qualify_answer_rate' => 'string',
264
  'quality_ranking' => 'string',
265
  'quality_score_ectr' => 'string',
266
  'quality_score_ecvr' => 'string',
267
  'quality_score_organic' => 'string',
268
  'reach' => 'string',
 
 
 
 
 
269
  'social_spend' => 'string',
270
  'spend' => 'string',
 
 
271
  'store_visit_actions' => 'list<AdsActionStats>',
 
 
 
 
 
 
 
 
 
 
272
  'unique_actions' => 'list<AdsActionStats>',
273
  'unique_clicks' => 'string',
274
  'unique_conversions' => 'list<AdsActionStats>',
275
  'unique_ctr' => 'string',
 
276
  'unique_inline_link_click_ctr' => 'string',
277
  'unique_inline_link_clicks' => 'string',
278
  'unique_link_clicks_ctr' => 'string',
283
  'updated_time' => 'string',
284
  'video_15_sec_watched_actions' => 'list<AdsActionStats>',
285
  'video_30_sec_watched_actions' => 'list<AdsActionStats>',
 
286
  'video_avg_time_watched_actions' => 'list<AdsActionStats>',
 
 
287
  'video_continuous_2_sec_watched_actions' => 'list<AdsActionStats>',
288
  'video_p100_watched_actions' => 'list<AdsActionStats>',
289
  'video_p25_watched_actions' => 'list<AdsActionStats>',
297
  'video_play_retention_graph_actions' => 'list<Object>',
298
  'video_thruplay_watched_actions' => 'list<AdsActionStats>',
299
  'video_time_watched_actions' => 'list<AdsActionStats>',
 
300
  'website_ctr' => 'list<AdsActionStats>',
301
  'website_purchase_roas' => 'list<AdsActionStats>',
302
  'wish_bid' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{DynamicItemDisplayBundleFields.php → AdsInterestFields.php} RENAMED
@@ -35,25 +35,25 @@ use FacebookAds\Enum\AbstractEnum;
35
  *
36
  */
37
 
38
- class DynamicItemDisplayBundleFields extends AbstractEnum {
39
 
40
- const ADDITIONAL_URLS = 'additional_urls';
41
  const DESCRIPTION = 'description';
 
42
  const ID = 'id';
43
  const NAME = 'name';
44
- const PRODUCT_SET = 'product_set';
45
- const TEXT_TOKENS = 'text_tokens';
46
- const URL = 'url';
47
 
48
  public function getFieldTypes() {
49
  return array(
50
- 'additional_urls' => 'map<string, string>',
51
  'description' => 'string',
 
52
  'id' => 'string',
53
  'name' => 'string',
54
- 'product_set' => 'ProductSet',
55
- 'text_tokens' => 'map<string, string>',
56
- 'url' => 'string',
57
  );
58
  }
59
  }
35
  *
36
  */
37
 
38
+ class AdsInterestFields extends AbstractEnum {
39
 
40
+ const AUDIENCE_SIZE = 'audience_size';
41
  const DESCRIPTION = 'description';
42
+ const DISAMBIGUATION_CATEGORY = 'disambiguation_category';
43
  const ID = 'id';
44
  const NAME = 'name';
45
+ const PATH = 'path';
46
+ const TOPIC = 'topic';
 
47
 
48
  public function getFieldTypes() {
49
  return array(
50
+ 'audience_size' => 'unsigned int',
51
  'description' => 'string',
52
+ 'disambiguation_category' => 'string',
53
  'id' => 'string',
54
  'name' => 'string',
55
+ 'path' => 'list<string>',
56
+ 'topic' => 'string',
 
57
  );
58
  }
59
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AppRequestFields.php CHANGED
@@ -53,11 +53,11 @@ class AppRequestFields extends AbstractEnum {
53
  'application' => 'Application',
54
  'created_time' => 'datetime',
55
  'data' => 'string',
56
- 'from' => 'User',
57
  'id' => 'string',
58
  'message' => 'string',
59
  'object' => 'Object',
60
- 'to' => 'User',
61
  );
62
  }
63
  }
53
  'application' => 'Application',
54
  'created_time' => 'datetime',
55
  'data' => 'string',
56
+ 'from' => 'Object',
57
  'id' => 'string',
58
  'message' => 'string',
59
  'object' => 'Object',
60
+ 'to' => 'Object',
61
  );
62
  }
63
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AudioCopyrightFields.php CHANGED
@@ -46,6 +46,7 @@ class AudioCopyrightFields extends AbstractEnum {
46
  const OWNERSHIP_COUNTRIES = 'ownership_countries';
47
  const REFERENCE_FILE_STATUS = 'reference_file_status';
48
  const RIDGE_MONITORING_STATUS = 'ridge_monitoring_status';
 
49
  const UPDATE_TIME = 'update_time';
50
  const WHITELISTED_FB_USERS = 'whitelisted_fb_users';
51
  const WHITELISTED_IG_USERS = 'whitelisted_ig_users';
@@ -61,6 +62,7 @@ class AudioCopyrightFields extends AbstractEnum {
61
  'ownership_countries' => 'list<string>',
62
  'reference_file_status' => 'string',
63
  'ridge_monitoring_status' => 'string',
 
64
  'update_time' => 'datetime',
65
  'whitelisted_fb_users' => 'list<Object>',
66
  'whitelisted_ig_users' => 'list<string>',
46
  const OWNERSHIP_COUNTRIES = 'ownership_countries';
47
  const REFERENCE_FILE_STATUS = 'reference_file_status';
48
  const RIDGE_MONITORING_STATUS = 'ridge_monitoring_status';
49
+ const TAGS = 'tags';
50
  const UPDATE_TIME = 'update_time';
51
  const WHITELISTED_FB_USERS = 'whitelisted_fb_users';
52
  const WHITELISTED_IG_USERS = 'whitelisted_ig_users';
62
  'ownership_countries' => 'list<string>',
63
  'reference_file_status' => 'string',
64
  'ridge_monitoring_status' => 'string',
65
+ 'tags' => 'list<string>',
66
  'update_time' => 'datetime',
67
  'whitelisted_fb_users' => 'list<Object>',
68
  'whitelisted_ig_users' => 'list<string>',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AutomotiveModelFields.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
 
38
  class AutomotiveModelFields extends AbstractEnum {
39
 
 
40
  const AUTOMOTIVE_MODEL_ID = 'automotive_model_id';
41
  const AVAILABILITY = 'availability';
42
  const BODY_STYLE = 'body_style';
@@ -65,6 +66,7 @@ class AutomotiveModelFields extends AbstractEnum {
65
 
66
  public function getFieldTypes() {
67
  return array(
 
68
  'automotive_model_id' => 'string',
69
  'availability' => 'string',
70
  'body_style' => 'string',
37
 
38
  class AutomotiveModelFields extends AbstractEnum {
39
 
40
+ const APPLINKS = 'applinks';
41
  const AUTOMOTIVE_MODEL_ID = 'automotive_model_id';
42
  const AVAILABILITY = 'availability';
43
  const BODY_STYLE = 'body_style';
66
 
67
  public function getFieldTypes() {
68
  return array(
69
+ 'applinks' => 'CatalogItemAppLinks',
70
  'automotive_model_id' => 'string',
71
  'availability' => 'string',
72
  'body_style' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{BusinessPixelTOSFields.php → BusinessAgreementFields.php} RENAMED
@@ -35,15 +35,15 @@ use FacebookAds\Enum\AbstractEnum;
35
  *
36
  */
37
 
38
- class BusinessPixelTOSFields extends AbstractEnum {
39
 
40
- const ACCEPT_TIME = 'accept_time';
41
  const ID = 'id';
 
42
 
43
  public function getFieldTypes() {
44
  return array(
45
- 'accept_time' => 'int',
46
  'id' => 'string',
 
47
  );
48
  }
49
  }
35
  *
36
  */
37
 
38
+ class BusinessAgreementFields extends AbstractEnum {
39
 
 
40
  const ID = 'id';
41
+ const REQUEST_STATUS = 'request_status';
42
 
43
  public function getFieldTypes() {
44
  return array(
 
45
  'id' => 'string',
46
+ 'request_status' => 'string',
47
  );
48
  }
49
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/BusinessCreativeFolderFields.php CHANGED
@@ -42,6 +42,7 @@ class BusinessCreativeFolderFields extends AbstractEnum {
42
  const CREATIVE_INSIGHT_PERMISSIONS = 'creative_insight_permissions';
43
  const DESCRIPTION = 'description';
44
  const ID = 'id';
 
45
  const NAME = 'name';
46
  const PARENT_FOLDER = 'parent_folder';
47
  const PARENT_FOLDER_ID = 'parent_folder_id';
@@ -53,6 +54,7 @@ class BusinessCreativeFolderFields extends AbstractEnum {
53
  'creative_insight_permissions' => 'map<string, string>',
54
  'description' => 'string',
55
  'id' => 'string',
 
56
  'name' => 'string',
57
  'parent_folder' => 'BusinessCreativeFolder',
58
  'parent_folder_id' => 'string',
42
  const CREATIVE_INSIGHT_PERMISSIONS = 'creative_insight_permissions';
43
  const DESCRIPTION = 'description';
44
  const ID = 'id';
45
+ const MEDIA_LIBRARY_URL = 'media_library_url';
46
  const NAME = 'name';
47
  const PARENT_FOLDER = 'parent_folder';
48
  const PARENT_FOLDER_ID = 'parent_folder_id';
54
  'creative_insight_permissions' => 'map<string, string>',
55
  'description' => 'string',
56
  'id' => 'string',
57
+ 'media_library_url' => 'string',
58
  'name' => 'string',
59
  'parent_folder' => 'BusinessCreativeFolder',
60
  'parent_folder_id' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{VideoGameShowFields.php → BusinessCreativeFolderSharingAgreementFields.php} RENAMED
@@ -35,21 +35,19 @@ use FacebookAds\Enum\AbstractEnum;
35
  *
36
  */
37
 
38
- class VideoGameShowFields extends AbstractEnum {
39
 
40
- const END_TIME = 'end_time';
41
- const GAME_STATUS = 'game_status';
42
- const GAME_TYPE = 'game_type';
43
  const ID = 'id';
44
- const START_TIME = 'start_time';
 
45
 
46
  public function getFieldTypes() {
47
  return array(
48
- 'end_time' => 'datetime',
49
- 'game_status' => 'string',
50
- 'game_type' => 'string',
51
  'id' => 'string',
52
- 'start_time' => 'datetime',
 
53
  );
54
  }
55
  }
35
  *
36
  */
37
 
38
+ class BusinessCreativeFolderSharingAgreementFields extends AbstractEnum {
39
 
40
+ const FOLDER_ID = 'folder_id';
 
 
41
  const ID = 'id';
42
+ const REQUESTING_BUSINESS = 'requesting_business';
43
+ const STATUS = 'status';
44
 
45
  public function getFieldTypes() {
46
  return array(
47
+ 'folder_id' => 'string',
 
 
48
  'id' => 'string',
49
+ 'requesting_business' => 'Business',
50
+ 'status' => 'string',
51
  );
52
  }
53
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/BusinessImageFields.php CHANGED
@@ -42,6 +42,7 @@ class BusinessImageFields extends AbstractEnum {
42
  const HASH = 'hash';
43
  const HEIGHT = 'height';
44
  const ID = 'id';
 
45
  const NAME = 'name';
46
  const URL = 'url';
47
  const URL_128 = 'url_128';
@@ -58,6 +59,7 @@ class BusinessImageFields extends AbstractEnum {
58
  'hash' => 'string',
59
  'height' => 'int',
60
  'id' => 'string',
 
61
  'name' => 'string',
62
  'url' => 'string',
63
  'url_128' => 'string',
42
  const HASH = 'hash';
43
  const HEIGHT = 'height';
44
  const ID = 'id';
45
+ const MEDIA_LIBRARY_URL = 'media_library_url';
46
  const NAME = 'name';
47
  const URL = 'url';
48
  const URL_128 = 'url_128';
59
  'hash' => 'string',
60
  'height' => 'int',
61
  'id' => 'string',
62
+ 'media_library_url' => 'string',
63
  'name' => 'string',
64
  'url' => 'string',
65
  'url_128' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CampaignFields.php CHANGED
@@ -62,6 +62,7 @@ class CampaignFields extends AbstractEnum {
62
  const RECOMMENDATIONS = 'recommendations';
63
  const SOURCE_CAMPAIGN = 'source_campaign';
64
  const SOURCE_CAMPAIGN_ID = 'source_campaign_id';
 
65
  const SPECIAL_AD_CATEGORY = 'special_ad_category';
66
  const SPEND_CAP = 'spend_cap';
67
  const START_TIME = 'start_time';
@@ -101,6 +102,7 @@ class CampaignFields extends AbstractEnum {
101
  'recommendations' => 'list<AdRecommendation>',
102
  'source_campaign' => 'Campaign',
103
  'source_campaign_id' => 'string',
 
104
  'special_ad_category' => 'string',
105
  'spend_cap' => 'string',
106
  'start_time' => 'datetime',
62
  const RECOMMENDATIONS = 'recommendations';
63
  const SOURCE_CAMPAIGN = 'source_campaign';
64
  const SOURCE_CAMPAIGN_ID = 'source_campaign_id';
65
+ const SPECIAL_AD_CATEGORIES = 'special_ad_categories';
66
  const SPECIAL_AD_CATEGORY = 'special_ad_category';
67
  const SPEND_CAP = 'spend_cap';
68
  const START_TIME = 'start_time';
102
  'recommendations' => 'list<AdRecommendation>',
103
  'source_campaign' => 'Campaign',
104
  'source_campaign_id' => 'string',
105
+ 'special_ad_categories' => 'list<string>',
106
  'special_ad_category' => 'string',
107
  'spend_cap' => 'string',
108
  'start_time' => 'datetime',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CatalogItemAppLinksFields.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Fields;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ */
37
+
38
+ class CatalogItemAppLinksFields extends AbstractEnum {
39
+
40
+ const ANDROID = 'android';
41
+ const IOS = 'ios';
42
+ const IPAD = 'ipad';
43
+ const IPHONE = 'iphone';
44
+ const WEB = 'web';
45
+ const WINDOWS = 'windows';
46
+ const WINDOWS_PHONE = 'windows_phone';
47
+ const WINDOWS_UNIVERSAL = 'windows_universal';
48
+
49
+ public function getFieldTypes() {
50
+ return array(
51
+ 'android' => 'list<AndroidAppLink>',
52
+ 'ios' => 'list<IosAppLink>',
53
+ 'ipad' => 'list<IosAppLink>',
54
+ 'iphone' => 'list<IosAppLink>',
55
+ 'web' => 'WebAppLink',
56
+ 'windows' => 'list<WindowsAppLink>',
57
+ 'windows_phone' => 'list<WindowsPhoneAppLink>',
58
+ 'windows_universal' => 'list<WindowsAppLink>',
59
+ );
60
+ }
61
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{CustomAudiencePrefillStateFields.php → CatalogItemAppealStatusFields.php} RENAMED
@@ -35,17 +35,19 @@ use FacebookAds\Enum\AbstractEnum;
35
  *
36
  */
37
 
38
- class CustomAudiencePrefillStateFields extends AbstractEnum {
39
 
40
- const DESCRIPTION = 'description';
41
- const NUM_ADDED = 'num_added';
42
  const STATUS = 'status';
 
43
 
44
  public function getFieldTypes() {
45
  return array(
46
- 'description' => 'string',
47
- 'num_added' => 'unsigned int',
48
  'status' => 'string',
 
49
  );
50
  }
51
  }
35
  *
36
  */
37
 
38
+ class CatalogItemAppealStatusFields extends AbstractEnum {
39
 
40
+ const HANDLE = 'handle';
41
+ const ITEM_ID = 'item_id';
42
  const STATUS = 'status';
43
+ const USE_CASES = 'use_cases';
44
 
45
  public function getFieldTypes() {
46
  return array(
47
+ 'handle' => 'string',
48
+ 'item_id' => 'int',
49
  'status' => 'string',
50
+ 'use_cases' => 'list<Object>',
51
  );
52
  }
53
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Fields;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ */
37
+
38
+ class CommerceMerchantSettingsFields extends AbstractEnum {
39
+
40
+ const BRAINTREE_MERCHANT_ID = 'braintree_merchant_id';
41
+ const CHECKOUT_MESSAGE = 'checkout_message';
42
+ const CONTACT_EMAIL = 'contact_email';
43
+ const DISABLE_CHECKOUT_URLS = 'disable_checkout_urls';
44
+ const DISPLAY_NAME = 'display_name';
45
+ const FACEBOOK_CHANNEL = 'facebook_channel';
46
+ const HAS_DISCOUNT_CODE = 'has_discount_code';
47
+ const ID = 'id';
48
+ const INSTAGRAM_CHANNEL = 'instagram_channel';
49
+ const MERCHANT_ALERT_EMAIL = 'merchant_alert_email';
50
+ const MERCHANT_PAGE = 'merchant_page';
51
+ const MERCHANT_STATUS = 'merchant_status';
52
+ const ONSITE_COMMERCE_MERCHANT = 'onsite_commerce_merchant';
53
+ const PAYMENT_PROVIDER = 'payment_provider';
54
+ const PRIVACY_URL_BY_LOCALE = 'privacy_url_by_locale';
55
+ const REVIEW_REJECTION_MESSAGES = 'review_rejection_messages';
56
+ const REVIEW_REJECTION_REASONS = 'review_rejection_reasons';
57
+ const REVIEW_STATUS = 'review_status';
58
+ const SUPPORTED_CARD_TYPES = 'supported_card_types';
59
+ const TERMS = 'terms';
60
+ const TERMS_URL_BY_LOCALE = 'terms_url_by_locale';
61
+
62
+ public function getFieldTypes() {
63
+ return array(
64
+ 'braintree_merchant_id' => 'string',
65
+ 'checkout_message' => 'string',
66
+ 'contact_email' => 'string',
67
+ 'disable_checkout_urls' => 'bool',
68
+ 'display_name' => 'string',
69
+ 'facebook_channel' => 'Object',
70
+ 'has_discount_code' => 'bool',
71
+ 'id' => 'string',
72
+ 'instagram_channel' => 'Object',
73
+ 'merchant_alert_email' => 'string',
74
+ 'merchant_page' => 'Profile',
75
+ 'merchant_status' => 'string',
76
+ 'onsite_commerce_merchant' => 'Object',
77
+ 'payment_provider' => 'string',
78
+ 'privacy_url_by_locale' => 'map<string, string>',
79
+ 'review_rejection_messages' => 'list<string>',
80
+ 'review_rejection_reasons' => 'list<string>',
81
+ 'review_status' => 'string',
82
+ 'supported_card_types' => 'list<string>',
83
+ 'terms' => 'string',
84
+ 'terms_url_by_locale' => 'map<string, string>',
85
+ );
86
+ }
87
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsSetupStatusFields.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Fields;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ */
37
+
38
+ class CommerceMerchantSettingsSetupStatusFields extends AbstractEnum {
39
+
40
+ const DEALS_SETUP = 'deals_setup';
41
+ const MARKETPLACE_APPROVAL_STATUS = 'marketplace_approval_status';
42
+ const MARKETPLACE_APPROVAL_STATUS_DETAILS = 'marketplace_approval_status_details';
43
+ const PAYMENT_SETUP = 'payment_setup';
44
+ const SHOP_SETUP = 'shop_setup';
45
+
46
+ public function getFieldTypes() {
47
+ return array(
48
+ 'deals_setup' => 'string',
49
+ 'marketplace_approval_status' => 'string',
50
+ 'marketplace_approval_status_details' => 'Object',
51
+ 'payment_setup' => 'string',
52
+ 'shop_setup' => 'string',
53
+ );
54
+ }
55
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{InstagramCommentFields.php → CommerceOrderFields.php} RENAMED
@@ -35,25 +35,35 @@ use FacebookAds\Enum\AbstractEnum;
35
  *
36
  */
37
 
38
- class InstagramCommentFields extends AbstractEnum {
39
 
40
- const COMMENT_TYPE = 'comment_type';
41
- const CREATED_AT = 'created_at';
 
 
42
  const ID = 'id';
43
- const INSTAGRAM_COMMENT_ID = 'instagram_comment_id';
44
- const INSTAGRAM_USER = 'instagram_user';
45
- const MENTIONED_INSTAGRAM_USERS = 'mentioned_instagram_users';
46
- const MESSAGE = 'message';
 
 
 
47
 
48
  public function getFieldTypes() {
49
  return array(
50
- 'comment_type' => 'string',
51
- 'created_at' => 'datetime',
 
 
52
  'id' => 'string',
53
- 'instagram_comment_id' => 'string',
54
- 'instagram_user' => 'InstagramUser',
55
- 'mentioned_instagram_users' => 'list<InstagramUser>',
56
- 'message' => 'string',
 
 
 
57
  );
58
  }
59
  }
35
  *
36
  */
37
 
38
+ class CommerceOrderFields extends AbstractEnum {
39
 
40
+ const BUYER_DETAILS = 'buyer_details';
41
+ const CHANNEL = 'channel';
42
+ const CREATED = 'created';
43
+ const ESTIMATED_PAYMENT_DETAILS = 'estimated_payment_details';
44
  const ID = 'id';
45
+ const IS_GROUP_BUY = 'is_group_buy';
46
+ const LAST_UPDATED = 'last_updated';
47
+ const MERCHANT_ORDER_ID = 'merchant_order_id';
48
+ const ORDER_STATUS = 'order_status';
49
+ const SELECTED_SHIPPING_OPTION = 'selected_shipping_option';
50
+ const SHIP_BY_DATE = 'ship_by_date';
51
+ const SHIPPING_ADDRESS = 'shipping_address';
52
 
53
  public function getFieldTypes() {
54
  return array(
55
+ 'buyer_details' => 'Object',
56
+ 'channel' => 'string',
57
+ 'created' => 'string',
58
+ 'estimated_payment_details' => 'Object',
59
  'id' => 'string',
60
+ 'is_group_buy' => 'bool',
61
+ 'last_updated' => 'string',
62
+ 'merchant_order_id' => 'string',
63
+ 'order_status' => 'Object',
64
+ 'selected_shipping_option' => 'Object',
65
+ 'ship_by_date' => 'string',
66
+ 'shipping_address' => 'Object',
67
  );
68
  }
69
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{DynamicItemDisplayBundleFolderFields.php → CommerceOrderTransactionDetailFields.php} RENAMED
@@ -35,23 +35,29 @@ use FacebookAds\Enum\AbstractEnum;
35
  *
36
  */
37
 
38
- class DynamicItemDisplayBundleFolderFields extends AbstractEnum {
39
 
40
- const CATEGORIZATION_CRITERIA = 'categorization_criteria';
 
 
 
 
 
 
 
41
  const ID = 'id';
42
- const NAME = 'name';
43
- const PRODUCT_CATALOG = 'product_catalog';
44
- const PRODUCT_SET = 'product_set';
45
- const VALID_LABELS = 'valid_labels';
46
 
47
  public function getFieldTypes() {
48
  return array(
49
- 'categorization_criteria' => 'string',
 
 
 
 
 
 
 
50
  'id' => 'string',
51
- 'name' => 'string',
52
- 'product_catalog' => 'ProductCatalog',
53
- 'product_set' => 'ProductSet',
54
- 'valid_labels' => 'map<string, list<string>>',
55
  );
56
  }
57
  }
35
  *
36
  */
37
 
38
+ class CommerceOrderTransactionDetailFields extends AbstractEnum {
39
 
40
+ const NET_PAYMENT_AMOUNT = 'net_payment_amount';
41
+ const ORDER_DETAILS = 'order_details';
42
+ const PAYOUT_REFERENCE_ID = 'payout_reference_id';
43
+ const PROCESSING_FEE = 'processing_fee';
44
+ const TAX_RATE = 'tax_rate';
45
+ const TRANSACTION_DATE = 'transaction_date';
46
+ const TRANSACTION_TYPE = 'transaction_type';
47
+ const TRANSFER_ID = 'transfer_id';
48
  const ID = 'id';
 
 
 
 
49
 
50
  public function getFieldTypes() {
51
  return array(
52
+ 'net_payment_amount' => 'Object',
53
+ 'order_details' => 'CommerceOrder',
54
+ 'payout_reference_id' => 'string',
55
+ 'processing_fee' => 'Object',
56
+ 'tax_rate' => 'string',
57
+ 'transaction_date' => 'string',
58
+ 'transaction_type' => 'string',
59
+ 'transfer_id' => 'string',
60
  'id' => 'string',
 
 
 
 
61
  );
62
  }
63
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommercePayoutFields.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Fields;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ */
37
+
38
+ class CommercePayoutFields extends AbstractEnum {
39
+
40
+ const AMOUNT = 'amount';
41
+ const PAYOUT_DATE = 'payout_date';
42
+ const PAYOUT_REFERENCE_ID = 'payout_reference_id';
43
+ const STATUS = 'status';
44
+ const TRANSFER_ID = 'transfer_id';
45
+
46
+ public function getFieldTypes() {
47
+ return array(
48
+ 'amount' => 'Object',
49
+ 'payout_date' => 'string',
50
+ 'payout_reference_id' => 'string',
51
+ 'status' => 'string',
52
+ 'transfer_id' => 'string',
53
+ );
54
+ }
55
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CopyrightReferenceContainerFields.php CHANGED
@@ -41,7 +41,6 @@ class CopyrightReferenceContainerFields extends AbstractEnum {
41
  const COPYRIGHT_CREATION_TIME = 'copyright_creation_time';
42
  const DOWNLOAD_HD_URL = 'download_hd_url';
43
  const DURATION_IN_SEC = 'duration_in_sec';
44
- const FINGERPRINT_VALIDITY = 'fingerprint_validity';
45
  const ID = 'id';
46
  const ISWC = 'iswc';
47
  const METADATA = 'metadata';
@@ -57,7 +56,6 @@ class CopyrightReferenceContainerFields extends AbstractEnum {
57
  'copyright_creation_time' => 'datetime',
58
  'download_hd_url' => 'string',
59
  'duration_in_sec' => 'float',
60
- 'fingerprint_validity' => 'string',
61
  'id' => 'string',
62
  'iswc' => 'string',
63
  'metadata' => 'Object',
41
  const COPYRIGHT_CREATION_TIME = 'copyright_creation_time';
42
  const DOWNLOAD_HD_URL = 'download_hd_url';
43
  const DURATION_IN_SEC = 'duration_in_sec';
 
44
  const ID = 'id';
45
  const ISWC = 'iswc';
46
  const METADATA = 'metadata';
56
  'copyright_creation_time' => 'datetime',
57
  'download_hd_url' => 'string',
58
  'duration_in_sec' => 'float',
 
59
  'id' => 'string',
60
  'iswc' => 'string',
61
  'metadata' => 'Object',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{AdsTALHealthCheckErrorFields.php → CreativeAssetTagFields.php} RENAMED
@@ -35,15 +35,13 @@ use FacebookAds\Enum\AbstractEnum;
35
  *
36
  */
37
 
38
- class AdsTALHealthCheckErrorFields extends AbstractEnum {
39
 
40
- const ERROR_CODE = 'error_code';
41
- const TARGET_ID = 'target_id';
42
 
43
  public function getFieldTypes() {
44
  return array(
45
- 'error_code' => 'unsigned int',
46
- 'target_id' => 'string',
47
  );
48
  }
49
  }
35
  *
36
  */
37
 
38
+ class CreativeAssetTagFields extends AbstractEnum {
39
 
40
+ const NAME = 'name';
 
41
 
42
  public function getFieldTypes() {
43
  return array(
44
+ 'name' => 'string',
 
45
  );
46
  }
47
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/DestinationFields.php CHANGED
@@ -38,6 +38,7 @@ use FacebookAds\Enum\AbstractEnum;
38
  class DestinationFields extends AbstractEnum {
39
 
40
  const ADDRESS = 'address';
 
41
  const CURRENCY = 'currency';
42
  const DESCRIPTION = 'description';
43
  const DESTINATION_ID = 'destination_id';
@@ -53,6 +54,7 @@ class DestinationFields extends AbstractEnum {
53
  public function getFieldTypes() {
54
  return array(
55
  'address' => 'string',
 
56
  'currency' => 'string',
57
  'description' => 'string',
58
  'destination_id' => 'string',
38
  class DestinationFields extends AbstractEnum {
39
 
40
  const ADDRESS = 'address';
41
+ const APPLINKS = 'applinks';
42
  const CURRENCY = 'currency';
43
  const DESCRIPTION = 'description';
44
  const DESTINATION_ID = 'destination_id';
54
  public function getFieldTypes() {
55
  return array(
56
  'address' => 'string',
57
+ 'applinks' => 'CatalogItemAppLinks',
58
  'currency' => 'string',
59
  'description' => 'string',
60
  'destination_id' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/EventFields.php CHANGED
@@ -51,6 +51,7 @@ class EventFields extends AbstractEnum {
51
  const INTERESTED_COUNT = 'interested_count';
52
  const IS_CANCELED = 'is_canceled';
53
  const IS_DRAFT = 'is_draft';
 
54
  const IS_PAGE_OWNED = 'is_page_owned';
55
  const MAYBE_COUNT = 'maybe_count';
56
  const NAME = 'name';
@@ -84,6 +85,7 @@ class EventFields extends AbstractEnum {
84
  'interested_count' => 'int',
85
  'is_canceled' => 'bool',
86
  'is_draft' => 'bool',
 
87
  'is_page_owned' => 'bool',
88
  'maybe_count' => 'int',
89
  'name' => 'string',
51
  const INTERESTED_COUNT = 'interested_count';
52
  const IS_CANCELED = 'is_canceled';
53
  const IS_DRAFT = 'is_draft';
54
+ const IS_ONLINE = 'is_online';
55
  const IS_PAGE_OWNED = 'is_page_owned';
56
  const MAYBE_COUNT = 'maybe_count';
57
  const NAME = 'name';
85
  'interested_count' => 'int',
86
  'is_canceled' => 'bool',
87
  'is_draft' => 'bool',
88
+ 'is_online' => 'bool',
89
  'is_page_owned' => 'bool',
90
  'maybe_count' => 'int',
91
  'name' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/FlightFields.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
 
38
  class FlightFields extends AbstractEnum {
39
 
 
40
  const CURRENCY = 'currency';
41
  const DESCRIPTION = 'description';
42
  const DESTINATION_AIRPORT = 'destination_airport';
@@ -54,6 +55,7 @@ class FlightFields extends AbstractEnum {
54
 
55
  public function getFieldTypes() {
56
  return array(
 
57
  'currency' => 'string',
58
  'description' => 'string',
59
  'destination_airport' => 'string',
37
 
38
  class FlightFields extends AbstractEnum {
39
 
40
+ const APPLINKS = 'applinks';
41
  const CURRENCY = 'currency';
42
  const DESCRIPTION = 'description';
43
  const DESTINATION_AIRPORT = 'destination_airport';
55
 
56
  public function getFieldTypes() {
57
  return array(
58
+ 'applinks' => 'CatalogItemAppLinks',
59
  'currency' => 'string',
60
  'description' => 'string',
61
  'destination_airport' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HomeListingFields.php CHANGED
@@ -45,6 +45,7 @@ class HomeListingFields extends AbstractEnum {
45
  const AGENT_FB_PAGE_ID = 'agent_fb_page_id';
46
  const AGENT_NAME = 'agent_name';
47
  const AGENT_PHONE = 'agent_phone';
 
48
  const AREA_SIZE = 'area_size';
49
  const AREA_UNIT = 'area_unit';
50
  const AVAILABILITY = 'availability';
@@ -89,6 +90,7 @@ class HomeListingFields extends AbstractEnum {
89
  'agent_fb_page_id' => 'Page',
90
  'agent_name' => 'string',
91
  'agent_phone' => 'string',
 
92
  'area_size' => 'unsigned int',
93
  'area_unit' => 'string',
94
  'availability' => 'string',
45
  const AGENT_FB_PAGE_ID = 'agent_fb_page_id';
46
  const AGENT_NAME = 'agent_name';
47
  const AGENT_PHONE = 'agent_phone';
48
+ const APPLINKS = 'applinks';
49
  const AREA_SIZE = 'area_size';
50
  const AREA_UNIT = 'area_unit';
51
  const AVAILABILITY = 'availability';
90
  'agent_fb_page_id' => 'Page',
91
  'agent_name' => 'string',
92
  'agent_phone' => 'string',
93
+ 'applinks' => 'CatalogItemAppLinks',
94
  'area_size' => 'unsigned int',
95
  'area_unit' => 'string',
96
  'availability' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HotelFields.php CHANGED
@@ -38,6 +38,7 @@ use FacebookAds\Enum\AbstractEnum;
38
  class HotelFields extends AbstractEnum {
39
 
40
  const ADDRESS = 'address';
 
41
  const BRAND = 'brand';
42
  const CATEGORY = 'category';
43
  const CURRENCY = 'currency';
@@ -55,12 +56,12 @@ class HotelFields extends AbstractEnum {
55
  const SANITIZED_IMAGES = 'sanitized_images';
56
  const STAR_RATING = 'star_rating';
57
  const URL = 'url';
58
- const APPLINKS = 'applinks';
59
  const BASE_PRICE = 'base_price';
60
 
61
  public function getFieldTypes() {
62
  return array(
63
  'address' => 'string',
 
64
  'brand' => 'string',
65
  'category' => 'string',
66
  'currency' => 'string',
@@ -78,7 +79,6 @@ class HotelFields extends AbstractEnum {
78
  'sanitized_images' => 'list<string>',
79
  'star_rating' => 'float',
80
  'url' => 'string',
81
- 'applinks' => 'Object',
82
  'base_price' => 'unsigned int',
83
  );
84
  }
38
  class HotelFields extends AbstractEnum {
39
 
40
  const ADDRESS = 'address';
41
+ const APPLINKS = 'applinks';
42
  const BRAND = 'brand';
43
  const CATEGORY = 'category';
44
  const CURRENCY = 'currency';
56
  const SANITIZED_IMAGES = 'sanitized_images';
57
  const STAR_RATING = 'star_rating';
58
  const URL = 'url';
 
59
  const BASE_PRICE = 'base_price';
60
 
61
  public function getFieldTypes() {
62
  return array(
63
  'address' => 'string',
64
+ 'applinks' => 'CatalogItemAppLinks',
65
  'brand' => 'string',
66
  'category' => 'string',
67
  'currency' => 'string',
79
  'sanitized_images' => 'list<string>',
80
  'star_rating' => 'float',
81
  'url' => 'string',
 
82
  'base_price' => 'unsigned int',
83
  );
84
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HotelRoomFields.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
 
38
  class HotelRoomFields extends AbstractEnum {
39
 
 
40
  const BASE_PRICE = 'base_price';
41
  const CURRENCY = 'currency';
42
  const DESCRIPTION = 'description';
@@ -50,6 +51,7 @@ class HotelRoomFields extends AbstractEnum {
50
 
51
  public function getFieldTypes() {
52
  return array(
 
53
  'base_price' => 'string',
54
  'currency' => 'string',
55
  'description' => 'string',
37
 
38
  class HotelRoomFields extends AbstractEnum {
39
 
40
+ const APPLINKS = 'applinks';
41
  const BASE_PRICE = 'base_price';
42
  const CURRENCY = 'currency';
43
  const DESCRIPTION = 'description';
51
 
52
  public function getFieldTypes() {
53
  return array(
54
+ 'applinks' => 'CatalogItemAppLinks',
55
  'base_price' => 'string',
56
  'currency' => 'string',
57
  'description' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/IGUserFields.php CHANGED
@@ -43,11 +43,13 @@ class IGUserFields extends AbstractEnum {
43
  const FOLLOWS_COUNT = 'follows_count';
44
  const ID = 'id';
45
  const IG_ID = 'ig_id';
 
46
  const MEDIA_COUNT = 'media_count';
47
  const MENTIONED_COMMENT = 'mentioned_comment';
48
  const MENTIONED_MEDIA = 'mentioned_media';
49
  const NAME = 'name';
50
  const PROFILE_PICTURE_URL = 'profile_picture_url';
 
51
  const USERNAME = 'username';
52
  const WEBSITE = 'website';
53
 
@@ -59,11 +61,13 @@ class IGUserFields extends AbstractEnum {
59
  'follows_count' => 'int',
60
  'id' => 'string',
61
  'ig_id' => 'int',
 
62
  'media_count' => 'int',
63
  'mentioned_comment' => 'IGComment',
64
  'mentioned_media' => 'IGMedia',
65
  'name' => 'string',
66
  'profile_picture_url' => 'string',
 
67
  'username' => 'string',
68
  'website' => 'string',
69
  );
43
  const FOLLOWS_COUNT = 'follows_count';
44
  const ID = 'id';
45
  const IG_ID = 'ig_id';
46
+ const IS_IG_SHOPPING_SELLER_POLICY_ENABLED = 'is_ig_shopping_seller_policy_enabled';
47
  const MEDIA_COUNT = 'media_count';
48
  const MENTIONED_COMMENT = 'mentioned_comment';
49
  const MENTIONED_MEDIA = 'mentioned_media';
50
  const NAME = 'name';
51
  const PROFILE_PICTURE_URL = 'profile_picture_url';
52
+ const SHOPPING_REVIEW_STATUS = 'shopping_review_status';
53
  const USERNAME = 'username';
54
  const WEBSITE = 'website';
55
 
61
  'follows_count' => 'int',
62
  'id' => 'string',
63
  'ig_id' => 'int',
64
+ 'is_ig_shopping_seller_policy_enabled' => 'bool',
65
  'media_count' => 'int',
66
  'mentioned_comment' => 'IGComment',
67
  'mentioned_media' => 'IGMedia',
68
  'name' => 'string',
69
  'profile_picture_url' => 'string',
70
+ 'shopping_review_status' => 'string',
71
  'username' => 'string',
72
  'website' => 'string',
73
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/LeadGenFormPreviewDetailsFields.php DELETED
@@ -1,69 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object\Fields;
26
-
27
- use FacebookAds\Enum\AbstractEnum;
28
-
29
- /**
30
- * This class is auto-generated.
31
- *
32
- * For any issues or feature requests related to this class, please let us know
33
- * on github and we'll fix in our codegen framework. We'll not be able to accept
34
- * pull request for this class.
35
- *
36
- */
37
-
38
- class LeadGenFormPreviewDetailsFields extends AbstractEnum {
39
-
40
- const CALL_TO_ACTION_TITLE = 'call_to_action_title';
41
- const DEFAULT_APPOINTMENT_SCHEDULING_INLINE_CONTEXT = 'default_appointment_scheduling_inline_context';
42
- const DEFAULT_THANK_YOU_PAGE = 'default_thank_you_page';
43
- const EDIT_TEXT = 'edit_text';
44
- const EMAIL_INLINE_CONTEXT_TEXT = 'email_inline_context_text';
45
- const NEXT_BUTTON_TEXT = 'next_button_text';
46
- const PERSONAL_INFO_TEXT = 'personal_info_text';
47
- const PHONE_NUMBER_INLINE_CONTEXT_TEXT = 'phone_number_inline_context_text';
48
- const REVIEW_YOUR_INFO_TEXT = 'review_your_info_text';
49
- const SECURE_SHARING_TEXT = 'secure_sharing_text';
50
- const SLIDE_TO_SUBMIT_TEXT = 'slide_to_submit_text';
51
- const SUBMIT_BUTTON_TEXT = 'submit_button_text';
52
-
53
- public function getFieldTypes() {
54
- return array(
55
- 'call_to_action_title' => 'string',
56
- 'default_appointment_scheduling_inline_context' => 'string',
57
- 'default_thank_you_page' => 'Object',
58
- 'edit_text' => 'string',
59
- 'email_inline_context_text' => 'string',
60
- 'next_button_text' => 'string',
61
- 'personal_info_text' => 'string',
62
- 'phone_number_inline_context_text' => 'string',
63
- 'review_your_info_text' => 'string',
64
- 'secure_sharing_text' => 'string',
65
- 'slide_to_submit_text' => 'string',
66
- 'submit_button_text' => 'string',
67
- );
68
- }
69
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/MessengerProfileFields.php CHANGED
@@ -40,7 +40,6 @@ class MessengerProfileFields extends AbstractEnum {
40
  const ACCOUNT_LINKING_URL = 'account_linking_url';
41
  const GET_STARTED = 'get_started';
42
  const GREETING = 'greeting';
43
- const HOME_URL = 'home_url';
44
  const ICE_BREAKERS = 'ice_breakers';
45
  const PAYMENT_SETTINGS = 'payment_settings';
46
  const PERSISTENT_MENU = 'persistent_menu';
@@ -52,7 +51,6 @@ class MessengerProfileFields extends AbstractEnum {
52
  'account_linking_url' => 'string',
53
  'get_started' => 'Object',
54
  'greeting' => 'list<Object>',
55
- 'home_url' => 'Object',
56
  'ice_breakers' => 'list<Object>',
57
  'payment_settings' => 'Object',
58
  'persistent_menu' => 'list<Object>',
40
  const ACCOUNT_LINKING_URL = 'account_linking_url';
41
  const GET_STARTED = 'get_started';
42
  const GREETING = 'greeting';
 
43
  const ICE_BREAKERS = 'ice_breakers';
44
  const PAYMENT_SETTINGS = 'payment_settings';
45
  const PERSISTENT_MENU = 'persistent_menu';
51
  'account_linking_url' => 'string',
52
  'get_started' => 'Object',
53
  'greeting' => 'list<Object>',
 
54
  'ice_breakers' => 'list<Object>',
55
  'payment_settings' => 'Object',
56
  'persistent_menu' => 'list<Object>',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/MusicVideoCopyrightFields.php CHANGED
@@ -46,6 +46,7 @@ class MusicVideoCopyrightFields extends AbstractEnum {
46
  const OWNERSHIP_COUNTRIES = 'ownership_countries';
47
  const REFERENCE_FILE_STATUS = 'reference_file_status';
48
  const RIDGE_MONITORING_STATUS = 'ridge_monitoring_status';
 
49
  const UPDATE_TIME = 'update_time';
50
  const VIDEO_ASSET = 'video_asset';
51
  const WHITELISTED_FB_USERS = 'whitelisted_fb_users';
@@ -62,6 +63,7 @@ class MusicVideoCopyrightFields extends AbstractEnum {
62
  'ownership_countries' => 'list<string>',
63
  'reference_file_status' => 'string',
64
  'ridge_monitoring_status' => 'string',
 
65
  'update_time' => 'datetime',
66
  'video_asset' => 'CopyrightReferenceContainer',
67
  'whitelisted_fb_users' => 'list<Object>',
46
  const OWNERSHIP_COUNTRIES = 'ownership_countries';
47
  const REFERENCE_FILE_STATUS = 'reference_file_status';
48
  const RIDGE_MONITORING_STATUS = 'ridge_monitoring_status';
49
+ const TAGS = 'tags';
50
  const UPDATE_TIME = 'update_time';
51
  const VIDEO_ASSET = 'video_asset';
52
  const WHITELISTED_FB_USERS = 'whitelisted_fb_users';
63
  'ownership_countries' => 'list<string>',
64
  'reference_file_status' => 'string',
65
  'ridge_monitoring_status' => 'string',
66
+ 'tags' => 'list<string>',
67
  'update_time' => 'datetime',
68
  'video_asset' => 'CopyrightReferenceContainer',
69
  'whitelisted_fb_users' => 'list<Object>',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/OpenGraphObjectFields.php DELETED
@@ -1,87 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object\Fields;
26
-
27
- use FacebookAds\Enum\AbstractEnum;
28
-
29
- /**
30
- * This class is auto-generated.
31
- *
32
- * For any issues or feature requests related to this class, please let us know
33
- * on github and we'll fix in our codegen framework. We'll not be able to accept
34
- * pull request for this class.
35
- *
36
- */
37
-
38
- class OpenGraphObjectFields extends AbstractEnum {
39
-
40
- const ADMINS = 'admins';
41
- const APPLICATION = 'application';
42
- const AUDIO = 'audio';
43
- const CREATED_TIME = 'created_time';
44
- const DESCRIPTION = 'description';
45
- const DETERMINER = 'determiner';
46
- const ENGAGEMENT = 'engagement';
47
- const ID = 'id';
48
- const IMAGE = 'image';
49
- const IS_SCRAPED = 'is_scraped';
50
- const LOCALE = 'locale';
51
- const LOCATION = 'location';
52
- const POST_ACTION_ID = 'post_action_id';
53
- const PROFILE_ID = 'profile_id';
54
- const RESTRICTIONS = 'restrictions';
55
- const SEE_ALSO = 'see_also';
56
- const SITE_NAME = 'site_name';
57
- const TITLE = 'title';
58
- const TYPE = 'type';
59
- const UPDATED_TIME = 'updated_time';
60
- const VIDEO = 'video';
61
-
62
- public function getFieldTypes() {
63
- return array(
64
- 'admins' => 'list<Object>',
65
- 'application' => 'Object',
66
- 'audio' => 'list<Object>',
67
- 'created_time' => 'datetime',
68
- 'description' => 'string',
69
- 'determiner' => 'string',
70
- 'engagement' => 'Engagement',
71
- 'id' => 'string',
72
- 'image' => 'list<Object>',
73
- 'is_scraped' => 'bool',
74
- 'locale' => 'Object',
75
- 'location' => 'Location',
76
- 'post_action_id' => 'string',
77
- 'profile_id' => 'Object',
78
- 'restrictions' => 'Object',
79
- 'see_also' => 'list<string>',
80
- 'site_name' => 'string',
81
- 'title' => 'string',
82
- 'type' => 'string',
83
- 'updated_time' => 'datetime',
84
- 'video' => 'list<Object>',
85
- );
86
- }
87
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageFields.php CHANGED
@@ -66,8 +66,10 @@ class PageFields extends AbstractEnum {
66
  const COVER = 'cover';
67
  const CULINARY_TEAM = 'culinary_team';
68
  const CURRENT_LOCATION = 'current_location';
 
69
  const DESCRIPTION = 'description';
70
  const DESCRIPTION_HTML = 'description_html';
 
71
  const DIRECTED_BY = 'directed_by';
72
  const DISPLAY_SUBTEXT = 'display_subtext';
73
  const DISPLAYED_MESSAGE_RESPONSE_TIME = 'displayed_message_response_time';
@@ -106,7 +108,6 @@ class PageFields extends AbstractEnum {
106
  const IS_VERIFIED = 'is_verified';
107
  const IS_WEBHOOKS_SUBSCRIBED = 'is_webhooks_subscribed';
108
  const KEYWORDS = 'keywords';
109
- const LEADGEN_FORM_PREVIEW_DETAILS = 'leadgen_form_preview_details';
110
  const LEADGEN_TOS_ACCEPTANCE_TIME = 'leadgen_tos_acceptance_time';
111
  const LEADGEN_TOS_ACCEPTED = 'leadgen_tos_accepted';
112
  const LEADGEN_TOS_ACCEPTING_USER = 'leadgen_tos_accepting_user';
@@ -163,8 +164,10 @@ class PageFields extends AbstractEnum {
163
  const STORE_LOCATION_DESCRIPTOR = 'store_location_descriptor';
164
  const STORE_NUMBER = 'store_number';
165
  const STUDIO = 'studio';
 
166
  const SUPPORTS_INSTANT_ARTICLES = 'supports_instant_articles';
167
  const TALKING_ABOUT_COUNT = 'talking_about_count';
 
168
  const UNREAD_MESSAGE_COUNT = 'unread_message_count';
169
  const UNREAD_NOTIF_COUNT = 'unread_notif_count';
170
  const UNSEEN_MESSAGE_COUNT = 'unseen_message_count';
@@ -207,8 +210,10 @@ class PageFields extends AbstractEnum {
207
  'cover' => 'CoverPhoto',
208
  'culinary_team' => 'string',
209
  'current_location' => 'string',
 
210
  'description' => 'string',
211
  'description_html' => 'string',
 
212
  'directed_by' => 'string',
213
  'display_subtext' => 'string',
214
  'displayed_message_response_time' => 'string',
@@ -247,7 +252,6 @@ class PageFields extends AbstractEnum {
247
  'is_verified' => 'bool',
248
  'is_webhooks_subscribed' => 'bool',
249
  'keywords' => 'Object',
250
- 'leadgen_form_preview_details' => 'LeadGenFormPreviewDetails',
251
  'leadgen_tos_acceptance_time' => 'datetime',
252
  'leadgen_tos_accepted' => 'bool',
253
  'leadgen_tos_accepting_user' => 'User',
@@ -304,8 +308,10 @@ class PageFields extends AbstractEnum {
304
  'store_location_descriptor' => 'string',
305
  'store_number' => 'unsigned int',
306
  'studio' => 'string',
 
307
  'supports_instant_articles' => 'bool',
308
  'talking_about_count' => 'unsigned int',
 
309
  'unread_message_count' => 'unsigned int',
310
  'unread_notif_count' => 'unsigned int',
311
  'unseen_message_count' => 'unsigned int',
66
  const COVER = 'cover';
67
  const CULINARY_TEAM = 'culinary_team';
68
  const CURRENT_LOCATION = 'current_location';
69
+ const DELIVERY_AND_PICKUP_OPTION_INFO = 'delivery_and_pickup_option_info';
70
  const DESCRIPTION = 'description';
71
  const DESCRIPTION_HTML = 'description_html';
72
+ const DIFFERENTLY_OPEN_OFFERINGS = 'differently_open_offerings';
73
  const DIRECTED_BY = 'directed_by';
74
  const DISPLAY_SUBTEXT = 'display_subtext';
75
  const DISPLAYED_MESSAGE_RESPONSE_TIME = 'displayed_message_response_time';
108
  const IS_VERIFIED = 'is_verified';
109
  const IS_WEBHOOKS_SUBSCRIBED = 'is_webhooks_subscribed';
110
  const KEYWORDS = 'keywords';
 
111
  const LEADGEN_TOS_ACCEPTANCE_TIME = 'leadgen_tos_acceptance_time';
112
  const LEADGEN_TOS_ACCEPTED = 'leadgen_tos_accepted';
113
  const LEADGEN_TOS_ACCEPTING_USER = 'leadgen_tos_accepting_user';
164
  const STORE_LOCATION_DESCRIPTOR = 'store_location_descriptor';
165
  const STORE_NUMBER = 'store_number';
166
  const STUDIO = 'studio';
167
+ const SUPPORTS_DONATE_BUTTON_IN_LIVE_VIDEO = 'supports_donate_button_in_live_video';
168
  const SUPPORTS_INSTANT_ARTICLES = 'supports_instant_articles';
169
  const TALKING_ABOUT_COUNT = 'talking_about_count';
170
+ const TEMPORARY_STATUS = 'temporary_status';
171
  const UNREAD_MESSAGE_COUNT = 'unread_message_count';
172
  const UNREAD_NOTIF_COUNT = 'unread_notif_count';
173
  const UNSEEN_MESSAGE_COUNT = 'unseen_message_count';
210
  'cover' => 'CoverPhoto',
211
  'culinary_team' => 'string',
212
  'current_location' => 'string',
213
+ 'delivery_and_pickup_option_info' => 'list<string>',
214
  'description' => 'string',
215
  'description_html' => 'string',
216
+ 'differently_open_offerings' => 'map<string, bool>',
217
  'directed_by' => 'string',
218
  'display_subtext' => 'string',
219
  'displayed_message_response_time' => 'string',
252
  'is_verified' => 'bool',
253
  'is_webhooks_subscribed' => 'bool',
254
  'keywords' => 'Object',
 
255
  'leadgen_tos_acceptance_time' => 'datetime',
256
  'leadgen_tos_accepted' => 'bool',
257
  'leadgen_tos_accepting_user' => 'User',
308
  'store_location_descriptor' => 'string',
309
  'store_number' => 'unsigned int',
310
  'studio' => 'string',
311
+ 'supports_donate_button_in_live_video' => 'bool',
312
  'supports_instant_articles' => 'bool',
313
  'talking_about_count' => 'unsigned int',
314
+ 'temporary_status' => 'string',
315
  'unread_message_count' => 'unsigned int',
316
  'unread_notif_count' => 'unsigned int',
317
  'unseen_message_count' => 'unsigned int',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PagePostFields.php CHANGED
@@ -48,24 +48,30 @@ class PagePostFields extends AbstractEnum {
48
  const COMMENTS_MIRRORING_DOMAIN = 'comments_mirroring_domain';
49
  const COORDINATES = 'coordinates';
50
  const CREATED_TIME = 'created_time';
 
 
51
  const EVENT = 'event';
52
  const EXPANDED_HEIGHT = 'expanded_height';
53
  const EXPANDED_WIDTH = 'expanded_width';
54
  const FEED_TARGETING = 'feed_targeting';
 
55
  const FROM = 'from';
56
  const FULL_PICTURE = 'full_picture';
57
  const HEIGHT = 'height';
58
  const ICON = 'icon';
59
  const ID = 'id';
 
60
  const INSTAGRAM_ELIGIBILITY = 'instagram_eligibility';
61
  const IS_APP_SHARE = 'is_app_share';
62
  const IS_ELIGIBLE_FOR_PROMOTION = 'is_eligible_for_promotion';
63
  const IS_EXPIRED = 'is_expired';
64
  const IS_HIDDEN = 'is_hidden';
 
65
  const IS_INSTAGRAM_ELIGIBLE = 'is_instagram_eligible';
66
  const IS_POPULAR = 'is_popular';
67
  const IS_PUBLISHED = 'is_published';
68
  const IS_SPHERICAL = 'is_spherical';
 
69
  const MESSAGE = 'message';
70
  const MESSAGE_TAGS = 'message_tags';
71
  const MULTI_SHARE_END_CARD = 'multi_share_end_card';
@@ -78,6 +84,7 @@ class PagePostFields extends AbstractEnum {
78
  const PROMOTABLE_ID = 'promotable_id';
79
  const PROMOTION_STATUS = 'promotion_status';
80
  const PROPERTIES = 'properties';
 
81
  const SCHEDULED_PUBLISH_TIME = 'scheduled_publish_time';
82
  const SHARES = 'shares';
83
  const STATUS_TYPE = 'status_type';
@@ -87,10 +94,12 @@ class PagePostFields extends AbstractEnum {
87
  const TARGET = 'target';
88
  const TARGETING = 'targeting';
89
  const TIMELINE_VISIBILITY = 'timeline_visibility';
 
90
  const UPDATED_TIME = 'updated_time';
91
  const VIA = 'via';
92
  const VIDEO_BUYING_ELIGIBILITY = 'video_buying_eligibility';
93
  const WIDTH = 'width';
 
94
 
95
  public function getFieldTypes() {
96
  return array(
@@ -105,24 +114,30 @@ class PagePostFields extends AbstractEnum {
105
  'comments_mirroring_domain' => 'string',
106
  'coordinates' => 'Object',
107
  'created_time' => 'datetime',
 
 
108
  'event' => 'Event',
109
  'expanded_height' => 'unsigned int',
110
  'expanded_width' => 'unsigned int',
111
  'feed_targeting' => 'Object',
 
112
  'from' => 'Object',
113
  'full_picture' => 'string',
114
  'height' => 'unsigned int',
115
  'icon' => 'string',
116
  'id' => 'string',
 
117
  'instagram_eligibility' => 'string',
118
  'is_app_share' => 'bool',
119
  'is_eligible_for_promotion' => 'bool',
120
  'is_expired' => 'bool',
121
  'is_hidden' => 'bool',
 
122
  'is_instagram_eligible' => 'bool',
123
  'is_popular' => 'bool',
124
  'is_published' => 'bool',
125
  'is_spherical' => 'bool',
 
126
  'message' => 'string',
127
  'message_tags' => 'list',
128
  'multi_share_end_card' => 'bool',
@@ -135,6 +150,7 @@ class PagePostFields extends AbstractEnum {
135
  'promotable_id' => 'string',
136
  'promotion_status' => 'string',
137
  'properties' => 'list',
 
138
  'scheduled_publish_time' => 'float',
139
  'shares' => 'Object',
140
  'status_type' => 'string',
@@ -144,10 +160,12 @@ class PagePostFields extends AbstractEnum {
144
  'target' => 'Profile',
145
  'targeting' => 'Object',
146
  'timeline_visibility' => 'string',
 
147
  'updated_time' => 'datetime',
148
  'via' => 'Object',
149
  'video_buying_eligibility' => 'list<string>',
150
  'width' => 'unsigned int',
 
151
  );
152
  }
153
  }
48
  const COMMENTS_MIRRORING_DOMAIN = 'comments_mirroring_domain';
49
  const COORDINATES = 'coordinates';
50
  const CREATED_TIME = 'created_time';
51
+ const DELIVERY_GROWTH_OPTIMIZATIONS = 'delivery_growth_optimizations';
52
+ const ENTITIES = 'entities';
53
  const EVENT = 'event';
54
  const EXPANDED_HEIGHT = 'expanded_height';
55
  const EXPANDED_WIDTH = 'expanded_width';
56
  const FEED_TARGETING = 'feed_targeting';
57
+ const FORMATTING = 'formatting';
58
  const FROM = 'from';
59
  const FULL_PICTURE = 'full_picture';
60
  const HEIGHT = 'height';
61
  const ICON = 'icon';
62
  const ID = 'id';
63
+ const IMPLICIT_PLACE = 'implicit_place';
64
  const INSTAGRAM_ELIGIBILITY = 'instagram_eligibility';
65
  const IS_APP_SHARE = 'is_app_share';
66
  const IS_ELIGIBLE_FOR_PROMOTION = 'is_eligible_for_promotion';
67
  const IS_EXPIRED = 'is_expired';
68
  const IS_HIDDEN = 'is_hidden';
69
+ const IS_INLINE_CREATED = 'is_inline_created';
70
  const IS_INSTAGRAM_ELIGIBLE = 'is_instagram_eligible';
71
  const IS_POPULAR = 'is_popular';
72
  const IS_PUBLISHED = 'is_published';
73
  const IS_SPHERICAL = 'is_spherical';
74
+ const LIVE_VIDEO_ELIGIBILITY = 'live_video_eligibility';
75
  const MESSAGE = 'message';
76
  const MESSAGE_TAGS = 'message_tags';
77
  const MULTI_SHARE_END_CARD = 'multi_share_end_card';
84
  const PROMOTABLE_ID = 'promotable_id';
85
  const PROMOTION_STATUS = 'promotion_status';
86
  const PROPERTIES = 'properties';
87
+ const PUBLISHING_STATS = 'publishing_stats';
88
  const SCHEDULED_PUBLISH_TIME = 'scheduled_publish_time';
89
  const SHARES = 'shares';
90
  const STATUS_TYPE = 'status_type';
94
  const TARGET = 'target';
95
  const TARGETING = 'targeting';
96
  const TIMELINE_VISIBILITY = 'timeline_visibility';
97
+ const TRANSLATIONS = 'translations';
98
  const UPDATED_TIME = 'updated_time';
99
  const VIA = 'via';
100
  const VIDEO_BUYING_ELIGIBILITY = 'video_buying_eligibility';
101
  const WIDTH = 'width';
102
+ const WILL_BE_AUTOCROPPED_WHEN_DELIVER_TO_INSTAGRAM = 'will_be_autocropped_when_deliver_to_instagram';
103
 
104
  public function getFieldTypes() {
105
  return array(
114
  'comments_mirroring_domain' => 'string',
115
  'coordinates' => 'Object',
116
  'created_time' => 'datetime',
117
+ 'delivery_growth_optimizations' => 'list<string>',
118
+ 'entities' => 'Object',
119
  'event' => 'Event',
120
  'expanded_height' => 'unsigned int',
121
  'expanded_width' => 'unsigned int',
122
  'feed_targeting' => 'Object',
123
+ 'formatting' => 'string',
124
  'from' => 'Object',
125
  'full_picture' => 'string',
126
  'height' => 'unsigned int',
127
  'icon' => 'string',
128
  'id' => 'string',
129
+ 'implicit_place' => 'Place',
130
  'instagram_eligibility' => 'string',
131
  'is_app_share' => 'bool',
132
  'is_eligible_for_promotion' => 'bool',
133
  'is_expired' => 'bool',
134
  'is_hidden' => 'bool',
135
+ 'is_inline_created' => 'bool',
136
  'is_instagram_eligible' => 'bool',
137
  'is_popular' => 'bool',
138
  'is_published' => 'bool',
139
  'is_spherical' => 'bool',
140
+ 'live_video_eligibility' => 'list<string>',
141
  'message' => 'string',
142
  'message_tags' => 'list',
143
  'multi_share_end_card' => 'bool',
150
  'promotable_id' => 'string',
151
  'promotion_status' => 'string',
152
  'properties' => 'list',
153
+ 'publishing_stats' => 'unsigned int',
154
  'scheduled_publish_time' => 'float',
155
  'shares' => 'Object',
156
  'status_type' => 'string',
160
  'target' => 'Profile',
161
  'targeting' => 'Object',
162
  'timeline_visibility' => 'string',
163
+ 'translations' => 'map<string, string>',
164
  'updated_time' => 'datetime',
165
  'via' => 'Object',
166
  'video_buying_eligibility' => 'list<string>',
167
  'width' => 'unsigned int',
168
+ 'will_be_autocropped_when_deliver_to_instagram' => 'bool',
169
  );
170
  }
171
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PostFields.php CHANGED
@@ -49,26 +49,32 @@ class PostFields extends AbstractEnum {
49
  const COMMENTS_MIRRORING_DOMAIN = 'comments_mirroring_domain';
50
  const COORDINATES = 'coordinates';
51
  const CREATED_TIME = 'created_time';
 
52
  const DESCRIPTION = 'description';
 
53
  const EVENT = 'event';
54
  const EXPANDED_HEIGHT = 'expanded_height';
55
  const EXPANDED_WIDTH = 'expanded_width';
56
  const FEED_TARGETING = 'feed_targeting';
 
57
  const FROM = 'from';
58
  const FULL_PICTURE = 'full_picture';
59
  const HEIGHT = 'height';
60
  const ICON = 'icon';
61
  const ID = 'id';
 
62
  const INSTAGRAM_ELIGIBILITY = 'instagram_eligibility';
63
  const IS_APP_SHARE = 'is_app_share';
64
  const IS_ELIGIBLE_FOR_PROMOTION = 'is_eligible_for_promotion';
65
  const IS_EXPIRED = 'is_expired';
66
  const IS_HIDDEN = 'is_hidden';
 
67
  const IS_INSTAGRAM_ELIGIBLE = 'is_instagram_eligible';
68
  const IS_POPULAR = 'is_popular';
69
  const IS_PUBLISHED = 'is_published';
70
  const IS_SPHERICAL = 'is_spherical';
71
  const LINK = 'link';
 
72
  const MESSAGE = 'message';
73
  const MESSAGE_TAGS = 'message_tags';
74
  const MULTI_SHARE_END_CARD = 'multi_share_end_card';
@@ -83,6 +89,7 @@ class PostFields extends AbstractEnum {
83
  const PROMOTABLE_ID = 'promotable_id';
84
  const PROMOTION_STATUS = 'promotion_status';
85
  const PROPERTIES = 'properties';
 
86
  const SCHEDULED_PUBLISH_TIME = 'scheduled_publish_time';
87
  const SHARES = 'shares';
88
  const SOURCE = 'source';
@@ -93,11 +100,13 @@ class PostFields extends AbstractEnum {
93
  const TARGET = 'target';
94
  const TARGETING = 'targeting';
95
  const TIMELINE_VISIBILITY = 'timeline_visibility';
 
96
  const TYPE = 'type';
97
  const UPDATED_TIME = 'updated_time';
98
  const VIA = 'via';
99
  const VIDEO_BUYING_ELIGIBILITY = 'video_buying_eligibility';
100
  const WIDTH = 'width';
 
101
 
102
  public function getFieldTypes() {
103
  return array(
@@ -113,26 +122,32 @@ class PostFields extends AbstractEnum {
113
  'comments_mirroring_domain' => 'string',
114
  'coordinates' => 'Object',
115
  'created_time' => 'datetime',
 
116
  'description' => 'string',
 
117
  'event' => 'Event',
118
  'expanded_height' => 'unsigned int',
119
  'expanded_width' => 'unsigned int',
120
  'feed_targeting' => 'Object',
 
121
  'from' => 'Object',
122
  'full_picture' => 'string',
123
  'height' => 'unsigned int',
124
  'icon' => 'string',
125
  'id' => 'string',
 
126
  'instagram_eligibility' => 'string',
127
  'is_app_share' => 'bool',
128
  'is_eligible_for_promotion' => 'bool',
129
  'is_expired' => 'bool',
130
  'is_hidden' => 'bool',
 
131
  'is_instagram_eligible' => 'bool',
132
  'is_popular' => 'bool',
133
  'is_published' => 'bool',
134
  'is_spherical' => 'bool',
135
  'link' => 'string',
 
136
  'message' => 'string',
137
  'message_tags' => 'list',
138
  'multi_share_end_card' => 'bool',
@@ -147,6 +162,7 @@ class PostFields extends AbstractEnum {
147
  'promotable_id' => 'string',
148
  'promotion_status' => 'string',
149
  'properties' => 'list',
 
150
  'scheduled_publish_time' => 'float',
151
  'shares' => 'Object',
152
  'source' => 'string',
@@ -157,11 +173,13 @@ class PostFields extends AbstractEnum {
157
  'target' => 'Profile',
158
  'targeting' => 'Object',
159
  'timeline_visibility' => 'string',
 
160
  'type' => 'string',
161
  'updated_time' => 'datetime',
162
  'via' => 'Object',
163
  'video_buying_eligibility' => 'list<string>',
164
  'width' => 'unsigned int',
 
165
  );
166
  }
167
  }
49
  const COMMENTS_MIRRORING_DOMAIN = 'comments_mirroring_domain';
50
  const COORDINATES = 'coordinates';
51
  const CREATED_TIME = 'created_time';
52
+ const DELIVERY_GROWTH_OPTIMIZATIONS = 'delivery_growth_optimizations';
53
  const DESCRIPTION = 'description';
54
+ const ENTITIES = 'entities';
55
  const EVENT = 'event';
56
  const EXPANDED_HEIGHT = 'expanded_height';
57
  const EXPANDED_WIDTH = 'expanded_width';
58
  const FEED_TARGETING = 'feed_targeting';
59
+ const FORMATTING = 'formatting';
60
  const FROM = 'from';
61
  const FULL_PICTURE = 'full_picture';
62
  const HEIGHT = 'height';
63
  const ICON = 'icon';
64
  const ID = 'id';
65
+ const IMPLICIT_PLACE = 'implicit_place';
66
  const INSTAGRAM_ELIGIBILITY = 'instagram_eligibility';
67
  const IS_APP_SHARE = 'is_app_share';
68
  const IS_ELIGIBLE_FOR_PROMOTION = 'is_eligible_for_promotion';
69
  const IS_EXPIRED = 'is_expired';
70
  const IS_HIDDEN = 'is_hidden';
71
+ const IS_INLINE_CREATED = 'is_inline_created';
72
  const IS_INSTAGRAM_ELIGIBLE = 'is_instagram_eligible';
73
  const IS_POPULAR = 'is_popular';
74
  const IS_PUBLISHED = 'is_published';
75
  const IS_SPHERICAL = 'is_spherical';
76
  const LINK = 'link';
77
+ const LIVE_VIDEO_ELIGIBILITY = 'live_video_eligibility';
78
  const MESSAGE = 'message';
79
  const MESSAGE_TAGS = 'message_tags';
80
  const MULTI_SHARE_END_CARD = 'multi_share_end_card';
89
  const PROMOTABLE_ID = 'promotable_id';
90
  const PROMOTION_STATUS = 'promotion_status';
91
  const PROPERTIES = 'properties';
92
+ const PUBLISHING_STATS = 'publishing_stats';
93
  const SCHEDULED_PUBLISH_TIME = 'scheduled_publish_time';
94
  const SHARES = 'shares';
95
  const SOURCE = 'source';
100
  const TARGET = 'target';
101
  const TARGETING = 'targeting';
102
  const TIMELINE_VISIBILITY = 'timeline_visibility';
103
+ const TRANSLATIONS = 'translations';
104
  const TYPE = 'type';
105
  const UPDATED_TIME = 'updated_time';
106
  const VIA = 'via';
107
  const VIDEO_BUYING_ELIGIBILITY = 'video_buying_eligibility';
108
  const WIDTH = 'width';
109
+ const WILL_BE_AUTOCROPPED_WHEN_DELIVER_TO_INSTAGRAM = 'will_be_autocropped_when_deliver_to_instagram';
110
 
111
  public function getFieldTypes() {
112
  return array(
122
  'comments_mirroring_domain' => 'string',
123
  'coordinates' => 'Object',
124
  'created_time' => 'datetime',
125
+ 'delivery_growth_optimizations' => 'list<string>',
126
  'description' => 'string',
127
+ 'entities' => 'Object',
128
  'event' => 'Event',
129
  'expanded_height' => 'unsigned int',
130
  'expanded_width' => 'unsigned int',
131
  'feed_targeting' => 'Object',
132
+ 'formatting' => 'string',
133
  'from' => 'Object',
134
  'full_picture' => 'string',
135
  'height' => 'unsigned int',
136
  'icon' => 'string',
137
  'id' => 'string',
138
+ 'implicit_place' => 'Place',
139
  'instagram_eligibility' => 'string',
140
  'is_app_share' => 'bool',
141
  'is_eligible_for_promotion' => 'bool',
142
  'is_expired' => 'bool',
143
  'is_hidden' => 'bool',
144
+ 'is_inline_created' => 'bool',
145
  'is_instagram_eligible' => 'bool',
146
  'is_popular' => 'bool',
147
  'is_published' => 'bool',
148
  'is_spherical' => 'bool',
149
  'link' => 'string',
150
+ 'live_video_eligibility' => 'list<string>',
151
  'message' => 'string',
152
  'message_tags' => 'list',
153
  'multi_share_end_card' => 'bool',
162
  'promotable_id' => 'string',
163
  'promotion_status' => 'string',
164
  'properties' => 'list',
165
+ 'publishing_stats' => 'unsigned int',
166
  'scheduled_publish_time' => 'float',
167
  'shares' => 'Object',
168
  'source' => 'string',
173
  'target' => 'Profile',
174
  'targeting' => 'Object',
175
  'timeline_visibility' => 'string',
176
+ 'translations' => 'map<string, string>',
177
  'type' => 'string',
178
  'updated_time' => 'datetime',
179
  'via' => 'Object',
180
  'video_buying_eligibility' => 'list<string>',
181
  'width' => 'unsigned int',
182
+ 'will_be_autocropped_when_deliver_to_instagram' => 'bool',
183
  );
184
  }
185
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductCatalogFields.php CHANGED
@@ -38,34 +38,38 @@ use FacebookAds\Enum\AbstractEnum;
38
  class ProductCatalogFields extends AbstractEnum {
39
 
40
  const BUSINESS = 'business';
41
- const CPAS_PARENT_CATALOG_SETTINGS = 'cpas_parent_catalog_settings';
42
  const DA_DISPLAY_SETTINGS = 'da_display_settings';
43
  const DEFAULT_IMAGE_URL = 'default_image_url';
44
  const FALLBACK_IMAGE_URL = 'fallback_image_url';
45
  const FEED_COUNT = 'feed_count';
46
  const ID = 'id';
 
47
  const NAME = 'name';
48
  const PRODUCT_COUNT = 'product_count';
49
  const STORE_CATALOG_SETTINGS = 'store_catalog_settings';
50
  const VERTICAL = 'vertical';
51
  const DESTINATION_CATALOG_SETTINGS = 'destination_catalog_settings';
52
  const FLIGHT_CATALOG_SETTINGS = 'flight_catalog_settings';
 
53
 
54
  public function getFieldTypes() {
55
  return array(
56
  'business' => 'Business',
57
- 'cpas_parent_catalog_settings' => 'CPASParentCatalogSettings',
58
  'da_display_settings' => 'ProductCatalogImageSettings',
59
  'default_image_url' => 'string',
60
  'fallback_image_url' => 'list<string>',
61
  'feed_count' => 'int',
62
  'id' => 'string',
 
63
  'name' => 'string',
64
  'product_count' => 'int',
65
  'store_catalog_settings' => 'StoreCatalogSettings',
66
  'vertical' => 'string',
67
  'destination_catalog_settings' => 'map',
68
  'flight_catalog_settings' => 'map',
 
69
  );
70
  }
71
  }
38
  class ProductCatalogFields extends AbstractEnum {
39
 
40
  const BUSINESS = 'business';
41
+ const COMMERCE_MERCHANT_SETTINGS = 'commerce_merchant_settings';
42
  const DA_DISPLAY_SETTINGS = 'da_display_settings';
43
  const DEFAULT_IMAGE_URL = 'default_image_url';
44
  const FALLBACK_IMAGE_URL = 'fallback_image_url';
45
  const FEED_COUNT = 'feed_count';
46
  const ID = 'id';
47
+ const IS_CATALOG_SEGMENT = 'is_catalog_segment';
48
  const NAME = 'name';
49
  const PRODUCT_COUNT = 'product_count';
50
  const STORE_CATALOG_SETTINGS = 'store_catalog_settings';
51
  const VERTICAL = 'vertical';
52
  const DESTINATION_CATALOG_SETTINGS = 'destination_catalog_settings';
53
  const FLIGHT_CATALOG_SETTINGS = 'flight_catalog_settings';
54
+ const ONSITE_COMMERCE_MERCHANT = 'onsite_commerce_merchant';
55
 
56
  public function getFieldTypes() {
57
  return array(
58
  'business' => 'Business',
59
+ 'commerce_merchant_settings' => 'CommerceMerchantSettings',
60
  'da_display_settings' => 'ProductCatalogImageSettings',
61
  'default_image_url' => 'string',
62
  'fallback_image_url' => 'list<string>',
63
  'feed_count' => 'int',
64
  'id' => 'string',
65
+ 'is_catalog_segment' => 'bool',
66
  'name' => 'string',
67
  'product_count' => 'int',
68
  'store_catalog_settings' => 'StoreCatalogSettings',
69
  'vertical' => 'string',
70
  'destination_catalog_settings' => 'map',
71
  'flight_catalog_settings' => 'map',
72
+ 'onsite_commerce_merchant' => 'Object',
73
  );
74
  }
75
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductFeedFields.php CHANGED
@@ -53,7 +53,9 @@ class ProductFeedFields extends AbstractEnum {
53
  const SCHEDULE = 'schedule';
54
  const UPDATE_SCHEDULE = 'update_schedule';
55
  const FEED_TYPE = 'feed_type';
 
56
  const RULES = 'rules';
 
57
 
58
  public function getFieldTypes() {
59
  return array(
@@ -73,7 +75,9 @@ class ProductFeedFields extends AbstractEnum {
73
  'schedule' => 'ProductFeedSchedule',
74
  'update_schedule' => 'ProductFeedSchedule',
75
  'feed_type' => 'FeedType',
 
76
  'rules' => 'list<string>',
 
77
  );
78
  }
79
  }
53
  const SCHEDULE = 'schedule';
54
  const UPDATE_SCHEDULE = 'update_schedule';
55
  const FEED_TYPE = 'feed_type';
56
+ const OVERRIDE_VALUE = 'override_value';
57
  const RULES = 'rules';
58
+ const WHITELISTED_PROPERTIES = 'whitelisted_properties';
59
 
60
  public function getFieldTypes() {
61
  return array(
75
  'schedule' => 'ProductFeedSchedule',
76
  'update_schedule' => 'ProductFeedSchedule',
77
  'feed_type' => 'FeedType',
78
+ 'override_value' => 'string',
79
  'rules' => 'list<string>',
80
+ 'whitelisted_properties' => 'list<string>',
81
  );
82
  }
83
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductFeedUploadDiagnosticsReportFields.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Fields;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ */
37
+
38
+ class ProductFeedUploadDiagnosticsReportFields extends AbstractEnum {
39
+
40
+ const LAST_UPDATED_TIME = 'last_updated_time';
41
+ const REPORT_URL = 'report_url';
42
+
43
+ public function getFieldTypes() {
44
+ return array(
45
+ 'last_updated_time' => 'string',
46
+ 'report_url' => 'string',
47
+ );
48
+ }
49
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductItemFields.php CHANGED
@@ -41,6 +41,7 @@ class ProductItemFields extends AbstractEnum {
41
  const ADDITIONAL_IMAGE_URLS = 'additional_image_urls';
42
  const ADDITIONAL_VARIANT_ATTRIBUTES = 'additional_variant_attributes';
43
  const AGE_GROUP = 'age_group';
 
44
  const AVAILABILITY = 'availability';
45
  const BRAND = 'brand';
46
  const CAPABILITY_TO_REVIEW_STATUS = 'capability_to_review_status';
@@ -119,6 +120,7 @@ class ProductItemFields extends AbstractEnum {
119
  'additional_image_urls' => 'list<string>',
120
  'additional_variant_attributes' => 'map<string, string>',
121
  'age_group' => 'AgeGroup',
 
122
  'availability' => 'Availability',
123
  'brand' => 'string',
124
  'capability_to_review_status' => 'map<Object, Object>',
41
  const ADDITIONAL_IMAGE_URLS = 'additional_image_urls';
42
  const ADDITIONAL_VARIANT_ATTRIBUTES = 'additional_variant_attributes';
43
  const AGE_GROUP = 'age_group';
44
+ const APPLINKS = 'applinks';
45
  const AVAILABILITY = 'availability';
46
  const BRAND = 'brand';
47
  const CAPABILITY_TO_REVIEW_STATUS = 'capability_to_review_status';
120
  'additional_image_urls' => 'list<string>',
121
  'additional_variant_attributes' => 'map<string, string>',
122
  'age_group' => 'AgeGroup',
123
+ 'applinks' => 'CatalogItemAppLinks',
124
  'availability' => 'Availability',
125
  'brand' => 'string',
126
  'capability_to_review_status' => 'map<Object, Object>',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ReachFrequencyActivityFields.php CHANGED
@@ -41,12 +41,6 @@ class ReachFrequencyActivityFields extends AbstractEnum {
41
  const CAMPAIGN_ACTIVE = 'campaign_active';
42
  const CAMPAIGN_STARTED = 'campaign_started';
43
  const CREATIVE_UPLOADED = 'creative_uploaded';
44
- const DELIVERED_BUDGET = 'delivered_budget';
45
- const DELIVERED_DAILY_GRP = 'delivered_daily_grp';
46
- const DELIVERED_DAILY_IMPRESSION = 'delivered_daily_impression';
47
- const DELIVERED_IMPRESSION = 'delivered_impression';
48
- const DELIVERED_REACH = 'delivered_reach';
49
- const DELIVERED_TOTAL_IMPRESSION = 'delivered_total_impression';
50
  const IO_APPROVED = 'io_approved';
51
  const SF_LINK = 'sf_link';
52
 
@@ -56,12 +50,6 @@ class ReachFrequencyActivityFields extends AbstractEnum {
56
  'campaign_active' => 'bool',
57
  'campaign_started' => 'bool',
58
  'creative_uploaded' => 'bool',
59
- 'delivered_budget' => 'int',
60
- 'delivered_daily_grp' => 'list<float>',
61
- 'delivered_daily_impression' => 'list<float>',
62
- 'delivered_impression' => 'unsigned int',
63
- 'delivered_reach' => 'unsigned int',
64
- 'delivered_total_impression' => 'unsigned int',
65
  'io_approved' => 'bool',
66
  'sf_link' => 'string',
67
  );
41
  const CAMPAIGN_ACTIVE = 'campaign_active';
42
  const CAMPAIGN_STARTED = 'campaign_started';
43
  const CREATIVE_UPLOADED = 'creative_uploaded';
 
 
 
 
 
 
44
  const IO_APPROVED = 'io_approved';
45
  const SF_LINK = 'sf_link';
46
 
50
  'campaign_active' => 'bool',
51
  'campaign_started' => 'bool',
52
  'creative_uploaded' => 'bool',
 
 
 
 
 
 
53
  'io_approved' => 'bool',
54
  'sf_link' => 'string',
55
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ReachFrequencyPredictionFields.php CHANGED
@@ -68,7 +68,6 @@ class ReachFrequencyPredictionFields extends AbstractEnum {
68
  const EXTERNAL_REACH = 'external_reach';
69
  const FEED_RATIO_0000 = 'feed_ratio_0000';
70
  const FREQUENCY_CAP = 'frequency_cap';
71
- const FREQUENCY_DISTRIBUTION = 'frequency_distribution';
72
  const FREQUENCY_DISTRIBUTION_MAP = 'frequency_distribution_map';
73
  const FREQUENCY_DISTRIBUTION_MAP_AGG = 'frequency_distribution_map_agg';
74
  const GRP_AUDIENCE_SIZE = 'grp_audience_size';
@@ -117,7 +116,6 @@ class ReachFrequencyPredictionFields extends AbstractEnum {
117
  const TIMEZONE_ID = 'timezone_id';
118
  const TIMEZONE_NAME = 'timezone_name';
119
  const TOPLINE_ID = 'topline_id';
120
- const TV_VIEWER_CLUSTER_MAP = 'tv_viewer_cluster_map';
121
  const VIDEO_VIEW_LENGTH_CONSTRAINT = 'video_view_length_constraint';
122
  const VIEWTAG = 'viewtag';
123
  const ACTION = 'action';
@@ -170,7 +168,6 @@ class ReachFrequencyPredictionFields extends AbstractEnum {
170
  'external_reach' => 'unsigned int',
171
  'feed_ratio_0000' => 'unsigned int',
172
  'frequency_cap' => 'unsigned int',
173
- 'frequency_distribution' => 'list<float>',
174
  'frequency_distribution_map' => 'map<unsigned int, list<float>>',
175
  'frequency_distribution_map_agg' => 'map<unsigned int, list<unsigned int>>',
176
  'grp_audience_size' => 'float',
@@ -219,7 +216,6 @@ class ReachFrequencyPredictionFields extends AbstractEnum {
219
  'timezone_id' => 'unsigned int',
220
  'timezone_name' => 'string',
221
  'topline_id' => 'unsigned int',
222
- 'tv_viewer_cluster_map' => 'map<unsigned int, Object>',
223
  'video_view_length_constraint' => 'unsigned int',
224
  'viewtag' => 'string',
225
  'action' => 'Action',
68
  const EXTERNAL_REACH = 'external_reach';
69
  const FEED_RATIO_0000 = 'feed_ratio_0000';
70
  const FREQUENCY_CAP = 'frequency_cap';
 
71
  const FREQUENCY_DISTRIBUTION_MAP = 'frequency_distribution_map';
72
  const FREQUENCY_DISTRIBUTION_MAP_AGG = 'frequency_distribution_map_agg';
73
  const GRP_AUDIENCE_SIZE = 'grp_audience_size';
116
  const TIMEZONE_ID = 'timezone_id';
117
  const TIMEZONE_NAME = 'timezone_name';
118
  const TOPLINE_ID = 'topline_id';
 
119
  const VIDEO_VIEW_LENGTH_CONSTRAINT = 'video_view_length_constraint';
120
  const VIEWTAG = 'viewtag';
121
  const ACTION = 'action';
168
  'external_reach' => 'unsigned int',
169
  'feed_ratio_0000' => 'unsigned int',
170
  'frequency_cap' => 'unsigned int',
 
171
  'frequency_distribution_map' => 'map<unsigned int, list<float>>',
172
  'frequency_distribution_map_agg' => 'map<unsigned int, list<unsigned int>>',
173
  'grp_audience_size' => 'float',
216
  'timezone_id' => 'unsigned int',
217
  'timezone_name' => 'string',
218
  'topline_id' => 'unsigned int',
 
219
  'video_view_length_constraint' => 'unsigned int',
220
  'viewtag' => 'string',
221
  'action' => 'Action',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/RequestHistoryFields.php DELETED
@@ -1,59 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object\Fields;
26
-
27
- use FacebookAds\Enum\AbstractEnum;
28
-
29
- /**
30
- * This class is auto-generated.
31
- *
32
- * For any issues or feature requests related to this class, please let us know
33
- * on github and we'll fix in our codegen framework. We'll not be able to accept
34
- * pull request for this class.
35
- *
36
- */
37
-
38
- class RequestHistoryFields extends AbstractEnum {
39
-
40
- const API_VERSION = 'api_version';
41
- const CREATED_TIME = 'created_time';
42
- const ERROR_CODE = 'error_code';
43
- const GRAPH_PATH = 'graph_path';
44
- const HTTP_METHOD = 'http_method';
45
- const POST_PARAMS = 'post_params';
46
- const QUERY_PARAMS = 'query_params';
47
-
48
- public function getFieldTypes() {
49
- return array(
50
- 'api_version' => 'string',
51
- 'created_time' => 'datetime',
52
- 'error_code' => 'unsigned int',
53
- 'graph_path' => 'string',
54
- 'http_method' => 'HttpMethod',
55
- 'post_params' => 'map<string, string>',
56
- 'query_params' => 'map<string, string>',
57
- );
58
- }
59
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/UserFields.php CHANGED
@@ -86,6 +86,7 @@ class UserFields extends AbstractEnum {
86
  const SHORT_NAME = 'short_name';
87
  const SIGNIFICANT_OTHER = 'significant_other';
88
  const SPORTS = 'sports';
 
89
  const TEST_GROUP = 'test_group';
90
  const THIRD_PARTY_ID = 'third_party_id';
91
  const TIMEZONE = 'timezone';
@@ -148,6 +149,7 @@ class UserFields extends AbstractEnum {
148
  'short_name' => 'string',
149
  'significant_other' => 'User',
150
  'sports' => 'list<Experience>',
 
151
  'test_group' => 'unsigned int',
152
  'third_party_id' => 'string',
153
  'timezone' => 'float',
86
  const SHORT_NAME = 'short_name';
87
  const SIGNIFICANT_OTHER = 'significant_other';
88
  const SPORTS = 'sports';
89
+ const SUPPORTS_DONATE_BUTTON_IN_LIVE_VIDEO = 'supports_donate_button_in_live_video';
90
  const TEST_GROUP = 'test_group';
91
  const THIRD_PARTY_ID = 'third_party_id';
92
  const TIMEZONE = 'timezone';
149
  'short_name' => 'string',
150
  'significant_other' => 'User',
151
  'sports' => 'list<Experience>',
152
+ 'supports_donate_button_in_live_video' => 'bool',
153
  'test_group' => 'unsigned int',
154
  'third_party_id' => 'string',
155
  'timezone' => 'float',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleFields.php CHANGED
@@ -38,6 +38,7 @@ use FacebookAds\Enum\AbstractEnum;
38
  class VehicleFields extends AbstractEnum {
39
 
40
  const ADDRESS = 'address';
 
41
  const AVAILABILITY = 'availability';
42
  const BODY_STYLE = 'body_style';
43
  const CONDITION = 'condition';
@@ -80,11 +81,11 @@ class VehicleFields extends AbstractEnum {
80
  const VEHICLE_TYPE = 'vehicle_type';
81
  const VIN = 'vin';
82
  const YEAR = 'year';
83
- const APPLINKS = 'applinks';
84
 
85
  public function getFieldTypes() {
86
  return array(
87
  'address' => 'Object',
 
88
  'availability' => 'string',
89
  'body_style' => 'string',
90
  'condition' => 'string',
@@ -127,7 +128,6 @@ class VehicleFields extends AbstractEnum {
127
  'vehicle_type' => 'string',
128
  'vin' => 'string',
129
  'year' => 'unsigned int',
130
- 'applinks' => 'Object',
131
  );
132
  }
133
  }
38
  class VehicleFields extends AbstractEnum {
39
 
40
  const ADDRESS = 'address';
41
+ const APPLINKS = 'applinks';
42
  const AVAILABILITY = 'availability';
43
  const BODY_STYLE = 'body_style';
44
  const CONDITION = 'condition';
81
  const VEHICLE_TYPE = 'vehicle_type';
82
  const VIN = 'vin';
83
  const YEAR = 'year';
 
84
 
85
  public function getFieldTypes() {
86
  return array(
87
  'address' => 'Object',
88
+ 'applinks' => 'CatalogItemAppLinks',
89
  'availability' => 'string',
90
  'body_style' => 'string',
91
  'condition' => 'string',
128
  'vehicle_type' => 'string',
129
  'vin' => 'string',
130
  'year' => 'unsigned int',
 
131
  );
132
  }
133
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleOfferFields.php CHANGED
@@ -41,6 +41,7 @@ class VehicleOfferFields extends AbstractEnum {
41
  const AMOUNT_PERCENTAGE = 'amount_percentage';
42
  const AMOUNT_PRICE = 'amount_price';
43
  const AMOUNT_QUALIFIER = 'amount_qualifier';
 
44
  const BODY_STYLE = 'body_style';
45
  const CASHBACK_CURRENCY = 'cashback_currency';
46
  const CASHBACK_PRICE = 'cashback_price';
@@ -76,6 +77,7 @@ class VehicleOfferFields extends AbstractEnum {
76
  'amount_percentage' => 'float',
77
  'amount_price' => 'string',
78
  'amount_qualifier' => 'string',
 
79
  'body_style' => 'string',
80
  'cashback_currency' => 'string',
81
  'cashback_price' => 'string',
41
  const AMOUNT_PERCENTAGE = 'amount_percentage';
42
  const AMOUNT_PRICE = 'amount_price';
43
  const AMOUNT_QUALIFIER = 'amount_qualifier';
44
+ const APPLINKS = 'applinks';
45
  const BODY_STYLE = 'body_style';
46
  const CASHBACK_CURRENCY = 'cashback_currency';
47
  const CASHBACK_PRICE = 'cashback_price';
77
  'amount_percentage' => 'float',
78
  'amount_price' => 'string',
79
  'amount_qualifier' => 'string',
80
+ 'applinks' => 'CatalogItemAppLinks',
81
  'body_style' => 'string',
82
  'cashback_currency' => 'string',
83
  'cashback_price' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VideoCopyrightFields.php CHANGED
@@ -49,9 +49,9 @@ class VideoCopyrightFields extends AbstractEnum {
49
  const REFERENCE_FILE = 'reference_file';
50
  const REFERENCE_FILE_DISABLED = 'reference_file_disabled';
51
  const REFERENCE_FILE_DISABLED_BY_OPS = 'reference_file_disabled_by_ops';
52
- const REFERENCE_FILE_EXPIRED = 'reference_file_expired';
53
  const REFERENCE_OWNER_ID = 'reference_owner_id';
54
  const RULE_IDS = 'rule_ids';
 
55
  const WHITELISTED_IDS = 'whitelisted_ids';
56
 
57
  public function getFieldTypes() {
@@ -68,9 +68,9 @@ class VideoCopyrightFields extends AbstractEnum {
68
  'reference_file' => 'CopyrightReferenceContainer',
69
  'reference_file_disabled' => 'bool',
70
  'reference_file_disabled_by_ops' => 'bool',
71
- 'reference_file_expired' => 'bool',
72
  'reference_owner_id' => 'string',
73
  'rule_ids' => 'list<VideoCopyrightRule>',
 
74
  'whitelisted_ids' => 'list<string>',
75
  );
76
  }
49
  const REFERENCE_FILE = 'reference_file';
50
  const REFERENCE_FILE_DISABLED = 'reference_file_disabled';
51
  const REFERENCE_FILE_DISABLED_BY_OPS = 'reference_file_disabled_by_ops';
 
52
  const REFERENCE_OWNER_ID = 'reference_owner_id';
53
  const RULE_IDS = 'rule_ids';
54
+ const TAGS = 'tags';
55
  const WHITELISTED_IDS = 'whitelisted_ids';
56
 
57
  public function getFieldTypes() {
68
  'reference_file' => 'CopyrightReferenceContainer',
69
  'reference_file_disabled' => 'bool',
70
  'reference_file_disabled_by_ops' => 'bool',
 
71
  'reference_owner_id' => 'string',
72
  'rule_ids' => 'list<VideoCopyrightRule>',
73
+ 'tags' => 'list<string>',
74
  'whitelisted_ids' => 'list<string>',
75
  );
76
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Group.php CHANGED
@@ -606,60 +606,6 @@ class Group extends AbstractCrudObject {
606
  return $pending ? $request : $request->execute();
607
  }
608
 
609
- public function createOpenGraphActionFeed(array $fields = array(), array $params = array(), $pending = false) {
610
- $this->assureId();
611
-
612
- $param_types = array(
613
- 'added' => 'string',
614
- 'alias' => 'string',
615
- 'android_key_hash' => 'string',
616
- 'client_secret' => 'string',
617
- 'created_time' => 'datetime',
618
- 'end_time' => 'datetime',
619
- 'expires_in' => 'unsigned int',
620
- 'fb:channel' => 'string',
621
- 'fb:explicitly_shared' => 'bool',
622
- 'image:height' => 'unsigned int',
623
- 'image:secure_url' => 'string',
624
- 'image:type' => 'string',
625
- 'image:url' => 'string',
626
- 'image:user_generated' => 'bool',
627
- 'image:width' => 'unsigned int',
628
- 'ios_bundle_id' => 'string',
629
- 'message' => 'string',
630
- 'no_action_link' => 'bool',
631
- 'no_feed_story' => 'bool',
632
- 'notify' => 'bool',
633
- 'place' => 'string',
634
- 'preview' => 'bool',
635
- 'privacy' => 'string',
636
- 'proxied_app_id' => 'string',
637
- 'ref' => 'string',
638
- 'scrape' => 'bool',
639
- 'start_time' => 'datetime',
640
- 'tags' => 'list<int>',
641
- 'to' => 'string',
642
- 'user_selected_place' => 'bool',
643
- 'user_selected_tags' => 'bool',
644
- );
645
- $enums = array(
646
- );
647
-
648
- $request = new ApiRequest(
649
- $this->api,
650
- $this->data['id'],
651
- RequestInterface::METHOD_POST,
652
- '/open_graph_action_feed',
653
- new AbstractCrudObject(),
654
- 'EDGE',
655
- array(),
656
- new TypeChecker($param_types, $enums)
657
- );
658
- $request->addParams($params);
659
- $request->addFields($fields);
660
- return $pending ? $request : $request->execute();
661
- }
662
-
663
  public function getOptedInMembers(array $fields = array(), array $params = array(), $pending = false) {
664
  $this->assureId();
665
 
606
  return $pending ? $request : $request->execute();
607
  }
608
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
609
  public function getOptedInMembers(array $fields = array(), array $params = array(), $pending = false) {
610
  $this->assureId();
611
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/InstagramComment.php DELETED
@@ -1,177 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object;
26
-
27
- use FacebookAds\ApiRequest;
28
- use FacebookAds\Cursor;
29
- use FacebookAds\Http\RequestInterface;
30
- use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\InstagramCommentFields;
32
-
33
- /**
34
- * This class is auto-generated.
35
- *
36
- * For any issues or feature requests related to this class, please let us know
37
- * on github and we'll fix in our codegen framework. We'll not be able to accept
38
- * pull request for this class.
39
- *
40
- */
41
-
42
- class InstagramComment extends AbstractCrudObject {
43
-
44
- /**
45
- * @return InstagramCommentFields
46
- */
47
- public static function getFieldsEnum() {
48
- return InstagramCommentFields::getInstance();
49
- }
50
-
51
- protected static function getReferencedEnums() {
52
- $ref_enums = array();
53
- return $ref_enums;
54
- }
55
-
56
-
57
- public function getReplies(array $fields = array(), array $params = array(), $pending = false) {
58
- $this->assureId();
59
-
60
- $param_types = array(
61
- );
62
- $enums = array(
63
- );
64
-
65
- $request = new ApiRequest(
66
- $this->api,
67
- $this->data['id'],
68
- RequestInterface::METHOD_GET,
69
- '/replies',
70
- new InstagramComment(),
71
- 'EDGE',
72
- InstagramComment::getFieldsEnum()->getValues(),
73
- new TypeChecker($param_types, $enums)
74
- );
75
- $request->addParams($params);
76
- $request->addFields($fields);
77
- return $pending ? $request : $request->execute();
78
- }
79
-
80
- public function createReply(array $fields = array(), array $params = array(), $pending = false) {
81
- $this->assureId();
82
-
83
- $param_types = array(
84
- 'ad_id' => 'Object',
85
- 'message' => 'string',
86
- );
87
- $enums = array(
88
- );
89
-
90
- $request = new ApiRequest(
91
- $this->api,
92
- $this->data['id'],
93
- RequestInterface::METHOD_POST,
94
- '/replies',
95
- new InstagramComment(),
96
- 'EDGE',
97
- InstagramComment::getFieldsEnum()->getValues(),
98
- new TypeChecker($param_types, $enums)
99
- );
100
- $request->addParams($params);
101
- $request->addFields($fields);
102
- return $pending ? $request : $request->execute();
103
- }
104
-
105
- public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) {
106
- $this->assureId();
107
-
108
- $param_types = array(
109
- 'ad_id' => 'Object',
110
- );
111
- $enums = array(
112
- );
113
-
114
- $request = new ApiRequest(
115
- $this->api,
116
- $this->data['id'],
117
- RequestInterface::METHOD_DELETE,
118
- '/',
119
- new AbstractCrudObject(),
120
- 'NODE',
121
- array(),
122
- new TypeChecker($param_types, $enums)
123
- );
124
- $request->addParams($params);
125
- $request->addFields($fields);
126
- return $pending ? $request : $request->execute();
127
- }
128
-
129
- public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
130
- $this->assureId();
131
-
132
- $param_types = array(
133
- );
134
- $enums = array(
135
- );
136
-
137
- $request = new ApiRequest(
138
- $this->api,
139
- $this->data['id'],
140
- RequestInterface::METHOD_GET,
141
- '/',
142
- new InstagramComment(),
143
- 'NODE',
144
- InstagramComment::getFieldsEnum()->getValues(),
145
- new TypeChecker($param_types, $enums)
146
- );
147
- $request->addParams($params);
148
- $request->addFields($fields);
149
- return $pending ? $request : $request->execute();
150
- }
151
-
152
- public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
153
- $this->assureId();
154
-
155
- $param_types = array(
156
- 'ad_id' => 'Object',
157
- 'hide' => 'bool',
158
- );
159
- $enums = array(
160
- );
161
-
162
- $request = new ApiRequest(
163
- $this->api,
164
- $this->data['id'],
165
- RequestInterface::METHOD_POST,
166
- '/',
167
- new InstagramComment(),
168
- 'NODE',
169
- InstagramComment::getFieldsEnum()->getValues(),
170
- new TypeChecker($param_types, $enums)
171
- );
172
- $request->addParams($params);
173
- $request->addFields($fields);
174
- return $pending ? $request : $request->execute();
175
- }
176
-
177
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/LifeEvent.php CHANGED
@@ -133,29 +133,6 @@ class LifeEvent extends AbstractCrudObject {
133
  return $pending ? $request : $request->execute();
134
  }
135
 
136
- public function getSharedPosts(array $fields = array(), array $params = array(), $pending = false) {
137
- $this->assureId();
138
-
139
- $param_types = array(
140
- );
141
- $enums = array(
142
- );
143
-
144
- $request = new ApiRequest(
145
- $this->api,
146
- $this->data['id'],
147
- RequestInterface::METHOD_GET,
148
- '/sharedposts',
149
- new Post(),
150
- 'EDGE',
151
- Post::getFieldsEnum()->getValues(),
152
- new TypeChecker($param_types, $enums)
153
- );
154
- $request->addParams($params);
155
- $request->addFields($fields);
156
- return $pending ? $request : $request->execute();
157
- }
158
-
159
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
160
  $this->assureId();
161
 
133
  return $pending ? $request : $request->execute();
134
  }
135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
137
  $this->assureId();
138
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/MediaFingerprint.php CHANGED
@@ -30,7 +30,6 @@ use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
  use FacebookAds\Object\Fields\MediaFingerprintFields;
32
  use FacebookAds\Object\Values\MediaFingerprintFingerprintContentTypeValues;
33
- use FacebookAds\Object\Values\MediaFingerprintFingerprintValidityValues;
34
 
35
  /**
36
  * This class is auto-generated.
@@ -53,7 +52,6 @@ class MediaFingerprint extends AbstractCrudObject {
53
  protected static function getReferencedEnums() {
54
  $ref_enums = array();
55
  $ref_enums['FingerprintContentType'] = MediaFingerprintFingerprintContentTypeValues::getInstance()->getValues();
56
- $ref_enums['FingerprintValidity'] = MediaFingerprintFingerprintValidityValues::getInstance()->getValues();
57
  return $ref_enums;
58
  }
59
 
30
  use FacebookAds\TypeChecker;
31
  use FacebookAds\Object\Fields\MediaFingerprintFields;
32
  use FacebookAds\Object\Values\MediaFingerprintFingerprintContentTypeValues;
 
33
 
34
  /**
35
  * This class is auto-generated.
52
  protected static function getReferencedEnums() {
53
  $ref_enums = array();
54
  $ref_enums['FingerprintContentType'] = MediaFingerprintFingerprintContentTypeValues::getInstance()->getValues();
 
55
  return $ref_enums;
56
  }
57
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/OfflineConversionDataSet.php CHANGED
@@ -347,30 +347,6 @@ class OfflineConversionDataSet extends AbstractCrudObject {
347
  return $pending ? $request : $request->execute();
348
  }
349
 
350
- public function createUser(array $fields = array(), array $params = array(), $pending = false) {
351
- $this->assureId();
352
-
353
- $param_types = array(
354
- 'data' => 'list<Object>',
355
- );
356
- $enums = array(
357
- );
358
-
359
- $request = new ApiRequest(
360
- $this->api,
361
- $this->data['id'],
362
- RequestInterface::METHOD_POST,
363
- '/users',
364
- new OfflineConversionDataSet(),
365
- 'EDGE',
366
- OfflineConversionDataSet::getFieldsEnum()->getValues(),
367
- new TypeChecker($param_types, $enums)
368
- );
369
- $request->addParams($params);
370
- $request->addFields($fields);
371
- return $pending ? $request : $request->execute();
372
- }
373
-
374
  public function createValidate(array $fields = array(), array $params = array(), $pending = false) {
375
  $this->assureId();
376
 
347
  return $pending ? $request : $request->execute();
348
  }
349
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
350
  public function createValidate(array $fields = array(), array $params = array(), $pending = false) {
351
  $this->assureId();
352
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/OpenGraphContext.php CHANGED
@@ -54,75 +54,6 @@ class OpenGraphContext extends AbstractCrudObject {
54
  }
55
 
56
 
57
- public function getFriendsTaggedAt(array $fields = array(), array $params = array(), $pending = false) {
58
- $this->assureId();
59
-
60
- $param_types = array(
61
- );
62
- $enums = array(
63
- );
64
-
65
- $request = new ApiRequest(
66
- $this->api,
67
- $this->data['id'],
68
- RequestInterface::METHOD_GET,
69
- '/friends_tagged_at',
70
- new User(),
71
- 'EDGE',
72
- User::getFieldsEnum()->getValues(),
73
- new TypeChecker($param_types, $enums)
74
- );
75
- $request->addParams($params);
76
- $request->addFields($fields);
77
- return $pending ? $request : $request->execute();
78
- }
79
-
80
- public function getMusicListenFriends(array $fields = array(), array $params = array(), $pending = false) {
81
- $this->assureId();
82
-
83
- $param_types = array(
84
- );
85
- $enums = array(
86
- );
87
-
88
- $request = new ApiRequest(
89
- $this->api,
90
- $this->data['id'],
91
- RequestInterface::METHOD_GET,
92
- '/music_listen_friends',
93
- new User(),
94
- 'EDGE',
95
- User::getFieldsEnum()->getValues(),
96
- new TypeChecker($param_types, $enums)
97
- );
98
- $request->addParams($params);
99
- $request->addFields($fields);
100
- return $pending ? $request : $request->execute();
101
- }
102
-
103
- public function getVideoWatchFriends(array $fields = array(), array $params = array(), $pending = false) {
104
- $this->assureId();
105
-
106
- $param_types = array(
107
- );
108
- $enums = array(
109
- );
110
-
111
- $request = new ApiRequest(
112
- $this->api,
113
- $this->data['id'],
114
- RequestInterface::METHOD_GET,
115
- '/video_watch_friends',
116
- new User(),
117
- 'EDGE',
118
- User::getFieldsEnum()->getValues(),
119
- new TypeChecker($param_types, $enums)
120
- );
121
- $request->addParams($params);
122
- $request->addFields($fields);
123
- return $pending ? $request : $request->execute();
124
- }
125
-
126
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
127
  $this->assureId();
128
 
54
  }
55
 
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
58
  $this->assureId();
59
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Page.php CHANGED
@@ -37,6 +37,8 @@ use FacebookAds\Object\Values\AdVideoSwapModeValues;
37
  use FacebookAds\Object\Values\AdVideoTypeValues;
38
  use FacebookAds\Object\Values\AdVideoUnpublishedContentTypeValues;
39
  use FacebookAds\Object\Values\AdVideoUploadPhaseValues;
 
 
40
  use FacebookAds\Object\Values\EventEventStateFilterValues;
41
  use FacebookAds\Object\Values\EventTimeFilterValues;
42
  use FacebookAds\Object\Values\EventTypeValues;
@@ -53,32 +55,32 @@ use FacebookAds\Object\Values\LiveVideoStatusValues;
53
  use FacebookAds\Object\Values\LiveVideoStereoscopicModeValues;
54
  use FacebookAds\Object\Values\LiveVideoStreamTypeValues;
55
  use FacebookAds\Object\Values\MediaFingerprintFingerprintContentTypeValues;
56
- use FacebookAds\Object\Values\MediaFingerprintFingerprintValidityValues;
57
  use FacebookAds\Object\Values\NativeOfferBarcodeTypeValues;
58
  use FacebookAds\Object\Values\NativeOfferLocationTypeValues;
59
  use FacebookAds\Object\Values\PageAttireValues;
 
 
60
  use FacebookAds\Object\Values\PageDomainActionTypeValues;
61
  use FacebookAds\Object\Values\PageFoodStylesValues;
 
62
  use FacebookAds\Object\Values\PageMessagingTypeValues;
63
  use FacebookAds\Object\Values\PageModelValues;
64
  use FacebookAds\Object\Values\PageNotificationTypeValues;
65
  use FacebookAds\Object\Values\PagePaymentDevModeActionValues;
66
  use FacebookAds\Object\Values\PagePermittedTasksValues;
67
- use FacebookAds\Object\Values\PagePostBackdatedTimeGranularityValues;
68
- use FacebookAds\Object\Values\PagePostCheckinEntryPointValues;
69
- use FacebookAds\Object\Values\PagePostFormattingValues;
70
- use FacebookAds\Object\Values\PagePostPlaceAttachmentSettingValues;
71
- use FacebookAds\Object\Values\PagePostPostSurfacesBlacklistValues;
72
- use FacebookAds\Object\Values\PagePostPostingToRedspaceValues;
73
- use FacebookAds\Object\Values\PagePostTargetSurfaceValues;
74
- use FacebookAds\Object\Values\PagePostUnpublishedContentTypeValues;
75
  use FacebookAds\Object\Values\PagePostWithValues;
 
76
  use FacebookAds\Object\Values\PagePublishStatusValues;
77
  use FacebookAds\Object\Values\PageSenderActionValues;
78
  use FacebookAds\Object\Values\PageSettingTypeValues;
79
  use FacebookAds\Object\Values\PageSubscribedFieldsValues;
 
80
  use FacebookAds\Object\Values\PageTasksValues;
 
81
  use FacebookAds\Object\Values\PageThreadStateValues;
 
82
  use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues;
83
  use FacebookAds\Object\Values\PhotoTypeValues;
84
  use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues;
@@ -116,8 +118,17 @@ class Page extends AbstractCrudObject {
116
  $ref_enums = array();
117
  $ref_enums['Attire'] = PageAttireValues::getInstance()->getValues();
118
  $ref_enums['FoodStyles'] = PageFoodStylesValues::getInstance()->getValues();
 
119
  $ref_enums['PermittedTasks'] = PagePermittedTasksValues::getInstance()->getValues();
120
  $ref_enums['Tasks'] = PageTasksValues::getInstance()->getValues();
 
 
 
 
 
 
 
 
121
  $ref_enums['PublishStatus'] = PagePublishStatusValues::getInstance()->getValues();
122
  $ref_enums['MessagingType'] = PageMessagingTypeValues::getInstance()->getValues();
123
  $ref_enums['NotificationType'] = PageNotificationTypeValues::getInstance()->getValues();
@@ -132,6 +143,31 @@ class Page extends AbstractCrudObject {
132
  }
133
 
134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  public function getAdsPosts(array $fields = array(), array $params = array(), $pending = false) {
136
  $this->assureId();
137
 
@@ -255,40 +291,6 @@ class Page extends AbstractCrudObject {
255
  return $pending ? $request : $request->execute();
256
  }
257
 
258
- public function createAlbum(array $fields = array(), array $params = array(), $pending = false) {
259
- $this->assureId();
260
-
261
- $param_types = array(
262
- 'contributors' => 'list<int>',
263
- 'description' => 'string',
264
- 'is_default' => 'bool',
265
- 'location' => 'string',
266
- 'make_shared_album' => 'bool',
267
- 'message' => 'string',
268
- 'name' => 'string',
269
- 'place' => 'Object',
270
- 'privacy' => 'string',
271
- 'tags' => 'list<int>',
272
- 'visible' => 'string',
273
- );
274
- $enums = array(
275
- );
276
-
277
- $request = new ApiRequest(
278
- $this->api,
279
- $this->data['id'],
280
- RequestInterface::METHOD_POST,
281
- '/albums',
282
- new Album(),
283
- 'EDGE',
284
- Album::getFieldsEnum()->getValues(),
285
- new TypeChecker($param_types, $enums)
286
- );
287
- $request->addParams($params);
288
- $request->addFields($fields);
289
- return $pending ? $request : $request->execute();
290
- }
291
-
292
  public function deleteAssignedUsers(array $fields = array(), array $params = array(), $pending = false) {
293
  $this->assureId();
294
 
@@ -421,8 +423,8 @@ class Page extends AbstractCrudObject {
421
  $param_types = array(
422
  'asid' => 'list',
423
  'psid' => 'list<int>',
424
- 'uid' => 'list<string>',
425
- 'user' => 'list<string>',
426
  );
427
  $enums = array(
428
  );
@@ -647,6 +649,109 @@ class Page extends AbstractCrudObject {
647
  return $pending ? $request : $request->execute();
648
  }
649
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
650
  public function getConversations(array $fields = array(), array $params = array(), $pending = false) {
651
  $this->assureId();
652
 
@@ -923,29 +1028,6 @@ class Page extends AbstractCrudObject {
923
  return $pending ? $request : $request->execute();
924
  }
925
 
926
- public function getFeaturedVideosCollection(array $fields = array(), array $params = array(), $pending = false) {
927
- $this->assureId();
928
-
929
- $param_types = array(
930
- );
931
- $enums = array(
932
- );
933
-
934
- $request = new ApiRequest(
935
- $this->api,
936
- $this->data['id'],
937
- RequestInterface::METHOD_GET,
938
- '/featured_videos_collection',
939
- new AdVideo(),
940
- 'EDGE',
941
- AdVideo::getFieldsEnum()->getValues(),
942
- new TypeChecker($param_types, $enums)
943
- );
944
- $request->addParams($params);
945
- $request->addFields($fields);
946
- return $pending ? $request : $request->execute();
947
- }
948
-
949
  public function getFeed(array $fields = array(), array $params = array(), $pending = false) {
950
  $this->assureId();
951
 
@@ -1093,14 +1175,14 @@ class Page extends AbstractCrudObject {
1093
  'width' => 'unsigned int',
1094
  );
1095
  $enums = array(
1096
- 'backdated_time_granularity_enum' => PagePostBackdatedTimeGranularityValues::getInstance()->getValues(),
1097
- 'checkin_entry_point_enum' => PagePostCheckinEntryPointValues::getInstance()->getValues(),
1098
- 'formatting_enum' => PagePostFormattingValues::getInstance()->getValues(),
1099
- 'place_attachment_setting_enum' => PagePostPlaceAttachmentSettingValues::getInstance()->getValues(),
1100
- 'post_surfaces_blacklist_enum' => PagePostPostSurfacesBlacklistValues::getInstance()->getValues(),
1101
- 'posting_to_redspace_enum' => PagePostPostingToRedspaceValues::getInstance()->getValues(),
1102
- 'target_surface_enum' => PagePostTargetSurfaceValues::getInstance()->getValues(),
1103
- 'unpublished_content_type_enum' => PagePostUnpublishedContentTypeValues::getInstance()->getValues(),
1104
  );
1105
 
1106
  $request = new ApiRequest(
@@ -1108,9 +1190,9 @@ class Page extends AbstractCrudObject {
1108
  $this->data['id'],
1109
  RequestInterface::METHOD_POST,
1110
  '/feed',
1111
- new PagePost(),
1112
  'EDGE',
1113
- PagePost::getFieldsEnum()->getValues(),
1114
  new TypeChecker($param_types, $enums)
1115
  );
1116
  $request->addParams($params);
@@ -1595,6 +1677,8 @@ class Page extends AbstractCrudObject {
1595
 
1596
  $param_types = array(
1597
  'always_open' => 'bool',
 
 
1598
  'hours' => 'map',
1599
  'ignore_warnings' => 'bool',
1600
  'location' => 'Object',
@@ -1609,9 +1693,11 @@ class Page extends AbstractCrudObject {
1609
  'store_location_descriptor' => 'string',
1610
  'store_name' => 'string',
1611
  'store_number' => 'unsigned int',
 
1612
  'website' => 'string',
1613
  );
1614
  $enums = array(
 
1615
  );
1616
 
1617
  $request = new ApiRequest(
@@ -1633,11 +1719,9 @@ class Page extends AbstractCrudObject {
1633
  $this->assureId();
1634
 
1635
  $param_types = array(
1636
- 'fingerprint_validity' => 'fingerprint_validity_enum',
1637
  'universal_content_id' => 'string',
1638
  );
1639
  $enums = array(
1640
- 'fingerprint_validity_enum' => MediaFingerprintFingerprintValidityValues::getInstance()->getValues(),
1641
  );
1642
 
1643
  $request = new ApiRequest(
@@ -1852,7 +1936,6 @@ class Page extends AbstractCrudObject {
1852
  'account_linking_url' => 'string',
1853
  'get_started' => 'Object',
1854
  'greeting' => 'list<Object>',
1855
- 'home_url' => 'Object',
1856
  'ice_breakers' => 'list<map>',
1857
  'payment_settings' => 'Object',
1858
  'persistent_menu' => 'list<Object>',
@@ -2198,6 +2281,7 @@ class Page extends AbstractCrudObject {
2198
  'initial_view_heading_override_degrees' => 'unsigned int',
2199
  'initial_view_pitch_override_degrees' => 'unsigned int',
2200
  'initial_view_vertical_fov_override_degrees' => 'unsigned int',
 
2201
  'ios_bundle_id' => 'string',
2202
  'is_explicit_location' => 'bool',
2203
  'is_explicit_place' => 'bool',
@@ -2215,6 +2299,7 @@ class Page extends AbstractCrudObject {
2215
  'og_phrase' => 'string',
2216
  'og_set_profile_badge' => 'bool',
2217
  'og_suggestion_mechanism' => 'string',
 
2218
  'place' => 'Object',
2219
  'privacy' => 'string',
2220
  'profile_id' => 'int',
@@ -2406,36 +2491,6 @@ class Page extends AbstractCrudObject {
2406
  return $pending ? $request : $request->execute();
2407
  }
2408
 
2409
- public function createPromotion(array $fields = array(), array $params = array(), $pending = false) {
2410
- $this->assureId();
2411
-
2412
- $param_types = array(
2413
- 'ad_account_id' => 'string',
2414
- 'budget' => 'unsigned int',
2415
- 'duration' => 'string',
2416
- 'gender' => 'unsigned int',
2417
- 'geo_level' => 'string',
2418
- 'max_age' => 'unsigned int',
2419
- 'min_age' => 'unsigned int',
2420
- );
2421
- $enums = array(
2422
- );
2423
-
2424
- $request = new ApiRequest(
2425
- $this->api,
2426
- $this->data['id'],
2427
- RequestInterface::METHOD_POST,
2428
- '/promotions',
2429
- new AbstractCrudObject(),
2430
- 'EDGE',
2431
- array(),
2432
- new TypeChecker($param_types, $enums)
2433
- );
2434
- $request->addParams($params);
2435
- $request->addFields($fields);
2436
- return $pending ? $request : $request->execute();
2437
- }
2438
-
2439
  public function getPublishedPosts(array $fields = array(), array $params = array(), $pending = false) {
2440
  $this->assureId();
2441
 
@@ -2650,6 +2705,29 @@ class Page extends AbstractCrudObject {
2650
  return $pending ? $request : $request->execute();
2651
  }
2652
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2653
  public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = false) {
2654
  $this->assureId();
2655
 
@@ -3008,30 +3086,6 @@ class Page extends AbstractCrudObject {
3008
  return $pending ? $request : $request->execute();
3009
  }
3010
 
3011
- public function getUpcomingChanges(array $fields = array(), array $params = array(), $pending = false) {
3012
- $this->assureId();
3013
-
3014
- $param_types = array(
3015
- 'include_inactive' => 'bool',
3016
- );
3017
- $enums = array(
3018
- );
3019
-
3020
- $request = new ApiRequest(
3021
- $this->api,
3022
- $this->data['id'],
3023
- RequestInterface::METHOD_GET,
3024
- '/upcoming_changes',
3025
- new PageUpcomingChange(),
3026
- 'EDGE',
3027
- PageUpcomingChange::getFieldsEnum()->getValues(),
3028
- new TypeChecker($param_types, $enums)
3029
- );
3030
- $request->addParams($params);
3031
- $request->addFields($fields);
3032
- return $pending ? $request : $request->execute();
3033
- }
3034
-
3035
  public function getVideoCopyrightRules(array $fields = array(), array $params = array(), $pending = false) {
3036
  $this->assureId();
3037
 
@@ -3067,12 +3121,12 @@ class Page extends AbstractCrudObject {
3067
  'copyright_content_id' => 'string',
3068
  'excluded_ownership_countries' => 'list<string>',
3069
  'excluded_ownership_segments' => 'list<Object>',
3070
- 'fingerprint_id' => 'string',
3071
  'is_reference_disabled' => 'bool',
3072
  'is_reference_video' => 'bool',
3073
  'monitoring_type' => 'monitoring_type_enum',
3074
  'ownership_countries' => 'list<string>',
3075
  'rule_id' => 'string',
 
3076
  'whitelisted_ids' => 'list<string>',
3077
  'whitelisted_ig_user_ids' => 'list<string>',
3078
  );
@@ -3330,7 +3384,9 @@ class Page extends AbstractCrudObject {
3330
  'contact_address' => 'Object',
3331
  'cover' => 'string',
3332
  'culinary_team' => 'string',
 
3333
  'description' => 'string',
 
3334
  'directed_by' => 'string',
3335
  'displayed_message_response_time' => 'string',
3336
  'emails' => 'list<string>',
@@ -3368,6 +3424,7 @@ class Page extends AbstractCrudObject {
3368
  'spherical_metadata' => 'map',
3369
  'start_info' => 'Object',
3370
  'store_location_descriptor' => 'string',
 
3371
  'website' => 'string',
3372
  'zoom_scale_x' => 'float',
3373
  'zoom_scale_y' => 'float',
@@ -3375,6 +3432,7 @@ class Page extends AbstractCrudObject {
3375
  $enums = array(
3376
  'attire_enum' => PageAttireValues::getInstance()->getValues(),
3377
  'food_styles_enum' => PageFoodStylesValues::getInstance()->getValues(),
 
3378
  );
3379
 
3380
  $request = new ApiRequest(
37
  use FacebookAds\Object\Values\AdVideoTypeValues;
38
  use FacebookAds\Object\Values\AdVideoUnpublishedContentTypeValues;
39
  use FacebookAds\Object\Values\AdVideoUploadPhaseValues;
40
+ use FacebookAds\Object\Values\CommerceOrderFiltersValues;
41
+ use FacebookAds\Object\Values\CommerceOrderStateValues;
42
  use FacebookAds\Object\Values\EventEventStateFilterValues;
43
  use FacebookAds\Object\Values\EventTimeFilterValues;
44
  use FacebookAds\Object\Values\EventTypeValues;
55
  use FacebookAds\Object\Values\LiveVideoStereoscopicModeValues;
56
  use FacebookAds\Object\Values\LiveVideoStreamTypeValues;
57
  use FacebookAds\Object\Values\MediaFingerprintFingerprintContentTypeValues;
 
58
  use FacebookAds\Object\Values\NativeOfferBarcodeTypeValues;
59
  use FacebookAds\Object\Values\NativeOfferLocationTypeValues;
60
  use FacebookAds\Object\Values\PageAttireValues;
61
+ use FacebookAds\Object\Values\PageBackdatedTimeGranularityValues;
62
+ use FacebookAds\Object\Values\PageCheckinEntryPointValues;
63
  use FacebookAds\Object\Values\PageDomainActionTypeValues;
64
  use FacebookAds\Object\Values\PageFoodStylesValues;
65
+ use FacebookAds\Object\Values\PageFormattingValues;
66
  use FacebookAds\Object\Values\PageMessagingTypeValues;
67
  use FacebookAds\Object\Values\PageModelValues;
68
  use FacebookAds\Object\Values\PageNotificationTypeValues;
69
  use FacebookAds\Object\Values\PagePaymentDevModeActionValues;
70
  use FacebookAds\Object\Values\PagePermittedTasksValues;
71
+ use FacebookAds\Object\Values\PagePlaceAttachmentSettingValues;
72
+ use FacebookAds\Object\Values\PagePostSurfacesBlacklistValues;
 
 
 
 
 
 
73
  use FacebookAds\Object\Values\PagePostWithValues;
74
+ use FacebookAds\Object\Values\PagePostingToRedspaceValues;
75
  use FacebookAds\Object\Values\PagePublishStatusValues;
76
  use FacebookAds\Object\Values\PageSenderActionValues;
77
  use FacebookAds\Object\Values\PageSettingTypeValues;
78
  use FacebookAds\Object\Values\PageSubscribedFieldsValues;
79
+ use FacebookAds\Object\Values\PageTargetSurfaceValues;
80
  use FacebookAds\Object\Values\PageTasksValues;
81
+ use FacebookAds\Object\Values\PageTemporaryStatusValues;
82
  use FacebookAds\Object\Values\PageThreadStateValues;
83
+ use FacebookAds\Object\Values\PageUnpublishedContentTypeValues;
84
  use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues;
85
  use FacebookAds\Object\Values\PhotoTypeValues;
86
  use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues;
118
  $ref_enums = array();
119
  $ref_enums['Attire'] = PageAttireValues::getInstance()->getValues();
120
  $ref_enums['FoodStyles'] = PageFoodStylesValues::getInstance()->getValues();
121
+ $ref_enums['TemporaryStatus'] = PageTemporaryStatusValues::getInstance()->getValues();
122
  $ref_enums['PermittedTasks'] = PagePermittedTasksValues::getInstance()->getValues();
123
  $ref_enums['Tasks'] = PageTasksValues::getInstance()->getValues();
124
+ $ref_enums['BackdatedTimeGranularity'] = PageBackdatedTimeGranularityValues::getInstance()->getValues();
125
+ $ref_enums['CheckinEntryPoint'] = PageCheckinEntryPointValues::getInstance()->getValues();
126
+ $ref_enums['Formatting'] = PageFormattingValues::getInstance()->getValues();
127
+ $ref_enums['PlaceAttachmentSetting'] = PagePlaceAttachmentSettingValues::getInstance()->getValues();
128
+ $ref_enums['PostSurfacesBlacklist'] = PagePostSurfacesBlacklistValues::getInstance()->getValues();
129
+ $ref_enums['PostingToRedspace'] = PagePostingToRedspaceValues::getInstance()->getValues();
130
+ $ref_enums['TargetSurface'] = PageTargetSurfaceValues::getInstance()->getValues();
131
+ $ref_enums['UnpublishedContentType'] = PageUnpublishedContentTypeValues::getInstance()->getValues();
132
  $ref_enums['PublishStatus'] = PagePublishStatusValues::getInstance()->getValues();
133
  $ref_enums['MessagingType'] = PageMessagingTypeValues::getInstance()->getValues();
134
  $ref_enums['NotificationType'] = PageNotificationTypeValues::getInstance()->getValues();
143
  }
144
 
145
 
146
+ public function createAcknowledgeOrder(array $fields = array(), array $params = array(), $pending = false) {
147
+ $this->assureId();
148
+
149
+ $param_types = array(
150
+ 'idempotency_key' => 'string',
151
+ 'orders' => 'list<map>',
152
+ );
153
+ $enums = array(
154
+ );
155
+
156
+ $request = new ApiRequest(
157
+ $this->api,
158
+ $this->data['id'],
159
+ RequestInterface::METHOD_POST,
160
+ '/acknowledge_orders',
161
+ new Page(),
162
+ 'EDGE',
163
+ Page::getFieldsEnum()->getValues(),
164
+ new TypeChecker($param_types, $enums)
165
+ );
166
+ $request->addParams($params);
167
+ $request->addFields($fields);
168
+ return $pending ? $request : $request->execute();
169
+ }
170
+
171
  public function getAdsPosts(array $fields = array(), array $params = array(), $pending = false) {
172
  $this->assureId();
173
 
291
  return $pending ? $request : $request->execute();
292
  }
293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  public function deleteAssignedUsers(array $fields = array(), array $params = array(), $pending = false) {
295
  $this->assureId();
296
 
423
  $param_types = array(
424
  'asid' => 'list',
425
  'psid' => 'list<int>',
426
+ 'uid' => 'list',
427
+ 'user' => 'list',
428
  );
429
  $enums = array(
430
  );
649
  return $pending ? $request : $request->execute();
650
  }
651
 
652
+ public function getCommerceMerchantSettings(array $fields = array(), array $params = array(), $pending = false) {
653
+ $this->assureId();
654
+
655
+ $param_types = array(
656
+ );
657
+ $enums = array(
658
+ );
659
+
660
+ $request = new ApiRequest(
661
+ $this->api,
662
+ $this->data['id'],
663
+ RequestInterface::METHOD_GET,
664
+ '/commerce_merchant_settings',
665
+ new CommerceMerchantSettings(),
666
+ 'EDGE',
667
+ CommerceMerchantSettings::getFieldsEnum()->getValues(),
668
+ new TypeChecker($param_types, $enums)
669
+ );
670
+ $request->addParams($params);
671
+ $request->addFields($fields);
672
+ return $pending ? $request : $request->execute();
673
+ }
674
+
675
+ public function getCommerceOrders(array $fields = array(), array $params = array(), $pending = false) {
676
+ $this->assureId();
677
+
678
+ $param_types = array(
679
+ 'filters' => 'list<filters_enum>',
680
+ 'state' => 'list<state_enum>',
681
+ 'updated_after' => 'datetime',
682
+ 'updated_before' => 'datetime',
683
+ );
684
+ $enums = array(
685
+ 'filters_enum' => CommerceOrderFiltersValues::getInstance()->getValues(),
686
+ 'state_enum' => CommerceOrderStateValues::getInstance()->getValues(),
687
+ );
688
+
689
+ $request = new ApiRequest(
690
+ $this->api,
691
+ $this->data['id'],
692
+ RequestInterface::METHOD_GET,
693
+ '/commerce_orders',
694
+ new CommerceOrder(),
695
+ 'EDGE',
696
+ CommerceOrder::getFieldsEnum()->getValues(),
697
+ new TypeChecker($param_types, $enums)
698
+ );
699
+ $request->addParams($params);
700
+ $request->addFields($fields);
701
+ return $pending ? $request : $request->execute();
702
+ }
703
+
704
+ public function getCommercePayouts(array $fields = array(), array $params = array(), $pending = false) {
705
+ $this->assureId();
706
+
707
+ $param_types = array(
708
+ 'end_time' => 'datetime',
709
+ 'start_time' => 'datetime',
710
+ );
711
+ $enums = array(
712
+ );
713
+
714
+ $request = new ApiRequest(
715
+ $this->api,
716
+ $this->data['id'],
717
+ RequestInterface::METHOD_GET,
718
+ '/commerce_payouts',
719
+ new CommercePayout(),
720
+ 'EDGE',
721
+ CommercePayout::getFieldsEnum()->getValues(),
722
+ new TypeChecker($param_types, $enums)
723
+ );
724
+ $request->addParams($params);
725
+ $request->addFields($fields);
726
+ return $pending ? $request : $request->execute();
727
+ }
728
+
729
+ public function getCommerceTransactions(array $fields = array(), array $params = array(), $pending = false) {
730
+ $this->assureId();
731
+
732
+ $param_types = array(
733
+ 'end_time' => 'datetime',
734
+ 'payout_reference_id' => 'string',
735
+ 'start_time' => 'datetime',
736
+ );
737
+ $enums = array(
738
+ );
739
+
740
+ $request = new ApiRequest(
741
+ $this->api,
742
+ $this->data['id'],
743
+ RequestInterface::METHOD_GET,
744
+ '/commerce_transactions',
745
+ new CommerceOrderTransactionDetail(),
746
+ 'EDGE',
747
+ CommerceOrderTransactionDetail::getFieldsEnum()->getValues(),
748
+ new TypeChecker($param_types, $enums)
749
+ );
750
+ $request->addParams($params);
751
+ $request->addFields($fields);
752
+ return $pending ? $request : $request->execute();
753
+ }
754
+
755
  public function getConversations(array $fields = array(), array $params = array(), $pending = false) {
756
  $this->assureId();
757
 
1028
  return $pending ? $request : $request->execute();
1029
  }
1030
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1031
  public function getFeed(array $fields = array(), array $params = array(), $pending = false) {
1032
  $this->assureId();
1033
 
1175
  'width' => 'unsigned int',
1176
  );
1177
  $enums = array(
1178
+ 'backdated_time_granularity_enum' => PageBackdatedTimeGranularityValues::getInstance()->getValues(),
1179
+ 'checkin_entry_point_enum' => PageCheckinEntryPointValues::getInstance()->getValues(),
1180
+ 'formatting_enum' => PageFormattingValues::getInstance()->getValues(),
1181
+ 'place_attachment_setting_enum' => PagePlaceAttachmentSettingValues::getInstance()->getValues(),
1182
+ 'post_surfaces_blacklist_enum' => PagePostSurfacesBlacklistValues::getInstance()->getValues(),
1183
+ 'posting_to_redspace_enum' => PagePostingToRedspaceValues::getInstance()->getValues(),
1184
+ 'target_surface_enum' => PageTargetSurfaceValues::getInstance()->getValues(),
1185
+ 'unpublished_content_type_enum' => PageUnpublishedContentTypeValues::getInstance()->getValues(),
1186
  );
1187
 
1188
  $request = new ApiRequest(
1190
  $this->data['id'],
1191
  RequestInterface::METHOD_POST,
1192
  '/feed',
1193
+ new Page(),
1194
  'EDGE',
1195
+ Page::getFieldsEnum()->getValues(),
1196
  new TypeChecker($param_types, $enums)
1197
  );
1198
  $request->addParams($params);
1677
 
1678
  $param_types = array(
1679
  'always_open' => 'bool',
1680
+ 'delivery_and_pickup_option_info' => 'list<string>',
1681
+ 'differently_open_offerings' => 'map',
1682
  'hours' => 'map',
1683
  'ignore_warnings' => 'bool',
1684
  'location' => 'Object',
1693
  'store_location_descriptor' => 'string',
1694
  'store_name' => 'string',
1695
  'store_number' => 'unsigned int',
1696
+ 'temporary_status' => 'temporary_status_enum',
1697
  'website' => 'string',
1698
  );
1699
  $enums = array(
1700
+ 'temporary_status_enum' => PageTemporaryStatusValues::getInstance()->getValues(),
1701
  );
1702
 
1703
  $request = new ApiRequest(
1719
  $this->assureId();
1720
 
1721
  $param_types = array(
 
1722
  'universal_content_id' => 'string',
1723
  );
1724
  $enums = array(
 
1725
  );
1726
 
1727
  $request = new ApiRequest(
1936
  'account_linking_url' => 'string',
1937
  'get_started' => 'Object',
1938
  'greeting' => 'list<Object>',
 
1939
  'ice_breakers' => 'list<map>',
1940
  'payment_settings' => 'Object',
1941
  'persistent_menu' => 'list<Object>',
2281
  'initial_view_heading_override_degrees' => 'unsigned int',
2282
  'initial_view_pitch_override_degrees' => 'unsigned int',
2283
  'initial_view_vertical_fov_override_degrees' => 'unsigned int',
2284
+ 'instagram_product_tags' => 'list<map>',
2285
  'ios_bundle_id' => 'string',
2286
  'is_explicit_location' => 'bool',
2287
  'is_explicit_place' => 'bool',
2299
  'og_phrase' => 'string',
2300
  'og_set_profile_badge' => 'bool',
2301
  'og_suggestion_mechanism' => 'string',
2302
+ 'parent_media_id' => 'unsigned int',
2303
  'place' => 'Object',
2304
  'privacy' => 'string',
2305
  'profile_id' => 'int',
2491
  return $pending ? $request : $request->execute();
2492
  }
2493
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2494
  public function getPublishedPosts(array $fields = array(), array $params = array(), $pending = false) {
2495
  $this->assureId();
2496
 
2705
  return $pending ? $request : $request->execute();
2706
  }
2707
 
2708
+ public function getShopSetupStatus(array $fields = array(), array $params = array(), $pending = false) {
2709
+ $this->assureId();
2710
+
2711
+ $param_types = array(
2712
+ );
2713
+ $enums = array(
2714
+ );
2715
+
2716
+ $request = new ApiRequest(
2717
+ $this->api,
2718
+ $this->data['id'],
2719
+ RequestInterface::METHOD_GET,
2720
+ '/shop_setup_status',
2721
+ new CommerceMerchantSettingsSetupStatus(),
2722
+ 'EDGE',
2723
+ CommerceMerchantSettingsSetupStatus::getFieldsEnum()->getValues(),
2724
+ new TypeChecker($param_types, $enums)
2725
+ );
2726
+ $request->addParams($params);
2727
+ $request->addFields($fields);
2728
+ return $pending ? $request : $request->execute();
2729
+ }
2730
+
2731
  public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = false) {
2732
  $this->assureId();
2733
 
3086
  return $pending ? $request : $request->execute();
3087
  }
3088
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3089
  public function getVideoCopyrightRules(array $fields = array(), array $params = array(), $pending = false) {
3090
  $this->assureId();
3091
 
3121
  'copyright_content_id' => 'string',
3122
  'excluded_ownership_countries' => 'list<string>',
3123
  'excluded_ownership_segments' => 'list<Object>',
 
3124
  'is_reference_disabled' => 'bool',
3125
  'is_reference_video' => 'bool',
3126
  'monitoring_type' => 'monitoring_type_enum',
3127
  'ownership_countries' => 'list<string>',
3128
  'rule_id' => 'string',
3129
+ 'tags' => 'list<string>',
3130
  'whitelisted_ids' => 'list<string>',
3131
  'whitelisted_ig_user_ids' => 'list<string>',
3132
  );
3384
  'contact_address' => 'Object',
3385
  'cover' => 'string',
3386
  'culinary_team' => 'string',
3387
+ 'delivery_and_pickup_option_info' => 'list<string>',
3388
  'description' => 'string',
3389
+ 'differently_open_offerings' => 'map',
3390
  'directed_by' => 'string',
3391
  'displayed_message_response_time' => 'string',
3392
  'emails' => 'list<string>',
3424
  'spherical_metadata' => 'map',
3425
  'start_info' => 'Object',
3426
  'store_location_descriptor' => 'string',
3427
+ 'temporary_status' => 'temporary_status_enum',
3428
  'website' => 'string',
3429
  'zoom_scale_x' => 'float',
3430
  'zoom_scale_y' => 'float',
3432
  $enums = array(
3433
  'attire_enum' => PageAttireValues::getInstance()->getValues(),
3434
  'food_styles_enum' => PageFoodStylesValues::getInstance()->getValues(),
3435
+ 'temporary_status_enum' => PageTemporaryStatusValues::getInstance()->getValues(),
3436
  );
3437
 
3438
  $request = new ApiRequest(
vendor/facebook/php-business-sdk/src/FacebookAds/Object/PagePost.php CHANGED
@@ -36,15 +36,8 @@ use FacebookAds\Object\Values\CommentOrderValues;
36
  use FacebookAds\Object\Values\InsightsResultDatePresetValues;
37
  use FacebookAds\Object\Values\InsightsResultPeriodValues;
38
  use FacebookAds\Object\Values\PagePostBackdatedTimeGranularityValues;
39
- use FacebookAds\Object\Values\PagePostCheckinEntryPointValues;
40
  use FacebookAds\Object\Values\PagePostFeedStoryVisibilityValues;
41
- use FacebookAds\Object\Values\PagePostFormattingValues;
42
- use FacebookAds\Object\Values\PagePostPlaceAttachmentSettingValues;
43
- use FacebookAds\Object\Values\PagePostPostSurfacesBlacklistValues;
44
- use FacebookAds\Object\Values\PagePostPostingToRedspaceValues;
45
- use FacebookAds\Object\Values\PagePostTargetSurfaceValues;
46
  use FacebookAds\Object\Values\PagePostTimelineVisibilityValues;
47
- use FacebookAds\Object\Values\PagePostUnpublishedContentTypeValues;
48
  use FacebookAds\Object\Values\PagePostWithValues;
49
  use FacebookAds\Object\Values\ProfileTypeValues;
50
 
@@ -68,15 +61,8 @@ class PagePost extends AbstractCrudObject {
68
 
69
  protected static function getReferencedEnums() {
70
  $ref_enums = array();
71
- $ref_enums['BackdatedTimeGranularity'] = PagePostBackdatedTimeGranularityValues::getInstance()->getValues();
72
- $ref_enums['CheckinEntryPoint'] = PagePostCheckinEntryPointValues::getInstance()->getValues();
73
- $ref_enums['Formatting'] = PagePostFormattingValues::getInstance()->getValues();
74
- $ref_enums['PlaceAttachmentSetting'] = PagePostPlaceAttachmentSettingValues::getInstance()->getValues();
75
- $ref_enums['PostSurfacesBlacklist'] = PagePostPostSurfacesBlacklistValues::getInstance()->getValues();
76
- $ref_enums['PostingToRedspace'] = PagePostPostingToRedspaceValues::getInstance()->getValues();
77
- $ref_enums['TargetSurface'] = PagePostTargetSurfaceValues::getInstance()->getValues();
78
- $ref_enums['UnpublishedContentType'] = PagePostUnpublishedContentTypeValues::getInstance()->getValues();
79
  $ref_enums['With'] = PagePostWithValues::getInstance()->getValues();
 
80
  $ref_enums['FeedStoryVisibility'] = PagePostFeedStoryVisibilityValues::getInstance()->getValues();
81
  $ref_enums['TimelineVisibility'] = PagePostTimelineVisibilityValues::getInstance()->getValues();
82
  return $ref_enums;
36
  use FacebookAds\Object\Values\InsightsResultDatePresetValues;
37
  use FacebookAds\Object\Values\InsightsResultPeriodValues;
38
  use FacebookAds\Object\Values\PagePostBackdatedTimeGranularityValues;
 
39
  use FacebookAds\Object\Values\PagePostFeedStoryVisibilityValues;
 
 
 
 
 
40
  use FacebookAds\Object\Values\PagePostTimelineVisibilityValues;
 
41
  use FacebookAds\Object\Values\PagePostWithValues;
42
  use FacebookAds\Object\Values\ProfileTypeValues;
43
 
61
 
62
  protected static function getReferencedEnums() {
63
  $ref_enums = array();
 
 
 
 
 
 
 
 
64
  $ref_enums['With'] = PagePostWithValues::getInstance()->getValues();
65
+ $ref_enums['BackdatedTimeGranularity'] = PagePostBackdatedTimeGranularityValues::getInstance()->getValues();
66
  $ref_enums['FeedStoryVisibility'] = PagePostFeedStoryVisibilityValues::getInstance()->getValues();
67
  $ref_enums['TimelineVisibility'] = PagePostTimelineVisibilityValues::getInstance()->getValues();
68
  return $ref_enums;
vendor/facebook/php-business-sdk/src/FacebookAds/Object/PartnerStudy.php CHANGED
@@ -54,29 +54,6 @@ class PartnerStudy extends AbstractCrudObject {
54
  }
55
 
56
 
57
- public function getSubmitters(array $fields = array(), array $params = array(), $pending = false) {
58
- $this->assureId();
59
-
60
- $param_types = array(
61
- );
62
- $enums = array(
63
- );
64
-
65
- $request = new ApiRequest(
66
- $this->api,
67
- $this->data['id'],
68
- RequestInterface::METHOD_GET,
69
- '/submitters',
70
- new User(),
71
- 'EDGE',
72
- User::getFieldsEnum()->getValues(),
73
- new TypeChecker($param_types, $enums)
74
- );
75
- $request->addParams($params);
76
- $request->addFields($fields);
77
- return $pending ? $request : $request->execute();
78
- }
79
-
80
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
81
  $this->assureId();
82
 
54
  }
55
 
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
58
  $this->assureId();
59
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Post.php CHANGED
@@ -38,7 +38,6 @@ use FacebookAds\Object\Values\InsightsResultPeriodValues;
38
  use FacebookAds\Object\Values\PostBackdatedTimeGranularityValues;
39
  use FacebookAds\Object\Values\PostFeedStoryVisibilityValues;
40
  use FacebookAds\Object\Values\PostTimelineVisibilityValues;
41
- use FacebookAds\Object\Values\PostWithValues;
42
  use FacebookAds\Object\Values\ProfileTypeValues;
43
 
44
  /**
@@ -64,7 +63,6 @@ class Post extends AbstractCrudObject {
64
  $ref_enums['BackdatedTimeGranularity'] = PostBackdatedTimeGranularityValues::getInstance()->getValues();
65
  $ref_enums['FeedStoryVisibility'] = PostFeedStoryVisibilityValues::getInstance()->getValues();
66
  $ref_enums['TimelineVisibility'] = PostTimelineVisibilityValues::getInstance()->getValues();
67
- $ref_enums['With'] = PostWithValues::getInstance()->getValues();
68
  return $ref_enums;
69
  }
70
 
@@ -284,6 +282,7 @@ class Post extends AbstractCrudObject {
284
  'AUTO_LOOKALIKE',
285
  'AUTO_PAGE_LOOKALIKE',
286
  'AUTO_TARGETING',
 
287
  'CREATE_NEW',
288
  'CUSTOM_AUDIENCE',
289
  'DISTRICT',
@@ -295,6 +294,7 @@ class Post extends AbstractCrudObject {
295
  'IG_PROMOTED_POST_AUTO',
296
  'LOCAL',
297
  'LOOKALIKE',
 
298
  'MULT_CUSTOM_AUDIENCES',
299
  'NCPP',
300
  'SAVED_AUDIENCE',
@@ -318,6 +318,8 @@ class Post extends AbstractCrudObject {
318
  'FIND_A_GROUP',
319
  'FIND_YOUR_GROUPS',
320
  'FOLLOW_NEWS_STORYLINE',
 
 
321
  'GET_DIRECTIONS',
322
  'GET_OFFER',
323
  'GET_OFFER_VIEW',
@@ -335,8 +337,11 @@ class Post extends AbstractCrudObject {
335
  'NO_BUTTON',
336
  'OPEN_LINK',
337
  'ORDER_NOW',
 
338
  'PLAY_GAME',
 
339
  'RECORD_NOW',
 
340
  'SAY_THANKS',
341
  'SEE_MORE',
342
  'SELL_NOW',
38
  use FacebookAds\Object\Values\PostBackdatedTimeGranularityValues;
39
  use FacebookAds\Object\Values\PostFeedStoryVisibilityValues;
40
  use FacebookAds\Object\Values\PostTimelineVisibilityValues;
 
41
  use FacebookAds\Object\Values\ProfileTypeValues;
42
 
43
  /**
63
  $ref_enums['BackdatedTimeGranularity'] = PostBackdatedTimeGranularityValues::getInstance()->getValues();
64
  $ref_enums['FeedStoryVisibility'] = PostFeedStoryVisibilityValues::getInstance()->getValues();
65
  $ref_enums['TimelineVisibility'] = PostTimelineVisibilityValues::getInstance()->getValues();
 
66
  return $ref_enums;
67
  }
68
 
282
  'AUTO_LOOKALIKE',
283
  'AUTO_PAGE_LOOKALIKE',
284
  'AUTO_TARGETING',
285
+ 'COUNTRY_AND_INTEREST',
286
  'CREATE_NEW',
287
  'CUSTOM_AUDIENCE',
288
  'DISTRICT',
294
  'IG_PROMOTED_POST_AUTO',
295
  'LOCAL',
296
  'LOOKALIKE',
297
+ 'MARKETPLACE_DEFAULT',
298
  'MULT_CUSTOM_AUDIENCES',
299
  'NCPP',
300
  'SAVED_AUDIENCE',
318
  'FIND_A_GROUP',
319
  'FIND_YOUR_GROUPS',
320
  'FOLLOW_NEWS_STORYLINE',
321
+ 'FOLLOW_PAGE',
322
+ 'FOLLOW_USER',
323
  'GET_DIRECTIONS',
324
  'GET_OFFER',
325
  'GET_OFFER_VIEW',
337
  'NO_BUTTON',
338
  'OPEN_LINK',
339
  'ORDER_NOW',
340
+ 'PAY_TO_ACCESS',
341
  'PLAY_GAME',
342
+ 'PURCHASE_GIFT_CARDS',
343
  'RECORD_NOW',
344
+ 'REQUEST_TIME',
345
  'SAY_THANKS',
346
  'SEE_MORE',
347
  'SELL_NOW',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductCatalog.php CHANGED
@@ -291,59 +291,6 @@ class ProductCatalog extends AbstractCrudObject {
291
  return $pending ? $request : $request->execute();
292
  }
293
 
294
- public function createBundleFolder(array $fields = array(), array $params = array(), $pending = false) {
295
- $this->assureId();
296
-
297
- $param_types = array(
298
- 'name' => 'string',
299
- );
300
- $enums = array(
301
- );
302
-
303
- $request = new ApiRequest(
304
- $this->api,
305
- $this->data['id'],
306
- RequestInterface::METHOD_POST,
307
- '/bundle_folders',
308
- new DynamicItemDisplayBundleFolder(),
309
- 'EDGE',
310
- DynamicItemDisplayBundleFolder::getFieldsEnum()->getValues(),
311
- new TypeChecker($param_types, $enums)
312
- );
313
- $request->addParams($params);
314
- $request->addFields($fields);
315
- return $pending ? $request : $request->execute();
316
- }
317
-
318
- public function createBundle(array $fields = array(), array $params = array(), $pending = false) {
319
- $this->assureId();
320
-
321
- $param_types = array(
322
- 'additional_urls' => 'map',
323
- 'description' => 'string',
324
- 'name' => 'string',
325
- 'product_set' => 'string',
326
- 'text_tokens' => 'map',
327
- 'url' => 'string',
328
- );
329
- $enums = array(
330
- );
331
-
332
- $request = new ApiRequest(
333
- $this->api,
334
- $this->data['id'],
335
- RequestInterface::METHOD_POST,
336
- '/bundles',
337
- new DynamicItemDisplayBundle(),
338
- 'EDGE',
339
- DynamicItemDisplayBundle::getFieldsEnum()->getValues(),
340
- new TypeChecker($param_types, $enums)
341
- );
342
- $request->addParams($params);
343
- $request->addFields($fields);
344
- return $pending ? $request : $request->execute();
345
- }
346
-
347
  public function getCategories(array $fields = array(), array $params = array(), $pending = false) {
348
  $this->assureId();
349
 
@@ -792,6 +739,30 @@ class ProductCatalog extends AbstractCrudObject {
792
  return $pending ? $request : $request->execute();
793
  }
794
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
795
  public function getPricingVariablesBatch(array $fields = array(), array $params = array(), $pending = false) {
796
  $this->assureId();
797
 
@@ -882,10 +853,12 @@ class ProductCatalog extends AbstractCrudObject {
882
  'file_name' => 'string',
883
  'name' => 'string',
884
  'override_type' => 'override_type_enum',
 
885
  'quoted_fields_mode' => 'quoted_fields_mode_enum',
886
  'rules' => 'list<string>',
887
  'schedule' => 'string',
888
  'update_schedule' => 'string',
 
889
  );
890
  $enums = array(
891
  'delimiter_enum' => ProductFeedDelimiterValues::getInstance()->getValues(),
@@ -1034,36 +1007,6 @@ class ProductCatalog extends AbstractCrudObject {
1034
  return $pending ? $request : $request->execute();
1035
  }
1036
 
1037
- public function createProductSetsBatch(array $fields = array(), array $params = array(), $pending = false) {
1038
- $this->assureId();
1039
-
1040
- $param_types = array(
1041
- 'file' => 'file',
1042
- 'password' => 'string',
1043
- 'standard' => 'standard_enum',
1044
- 'update_only' => 'bool',
1045
- 'url' => 'string',
1046
- 'username' => 'string',
1047
- );
1048
- $enums = array(
1049
- 'standard_enum' => ProductCatalogStandardValues::getInstance()->getValues(),
1050
- );
1051
-
1052
- $request = new ApiRequest(
1053
- $this->api,
1054
- $this->data['id'],
1055
- RequestInterface::METHOD_POST,
1056
- '/product_sets_batch',
1057
- new ProductCatalog(),
1058
- 'EDGE',
1059
- ProductCatalog::getFieldsEnum()->getValues(),
1060
- new TypeChecker($param_types, $enums)
1061
- );
1062
- $request->addParams($params);
1063
- $request->addFields($fields);
1064
- return $pending ? $request : $request->execute();
1065
- }
1066
-
1067
  public function getProducts(array $fields = array(), array $params = array(), $pending = false) {
1068
  $this->assureId();
1069
 
@@ -1180,31 +1123,6 @@ class ProductCatalog extends AbstractCrudObject {
1180
  return $pending ? $request : $request->execute();
1181
  }
1182
 
1183
- public function createStoreProductItemsBatch(array $fields = array(), array $params = array(), $pending = false) {
1184
- $this->assureId();
1185
-
1186
- $param_types = array(
1187
- 'allow_upsert' => 'bool',
1188
- 'requests' => 'list<map>',
1189
- );
1190
- $enums = array(
1191
- );
1192
-
1193
- $request = new ApiRequest(
1194
- $this->api,
1195
- $this->data['id'],
1196
- RequestInterface::METHOD_POST,
1197
- '/store_product_items_batch',
1198
- new ProductCatalog(),
1199
- 'EDGE',
1200
- ProductCatalog::getFieldsEnum()->getValues(),
1201
- new TypeChecker($param_types, $enums)
1202
- );
1203
- $request->addParams($params);
1204
- $request->addFields($fields);
1205
- return $pending ? $request : $request->execute();
1206
- }
1207
-
1208
  public function getVehicleOffers(array $fields = array(), array $params = array(), $pending = false) {
1209
  $this->assureId();
1210
 
291
  return $pending ? $request : $request->execute();
292
  }
293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  public function getCategories(array $fields = array(), array $params = array(), $pending = false) {
295
  $this->assureId();
296
 
739
  return $pending ? $request : $request->execute();
740
  }
741
 
742
+ public function createOnsiteCommerceMerchant(array $fields = array(), array $params = array(), $pending = false) {
743
+ $this->assureId();
744
+
745
+ $param_types = array(
746
+ 'onsite_commerce_merchant' => 'Object',
747
+ );
748
+ $enums = array(
749
+ );
750
+
751
+ $request = new ApiRequest(
752
+ $this->api,
753
+ $this->data['id'],
754
+ RequestInterface::METHOD_POST,
755
+ '/onsite_commerce_merchant',
756
+ new ProductCatalog(),
757
+ 'EDGE',
758
+ ProductCatalog::getFieldsEnum()->getValues(),
759
+ new TypeChecker($param_types, $enums)
760
+ );
761
+ $request->addParams($params);
762
+ $request->addFields($fields);
763
+ return $pending ? $request : $request->execute();
764
+ }
765
+
766
  public function getPricingVariablesBatch(array $fields = array(), array $params = array(), $pending = false) {
767
  $this->assureId();
768
 
853
  'file_name' => 'string',
854
  'name' => 'string',
855
  'override_type' => 'override_type_enum',
856
+ 'override_value' => 'string',
857
  'quoted_fields_mode' => 'quoted_fields_mode_enum',
858
  'rules' => 'list<string>',
859
  'schedule' => 'string',
860
  'update_schedule' => 'string',
861
+ 'whitelisted_properties' => 'list<string>',
862
  );
863
  $enums = array(
864
  'delimiter_enum' => ProductFeedDelimiterValues::getInstance()->getValues(),
1007
  return $pending ? $request : $request->execute();
1008
  }
1009
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1010
  public function getProducts(array $fields = array(), array $params = array(), $pending = false) {
1011
  $this->assureId();
1012
 
1123
  return $pending ? $request : $request->execute();
1124
  }
1125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1126
  public function getVehicleOffers(array $fields = array(), array $params = array(), $pending = false) {
1127
  $this->assureId();
1128
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductFeedUploadDiagnosticsReport.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object;
26
+
27
+ use FacebookAds\ApiRequest;
28
+ use FacebookAds\Cursor;
29
+ use FacebookAds\Http\RequestInterface;
30
+ use FacebookAds\TypeChecker;
31
+ use FacebookAds\Object\Fields\ProductFeedUploadDiagnosticsReportFields;
32
+
33
+ /**
34
+ * This class is auto-generated.
35
+ *
36
+ * For any issues or feature requests related to this class, please let us know
37
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
38
+ * pull request for this class.
39
+ *
40
+ */
41
+
42
+ class ProductFeedUploadDiagnosticsReport extends AbstractObject {
43
+
44
+ /**
45
+ * @return ProductFeedUploadDiagnosticsReportFields
46
+ */
47
+ public static function getFieldsEnum() {
48
+ return ProductFeedUploadDiagnosticsReportFields::getInstance();
49
+ }
50
+
51
+ protected static function getReferencedEnums() {
52
+ $ref_enums = array();
53
+ return $ref_enums;
54
+ }
55
+
56
+
57
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/PublisherBlockList.php CHANGED
@@ -61,30 +61,6 @@ class PublisherBlockList extends AbstractCrudObject {
61
  }
62
 
63
 
64
- public function getPagedAppPublishers(array $fields = array(), array $params = array(), $pending = false) {
65
- $this->assureId();
66
-
67
- $param_types = array(
68
- 'draft_id' => 'string',
69
- );
70
- $enums = array(
71
- );
72
-
73
- $request = new ApiRequest(
74
- $this->api,
75
- $this->data['id'],
76
- RequestInterface::METHOD_GET,
77
- '/paged_app_publishers',
78
- new AbstractCrudObject(),
79
- 'EDGE',
80
- array(),
81
- new TypeChecker($param_types, $enums)
82
- );
83
- $request->addParams($params);
84
- $request->addFields($fields);
85
- return $pending ? $request : $request->execute();
86
- }
87
-
88
  public function getPagedWebPublishers(array $fields = array(), array $params = array(), $pending = false) {
89
  $this->assureId();
90
 
61
  }
62
 
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  public function getPagedWebPublishers(array $fields = array(), array $params = array(), $pending = false) {
65
  $this->assureId();
66
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/RTBDynamicPost.php CHANGED
@@ -87,29 +87,6 @@ class RTBDynamicPost extends AbstractCrudObject {
87
  return $pending ? $request : $request->execute();
88
  }
89
 
90
- public function getInstagramComments(array $fields = array(), array $params = array(), $pending = false) {
91
- $this->assureId();
92
-
93
- $param_types = array(
94
- );
95
- $enums = array(
96
- );
97
-
98
- $request = new ApiRequest(
99
- $this->api,
100
- $this->data['id'],
101
- RequestInterface::METHOD_GET,
102
- '/instagram_comments',
103
- new InstagramComment(),
104
- 'EDGE',
105
- InstagramComment::getFieldsEnum()->getValues(),
106
- new TypeChecker($param_types, $enums)
107
- );
108
- $request->addParams($params);
109
- $request->addFields($fields);
110
- return $pending ? $request : $request->execute();
111
- }
112
-
113
  public function getLikes(array $fields = array(), array $params = array(), $pending = false) {
114
  $this->assureId();
115
 
87
  return $pending ? $request : $request->execute();
88
  }
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  public function getLikes(array $fields = array(), array $params = array(), $pending = false) {
91
  $this->assureId();
92
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/AdsPixelSettings.php ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\ServerSide;
26
+
27
+ use FacebookAds\Http\Client;
28
+ use FacebookAds\Http\SimpleRequest;
29
+ use FacebookAds\Exception\Exception;
30
+
31
+ use ArrayAccess;
32
+
33
+ class AdsPixelSettings implements ArrayAccess {
34
+
35
+ /**
36
+ * @var string
37
+ */
38
+ const SIGNALS_JSON_CONFIG_PATH = 'signals/config/json';
39
+
40
+ /**
41
+ * Associative array for storing property values
42
+ * @var mixed[]
43
+ */
44
+ protected $container = array();
45
+
46
+ /**
47
+ * Constructor
48
+ * @param mixed[] $data Associated array of property value initializing the model
49
+ */
50
+ public function __construct(array $data = null) {
51
+ $this->container['enable_automatic_matching'] = isset($data['enableAutomaticMatching']) ? $data['enableAutomaticMatching'] : null;;
52
+ $this->container['enabled_automatic_matching_fields'] = isset($data['enabledAutomaticMatchingFields']) ? $data['enabledAutomaticMatchingFields'] : null;
53
+ $this->container['pixel_id'] = isset($data['pixel_id']) ? $data['pixel_id'] : null;
54
+ }
55
+
56
+ /**
57
+ * Factory method to build the settings given a pixel id
58
+ * @param string $pixelId
59
+ * @return AdsPixelId
60
+ */
61
+ public static function buildFromPixelId($pixelId){
62
+ $response = self::callPixelSettingsEndpoint($pixelId);
63
+ if( $response !== null ){
64
+ $jsonString = $response->getBody();
65
+ $pixelSettingsAsDict = json_decode($jsonString, true);
66
+ if (array_key_exists('errorMessage', $pixelSettingsAsDict)){
67
+ return null;
68
+ }
69
+ $pixelSettingsAsDict['matchingConfig']['pixel_id'] = $pixelId;
70
+ return new AdsPixelSettings($pixelSettingsAsDict['matchingConfig']);
71
+ }
72
+ return null;
73
+ }
74
+
75
+ /**
76
+ * @param string $pixelId
77
+ * @return SimpleRequest
78
+ */
79
+ private static function callPixelSettingsEndpoint($pixelId){
80
+ $path = sprintf("%s/%s/", self::SIGNALS_JSON_CONFIG_PATH, $pixelId);
81
+ $client = new Client();
82
+ $request = new SimpleRequest($client);
83
+ $request->setPath($path);
84
+ try{
85
+ return $client->sendRequest($request);
86
+ }
87
+ catch(Exception $e){
88
+ return null;
89
+ }
90
+ }
91
+
92
+ /**
93
+ * Get Pixel Id.
94
+ * @return string pixel id
95
+ */
96
+ public function getPixelId() {
97
+ return $this->container['pixel_id'];
98
+ }
99
+
100
+
101
+ /**
102
+ * Sets Pixel id.
103
+ * @param string $pixelId
104
+ * @return $this
105
+ */
106
+ public function setPixelId($pixelId) {
107
+ $this->container['pixel_id'] = $pixelId;
108
+ return $this;
109
+ }
110
+
111
+ /**
112
+ * Get Enable automatic matching.
113
+ * @return bool enable automatic matching
114
+ */
115
+ public function getEnableAutomaticMatching() {
116
+ return $this->container['enable_automatic_matching'];
117
+ }
118
+
119
+
120
+ /**
121
+ * Sets Enable automatic matching.
122
+ * @param bool $enableAutomaticMatching
123
+ * @return $this
124
+ */
125
+ public function setEnableAutomaticMatching($enableAutomaticMatching) {
126
+ $this->container['enable_automatic_matching'] = $enableAutomaticMatching;
127
+ return $this;
128
+ }
129
+
130
+ /**
131
+ * Get Enabled automatic matching fields.
132
+ * @return array enabled automatic matching fields
133
+ */
134
+ public function getEnabledAutomaticMatchingFields() {
135
+ return $this->container['enabled_automatic_matching_fields'];
136
+ }
137
+
138
+
139
+ /**
140
+ * Sets Enabled automatic matching fields.
141
+ * @param array $enabledAutomaticMatchingFields
142
+ * @return $this
143
+ */
144
+ public function setEnabledAutomaticMatchingFields($enabledAutomaticMatchingFields) {
145
+ $this->container['enabled_automatic_matching_fields'] = $enabledAutomaticMatchingFields;
146
+ return $this;
147
+ }
148
+
149
+ /**
150
+ * Returns true if offset exists. False otherwise.
151
+ * @param integer $offset Offset
152
+ * @return boolean
153
+ */
154
+ public function offsetExists($offset) {
155
+ return isset($this->container[$offset]);
156
+ }
157
+
158
+ /**
159
+ * Gets offset.
160
+ * @param integer $offset Offset
161
+ * @return mixed
162
+ */
163
+ public function offsetGet($offset) {
164
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
165
+ }
166
+
167
+ /**
168
+ * Sets value based on offset.
169
+ * @param integer $offset Offset
170
+ * @param mixed $value Value to be set
171
+ * @return void
172
+ */
173
+ public function offsetSet($offset, $value) {
174
+ if (is_null($offset)) {
175
+ $this->container[] = $value;
176
+ } else {
177
+ $this->container[$offset] = $value;
178
+ }
179
+ }
180
+
181
+ /**
182
+ * Unsets offset.
183
+ * @param integer $offset Offset
184
+ * @return void
185
+ */
186
+ public function offsetUnset($offset) {
187
+ unset($this->container[$offset]);
188
+ }
189
+
190
+ /**
191
+ * Gets the string presentation of the object
192
+ * @return string
193
+ */
194
+ public function __toString() {
195
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
196
+ return json_encode($this, JSON_PRETTY_PRINT);
197
+ }
198
+ return json_encode($this);
199
+ }
200
+
201
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Content.php CHANGED
@@ -26,162 +26,148 @@ namespace FacebookAds\Object\ServerSide;
26
 
27
  use ArrayAccess;
28
 
29
- class Content implements ArrayAccess
30
- {
31
- /**
32
- * Associative array for storing property values
33
- * @var mixed[]
34
- */
35
- protected $container = array();
36
-
37
- /**
38
- * Constructor
39
- * @param mixed[] $data Associated array of property value initializing the model
40
- */
41
- public function __construct(array $data = null)
42
- {
43
- $this->container['product_id'] = isset($data['product_id']) ? $data['product_id'] : null;;
44
- $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
45
- $this->container['item_price'] = isset($data['item_price']) ? $data['item_price'] : null;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
-
48
-
49
- /**
50
- * Get Product Id.
51
- * @return string Product Id
52
- */
53
- public function getProductId()
54
- {
55
- return $this->container['product_id'];
56
- }
57
-
58
-
59
- /**
60
- * Sets product id.
61
- * @param string $product_id product id
62
- * @return $this
63
- */
64
- public function setProductId($product_id)
65
- {
66
- $this->container['product_id'] = $product_id;
67
- return $this;
68
- }
69
-
70
-
71
- /**
72
- * Get number of product.
73
- * @return integer quantity
74
- */
75
- public function getQuantity()
76
- {
77
- return $this->container['quantity'];
78
- }
79
-
80
- /**
81
- * Set number of product.
82
- * @param integer $quantity number of items
83
- * @return $this
84
- */
85
- public function setQuantity($quantity)
86
- {
87
- $this->container['quantity'] = $quantity;
88
- return $this;
89
  }
90
 
 
 
91
 
92
- /**
93
- * Get Item Price.
94
- * @return float Item Price
95
- */
96
- public function getItemPrice()
97
- {
98
- return $this->container['item_price'];
99
- }
 
 
100
 
101
- /**
102
- * Set Item Price.
103
- * @param float $item_price single item price
104
- * @return Content
105
- */
106
- public function setItemPrice($item_price)
107
- {
108
- $this->container['item_price'] = $item_price;
109
- return $this;
110
- }
111
 
112
- /**
113
- * Returns true if offset exists. False otherwise.
114
- * @param integer $offset Offset
115
- * @return boolean
116
- */
117
- public function offsetExists($offset)
118
- {
119
- return isset($this->container[$offset]);
120
- }
121
-
122
- /**
123
- * Gets offset.
124
- * @param integer $offset Offset
125
- * @return mixed
126
- */
127
- public function offsetGet($offset)
128
- {
129
- return isset($this->container[$offset]) ? $this->container[$offset] : null;
130
- }
131
-
132
- /**
133
- * Sets value based on offset.
134
- * @param integer $offset Offset
135
- * @param mixed $value Value to be set
136
- * @return void
137
- */
138
- public function offsetSet($offset, $value)
139
- {
140
- if (is_null($offset)) {
141
- $this->container[] = $value;
142
- } else {
143
- $this->container[$offset] = $value;
144
- }
145
- }
146
-
147
- /**
148
- * Unsets offset.
149
- * @param integer $offset Offset
150
- * @return void
151
- */
152
- public function offsetUnset($offset)
153
- {
154
- unset($this->container[$offset]);
155
- }
156
-
157
- /**
158
- * Gets the string presentation of the object
159
- * @return string
160
- */
161
- public function __toString()
162
- {
163
- if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
164
- return json_encode($this, JSON_PRETTY_PRINT);
165
- }
166
-
167
- return json_encode($this);
168
- }
169
-
170
- /**
171
- * Normalize
172
- * @return array
173
- */
174
- public function normalize()
175
- {
176
- $normalized_payload = array(
177
- 'id' => $this->container['product_id'],
178
- 'quantity' => $this->container['quantity'],
179
- 'item_price' => $this->container['item_price'],
180
- );
181
-
182
- $normalized_payload = array_filter($normalized_payload);
183
-
184
- return $normalized_payload;
185
- }
186
 
187
  }
26
 
27
  use ArrayAccess;
28
 
29
+ class Content implements ArrayAccess {
30
+ /**
31
+ * Associative array for storing property values
32
+ * @var mixed[]
33
+ */
34
+ protected $container = array();
35
+
36
+ /**
37
+ * Constructor
38
+ * @param mixed[] $data Associated array of property value initializing the model
39
+ */
40
+ public function __construct(array $data = null) {
41
+ $this->container['product_id'] = isset($data['product_id']) ? $data['product_id'] : null;;
42
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
43
+ $this->container['item_price'] = isset($data['item_price']) ? $data['item_price'] : null;
44
+ }
45
+
46
+
47
+ /**
48
+ * Get Product Id.
49
+ * @return string Product Id
50
+ */
51
+ public function getProductId() {
52
+ return $this->container['product_id'];
53
+ }
54
+
55
+
56
+ /**
57
+ * Sets product id.
58
+ * @param string $product_id product id
59
+ * @return $this
60
+ */
61
+ public function setProductId($product_id) {
62
+ $this->container['product_id'] = $product_id;
63
+ return $this;
64
+ }
65
+
66
+
67
+ /**
68
+ * Get number of product.
69
+ * @return integer quantity
70
+ */
71
+ public function getQuantity() {
72
+ return $this->container['quantity'];
73
+ }
74
+
75
+ /**
76
+ * Set number of product.
77
+ * @param integer $quantity number of items
78
+ * @return $this
79
+ */
80
+ public function setQuantity($quantity) {
81
+ $this->container['quantity'] = $quantity;
82
+ return $this;
83
+ }
84
+
85
+
86
+ /**
87
+ * Get Item Price.
88
+ * @return float Item Price
89
+ */
90
+ public function getItemPrice() {
91
+ return $this->container['item_price'];
92
+ }
93
+
94
+ /**
95
+ * Set Item Price.
96
+ * @param float $item_price single item price
97
+ * @return Content
98
+ */
99
+ public function setItemPrice($item_price) {
100
+ $this->container['item_price'] = $item_price;
101
+ return $this;
102
+ }
103
+
104
+ /**
105
+ * Returns true if offset exists. False otherwise.
106
+ * @param integer $offset Offset
107
+ * @return boolean
108
+ */
109
+ public function offsetExists($offset) {
110
+ return isset($this->container[$offset]);
111
+ }
112
+
113
+ /**
114
+ * Gets offset.
115
+ * @param integer $offset Offset
116
+ * @return mixed
117
+ */
118
+ public function offsetGet($offset) {
119
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
120
+ }
121
+
122
+ /**
123
+ * Sets value based on offset.
124
+ * @param integer $offset Offset
125
+ * @param mixed $value Value to be set
126
+ * @return void
127
+ */
128
+ public function offsetSet($offset, $value) {
129
+ if (is_null($offset)) {
130
+ $this->container[] = $value;
131
+ } else {
132
+ $this->container[$offset] = $value;
133
  }
134
+ }
135
+
136
+ /**
137
+ * Unsets offset.
138
+ * @param integer $offset Offset
139
+ * @return void
140
+ */
141
+ public function offsetUnset($offset) {
142
+ unset($this->container[$offset]);
143
+ }
144
+
145
+ /**
146
+ * Gets the string presentation of the object
147
+ * @return string
148
+ */
149
+ public function __toString() {
150
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
151
+ return json_encode($this, JSON_PRETTY_PRINT);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  }
153
 
154
+ return json_encode($this);
155
+ }
156
 
157
+ /**
158
+ * Normalize
159
+ * @return array
160
+ */
161
+ public function normalize() {
162
+ $normalized_payload = array(
163
+ 'id' => $this->container['product_id'],
164
+ 'quantity' => $this->container['quantity'],
165
+ 'item_price' => $this->container['item_price'],
166
+ );
167
 
168
+ $normalized_payload = array_filter($normalized_payload);
 
 
 
 
 
 
 
 
 
169
 
170
+ return $normalized_payload;
171
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
 
173
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/CustomData.php CHANGED
@@ -27,502 +27,520 @@ namespace FacebookAds\Object\ServerSide;
27
  use ArrayAccess;
28
 
29
 
30
- class CustomData implements ArrayAccess
31
- {
32
-
33
- /**
34
- * Array of property to type mappings. Used for (de)serialization
35
- * @var string[]
36
- */
37
- protected static $param_types = array(
38
- 'value' => 'float',
39
- 'currency' => 'string',
40
- 'content_name' => 'string',
41
- 'content_category' => 'string',
42
- 'content_ids' => 'string[]',
43
- 'contents' => 'object[]',
44
- 'content_type' => 'string',
45
- 'order_id' => 'string',
46
- 'predicted_ltv' => 'float',
47
- 'num_items' => 'string',
48
- 'status' => 'string',
49
- 'search_string' => 'string'
50
- );
51
- /**
52
- * Array of attributes where the key is the local name, and the value is the original name
53
- * @var string[]
54
- */
55
- protected static $attributeMap = array(
56
- 'value' => 'value',
57
- 'currency' => 'currency',
58
- 'content_name' => 'content_name',
59
- 'content_category' => 'content_category',
60
- 'content_ids' => 'content_ids',
61
- 'contents' => 'contents',
62
- 'content_type' => 'content_type',
63
- 'order_id' => 'order_id',
64
- 'predicted_ltv' => 'predicted_ltv',
65
- 'num_items' => 'num_items',
66
- 'status' => 'status',
67
- 'search_string' => 'search_string'
68
- );
69
- /**
70
- * Array of attributes to setter functions (for deserialization of responses)
71
- * @var string[]
72
- */
73
- protected static $setters = array(
74
- 'value' => 'setValue',
75
- 'currency' => 'setCurrency',
76
- 'content_name' => 'setContentName',
77
- 'content_category' => 'setContentCategory',
78
- 'content_ids' => 'setContentIds',
79
- 'contents' => 'setContents',
80
- 'content_type' => 'setContentType',
81
- 'order_id' => 'setOrderId',
82
- 'predicted_ltv' => 'setPredictedLtv',
83
- 'num_items' => 'setNumItems',
84
- 'status' => 'setStatus',
85
- 'search_string' => 'setSearchString'
86
- );
87
- /**
88
- * Array of attributes to getter functions (for serialization of requests)
89
- * @var string[]
90
- */
91
- protected static $getters = array(
92
- 'value' => 'getValue',
93
- 'currency' => 'getCurrency',
94
- 'content_name' => 'getContentName',
95
- 'content_category' => 'getContentCategory',
96
- 'content_ids' => 'getContentIds',
97
- 'contents' => 'getContents',
98
- 'content_type' => 'getContentType',
99
- 'order_id' => 'getOrderId',
100
- 'predicted_ltv' => 'getPredictedLtv',
101
- 'num_items' => 'getNumItems',
102
- 'status' => 'getStatus',
103
- 'search_string' => 'getSearchString'
104
- );
105
- /**
106
- * Associative array for storing property values
107
- * @var mixed[]
108
- */
109
- protected $container = array();
110
-
111
- /**
112
- * Constructor
113
- * @param mixed[] $data Associated array of property value initializing the model
114
- */
115
- public function __construct(array $data = null)
116
- {
117
- $this->container['value'] = isset($data['value']) ? $data['value'] : null;
118
- $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null;
119
- $this->container['content_name'] = isset($data['content_name']) ? $data['content_name'] : null;
120
- $this->container['content_category'] = isset($data['content_category']) ? $data['content_category'] : null;
121
- $this->container['content_ids'] = isset($data['content_ids']) ? $data['content_ids'] : null;
122
- $this->container['contents'] = isset($data['contents']) ? $data['contents'] : null;
123
- $this->container['content_type'] = isset($data['content_type']) ? $data['content_type'] : null;
124
- $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null;
125
- $this->container['predicted_ltv'] = isset($data['predicted_ltv']) ? $data['predicted_ltv'] : null;
126
- $this->container['num_items'] = isset($data['num_items']) ? $data['num_items'] : null;
127
- $this->container['status'] = isset($data['status']) ? $data['status'] : null;
128
- $this->container['search_string'] = isset($data['search_string']) ? $data['search_string'] : null;
129
- }
130
-
131
- public static function paramTypes()
132
- {
133
- return self::$param_types;
134
- }
135
-
136
- public static function attributeMap()
137
- {
138
- return self::$attributeMap;
139
- }
140
-
141
- public static function setters()
142
- {
143
- return self::$setters;
144
- }
145
-
146
- public static function getters()
147
- {
148
- return self::$getters;
149
- }
150
-
151
- /**
152
- * show all the invalid properties with reasons.
153
- *
154
- * @return array invalid properties with reasons
155
- */
156
- public function listInvalidProperties()
157
- {
158
- $invalid_properties = array();
159
- return $invalid_properties;
160
- }
161
-
162
- /**
163
- * validate all the properties in the model
164
- * return true if all passed
165
- *
166
- * @return bool True if all properteis are valid
167
- */
168
- public function valid()
169
- {
170
- return true;
171
- }
172
-
173
- /**
174
- * Sets value
175
- * @param float $value A numeric value associated with this event.
176
- * This could be a monetary value or a value in some other metric.
177
- * @return $this
178
- */
179
- public function setValue($value)
180
- {
181
- $this->container['value'] = $value;
182
-
183
- return $this;
184
- }
185
-
186
- /**
187
- * Sets currency
188
- * @param string $currency The currency for the value specified, if applicable.
189
- * Currency must be a valid ISO 4217 three digit currency code.
190
- * @return $this
191
- */
192
- public function setCurrency($currency)
193
- {
194
- $this->container['currency'] = $currency;
195
-
196
- return $this;
197
- }
198
-
199
- /**
200
- * Sets content_name
201
- * @param string $content_name The name of the page or product associated with the event. Example: 'lettuce'.
202
- * @return $this
203
- */
204
- public function setContentName($content_name)
205
- {
206
- $this->container['content_name'] = $content_name;
207
-
208
- return $this;
209
- }
210
-
211
- /**
212
- * Sets content_category
213
- * @param string $content_category The category of the content associated with the event. Example: 'grocery'
214
- * @return $this
215
- */
216
- public function setContentCategory($content_category)
217
- {
218
- $this->container['content_category'] = $content_category;
219
-
220
- return $this;
221
- }
222
-
223
- /**
224
- * Sets content_ids
225
- * @param string[] $content_ids The content IDs associated with the event,
226
- * such as product SKUs for items in an AddToCart event: ['ABC123', 'XYZ789'].
227
- * If content_type is a product, then your content IDs must be an array with a single string value.
228
- * Otherwise, this array can contain any number of string values.
229
- * @return $this
230
- */
231
- public function setContentIds($content_ids)
232
- {
233
- $this->container['content_ids'] = $content_ids;
234
-
235
- return $this;
236
- }
237
-
238
- /**
239
- * Sets contents
240
- * @param Content[] $contents A list of Content objects that contain the product IDs associated with
241
- * the event plus information about the products.
242
- * @return $this
243
- */
244
- public function setContents($contents)
245
- {
246
- $this->container['contents'] = $contents;
247
-
248
- return $this;
249
- }
250
-
251
- /**
252
- * Sets content_type
253
- * @param string $content_type A String equal to either 'product' or 'product_group'.
254
- * Set to product if the keys you send content_ids or contents represent products.
255
- * Set to product_group if the keys you send in content_ids represent product groups.
256
- * @return $this
257
- */
258
- public function setContentType($content_type)
259
- {
260
- $this->container['content_type'] = $content_type;
261
-
262
- return $this;
263
- }
264
-
265
- /**
266
- * Sets order_id
267
- * @param string $order_id The order ID for this transaction as a String.
268
- * @return $this
269
- */
270
- public function setOrderId($order_id)
271
- {
272
- $this->container['order_id'] = $order_id;
273
-
274
- return $this;
275
- }
276
-
277
- /**
278
- * Sets predicted_ltv
279
- * @param float $predicted_ltv The predicted lifetime value of a conversion event.
280
- * @return $this
281
- */
282
- public function setPredictedLtv($predicted_ltv)
283
- {
284
- $this->container['predicted_ltv'] = $predicted_ltv;
285
-
286
- return $this;
287
- }
288
-
289
- /**
290
- * Sets num_items
291
- * @param string $num_items Use only with InitiateCheckout events.
292
- * The number of items that a user tries to buy during checkout.
293
- * @return $this
294
- */
295
- public function setNumItems($num_items)
296
- {
297
- $this->container['num_items'] = $num_items;
298
-
299
- return $this;
300
- }
301
-
302
- /**
303
- * Sets status
304
- * @param string $status Use only with CompleteRegistration events.
305
- * The status of the registration event.
306
- * @return $this
307
- */
308
- public function setStatus($status)
309
- {
310
- $this->container['status'] = $status;
311
-
312
- return $this;
313
- }
314
-
315
- /**
316
- * Sets a search query made by a user. Use only with Search events.
317
- * @param string $search_string Use only with Search events.
318
- * A search query made by a user.
319
- * @return $this
320
- */
321
- public function setSearchString($search_string)
322
- {
323
- $this->container['search_string'] = $search_string;
324
-
325
- return $this;
326
- }
327
-
328
- /**
329
- * Returns true if offset exists. False otherwise.
330
- * @param integer $offset Offset
331
- * @return boolean
332
- */
333
- public function offsetExists($offset)
334
- {
335
- return isset($this->container[$offset]);
336
- }
337
-
338
- /**
339
- * Gets offset.
340
- * @param integer $offset Offset
341
- * @return mixed
342
- */
343
- public function offsetGet($offset)
344
- {
345
- return isset($this->container[$offset]) ? $this->container[$offset] : null;
346
- }
347
-
348
- /**
349
- * Sets value based on offset.
350
- * @param integer $offset Offset
351
- * @param mixed $value Value to be set
352
- * @return void
353
- */
354
- public function offsetSet($offset, $value)
355
- {
356
- if (is_null($offset)) {
357
- $this->container[] = $value;
358
- } else {
359
- $this->container[$offset] = $value;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  }
361
- }
362
-
363
- /**
364
- * Unsets offset.
365
- * @param integer $offset Offset
366
- * @return void
367
- */
368
- public function offsetUnset($offset)
369
- {
370
- unset($this->container[$offset]);
371
- }
372
-
373
- public function normalize()
374
- {
375
-
376
- $normalized_payload = array();
377
-
378
- $normalized_payload['value'] = $this->getValue();
379
- $normalized_payload['currency'] =
380
- Util::normalize('currency', $this->getCurrency());
381
- $normalized_payload['content_name'] = $this->getContentName();
382
- $normalized_payload['content_category'] = $this->getContentCategory();
383
- $normalized_payload['content_ids'] = $this->getContentIds();
384
- $normalized_payload['content_type'] = $this->getContentType();
385
- $normalized_payload['order_id'] = $this->getOrderId();
386
- $normalized_payload['predicted_ltv'] = $this->getPredictedLtv();
387
- $normalized_payload['num_items'] = $this->getNumItems();
388
- $normalized_payload['status'] = $this->getStatus();
389
- $normalized_payload['search_string'] = $this->getSearchString();
390
-
391
- if (isset($this->container['contents'])) {
392
- $contents = [];
393
- foreach ($this->getContents() as $content) {
394
- array_push($contents, $content->normalize());
395
- }
396
- $normalized_payload['contents'] = $contents;
397
- }
398
-
399
- $normalized_payload = array_filter($normalized_payload);
400
 
401
- return $normalized_payload;
402
-
403
- }
404
-
405
- /**
406
- * Gets a numeric value associated with this event.
407
- * This could be a monetary value or a value in some other metric.
408
- * @return float
409
- */
410
- public function getValue()
411
- {
412
- return $this->container['value'];
413
- }
414
-
415
- /**
416
- * Gets currency for the value specified, if applicable.
417
- * @return string
418
- */
419
- public function getCurrency()
420
- {
421
- return $this->container['currency'];
422
- }
423
-
424
- /**
425
- * Gets content name of the page or product associated with the event. Example: 'lettuce'.
426
- * @return string
427
- */
428
- public function getContentName()
429
- {
430
- return $this->container['content_name'];
431
- }
432
-
433
- /**
434
- * Gets the category of the content associated with the event. Example: 'grocery'
435
- * @return string
436
- */
437
- public function getContentCategory()
438
- {
439
- return $this->container['content_category'];
440
- }
441
-
442
- /**
443
- * Gets the content IDs associated with the event,
444
- * such as product SKUs for items in an AddToCart event: ['ABC123', 'XYZ789'].
445
- * @return string[]
446
- */
447
- public function getContentIds()
448
- {
449
- return $this->container['content_ids'];
450
- }
451
-
452
- /**
453
- * Gets a list of Content objects that contain the product IDs associated with
454
- * the event plus information about the products.
455
- * @return Content[]
456
- */
457
- public function getContents()
458
- {
459
- return $this->container['contents'];
460
- }
461
-
462
- /**
463
- * Gets content type 'product' or 'product_group'
464
- * @return string
465
- */
466
- public function getContentType()
467
- {
468
- return $this->container['content_type'];
469
- }
470
-
471
- /**
472
- * Gets the order ID for this transaction as a String.
473
- * @return string
474
- */
475
- public function getOrderId()
476
- {
477
- return $this->container['order_id'];
478
- }
479
-
480
- /**
481
- * Gets the predicted lifetime value of a conversion event.
482
- * @return float
483
- */
484
- public function getPredictedLtv()
485
- {
486
- return $this->container['predicted_ltv'];
487
- }
488
-
489
- /**
490
- * Gets the number of items that a user tries to buy during checkout
491
- * @return string
492
- */
493
- public function getNumItems()
494
- {
495
- return $this->container['num_items'];
496
- }
497
-
498
- /**
499
- * Gets the status of the registration event
500
- * @return string
501
- */
502
- public function getStatus()
503
- {
504
- return $this->container['status'];
505
- }
506
-
507
- /**
508
- * Gets a search query made by a user.
509
- * @return string
510
- */
511
- public function getSearchString()
512
- {
513
- return $this->container['search_string'];
514
- }
515
-
516
- /**
517
- * Gets the string presentation of the object
518
- * @return string
519
- */
520
- public function __toString()
521
- {
522
- if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
523
- return json_encode($this, JSON_PRETTY_PRINT);
524
- }
525
-
526
- return json_encode($this);
527
- }
 
528
  }
27
  use ArrayAccess;
28
 
29
 
30
+ class CustomData implements ArrayAccess {
31
+
32
+ /**
33
+ * Array of property to type mappings. Used for (de)serialization
34
+ * @var string[]
35
+ */
36
+ protected static $param_types = array(
37
+ 'value' => 'float',
38
+ 'currency' => 'string',
39
+ 'content_name' => 'string',
40
+ 'content_category' => 'string',
41
+ 'content_ids' => 'string[]',
42
+ 'contents' => 'object[]',
43
+ 'content_type' => 'string',
44
+ 'order_id' => 'string',
45
+ 'predicted_ltv' => 'float',
46
+ 'num_items' => 'string',
47
+ 'status' => 'string',
48
+ 'search_string' => 'string',
49
+ 'custom_properties' => 'array'
50
+ );
51
+ /**
52
+ * Array of attributes where the key is the local name, and the value is the original name
53
+ * @var string[]
54
+ */
55
+ protected static $attributeMap = array(
56
+ 'value' => 'value',
57
+ 'currency' => 'currency',
58
+ 'content_name' => 'content_name',
59
+ 'content_category' => 'content_category',
60
+ 'content_ids' => 'content_ids',
61
+ 'contents' => 'contents',
62
+ 'content_type' => 'content_type',
63
+ 'order_id' => 'order_id',
64
+ 'predicted_ltv' => 'predicted_ltv',
65
+ 'num_items' => 'num_items',
66
+ 'status' => 'status',
67
+ 'search_string' => 'search_string',
68
+ 'custom_properties' => 'custom_properties'
69
+ );
70
+ /**
71
+ * Array of attributes to setter functions (for deserialization of responses)
72
+ * @var string[]
73
+ */
74
+ protected static $setters = array(
75
+ 'value' => 'setValue',
76
+ 'currency' => 'setCurrency',
77
+ 'content_name' => 'setContentName',
78
+ 'content_category' => 'setContentCategory',
79
+ 'content_ids' => 'setContentIds',
80
+ 'contents' => 'setContents',
81
+ 'content_type' => 'setContentType',
82
+ 'order_id' => 'setOrderId',
83
+ 'predicted_ltv' => 'setPredictedLtv',
84
+ 'num_items' => 'setNumItems',
85
+ 'status' => 'setStatus',
86
+ 'search_string' => 'setSearchString',
87
+ 'custom_properties' => 'setCustomProperties'
88
+ );
89
+ /**
90
+ * Array of attributes to getter functions (for serialization of requests)
91
+ * @var string[]
92
+ */
93
+ protected static $getters = array(
94
+ 'value' => 'getValue',
95
+ 'currency' => 'getCurrency',
96
+ 'content_name' => 'getContentName',
97
+ 'content_category' => 'getContentCategory',
98
+ 'content_ids' => 'getContentIds',
99
+ 'contents' => 'getContents',
100
+ 'content_type' => 'getContentType',
101
+ 'order_id' => 'getOrderId',
102
+ 'predicted_ltv' => 'getPredictedLtv',
103
+ 'num_items' => 'getNumItems',
104
+ 'status' => 'getStatus',
105
+ 'search_string' => 'getSearchString',
106
+ 'custom_properties' => 'getCustomProperties'
107
+ );
108
+ /**
109
+ * Associative array for storing property values
110
+ * @var mixed[]
111
+ */
112
+ protected $container = array();
113
+
114
+ /**
115
+ * Constructor
116
+ * @param mixed[] $data Associated array of property value initializing the model
117
+ */
118
+ public function __construct(array $data = null) {
119
+ $this->container['value'] = isset($data['value']) ? $data['value'] : null;
120
+ $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null;
121
+ $this->container['content_name'] = isset($data['content_name']) ? $data['content_name'] : null;
122
+ $this->container['content_category'] = isset($data['content_category']) ? $data['content_category'] : null;
123
+ $this->container['content_ids'] = isset($data['content_ids']) ? $data['content_ids'] : null;
124
+ $this->container['contents'] = isset($data['contents']) ? $data['contents'] : null;
125
+ $this->container['content_type'] = isset($data['content_type']) ? $data['content_type'] : null;
126
+ $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null;
127
+ $this->container['predicted_ltv'] = isset($data['predicted_ltv']) ? $data['predicted_ltv'] : null;
128
+ $this->container['num_items'] = isset($data['num_items']) ? $data['num_items'] : null;
129
+ $this->container['status'] = isset($data['status']) ? $data['status'] : null;
130
+ $this->container['search_string'] = isset($data['search_string']) ? $data['search_string'] : null;
131
+ $this->container['custom_properties'] = isset($data['custom_properties']) ? $data['custom_properties'] : null;
132
+ }
133
+
134
+ public static function paramTypes() {
135
+ return self::$param_types;
136
+ }
137
+
138
+ public static function attributeMap() {
139
+ return self::$attributeMap;
140
+ }
141
+
142
+ public static function setters() {
143
+ return self::$setters;
144
+ }
145
+
146
+ public static function getters() {
147
+ return self::$getters;
148
+ }
149
+
150
+ /**
151
+ * show all the invalid properties with reasons.
152
+ *
153
+ * @return array invalid properties with reasons
154
+ */
155
+ public function listInvalidProperties() {
156
+ $invalid_properties = array();
157
+ return $invalid_properties;
158
+ }
159
+
160
+ /**
161
+ * validate all the properties in the model
162
+ * return true if all passed
163
+ *
164
+ * @return bool True if all properteis are valid
165
+ */
166
+ public function valid() {
167
+ return true;
168
+ }
169
+
170
+ /**
171
+ * Sets value
172
+ * @param float $value A numeric value associated with this event.
173
+ * This could be a monetary value or a value in some other metric.
174
+ * @return $this
175
+ */
176
+ public function setValue($value) {
177
+ $this->container['value'] = $value;
178
+
179
+ return $this;
180
+ }
181
+
182
+ /**
183
+ * Sets currency
184
+ * @param string $currency The currency for the value specified, if applicable.
185
+ * Currency must be a valid ISO 4217 three digit currency code.
186
+ * @return $this
187
+ */
188
+ public function setCurrency($currency) {
189
+ $this->container['currency'] = $currency;
190
+
191
+ return $this;
192
+ }
193
+
194
+ /**
195
+ * Sets content_name
196
+ * @param string $content_name The name of the page or product associated with the event. Example: 'lettuce'.
197
+ * @return $this
198
+ */
199
+ public function setContentName($content_name) {
200
+ $this->container['content_name'] = $content_name;
201
+
202
+ return $this;
203
+ }
204
+
205
+ /**
206
+ * Sets content_category
207
+ * @param string $content_category The category of the content associated with the event. Example: 'grocery'
208
+ * @return $this
209
+ */
210
+ public function setContentCategory($content_category) {
211
+ $this->container['content_category'] = $content_category;
212
+
213
+ return $this;
214
+ }
215
+
216
+ /**
217
+ * Sets content_ids
218
+ * @param string[] $content_ids The content IDs associated with the event,
219
+ * such as product SKUs for items in an AddToCart event: ['ABC123', 'XYZ789'].
220
+ * If content_type is a product, then your content IDs must be an array with a single string value.
221
+ * Otherwise, this array can contain any number of string values.
222
+ * @return $this
223
+ */
224
+ public function setContentIds($content_ids) {
225
+ $this->container['content_ids'] = $content_ids;
226
+
227
+ return $this;
228
+ }
229
+
230
+ /**
231
+ * Sets contents
232
+ * @param Content[] $contents A list of Content objects that contain the product IDs associated with
233
+ * the event plus information about the products.
234
+ * @return $this
235
+ */
236
+ public function setContents($contents) {
237
+ $this->container['contents'] = $contents;
238
+
239
+ return $this;
240
+ }
241
+
242
+ /**
243
+ * Sets content_type
244
+ * @param string $content_type A String equal to either 'product' or 'product_group'.
245
+ * Set to product if the keys you send content_ids or contents represent products.
246
+ * Set to product_group if the keys you send in content_ids represent product groups.
247
+ * @return $this
248
+ */
249
+ public function setContentType($content_type) {
250
+ $this->container['content_type'] = $content_type;
251
+
252
+ return $this;
253
+ }
254
+
255
+ /**
256
+ * Sets order_id
257
+ * @param string $order_id The order ID for this transaction as a String.
258
+ * @return $this
259
+ */
260
+ public function setOrderId($order_id) {
261
+ $this->container['order_id'] = $order_id;
262
+
263
+ return $this;
264
+ }
265
+
266
+ /**
267
+ * Sets predicted_ltv
268
+ * @param float $predicted_ltv The predicted lifetime value of a conversion event.
269
+ * @return $this
270
+ */
271
+ public function setPredictedLtv($predicted_ltv) {
272
+ $this->container['predicted_ltv'] = $predicted_ltv;
273
+
274
+ return $this;
275
+ }
276
+
277
+ /**
278
+ * Sets num_items
279
+ * @param string $num_items Use only with InitiateCheckout events.
280
+ * The number of items that a user tries to buy during checkout.
281
+ * @return $this
282
+ */
283
+ public function setNumItems($num_items) {
284
+ $this->container['num_items'] = $num_items;
285
+
286
+ return $this;
287
+ }
288
+
289
+ /**
290
+ * Sets status
291
+ * @param string $status Use only with CompleteRegistration events.
292
+ * The status of the registration event.
293
+ * @return $this
294
+ */
295
+ public function setStatus($status) {
296
+ $this->container['status'] = $status;
297
+
298
+ return $this;
299
+ }
300
+
301
+ /**
302
+ * Sets a search query made by a user. Use only with Search events.
303
+ * @param string $search_string Use only with Search events.
304
+ * A search query made by a user.
305
+ * @return $this
306
+ */
307
+ public function setSearchString($search_string) {
308
+ $this->container['search_string'] = $search_string;
309
+
310
+ return $this;
311
+ }
312
+
313
+ /**
314
+ * Sets custom_properties that are not defined as the standard properties list in custom data.
315
+ * @param array custom_properties dictionary to include custom properties that are not defined in custom data.
316
+ * @return $this
317
+ */
318
+ public function setCustomProperties($custom_properties) {
319
+ $this->container['custom_properties'] = $custom_properties;
320
+ return $this;
321
+ }
322
+
323
+ /**
324
+ * Returns true if offset exists. False otherwise.
325
+ * @param integer $offset Offset
326
+ * @return boolean
327
+ */
328
+ public function offsetExists($offset) {
329
+ return isset($this->container[$offset]);
330
+ }
331
+
332
+ /**
333
+ * Gets offset.
334
+ * @param integer $offset Offset
335
+ * @return mixed
336
+ */
337
+ public function offsetGet($offset) {
338
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
339
+ }
340
+
341
+ /**
342
+ * Sets value based on offset.
343
+ * @param integer $offset Offset
344
+ * @param mixed $value Value to be set
345
+ * @return void
346
+ */
347
+ public function offsetSet($offset, $value) {
348
+ if (is_null($offset)) {
349
+ $this->container[] = $value;
350
+ } else {
351
+ $this->container[$offset] = $value;
352
+ }
353
+ }
354
+
355
+ /**
356
+ * Unsets offset.
357
+ * @param integer $offset Offset
358
+ * @return void
359
+ */
360
+ public function offsetUnset($offset) {
361
+ unset($this->container[$offset]);
362
+ }
363
+
364
+ /**
365
+ * Add a custom property to the custom_properties bag
366
+ * @param $key Custom property name
367
+ * @param $value Custom property value
368
+ * @return void
369
+ */
370
+ public function addCustomProperty($key, $value) {
371
+ $this->container['custom_properties'][$key] = $value;
372
+ }
373
+
374
+ /**
375
+ * Gets the value of a custom property from the custom_properties bag
376
+ * @param $key Custom property name
377
+ * @return string
378
+ */
379
+ public function getCustomProperty($key) {
380
+ if (array_key_exists(
381
+ $key, $this->container['custom_properties'])) {
382
+ return $this->container['custom_properties'][$key];
383
+ } else {
384
+ throw new \Exception("Key not found in custom properties:'" . $key . "'");
385
+ }
386
+ }
387
+
388
+ public function normalize() {
389
+ $normalized_payload = array();
390
+
391
+ $normalized_payload['value'] = $this->getValue();
392
+ $normalized_payload['currency'] =
393
+ Normalizer::normalize('currency', $this->getCurrency());
394
+ $normalized_payload['content_name'] = $this->getContentName();
395
+ $normalized_payload['content_category'] = $this->getContentCategory();
396
+ $normalized_payload['content_ids'] = $this->getContentIds();
397
+ $normalized_payload['content_type'] = $this->getContentType();
398
+ $normalized_payload['order_id'] = $this->getOrderId();
399
+ $normalized_payload['predicted_ltv'] = $this->getPredictedLtv();
400
+ $normalized_payload['num_items'] = $this->getNumItems();
401
+ $normalized_payload['status'] = $this->getStatus();
402
+ $normalized_payload['search_string'] = $this->getSearchString();
403
+
404
+ if (isset($this->container['contents'])) {
405
+ $contents = [];
406
+ foreach ($this->getContents() as $content) {
407
+ array_push($contents, $content->normalize());
408
+ }
409
+ $normalized_payload['contents'] = $contents;
410
+ }
411
+
412
+ if (isset($this->container['custom_properties'])) {
413
+ foreach ($this->getCustomProperties() as $key => $val) {
414
+ if (array_key_exists($key, $normalized_payload)) {
415
+ throw new \Exception('Duplicate key defined as part of the custom_properties. key: "' . $key . '". Please make sure the keys defined in the custom_properties are not already available in standard custom_data property list.');
416
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
417
 
418
+ $normalized_payload[$key] = $val;
419
+ }
420
+ }
421
+
422
+ $normalized_payload = array_filter($normalized_payload);
423
+
424
+ return $normalized_payload;
425
+
426
+ }
427
+
428
+ /**
429
+ * Gets a numeric value associated with this event.
430
+ * This could be a monetary value or a value in some other metric.
431
+ * @return float
432
+ */
433
+ public function getValue() {
434
+ return $this->container['value'];
435
+ }
436
+
437
+ /**
438
+ * Gets currency for the value specified, if applicable.
439
+ * @return string
440
+ */
441
+ public function getCurrency() {
442
+ return $this->container['currency'];
443
+ }
444
+
445
+ /**
446
+ * Gets content name of the page or product associated with the event. Example: 'lettuce'.
447
+ * @return string
448
+ */
449
+ public function getContentName() {
450
+ return $this->container['content_name'];
451
+ }
452
+
453
+ /**
454
+ * Gets the category of the content associated with the event. Example: 'grocery'
455
+ * @return string
456
+ */
457
+ public function getContentCategory() {
458
+ return $this->container['content_category'];
459
+ }
460
+
461
+ /**
462
+ * Gets the content IDs associated with the event,
463
+ * such as product SKUs for items in an AddToCart event: ['ABC123', 'XYZ789'].
464
+ * @return string[]
465
+ */
466
+ public function getContentIds() {
467
+ return $this->container['content_ids'];
468
+ }
469
+
470
+ /**
471
+ * Gets a list of Content objects that contain the product IDs associated with
472
+ * the event plus information about the products.
473
+ * @return Content[]
474
+ */
475
+ public function getContents() {
476
+ return $this->container['contents'];
477
+ }
478
+
479
+ /**
480
+ * Gets content type 'product' or 'product_group'
481
+ * @return string
482
+ */
483
+ public function getContentType() {
484
+ return $this->container['content_type'];
485
+ }
486
+
487
+ /**
488
+ * Gets the order ID for this transaction as a String.
489
+ * @return string
490
+ */
491
+ public function getOrderId() {
492
+ return $this->container['order_id'];
493
+ }
494
+
495
+ /**
496
+ * Gets the predicted lifetime value of a conversion event.
497
+ * @return float
498
+ */
499
+ public function getPredictedLtv() {
500
+ return $this->container['predicted_ltv'];
501
+ }
502
+
503
+ /**
504
+ * Gets the number of items that a user tries to buy during checkout
505
+ * @return string
506
+ */
507
+ public function getNumItems() {
508
+ return $this->container['num_items'];
509
+ }
510
+
511
+ /**
512
+ * Gets the status of the registration event
513
+ * @return string
514
+ */
515
+ public function getStatus() {
516
+ return $this->container['status'];
517
+ }
518
+
519
+ /**
520
+ * Gets a search query made by a user.
521
+ * @return string
522
+ */
523
+ public function getSearchString() {
524
+ return $this->container['search_string'];
525
+ }
526
+
527
+ /**
528
+ * Gets Custom Properties dictionary to add properties that are not defined as part of the custom data.
529
+ * @return array
530
+ */
531
+ public function getCustomProperties() {
532
+ return $this->container['custom_properties'];
533
+ }
534
+
535
+ /**
536
+ * Gets the string presentation of the object
537
+ * @return string
538
+ */
539
+ public function __toString() {
540
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
541
+ return json_encode($this, JSON_PRETTY_PRINT);
542
+ }
543
+
544
+ return json_encode($this);
545
+ }
546
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Event.php CHANGED
@@ -32,372 +32,345 @@ use ArrayAccess;
32
  * @category Class
33
  * @package FacebookAds\Object\ServerSide
34
  */
35
- class Event implements ArrayAccess
36
- {
37
- /**
38
- * Array of property to type mappings. Used for (de)serialization
39
- * @var string[]
40
- */
41
- protected static $param_types = array(
42
- 'event_name' => 'string',
43
- 'event_time' => 'int',
44
- 'event_source_url' => 'string',
45
- 'opt_out' => 'bool',
46
- 'event_id' => 'string',
47
- 'user_data' => 'FacebookAds\Object\ServerSide\UserData',
48
- 'custom_data' => 'FacebookAds\Object\ServerSide\CustomData'
49
- );
50
- /**
51
- * Array of attributes where the key is the local name, and the value is the original name
52
- * @var string[]
53
- */
54
- protected static $attributeMap = array(
55
- 'event_name' => 'event_name',
56
- 'event_time' => 'event_time',
57
- 'event_source_url' => 'event_source_url',
58
- 'opt_out' => 'opt_out',
59
- 'event_id' => 'event_id',
60
- 'user_data' => 'user_data',
61
- 'custom_data' => 'custom_data'
62
- );
63
- /**
64
- * Array of attributes to setter functions (for deserialization of responses)
65
- * @var string[]
66
- */
67
- protected static $setters = array(
68
- 'event_name' => 'setEventName',
69
- 'event_time' => 'setEventTime',
70
- 'event_source_url' => 'setEventSourceUrl',
71
- 'opt_out' => 'setOptOut',
72
- 'event_id' => 'setEventId',
73
- 'user_data' => 'setUserData',
74
- 'custom_data' => 'setCustomData'
75
- );
76
- /**
77
- * Array of attributes to getter functions (for serialization of requests)
78
- * @var string[]
79
- */
80
- protected static $getters = array(
81
- 'event_name' => 'getEventName',
82
- 'event_time' => 'getEventTime',
83
- 'event_source_url' => 'getEventSourceUrl',
84
- 'opt_out' => 'getOptOut',
85
- 'event_id' => 'getEventId',
86
- 'user_data' => 'getUserData',
87
- 'custom_data' => 'getCustomData'
88
- );
89
- /**
90
- * Associative array for storing property values
91
- * @var mixed[]
92
- */
93
- protected $container = array();
94
-
95
- /**
96
- * Constructor
97
- * @param mixed[] $data Associated array of property value initalizing the model
98
- */
99
- public function __construct(array $data = null)
100
- {
101
- $this->container['event_name'] = isset($data['event_name']) ? $data['event_name'] : null;
102
- $this->container['event_time'] = isset($data['event_time']) ? $data['event_time'] : null;
103
- $this->container['event_source_url'] = isset($data['event_source_url']) ? $data['event_source_url'] : null;
104
- $this->container['opt_out'] = isset($data['opt_out']) ? $data['opt_out'] : null;
105
- $this->container['event_id'] = isset($data['event_id']) ? $data['event_id'] : null;
106
- $this->container['user_data'] = isset($data['user_data']) ? $data['user_data'] : null;
107
- $this->container['custom_data'] = isset($data['custom_data']) ? $data['custom_data'] : null;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  }
109
-
110
- public static function paramTypes()
111
- {
112
- return self::$param_types;
113
  }
114
-
115
- public static function attributeMap()
116
- {
117
- return self::$attributeMap;
118
  }
119
-
120
- public static function setters()
121
- {
122
- return self::$setters;
 
 
 
 
 
 
 
 
123
  }
124
-
125
- public static function getters()
126
- {
127
- return self::$getters;
128
  }
129
-
130
- /**
131
- * show all the invalid properties with reasons.
132
- *
133
- * @return array invalid properties with reasons
134
- */
135
- public function listInvalidProperties()
136
- {
137
- $invalid_properties = array();
138
- if ($this->container['event_name'] === null) {
139
- $invalid_properties[] = "'event_name' can't be null";
140
- }
141
- if ($this->container['event_time'] === null) {
142
- $invalid_properties[] = "'event_time' can't be null";
143
- }
144
- if ($this->container['user_data'] === null) {
145
- $invalid_properties[] = "'user_data' can't be null";
146
- }
147
- return $invalid_properties;
148
  }
149
-
150
- /**
151
- * validate all the properties in the model
152
- * return true if all passed
153
- *
154
- * @return bool True if all properteis are valid
155
- */
156
- public function valid()
157
- {
158
- if ($this->container['event_name'] === null) {
159
- return false;
160
- }
161
- if ($this->container['event_time'] === null) {
162
- return false;
163
- }
164
- if ($this->container['user_data'] === null) {
165
- return false;
166
- }
167
- return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  }
169
-
170
- /**
171
- * Sets a Facebook pixel Standard Event or Custom Event name
172
- * @param string $event_name A Facebook pixel Standard Event or Custom Event name.
173
- * @return $this
174
- */
175
- public function setEventName($event_name)
176
- {
177
- $this->container['event_name'] = $event_name;
178
-
179
- return $this;
180
- }
181
-
182
- /**
183
- * Sets a Unix timestamp in seconds indicating when the actual event occurred
184
- * @param int $event_time A Unix timestamp in seconds indicating when the actual event occurred.
185
- * @return $this
186
- */
187
- public function setEventTime($event_time)
188
- {
189
- $this->container['event_time'] = $event_time;
190
-
191
- return $this;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  }
193
 
194
- /**
195
- * Sets the browser URL where the event happened
196
- * @param string $event_source_url The browser URL where the event happened.
197
- * @return $this
198
- */
199
- public function setEventSourceUrl($event_source_url)
200
- {
201
- $this->container['event_source_url'] = $event_source_url;
202
-
203
- return $this;
204
- }
205
-
206
- /**
207
- * Sets a flag that indicates Facebook should or should not use this event for ads delivery optimization
208
- * @param bool $opt_out A flag that indicates Facebook should or should not
209
- * use this event for ads delivery optimization.
210
- * If set to true, Facebook only use the event for attribution.
211
- * @return $this
212
- */
213
- public function setOptOut($opt_out)
214
- {
215
- $this->container['opt_out'] = $opt_out;
216
-
217
- return $this;
218
- }
219
-
220
- /**
221
- * Sets an ID used by Facebook to deduplicate the same event sent from both server and browser.
222
- * @param string $event_id This ID can be any unique string chosen by the advertiser.
223
- * event_id is used to deduplicate events sent by both Facebook Pixel and Server-Side API.
224
- * event_name is also used in the deduplication process.
225
- * For deduplication, the eventID from Facebook pixel must match the
226
- * event_id in the corresponding Server-Side API event.
227
- * @return $this
228
- */
229
- public function setEventId($event_id)
230
- {
231
- $this->container['event_id'] = $event_id;
232
-
233
- return $this;
234
- }
235
-
236
- /**
237
- * Sets UserData object that contains user data.
238
- * @param FacebookAds\Object\ServerSide\UserData $user_data
239
- * @return $this
240
- */
241
- public function setUserData($user_data)
242
- {
243
- $this->container['user_data'] = $user_data;
244
-
245
- return $this;
246
- }
247
-
248
- /**
249
- * Sets CustomData object that includes additional business data about the event.
250
- * @param FacebookAds\Object\ServerSide\CustomData $custom_data
251
- * @return $this
252
- */
253
- public function setCustomData($custom_data)
254
- {
255
- $this->container['custom_data'] = $custom_data;
256
-
257
- return $this;
258
- }
259
-
260
- /**
261
- * Returns true if offset exists. False otherwise.
262
- * @param integer $offset Offset
263
- * @return boolean
264
- */
265
- public function offsetExists($offset)
266
- {
267
- return isset($this->container[$offset]);
268
- }
269
-
270
- /**
271
- * Gets offset.
272
- * @param integer $offset Offset
273
- * @return mixed
274
- */
275
- public function offsetGet($offset)
276
- {
277
- return isset($this->container[$offset]) ? $this->container[$offset] : null;
278
- }
279
-
280
- /**
281
- * Sets value based on offset.
282
- * @param integer $offset Offset
283
- * @param mixed $value Value to be set
284
- * @return void
285
- */
286
- public function offsetSet($offset, $value)
287
- {
288
- if (is_null($offset)) {
289
- $this->container[] = $value;
290
- } else {
291
- $this->container[$offset] = $value;
292
- }
293
- }
294
-
295
- /**
296
- * Unsets offset.
297
- * @param integer $offset Offset
298
- * @return void
299
- */
300
- public function offsetUnset($offset)
301
- {
302
- unset($this->container[$offset]);
303
- }
304
-
305
- /**
306
- * Normalize
307
- * @return array
308
- */
309
- public function normalize()
310
- {
311
- $normalized_payload = array();
312
-
313
- $normalized_payload['event_name'] = $this->getEventName();
314
- $normalized_payload['event_time'] = $this->getEventTime();
315
- $normalized_payload['event_source_url'] = $this->getEventSourceUrl();
316
- $normalized_payload['opt_out'] = $this->getOptOut();
317
- $normalized_payload['event_id'] = $this->getEventId();
318
- $normalized_payload['user_data'] = isset($this->container['user_data']) ? $this->getUserData()->normalize() : null;
319
- $normalized_payload['custom_data'] = isset($this->container['custom_data']) ? $this->getCustomData()->normalize() : null;
320
-
321
- $normalized_payload = array_filter($normalized_payload);
322
-
323
- return $normalized_payload;
324
- }
325
-
326
- /**
327
- * Gets Facebook pixel Standard Event or Custom Event name.
328
- * @return string
329
- */
330
- public function getEventName()
331
- {
332
- return $this->container['event_name'];
333
- }
334
-
335
- /**
336
- * Gets Unix timestamp in seconds indicating when the actual event occurred.
337
- * @return int
338
- */
339
- public function getEventTime()
340
- {
341
- return $this->container['event_time'];
342
- }
343
-
344
- /**
345
- * Gets browser URL where the event happened.
346
- * @return string
347
- */
348
- public function getEventSourceUrl()
349
- {
350
- return $this->container['event_source_url'];
351
- }
352
-
353
- /**
354
- * Gets flag that indicates Facebook should or should not use this event for ads delivery optimization.
355
- * If set to true, we only use the event for attribution.
356
- * @return bool
357
- */
358
- public function getOptOut()
359
- {
360
- return $this->container['opt_out'];
361
- }
362
-
363
- /**
364
- * Gets Event ID can be any string chosen by the advertiser. It is used by Facebook to deduplicate
365
- * the same event sent from both server and browser.
366
- * @return string
367
- */
368
- public function getEventId()
369
- {
370
- return $this->container['event_id'];
371
- }
372
-
373
- /**
374
- * Gets UserData object that contains user data
375
- * @return FacebookAds\Object\ServerSide\UserData
376
- */
377
- public function getUserData()
378
- {
379
- return $this->container['user_data'];
380
- }
381
-
382
- /**
383
- * Gets customData object that includes additional business data about the event.
384
- * @return FacebookAds\Object\ServerSide\CustomData
385
- */
386
- public function getCustomData()
387
- {
388
- return $this->container['custom_data'];
389
- }
390
-
391
- /**
392
- * Gets the string presentation of the object
393
- * @return string
394
- */
395
- public function __toString()
396
- {
397
- if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
398
- return json_encode($this, JSON_PRETTY_PRINT);
399
- }
400
-
401
- return json_encode($this);
402
- }
403
  }
32
  * @category Class
33
  * @package FacebookAds\Object\ServerSide
34
  */
35
+ class Event implements ArrayAccess {
36
+ /**
37
+ * Array of property to type mappings. Used for (de)serialization
38
+ * @var string[]
39
+ */
40
+ protected static $param_types = array(
41
+ 'event_name' => 'string',
42
+ 'event_time' => 'int',
43
+ 'event_source_url' => 'string',
44
+ 'opt_out' => 'bool',
45
+ 'event_id' => 'string',
46
+ 'user_data' => 'FacebookAds\Object\ServerSide\UserData',
47
+ 'custom_data' => 'FacebookAds\Object\ServerSide\CustomData'
48
+ );
49
+ /**
50
+ * Array of attributes where the key is the local name, and the value is the original name
51
+ * @var string[]
52
+ */
53
+ protected static $attributeMap = array(
54
+ 'event_name' => 'event_name',
55
+ 'event_time' => 'event_time',
56
+ 'event_source_url' => 'event_source_url',
57
+ 'opt_out' => 'opt_out',
58
+ 'event_id' => 'event_id',
59
+ 'user_data' => 'user_data',
60
+ 'custom_data' => 'custom_data'
61
+ );
62
+ /**
63
+ * Array of attributes to setter functions (for deserialization of responses)
64
+ * @var string[]
65
+ */
66
+ protected static $setters = array(
67
+ 'event_name' => 'setEventName',
68
+ 'event_time' => 'setEventTime',
69
+ 'event_source_url' => 'setEventSourceUrl',
70
+ 'opt_out' => 'setOptOut',
71
+ 'event_id' => 'setEventId',
72
+ 'user_data' => 'setUserData',
73
+ 'custom_data' => 'setCustomData'
74
+ );
75
+ /**
76
+ * Array of attributes to getter functions (for serialization of requests)
77
+ * @var string[]
78
+ */
79
+ protected static $getters = array(
80
+ 'event_name' => 'getEventName',
81
+ 'event_time' => 'getEventTime',
82
+ 'event_source_url' => 'getEventSourceUrl',
83
+ 'opt_out' => 'getOptOut',
84
+ 'event_id' => 'getEventId',
85
+ 'user_data' => 'getUserData',
86
+ 'custom_data' => 'getCustomData'
87
+ );
88
+ /**
89
+ * Associative array for storing property values
90
+ * @var mixed[]
91
+ */
92
+ protected $container = array();
93
+
94
+ /**
95
+ * Constructor
96
+ * @param mixed[] $data Associated array of property value initalizing the model
97
+ */
98
+ public function __construct(array $data = null) {
99
+ $this->container['event_name'] = isset($data['event_name']) ? $data['event_name'] : null;
100
+ $this->container['event_time'] = isset($data['event_time']) ? $data['event_time'] : null;
101
+ $this->container['event_source_url'] = isset($data['event_source_url']) ? $data['event_source_url'] : null;
102
+ $this->container['opt_out'] = isset($data['opt_out']) ? $data['opt_out'] : null;
103
+ $this->container['event_id'] = isset($data['event_id']) ? $data['event_id'] : null;
104
+ $this->container['user_data'] = isset($data['user_data']) ? $data['user_data'] : null;
105
+ $this->container['custom_data'] = isset($data['custom_data']) ? $data['custom_data'] : null;
106
+ }
107
+
108
+ public static function paramTypes() {
109
+ return self::$param_types;
110
+ }
111
+
112
+ public static function attributeMap() {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters() {
117
+ return self::$setters;
118
+ }
119
+
120
+ public static function getters() {
121
+ return self::$getters;
122
+ }
123
+
124
+ /**
125
+ * show all the invalid properties with reasons.
126
+ *
127
+ * @return array invalid properties with reasons
128
+ */
129
+ public function listInvalidProperties() {
130
+ $invalid_properties = array();
131
+ if ($this->container['event_name'] === null) {
132
+ $invalid_properties[] = "'event_name' can't be null";
133
  }
134
+ if ($this->container['event_time'] === null) {
135
+ $invalid_properties[] = "'event_time' can't be null";
 
 
136
  }
137
+ if ($this->container['user_data'] === null) {
138
+ $invalid_properties[] = "'user_data' can't be null";
 
 
139
  }
140
+ return $invalid_properties;
141
+ }
142
+
143
+ /**
144
+ * validate all the properties in the model
145
+ * return true if all passed
146
+ *
147
+ * @return bool True if all properteis are valid
148
+ */
149
+ public function valid() {
150
+ if ($this->container['event_name'] === null) {
151
+ return false;
152
  }
153
+ if ($this->container['event_time'] === null) {
154
+ return false;
 
 
155
  }
156
+ if ($this->container['user_data'] === null) {
157
+ return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  }
159
+ return true;
160
+ }
161
+
162
+ /**
163
+ * Sets a Facebook pixel Standard Event or Custom Event name
164
+ * @param string $event_name A Facebook pixel Standard Event or Custom Event name.
165
+ * @return $this
166
+ */
167
+ public function setEventName($event_name) {
168
+ $this->container['event_name'] = $event_name;
169
+
170
+ return $this;
171
+ }
172
+
173
+ /**
174
+ * Sets a Unix timestamp in seconds indicating when the actual event occurred
175
+ * @param int $event_time A Unix timestamp in seconds indicating when the actual event occurred.
176
+ * @return $this
177
+ */
178
+ public function setEventTime($event_time) {
179
+ $this->container['event_time'] = $event_time;
180
+
181
+ return $this;
182
+ }
183
+
184
+ /**
185
+ * Sets the browser URL where the event happened
186
+ * @param string $event_source_url The browser URL where the event happened.
187
+ * @return $this
188
+ */
189
+ public function setEventSourceUrl($event_source_url) {
190
+ $this->container['event_source_url'] = $event_source_url;
191
+
192
+ return $this;
193
+ }
194
+
195
+ /**
196
+ * Sets a flag that indicates Facebook should or should not use this event for ads delivery optimization
197
+ * @param bool $opt_out A flag that indicates Facebook should or should not
198
+ * use this event for ads delivery optimization.
199
+ * If set to true, Facebook only use the event for attribution.
200
+ * @return $this
201
+ */
202
+ public function setOptOut($opt_out) {
203
+ $this->container['opt_out'] = $opt_out;
204
+
205
+ return $this;
206
+ }
207
+
208
+ /**
209
+ * Sets an ID used by Facebook to deduplicate the same event sent from both server and browser.
210
+ * @param string $event_id This ID can be any unique string chosen by the advertiser.
211
+ * event_id is used to deduplicate events sent by both Facebook Pixel and Server-Side API.
212
+ * event_name is also used in the deduplication process.
213
+ * For deduplication, the eventID from Facebook pixel must match the
214
+ * event_id in the corresponding Server-Side API event.
215
+ * @return $this
216
+ */
217
+ public function setEventId($event_id) {
218
+ $this->container['event_id'] = $event_id;
219
+
220
+ return $this;
221
+ }
222
+
223
+ /**
224
+ * Sets UserData object that contains user data.
225
+ * @param FacebookAds\Object\ServerSide\UserData $user_data
226
+ * @return $this
227
+ */
228
+ public function setUserData($user_data) {
229
+ $this->container['user_data'] = $user_data;
230
+
231
+ return $this;
232
+ }
233
+
234
+ /**
235
+ * Sets CustomData object that includes additional business data about the event.
236
+ * @param FacebookAds\Object\ServerSide\CustomData $custom_data
237
+ * @return $this
238
+ */
239
+ public function setCustomData($custom_data) {
240
+ $this->container['custom_data'] = $custom_data;
241
+
242
+ return $this;
243
+ }
244
+
245
+ /**
246
+ * Returns true if offset exists. False otherwise.
247
+ * @param integer $offset Offset
248
+ * @return boolean
249
+ */
250
+ public function offsetExists($offset) {
251
+ return isset($this->container[$offset]);
252
+ }
253
+
254
+ /**
255
+ * Gets offset.
256
+ * @param integer $offset Offset
257
+ * @return mixed
258
+ */
259
+ public function offsetGet($offset) {
260
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
261
+ }
262
+
263
+ /**
264
+ * Sets value based on offset.
265
+ * @param integer $offset Offset
266
+ * @param mixed $value Value to be set
267
+ * @return void
268
+ */
269
+ public function offsetSet($offset, $value) {
270
+ if (is_null($offset)) {
271
+ $this->container[] = $value;
272
+ } else {
273
+ $this->container[$offset] = $value;
274
  }
275
+ }
276
+
277
+ /**
278
+ * Unsets offset.
279
+ * @param integer $offset Offset
280
+ * @return void
281
+ */
282
+ public function offsetUnset($offset) {
283
+ unset($this->container[$offset]);
284
+ }
285
+
286
+ /**
287
+ * Normalize
288
+ * @return array
289
+ */
290
+ public function normalize() {
291
+ $normalized_payload = array();
292
+
293
+ $normalized_payload['event_name'] = $this->getEventName();
294
+ $normalized_payload['event_time'] = $this->getEventTime();
295
+ $normalized_payload['event_source_url'] = $this->getEventSourceUrl();
296
+ $normalized_payload['opt_out'] = $this->getOptOut();
297
+ $normalized_payload['event_id'] = $this->getEventId();
298
+ $normalized_payload['user_data'] = isset($this->container['user_data']) ? $this->getUserData()->normalize() : null;
299
+ $normalized_payload['custom_data'] = isset($this->container['custom_data']) ? $this->getCustomData()
300
+ ->normalize() : null;
301
+
302
+ $normalized_payload = array_filter($normalized_payload);
303
+
304
+ return $normalized_payload;
305
+ }
306
+
307
+ /**
308
+ * Gets Facebook pixel Standard Event or Custom Event name.
309
+ * @return string
310
+ */
311
+ public function getEventName() {
312
+ return $this->container['event_name'];
313
+ }
314
+
315
+ /**
316
+ * Gets Unix timestamp in seconds indicating when the actual event occurred.
317
+ * @return int
318
+ */
319
+ public function getEventTime() {
320
+ return $this->container['event_time'];
321
+ }
322
+
323
+ /**
324
+ * Gets browser URL where the event happened.
325
+ * @return string
326
+ */
327
+ public function getEventSourceUrl() {
328
+ return $this->container['event_source_url'];
329
+ }
330
+
331
+ /**
332
+ * Gets flag that indicates Facebook should or should not use this event for ads delivery optimization.
333
+ * If set to true, we only use the event for attribution.
334
+ * @return bool
335
+ */
336
+ public function getOptOut() {
337
+ return $this->container['opt_out'];
338
+ }
339
+
340
+ /**
341
+ * Gets Event ID can be any string chosen by the advertiser. It is used by Facebook to deduplicate
342
+ * the same event sent from both server and browser.
343
+ * @return string
344
+ */
345
+ public function getEventId() {
346
+ return $this->container['event_id'];
347
+ }
348
+
349
+ /**
350
+ * Gets UserData object that contains user data
351
+ * @return FacebookAds\Object\ServerSide\UserData
352
+ */
353
+ public function getUserData() {
354
+ return $this->container['user_data'];
355
+ }
356
+
357
+ /**
358
+ * Gets customData object that includes additional business data about the event.
359
+ * @return FacebookAds\Object\ServerSide\CustomData
360
+ */
361
+ public function getCustomData() {
362
+ return $this->container['custom_data'];
363
+ }
364
+
365
+ /**
366
+ * Gets the string presentation of the object
367
+ * @return string
368
+ */
369
+ public function __toString() {
370
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
371
+ return json_encode($this, JSON_PRETTY_PRINT);
372
  }
373
 
374
+ return json_encode($this);
375
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php CHANGED
@@ -32,281 +32,260 @@ use FacebookAds\Object\AdsPixel;
32
  *
33
  * @category Class
34
  */
35
- class EventRequest implements ArrayAccess
36
- {
37
- /**
38
- * Array of property to type mappings. Used for (de)serialization
39
- * @var string[]
40
- */
41
- protected static $param_types = array(
42
- 'events' => '\FacebookAds\Object\ServerSide\Event[]',
43
- 'test_event_code' => 'string',
44
- 'partner_agent' => 'string'
45
- );
46
- /**
47
- * Array of attributes where the key is the local name, and the value is the original name
48
- * @var string[]
49
- */
50
- protected static $attributeMap = array(
51
- 'events' => 'events',
52
- 'test_event_code' => 'test_event_code',
53
- 'partner_agent' => 'partner_agent'
54
- );
55
- /**
56
- * Array of attributes to setter functions (for deserialization of responses)
57
- * @var string[]
58
- */
59
- protected static $setters = array(
60
- 'events' => 'setEvents',
61
- 'test_event_code' => 'setTestEventCode',
62
- 'partner_agent' => 'setPartnerAgent'
63
- );
64
- /**
65
- * Array of attributes to getter functions (for serialization of requests)
66
- * @var string[]
67
- */
68
- protected static $getters = array(
69
- 'events' => 'getEvents',
70
- 'test_event_code' => 'getTestEventCode',
71
- 'partner_agent' => 'getPartnerAgent'
72
- );
73
- /**
74
- * Associative array for storing property values
75
- * @var mixed[]
76
- */
77
- protected $container = array();
78
 
79
- /**
80
- * Constructor
81
- * @param string $pixel_id pixel id
82
- * @param mixed[] $data Associated array of property value initializing the model
83
- */
84
- public function __construct(string $pixel_id, array $data = null)
85
- {
86
- $this->container['pixel_id'] = $pixel_id;
87
- $this->container['events'] = isset($data['events']) ? $data['events'] : null;
88
- $this->container['test_event_code'] = isset($data['test_event_code']) ? $data['test_event_code'] : null;
89
- $this->container['partner_agent'] = isset($data['partner_agent']) ? $data['partner_agent'] : null;
90
- }
91
 
92
- public static function paramTypes()
93
- {
94
- return self::$param_types;
95
- }
96
 
97
- public static function attributeMap()
98
- {
99
- return self::$attributeMap;
100
- }
101
 
102
- public static function setters()
103
- {
104
- return self::$setters;
105
- }
106
 
107
- public static function getters()
108
- {
109
- return self::$getters;
110
- }
111
 
112
- /**
113
- * show all the invalid properties with reasons.
114
- *
115
- * @return array invalid properties with reasons
116
- */
117
- public function listInvalidProperties()
118
- {
119
- $invalid_properties = array();
120
- if ($this->container['events'] === null) {
121
- $invalid_properties[] = "'events' can't be null";
122
- }
123
- return $invalid_properties;
124
  }
 
 
125
 
126
- /**
127
- * validate all the properties in the model
128
- * return true if all passed
129
- *
130
- * @return bool True if all properties are valid
131
- */
132
- public function valid()
133
- {
134
- if ($this->container['events'] === null) {
135
- return false;
136
- }
137
- return true;
138
  }
 
 
139
 
140
- /**
141
- * Sets an array of Server Event objects
142
- * @param FacebookAds\Object\ServerSide\Event[] $events An array of Server Event objects
143
- * @return $this
144
- */
145
- public function setEvents($events)
146
- {
147
- $this->container['events'] = $events;
148
- return $this;
149
- }
150
 
151
- /**
152
- * Gets code used to verify that your server events are received correctly by Facebook. Use this
153
- * code to test your server events in the Test Events feature in Events Manager.
154
- * See Test Events Tool
155
- * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/using-the-api#testEvents)
156
- * for an example.
157
- * @return string
158
- */
159
- public function getTestEventCode()
160
- {
161
- return $this->container['test_event_code'];
162
- }
163
 
164
- /**
165
- * Sets code used to verify that your server events are received correctly by Facebook. Use this
166
- * code to test your server events in the Test Events feature in Events Manager.
167
- * See Test Events Tool
168
- * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/using-the-api#testEvents)
169
- * for an example.
170
- * @param string $test_event_code Code used to verify that your server events are received correctly by Facebook.
171
- * Use this code to test your server events in the Test Events feature in Events Manager. See Test Events Tool
172
- * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/using-the-api#testEvents)
173
- * for an example.
174
- * @return $this
175
- */
176
- public function setTestEventCode($test_event_code)
177
- {
178
- $this->container['test_event_code'] = $test_event_code;
179
- return $this;
180
- }
181
 
182
- /**
183
- * Sets Partner Agent, which specifies who is sending the event.
184
- * @param string $partner_agent The partner agent who is sending the event
185
- * @return $this
186
- */
187
- public function setPartnerAgent($partner_agent)
188
- {
189
- $this->container['partner_agent'] = $partner_agent;
190
 
191
- return $this;
192
- }
193
 
194
- /**
195
- * Execute the request
196
- * @return EventResponse
197
- */
198
- public function execute()
199
- {
200
- $fields = array();
201
- $normalized_param = $this->normalize();
202
- $ads_pixel = new AdsPixel($this->container['pixel_id']);
203
- $response = $ads_pixel->createEvent(
204
- $fields,
205
- $normalized_param
206
- );
207
- $event_response = new EventResponse($response->exportAllData());
208
- return $event_response;
209
- }
210
-
211
- /**
212
- * Normalize
213
- * @return array
214
- */
215
- private function normalize()
216
- {
217
- $normalized_events = array();
218
- $events = $this->getEvents();
219
- if (!is_null($events)) {
220
- foreach ($events as $event) {
221
- $normalized_event = $event->normalize();
222
- array_push($normalized_events, $normalized_event);
223
- }
224
- }
225
-
226
- $normalized_payload = array(
227
- 'data' => $normalized_events,
228
- 'test_event_code' => $this->container['test_event_code'],
229
- 'partner_agent' => $this->container['partner_agent'],
230
- );
231
- $normalized_payload = array_filter($normalized_payload);
232
 
233
- return $normalized_payload;
 
 
 
 
 
 
 
 
 
 
 
234
  }
235
 
236
- /**
237
- * Gets an array of Server Event objects
238
- * @return FacebookAds\Object\ServerSide\Event[]
239
- */
240
- public function getEvents()
241
- {
242
- return $this->container['events'];
243
- }
244
 
245
- /**
246
- * Gets Partner Agent, which specifies who is sending the event.
247
- * @return string
248
- */
249
- public function getPartnerAgent()
250
- {
251
- return $this->container['partner_agent'];
252
- }
253
 
254
- /**
255
- * Returns true if offset exists. False otherwise.
256
- * @param integer $offset Offset
257
- * @return boolean
258
- */
259
- public function offsetExists($offset)
260
- {
261
- return isset($this->container[$offset]);
262
- }
263
 
264
- /**
265
- * Gets offset.
266
- * @param integer $offset Offset
267
- * @return mixed
268
- */
269
- public function offsetGet($offset)
270
- {
271
- return isset($this->container[$offset]) ? $this->container[$offset] : null;
272
- }
273
 
274
- /**
275
- * Sets value based on offset.
276
- * @param integer $offset Offset
277
- * @param mixed $value Value to be set
278
- * @return void
279
- */
280
- public function offsetSet($offset, $value)
281
- {
282
- if (is_null($offset)) {
283
- $this->container[] = $value;
284
- } else {
285
- $this->container[$offset] = $value;
286
- }
287
- }
 
 
 
288
 
289
- /**
290
- * Unsets offset.
291
- * @param integer $offset Offset
292
- * @return void
293
- */
294
- public function offsetUnset($offset)
295
- {
296
- unset($this->container[$offset]);
 
 
 
297
  }
 
298
 
 
 
 
 
 
 
 
 
299
 
300
- /**
301
- * Gets the string presentation of the object
302
- * @return string
303
- */
304
- public function __toString()
305
- {
306
- if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
307
- return json_encode($this, JSON_PRETTY_PRINT);
308
- }
309
 
310
- return json_encode($this);
 
 
 
 
 
 
311
  }
 
 
 
312
  }
32
  *
33
  * @category Class
34
  */
35
+ class EventRequest implements ArrayAccess {
36
+ /**
37
+ * Array of property to type mappings. Used for (de)serialization
38
+ * @var string[]
39
+ */
40
+ protected static $param_types = array(
41
+ 'events' => '\FacebookAds\Object\ServerSide\Event[]',
42
+ 'test_event_code' => 'string',
43
+ 'partner_agent' => 'string'
44
+ );
45
+ /**
46
+ * Array of attributes where the key is the local name, and the value is the original name
47
+ * @var string[]
48
+ */
49
+ protected static $attributeMap = array(
50
+ 'events' => 'events',
51
+ 'test_event_code' => 'test_event_code',
52
+ 'partner_agent' => 'partner_agent'
53
+ );
54
+ /**
55
+ * Array of attributes to setter functions (for deserialization of responses)
56
+ * @var string[]
57
+ */
58
+ protected static $setters = array(
59
+ 'events' => 'setEvents',
60
+ 'test_event_code' => 'setTestEventCode',
61
+ 'partner_agent' => 'setPartnerAgent'
62
+ );
63
+ /**
64
+ * Array of attributes to getter functions (for serialization of requests)
65
+ * @var string[]
66
+ */
67
+ protected static $getters = array(
68
+ 'events' => 'getEvents',
69
+ 'test_event_code' => 'getTestEventCode',
70
+ 'partner_agent' => 'getPartnerAgent'
71
+ );
72
+ /**
73
+ * Associative array for storing property values
74
+ * @var mixed[]
75
+ */
76
+ protected $container = array();
 
77
 
78
+ /**
79
+ * Constructor
80
+ * @param string $pixel_id pixel id
81
+ * @param mixed[] $data Associated array of property value initializing the model
82
+ */
83
+ public function __construct(string $pixel_id, array $data = null) {
84
+ $this->container['pixel_id'] = $pixel_id;
85
+ $this->container['events'] = isset($data['events']) ? $data['events'] : null;
86
+ $this->container['test_event_code'] = isset($data['test_event_code']) ? $data['test_event_code'] : null;
87
+ $this->container['partner_agent'] = isset($data['partner_agent']) ? $data['partner_agent'] : null;
88
+ }
 
89
 
90
+ public static function paramTypes() {
91
+ return self::$param_types;
92
+ }
 
93
 
94
+ public static function attributeMap() {
95
+ return self::$attributeMap;
96
+ }
 
97
 
98
+ public static function setters() {
99
+ return self::$setters;
100
+ }
 
101
 
102
+ public static function getters() {
103
+ return self::$getters;
104
+ }
 
105
 
106
+ /**
107
+ * show all the invalid properties with reasons.
108
+ *
109
+ * @return array invalid properties with reasons
110
+ */
111
+ public function listInvalidProperties() {
112
+ $invalid_properties = array();
113
+ if ($this->container['events'] === null) {
114
+ $invalid_properties[] = "'events' can't be null";
 
 
 
115
  }
116
+ return $invalid_properties;
117
+ }
118
 
119
+ /**
120
+ * validate all the properties in the model
121
+ * return true if all passed
122
+ *
123
+ * @return bool True if all properties are valid
124
+ */
125
+ public function valid() {
126
+ if ($this->container['events'] === null) {
127
+ return false;
 
 
 
128
  }
129
+ return true;
130
+ }
131
 
132
+ /**
133
+ * Sets an array of Server Event objects
134
+ * @param FacebookAds\Object\ServerSide\Event[] $events An array of Server Event objects
135
+ * @return $this
136
+ */
137
+ public function setEvents($events) {
138
+ $this->container['events'] = $events;
139
+ return $this;
140
+ }
 
141
 
142
+ /**
143
+ * Gets code used to verify that your server events are received correctly by Facebook. Use this
144
+ * code to test your server events in the Test Events feature in Events Manager.
145
+ * See Test Events Tool
146
+ * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/using-the-api#testEvents)
147
+ * for an example.
148
+ * @return string
149
+ */
150
+ public function getTestEventCode() {
151
+ return $this->container['test_event_code'];
152
+ }
 
153
 
154
+ /**
155
+ * Sets code used to verify that your server events are received correctly by Facebook. Use this
156
+ * code to test your server events in the Test Events feature in Events Manager.
157
+ * See Test Events Tool
158
+ * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/using-the-api#testEvents)
159
+ * for an example.
160
+ * @param string $test_event_code Code used to verify that your server events are received correctly by Facebook.
161
+ * Use this code to test your server events in the Test Events feature in Events Manager. See Test Events Tool
162
+ * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/using-the-api#testEvents)
163
+ * for an example.
164
+ * @return $this
165
+ */
166
+ public function setTestEventCode($test_event_code) {
167
+ $this->container['test_event_code'] = $test_event_code;
168
+ return $this;
169
+ }
 
170
 
171
+ /**
172
+ * Sets Partner Agent, which specifies who is sending the event.
173
+ * @param string $partner_agent The partner agent who is sending the event
174
+ * @return $this
175
+ */
176
+ public function setPartnerAgent($partner_agent) {
177
+ $this->container['partner_agent'] = $partner_agent;
 
178
 
179
+ return $this;
180
+ }
181
 
182
+ /**
183
+ * Execute the request
184
+ * @return EventResponse
185
+ */
186
+ public function execute() {
187
+ $fields = array();
188
+ $normalized_param = $this->normalize();
189
+ $ads_pixel = new AdsPixel($this->container['pixel_id']);
190
+ $response = $ads_pixel->createEvent(
191
+ $fields,
192
+ $normalized_param
193
+ );
194
+ $event_response = new EventResponse($response->exportAllData());
195
+ return $event_response;
196
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
 
198
+ /**
199
+ * Normalize
200
+ * @return array
201
+ */
202
+ private function normalize() {
203
+ $normalized_events = array();
204
+ $events = $this->getEvents();
205
+ if (!is_null($events)) {
206
+ foreach ($events as $event) {
207
+ $normalized_event = $event->normalize();
208
+ array_push($normalized_events, $normalized_event);
209
+ }
210
  }
211
 
212
+ $normalized_payload = array(
213
+ 'data' => $normalized_events,
214
+ 'test_event_code' => $this->container['test_event_code'],
215
+ 'partner_agent' => $this->container['partner_agent'],
216
+ );
217
+ $normalized_payload = array_filter($normalized_payload);
 
 
218
 
219
+ return $normalized_payload;
220
+ }
 
 
 
 
 
 
221
 
222
+ /**
223
+ * Gets an array of Server Event objects
224
+ * @return FacebookAds\Object\ServerSide\Event[]
225
+ */
226
+ public function getEvents() {
227
+ return $this->container['events'];
228
+ }
 
 
229
 
230
+ /**
231
+ * Gets Partner Agent, which specifies who is sending the event.
232
+ * @return string
233
+ */
234
+ public function getPartnerAgent() {
235
+ return $this->container['partner_agent'];
236
+ }
 
 
237
 
238
+ /**
239
+ * Returns true if offset exists. False otherwise.
240
+ * @param integer $offset Offset
241
+ * @return boolean
242
+ */
243
+ public function offsetExists($offset) {
244
+ return isset($this->container[$offset]);
245
+ }
246
+
247
+ /**
248
+ * Gets offset.
249
+ * @param integer $offset Offset
250
+ * @return mixed
251
+ */
252
+ public function offsetGet($offset) {
253
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
254
+ }
255
 
256
+ /**
257
+ * Sets value based on offset.
258
+ * @param integer $offset Offset
259
+ * @param mixed $value Value to be set
260
+ * @return void
261
+ */
262
+ public function offsetSet($offset, $value) {
263
+ if (is_null($offset)) {
264
+ $this->container[] = $value;
265
+ } else {
266
+ $this->container[$offset] = $value;
267
  }
268
+ }
269
 
270
+ /**
271
+ * Unsets offset.
272
+ * @param integer $offset Offset
273
+ * @return void
274
+ */
275
+ public function offsetUnset($offset) {
276
+ unset($this->container[$offset]);
277
+ }
278
 
 
 
 
 
 
 
 
 
 
279
 
280
+ /**
281
+ * Gets the string presentation of the object
282
+ * @return string
283
+ */
284
+ public function __toString() {
285
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
286
+ return json_encode($this, JSON_PRETTY_PRINT);
287
  }
288
+
289
+ return json_encode($this);
290
+ }
291
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventResponse.php CHANGED
@@ -31,223 +31,204 @@ use ArrayAccess;
31
  *
32
  * @category Class
33
  */
34
- class EventResponse implements ArrayAccess
35
- {
36
-
37
- /**
38
- * Array of property to type mappings. Used for (de)serialization
39
- * @var string[]
40
- */
41
- protected static $param_types = array(
42
- 'events_received' => 'int',
43
- 'messages' => 'string[]',
44
- 'fbtrace_id' => 'string'
45
- );
46
- /**
47
- * Array of attributes where the key is the local name, and the value is the original name
48
- * @var string[]
49
- */
50
- protected static $attributeMap = array(
51
- 'events_received' => 'events_received',
52
- 'messages' => 'messages',
53
- 'fbtrace_id' => 'fbtrace_id'
54
- );
55
- /**
56
- * Array of attributes to setter functions (for deserialization of responses)
57
- * @var string[]
58
- */
59
- protected static $setters = array(
60
- 'events_received' => 'setEventsReceived',
61
- 'messages' => 'setMessages',
62
- 'fbtrace_id' => 'setFbTraceId'
63
- );
64
- /**
65
- * Array of attributes to getter functions (for serialization of requests)
66
- * @var string[]
67
- */
68
- protected static $getters = array(
69
- 'events_received' => 'getEventsReceived',
70
- 'messages' => 'getMessages',
71
- 'fbtrace_id' => 'getFbTraceId'
72
- );
73
- /**
74
- * Associative array for storing property values
75
- * @var mixed[]
76
- */
77
- protected $container = array();
78
-
79
- /**
80
- * Constructor
81
- * @param mixed[] $data Associated array of property value initalizing the model
82
- */
83
- public function __construct(array $data = null)
84
- {
85
- $this->container['events_received'] = isset($data['events_received']) ? $data['events_received'] : null;
86
- $this->container['messages'] = isset($data['messages']) ? $data['messages'] : null;
87
- $this->container['fbtrace_id'] = isset($data['fbtrace_id']) ? $data['fbtrace_id'] : null;
88
- }
89
-
90
- public static function paramTypes()
91
- {
92
- return self::$param_types;
93
- }
94
-
95
- public static function attributeMap()
96
- {
97
- return self::$attributeMap;
98
- }
99
-
100
- public static function setters()
101
- {
102
- return self::$setters;
103
- }
104
-
105
- public static function getters()
106
- {
107
- return self::$getters;
108
- }
109
-
110
- /**
111
- * show all the invalid properties with reasons.
112
- *
113
- * @return array invalid properties with reasons
114
- */
115
- public function listInvalidProperties()
116
- {
117
- $invalid_properties = array();
118
- return $invalid_properties;
119
- }
120
-
121
- /**
122
- * validate all the properties in the model
123
- * return true if all passed
124
- *
125
- * @return bool True if all properteis are valid
126
- */
127
- public function valid()
128
- {
129
- return true;
130
- }
131
-
132
-
133
- /**
134
- * Gets number of events received.
135
- * @return int
136
- */
137
- public function getEventsReceived()
138
- {
139
- return $this->container['events_received'];
140
- }
141
-
142
- /**
143
- * Sets number of events received.
144
- * @param int $events_received number of events received.
145
- * @return $this
146
- */
147
- public function setEventsReceived($events_received)
148
- {
149
- $this->container['events_received'] = $events_received;
150
-
151
- return $this;
152
- }
153
-
154
- /**
155
- * Gets response messages.
156
- * @return string[]
157
- */
158
- public function getMessages()
159
- {
160
- return $this->container['messages'];
161
- }
162
-
163
- /**
164
- * Sets response messages.
165
- * @param string[] $messages response messages.
166
- * @return $this
167
- */
168
- public function setMessages($messages)
169
- {
170
- $this->container['messages'] = $messages;
171
-
172
- return $this;
173
- }
174
-
175
- /**
176
- * Gets Facebook trace id
177
- * @return string
178
- */
179
- public function getFbTraceId()
180
- {
181
- return $this->container['fbtrace_id'];
182
- }
183
-
184
- /**
185
- * Sets Facebook trace id
186
- * @param $fbtrace_id Facebook trace id
187
- * @return $this
188
- */
189
- public function setFbTraceId($fbtrace_id)
190
- {
191
- $this->container['fbtrace_id'] = $fbtrace_id;
192
- return $this;
193
- }
194
-
195
- /**
196
- * Returns true if offset exists. False otherwise.
197
- * @param integer $offset Offset
198
- * @return boolean
199
- */
200
- public function offsetExists($offset)
201
- {
202
- return isset($this->container[$offset]);
203
- }
204
-
205
- /**
206
- * Gets offset.
207
- * @param integer $offset Offset
208
- * @return mixed
209
- */
210
- public function offsetGet($offset)
211
- {
212
- return isset($this->container[$offset]) ? $this->container[$offset] : null;
213
- }
214
-
215
- /**
216
- * Sets value based on offset.
217
- * @param integer $offset Offset
218
- * @param mixed $value Value to be set
219
- * @return void
220
- */
221
- public function offsetSet($offset, $value)
222
- {
223
- if (is_null($offset)) {
224
- $this->container[] = $value;
225
- } else {
226
- $this->container[$offset] = $value;
227
- }
228
- }
229
-
230
- /**
231
- * Unsets offset.
232
- * @param integer $offset Offset
233
- * @return void
234
- */
235
- public function offsetUnset($offset)
236
- {
237
- unset($this->container[$offset]);
238
- }
239
-
240
- /**
241
- * Gets the string presentation of the object
242
- * @return string
243
- */
244
- public function __toString()
245
- {
246
- if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
247
- return json_encode($this, JSON_PRETTY_PRINT);
248
- }
249
- return json_encode($this);
250
- }
251
  }
252
 
253
 
31
  *
32
  * @category Class
33
  */
34
+ class EventResponse implements ArrayAccess {
35
+
36
+ /**
37
+ * Array of property to type mappings. Used for (de)serialization
38
+ * @var string[]
39
+ */
40
+ protected static $param_types = array(
41
+ 'events_received' => 'int',
42
+ 'messages' => 'string[]',
43
+ 'fbtrace_id' => 'string'
44
+ );
45
+ /**
46
+ * Array of attributes where the key is the local name, and the value is the original name
47
+ * @var string[]
48
+ */
49
+ protected static $attributeMap = array(
50
+ 'events_received' => 'events_received',
51
+ 'messages' => 'messages',
52
+ 'fbtrace_id' => 'fbtrace_id'
53
+ );
54
+ /**
55
+ * Array of attributes to setter functions (for deserialization of responses)
56
+ * @var string[]
57
+ */
58
+ protected static $setters = array(
59
+ 'events_received' => 'setEventsReceived',
60
+ 'messages' => 'setMessages',
61
+ 'fbtrace_id' => 'setFbTraceId'
62
+ );
63
+ /**
64
+ * Array of attributes to getter functions (for serialization of requests)
65
+ * @var string[]
66
+ */
67
+ protected static $getters = array(
68
+ 'events_received' => 'getEventsReceived',
69
+ 'messages' => 'getMessages',
70
+ 'fbtrace_id' => 'getFbTraceId'
71
+ );
72
+ /**
73
+ * Associative array for storing property values
74
+ * @var mixed[]
75
+ */
76
+ protected $container = array();
77
+
78
+ /**
79
+ * Constructor
80
+ * @param mixed[] $data Associated array of property value initalizing the model
81
+ */
82
+ public function __construct(array $data = null) {
83
+ $this->container['events_received'] = isset($data['events_received']) ? $data['events_received'] : null;
84
+ $this->container['messages'] = isset($data['messages']) ? $data['messages'] : null;
85
+ $this->container['fbtrace_id'] = isset($data['fbtrace_id']) ? $data['fbtrace_id'] : null;
86
+ }
87
+
88
+ public static function paramTypes() {
89
+ return self::$param_types;
90
+ }
91
+
92
+ public static function attributeMap() {
93
+ return self::$attributeMap;
94
+ }
95
+
96
+ public static function setters() {
97
+ return self::$setters;
98
+ }
99
+
100
+ public static function getters() {
101
+ return self::$getters;
102
+ }
103
+
104
+ /**
105
+ * show all the invalid properties with reasons.
106
+ *
107
+ * @return array invalid properties with reasons
108
+ */
109
+ public function listInvalidProperties() {
110
+ $invalid_properties = array();
111
+ return $invalid_properties;
112
+ }
113
+
114
+ /**
115
+ * validate all the properties in the model
116
+ * return true if all passed
117
+ *
118
+ * @return bool True if all properteis are valid
119
+ */
120
+ public function valid() {
121
+ return true;
122
+ }
123
+
124
+
125
+ /**
126
+ * Gets number of events received.
127
+ * @return int
128
+ */
129
+ public function getEventsReceived() {
130
+ return $this->container['events_received'];
131
+ }
132
+
133
+ /**
134
+ * Sets number of events received.
135
+ * @param int $events_received number of events received.
136
+ * @return $this
137
+ */
138
+ public function setEventsReceived($events_received) {
139
+ $this->container['events_received'] = $events_received;
140
+
141
+ return $this;
142
+ }
143
+
144
+ /**
145
+ * Gets response messages.
146
+ * @return string[]
147
+ */
148
+ public function getMessages() {
149
+ return $this->container['messages'];
150
+ }
151
+
152
+ /**
153
+ * Sets response messages.
154
+ * @param string[] $messages response messages.
155
+ * @return $this
156
+ */
157
+ public function setMessages($messages) {
158
+ $this->container['messages'] = $messages;
159
+
160
+ return $this;
161
+ }
162
+
163
+ /**
164
+ * Gets Facebook trace id
165
+ * @return string
166
+ */
167
+ public function getFbTraceId() {
168
+ return $this->container['fbtrace_id'];
169
+ }
170
+
171
+ /**
172
+ * Sets Facebook trace id
173
+ * @param $fbtrace_id Facebook trace id
174
+ * @return $this
175
+ */
176
+ public function setFbTraceId($fbtrace_id) {
177
+ $this->container['fbtrace_id'] = $fbtrace_id;
178
+ return $this;
179
+ }
180
+
181
+ /**
182
+ * Returns true if offset exists. False otherwise.
183
+ * @param integer $offset Offset
184
+ * @return boolean
185
+ */
186
+ public function offsetExists($offset) {
187
+ return isset($this->container[$offset]);
188
+ }
189
+
190
+ /**
191
+ * Gets offset.
192
+ * @param integer $offset Offset
193
+ * @return mixed
194
+ */
195
+ public function offsetGet($offset) {
196
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
197
+ }
198
+
199
+ /**
200
+ * Sets value based on offset.
201
+ * @param integer $offset Offset
202
+ * @param mixed $value Value to be set
203
+ * @return void
204
+ */
205
+ public function offsetSet($offset, $value) {
206
+ if (is_null($offset)) {
207
+ $this->container[] = $value;
208
+ } else {
209
+ $this->container[$offset] = $value;
210
+ }
211
+ }
212
+
213
+ /**
214
+ * Unsets offset.
215
+ * @param integer $offset Offset
216
+ * @return void
217
+ */
218
+ public function offsetUnset($offset) {
219
+ unset($this->container[$offset]);
220
+ }
221
+
222
+ /**
223
+ * Gets the string presentation of the object
224
+ * @return string
225
+ */
226
+ public function __toString() {
227
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
228
+ return json_encode($this, JSON_PRETTY_PRINT);
229
+ }
230
+ return json_encode($this);
231
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  }
233
 
234
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Gender.php CHANGED
@@ -30,17 +30,15 @@ use FacebookAds\Enum\AbstractEnum;
30
  * Class Gender
31
  * @package FacebookAds\Object\ServerSide
32
  */
33
- class Gender extends AbstractEnum
34
- {
35
 
36
- const MALE = 'm';
37
- const FEMALE = 'f';
38
 
39
- public function getFieldTypes()
40
- {
41
- return array(
42
- 'm' => 'string',
43
- 'f' => 'string',
44
- );
45
- }
46
  }
30
  * Class Gender
31
  * @package FacebookAds\Object\ServerSide
32
  */
33
+ class Gender extends AbstractEnum {
 
34
 
35
+ const MALE = 'm';
36
+ const FEMALE = 'f';
37
 
38
+ public function getFieldTypes() {
39
+ return array(
40
+ 'm' => 'string',
41
+ 'f' => 'string',
42
+ );
43
+ }
 
44
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Normalizer.php ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\ServerSide;
26
+
27
+ use InvalidArgumentException;
28
+
29
+ /**
30
+ * Normalizer Class
31
+ *
32
+ * @category Class
33
+ * @package FacebookAds\Object\ServerSide
34
+ */
35
+ class Normalizer {
36
+ /**
37
+ * @param string $field to be normalized.
38
+ * @param string $data value to be normalized
39
+ * @return string
40
+ */
41
+ public static function normalize($field, $data) {
42
+ if ($data == null || strlen($data) == 0) {
43
+ return null;
44
+ }
45
+
46
+ // Check if already hashed. If yes, don't try to normalize an already hashed data.
47
+ if (Util::isHashed($data)) {
48
+ return $data;
49
+ }
50
+
51
+ $data = trim(strtolower($data));
52
+ $normalized_data = $data;
53
+
54
+ switch ($field) {
55
+ case 'em':
56
+ $normalized_data = Normalizer::normalizeEmail($data);
57
+ break;
58
+
59
+ case 'ph':
60
+ $normalized_data = Normalizer::normalizePhone($data);
61
+ break;
62
+
63
+ case 'zp':
64
+ $normalized_data = Normalizer::normalizeZipCode($data);
65
+ break;
66
+
67
+ case 'ct':
68
+ $normalized_data = Normalizer::normalizeCity($data);
69
+ break;
70
+
71
+ case 'st':
72
+ $normalized_data = Normalizer::normalizeState($data);
73
+ break;
74
+
75
+ case 'country':
76
+ $normalized_data = Normalizer::normalizeCountry($data);
77
+ break;
78
+
79
+ case 'currency':
80
+ $normalized_data = Normalizer::normalizeCurrency($data);
81
+ break;
82
+ default:
83
+ }
84
+
85
+ return $normalized_data;
86
+ }
87
+
88
+ /**
89
+ * @param string $email Email address to be normalized.
90
+ * @return string
91
+ */
92
+ private static function normalizeEmail($email) {
93
+ // Validates email against RFC 822
94
+ $result = filter_var($email, FILTER_SANITIZE_EMAIL);
95
+
96
+ if (!filter_var($result, FILTER_VALIDATE_EMAIL)) {
97
+ throw new InvalidArgumentException('Invalid email format for the passed email: ' . $email . 'Please check the passed email format.');
98
+ }
99
+
100
+ return $result;
101
+ }
102
+
103
+ /**
104
+ * @param string $city city name to be normalized.
105
+ * @return string
106
+ */
107
+ private static function normalizeCity($city) {
108
+ return trim(preg_replace('/[0-9.\s\-()]/', '', $city));
109
+ }
110
+
111
+ /**
112
+ * @param string $state state name to be normalized.
113
+ * @return string
114
+ */
115
+ private static function normalizeState($state) {
116
+ return preg_replace('/[^a-z]/', '', $state);
117
+ }
118
+
119
+ /**
120
+ * @param string $country country code to be normalized(ISO 3166-2).
121
+ * @return string
122
+ */
123
+ private static function normalizeCountry($country) {
124
+ $result = preg_replace('/[^a-z]/i', '', $country);
125
+
126
+ if (strlen($result) != 2) {
127
+ throw new InvalidArgumentException('Invalid country format passed(' . $country . '). Country Code should be a two-letter ISO Country Code');
128
+ }
129
+
130
+ return $result;
131
+ }
132
+
133
+ /**
134
+ * @param string $zip postal code to be normalized.
135
+ * @return string
136
+ */
137
+ private static function normalizeZipCode($zip) {
138
+ // Removing the spaces from the zip code. Eg:
139
+ $zip = preg_replace('/[ ]/', '', $zip);
140
+
141
+ // If the code has more than one part, retain the first part.
142
+ $zip = explode('-', $zip)[0];
143
+ return $zip;
144
+ }
145
+
146
+ /**
147
+ * @param string $phone phone number to be normalized.
148
+ * @return string
149
+ */
150
+ private static function normalizePhone($phone) {
151
+ $result = trim(preg_replace('/[a-z()-]/', '', $phone));
152
+
153
+ if (Normalizer::isInternationalNumber($result)) {
154
+ $result = preg_replace('/[\-\s+]/', '', $result);
155
+ }
156
+
157
+ return $result;
158
+ }
159
+
160
+ /**
161
+ * @param string $currency currency code to be normalized(ISO 4217).
162
+ * @return string
163
+ */
164
+ private static function normalizeCurrency($currency) {
165
+ $result = preg_replace('/[^a-z]/i', '', $currency);
166
+
167
+ if (strlen($result) != 3) {
168
+ throw new InvalidArgumentException('Invalid currency format passed(' . $currency . '). Currency Code should be a three-letter ISO Currency Code');
169
+ }
170
+
171
+ return $result;
172
+ }
173
+
174
+ /**
175
+ * @param string $phone_number Phone number to be normalized.
176
+ * @return bool
177
+ */
178
+ private static function isInternationalNumber($phone_number) {
179
+ // Remove spaces and hyphens
180
+ $phone_number = preg_replace('/[\-\s]/', '', $phone_number);
181
+
182
+ // Strip + and up to 2 leading 0s
183
+ $phone_number = preg_replace('/^\+?0{0,2}/', '', $phone_number);
184
+
185
+ if (substr($phone_number, 0, 1) === '0') {
186
+ return false;
187
+ }
188
+
189
+ // International Phone number with country calling code.
190
+ $international_number_regex = '/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/';
191
+
192
+ return preg_match($international_number_regex, $phone_number);
193
+ }
194
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/UserData.php CHANGED
@@ -31,619 +31,598 @@ use ArrayAccess;
31
  *
32
  * @category Class
33
  */
34
- class UserData implements ArrayAccess
35
- {
36
- /**
37
- * The original name of the model.
38
- * @var string
39
- */
40
- protected static $swaggerModelName = 'server_side_pixel_user_data';
41
-
42
- /**
43
- * Array of property to type mappings. Used for (de)serialization
44
- * @var string[]
45
- */
46
- protected static $param_types = array(
47
- 'email' => 'string',
48
- 'phone' => 'string',
49
- 'gender' => 'string',
50
- 'date_of_birth' => 'string',
51
- 'last_name' => 'string',
52
- 'first_name' => 'string',
53
- 'ct' => 'string',
54
- 'state' => 'string',
55
- 'country_code' => 'string',
56
- 'zip_code' => 'string',
57
- 'external_id' => 'string',
58
- 'client_ip_address' => 'string',
59
- 'client_user_agent' => 'string',
60
- 'fbc' => 'string',
61
- 'fbp' => 'string',
62
- 'subscription_id' => 'string'
63
- );
64
- /**
65
- * Array of attributes where the key is the local name, and the value is the original name
66
- * @var string[]
67
- */
68
- protected static $attributeMap = array(
69
- 'email' => 'email',
70
- 'phone' => 'phone',
71
- 'gender' => 'gender',
72
- 'date_of_birth' => 'date_of_birth',
73
- 'last_name' => 'last_name',
74
- 'first_name' => 'first_name',
75
- 'ct' => 'ct',
76
- 'state' => 'state',
77
- 'country_code' => 'country_code',
78
- 'zip_code' => 'zip_code',
79
- 'external_id' => 'external_id',
80
- 'client_ip_address' => 'client_ip_address',
81
- 'client_user_agent' => 'client_user_agent',
82
- 'fbc' => 'fbc',
83
- 'fbp' => 'fbp',
84
- 'subscription_id' => 'subscription_id'
85
- );
86
- /**
87
- * Array of attributes to setter functions (for deserialization of responses)
88
- * @var string[]
89
- */
90
- protected static $setters = array(
91
- 'email' => 'setEmail',
92
- 'phone' => 'setPhone',
93
- 'gender' => 'setGender',
94
- 'date_of_birth' => 'setDateOfBirth',
95
- 'last_name' => 'setLastName',
96
- 'first_name' => 'setFirstName',
97
- 'city' => 'setCity',
98
- 'state' => 'setState',
99
- 'country_code' => 'setCountryCode',
100
- 'zip_code' => 'setZipCode',
101
- 'external_id' => 'setExternalId',
102
- 'client_ip_address' => 'setClientIpAddress',
103
- 'client_user_agent' => 'setClientUserAgent',
104
- 'fbc' => 'setFbc',
105
- 'fbp' => 'setFbp',
106
- 'subscription_id' => 'setSubscriptionId'
107
- );
108
- /**
109
- * Array of attributes to getter functions (for serialization of requests)
110
- * @var string[]
111
- */
112
- protected static $getters = array(
113
- 'email' => 'getEmail',
114
- 'phone' => 'getPhone',
115
- 'gender' => 'getGender',
116
- 'date_of_birth' => 'getDateOfBirth',
117
- 'last_name' => 'getLastName',
118
- 'first_name' => 'getFirstName',
119
- 'city' => 'getCity',
120
- 'state' => 'getState',
121
- 'country_code' => 'getCountryCode',
122
- 'zip_code' => 'getZipCode',
123
- 'external_id' => 'getExternalId',
124
- 'client_ip_address' => 'getClientIpAddress',
125
- 'client_user_agent' => 'getClientUserAgent',
126
- 'fbc' => 'getFbc',
127
- 'fbp' => 'getFbp',
128
- 'subscription_id' => 'getSubscriptionId'
129
- );
130
- /**
131
- * Associative array for storing property values
132
- * @var mixed[]
133
- */
134
- protected $container = array();
135
-
136
- /**
137
- * Constructor
138
- * @param mixed[] $data Associated array of property value initalizing the model
139
- */
140
- public function __construct(array $data = null)
141
- {
142
- $this->container['email'] = isset($data['email']) ? $data['email'] : null;
143
- $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
144
- $this->container['gender'] = isset($data['gender']) ? $data['gender'] : null;
145
- $this->container['date_of_birth'] = isset($data['date_of_birth']) ? $data['date_of_birth'] : null;
146
- $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null;
147
- $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null;
148
- $this->container['city'] = isset($data['city']) ? $data['city'] : null;
149
- $this->container['state'] = isset($data['state']) ? $data['state'] : null;
150
- $this->container['country_code'] = isset($data['country_code']) ? $data['country_code'] : null;
151
- $this->container['zip_code'] = isset($data['zip_code']) ? $data['zip_code'] : null;
152
- $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null;
153
- $this->container['client_ip_address'] = isset($data['client_ip_address']) ? $data['client_ip_address'] : null;
154
- $this->container['client_user_agent'] = isset($data['client_user_agent']) ? $data['client_user_agent'] : null;
155
- $this->container['fbc'] = isset($data['fbc']) ? $data['fbc'] : null;
156
- $this->container['fbp'] = isset($data['fbp']) ? $data['fbp'] : null;
157
- $this->container['subscription_id'] = isset($data['subscription_id']) ? $data['subscription_id'] : null;
158
- }
159
-
160
- public static function paramTypes()
161
- {
162
- return self::$param_types;
163
- }
164
-
165
- public static function attributeMap()
166
- {
167
- return self::$attributeMap;
168
- }
169
-
170
- public static function setters()
171
- {
172
- return self::$setters;
173
- }
174
-
175
- public static function getters()
176
- {
177
- return self::$gendertters;
178
- }
179
-
180
- /**
181
- * show all the invalid properties with reasons.
182
- *
183
- * @return array invalid properties with reasons
184
- */
185
- public function listInvalidProperties()
186
- {
187
- $invalid_properties = array();
188
- return $invalid_properties;
189
- }
190
-
191
- /**
192
- * validate all the properties in the model
193
- * return true if all passed
194
- *
195
- * @return bool True if all properteis are valid
196
- */
197
- public function valid()
198
- {
199
- return true;
200
- }
201
-
202
- /**
203
- * Sets an email address, in lowercase.
204
- *
205
- * <p>Example: joe@eg.com
206
- * @param string $email An email address, in lowercase.
207
- * @return $this
208
- */
209
- public function setEmail($email)
210
- {
211
- $this->container['email'] = $email;
212
-
213
- return $this;
214
- }
215
-
216
- /**
217
- * Sets a phone number. Include only digits with countryCode code, area code, and number.
218
- *
219
- * <p>Example: 16505551212
220
- * @param string $phone A phone number. Include only digits with country code, area code, and number.
221
- * @return $this
222
- */
223
- public function setPhone($phone)
224
- {
225
- $this->container['phone'] = $phone;
226
-
227
- return $this;
228
- }
229
-
230
- /**
231
- * Sets Gender, in lowercase. Either f or m.
232
- * @param FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m.
233
- * @return $this
234
- */
235
- public function setGender($gender)
236
- {
237
- $this->container['gender'] = $gender;
238
-
239
- return $this;
240
- }
241
-
242
- /**
243
- * Sets a date of birth given as year, month, and day.
244
- *
245
- * <p>Example: 19971226 for December 26, 1997.
246
- * @param string $date_of_birth A date of birth given as year, month, and day.
247
- * @return $this
248
- */
249
- public function setDateOfBirth($date_of_birth)
250
- {
251
- $this->container['date_of_birth'] = $date_of_birth;
252
-
253
- return $this;
254
- }
255
-
256
- /**
257
- * Sets a last name in lowercase.
258
- *
259
- * <p>Example: smith
260
- * @param string $last_name A last name in lowercase.
261
- * @return $this
262
- */
263
- public function setLastName($last_name)
264
- {
265
- $this->container['last_name'] = $last_name;
266
-
267
- return $this;
268
- }
269
-
270
- /**
271
- * Sets a first name in lowercase.
272
- *
273
- * <p>Example: joe
274
- * @param string $first_name A first name in lowercase.
275
- * @return $this
276
- */
277
- public function setFirstName($first_name)
278
- {
279
- $this->container['first_name'] = $first_name;
280
-
281
- return $this;
282
- }
283
-
284
- /**
285
- * Sets a city in lower-case without spaces or punctuation.
286
- *
287
- * <p>Example: menlopark
288
- * @param string $city A city in lower-case without spaces or punctuation.
289
- * @return $this
290
- */
291
- public function setCity($city)
292
- {
293
- $this->container['city'] = $city;
294
-
295
- return $this;
296
- }
297
-
298
- /**
299
- * Sets a two-letter state code in lowercase.
300
- *
301
- * <p>Example: ca
302
- * @param string $state A two-letter state code in lowercase.
303
- * @return $this
304
- */
305
- public function setState($state)
306
- {
307
- $this->container['state'] = $state;
308
-
309
- return $this;
310
- }
311
-
312
- /**
313
- * Sets a two-letter country code in lowercase.
314
- *
315
- * <p>Example: us
316
- * @param string $country_code two-letter country code in lowercase.
317
- * @return $this
318
- */
319
- public function setCountryCode($country_code)
320
- {
321
- $this->container['country_code'] = $country_code;
322
-
323
- return $this;
324
- }
325
-
326
- /**
327
- * Sets a five-digit zip code.
328
- *
329
- * <p>Example: 94035
330
- * @param string $zip_code A five-digit zip code.
331
- * @return $this
332
- */
333
- public function setZipCode($zip_code)
334
- {
335
- $this->container['zip_code'] = $zip_code;
336
-
337
- return $this;
338
- }
339
-
340
- /**
341
- * Sets any unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external
342
- * cookie IDs. In the Offline Conversions API, this is known as extern_id. For more information,
343
- * see Offline Conversions, Providing External IDs. If External ID is being sent via other
344
- * channels, then it should be sent in the same format via the server-side API.
345
- * @param string $external_id Any unique ID from the advertiser, such as loyalty membership IDs,
346
- * user IDs, and external cookie IDs.
347
- * @return $this
348
- */
349
- public function setExternalId($external_id)
350
- {
351
- $this->container['external_id'] = $external_id;
352
-
353
- return $this;
354
- }
355
-
356
- /**
357
- * Sets IP address of the browser corresponding to the event.
358
- * @param string $client_ip_address The IP address of the browser corresponding to the event.
359
- * @return $this
360
- */
361
- public function setClientIpAddress($client_ip_address)
362
- {
363
- $this->container['client_ip_address'] = $client_ip_address;
364
-
365
- return $this;
366
- }
367
-
368
- /**
369
- * Sets user agent for the browser corresponding to the event.
370
- * @param string $client_user_agent The user agent for the browser corresponding to the event.
371
- * @return $this
372
- */
373
- public function setClientUserAgent($client_user_agent)
374
- {
375
- $this->container['client_user_agent'] = $client_user_agent;
376
-
377
- return $this;
378
- }
379
-
380
- /**
381
- * Sets Facebook click ID value stored in the _fbc browser cookie under your domain. See Managing
382
- * fbc and fbp Parameters for how to get this value
383
- * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/parameters#fbc),
384
- * or generate this value from a fbclid query parameter.
385
- * @param string $fbc The Facebook click ID value stored in the _fbc browser cookie under your domain.
386
- * @return $this
387
- */
388
- public function setFbc($fbc)
389
- {
390
- $this->container['fbc'] = $fbc;
391
-
392
- return $this;
393
- }
394
-
395
- /**
396
- * Sets Set Facebook browser ID value stored in the _fbp browser cookie under your domain. See Managing
397
- * fbc and fbp Parameters for how to get this value
398
- * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/parameters#fbc),
399
- * or generate this value from a fbclid query parameter.
400
- * @param string $fbp The Facebook browser ID value stored in the _fbp browser cookie under your domain.
401
- * @return $this
402
- */
403
- public function setFbp($fbp)
404
- {
405
- $this->container['fbp'] = $fbp;
406
-
407
- return $this;
408
- }
409
-
410
- /**
411
- * Sets subscription ID for the user in this transaction. This is similar to the order ID for an
412
- * individual product.
413
- * @param string $subscription_id The subscription ID for the user in this transaction.
414
- * @return $this
415
- */
416
- public function setSubscriptionId($subscription_id)
417
- {
418
- $this->container['subscription_id'] = $subscription_id;
419
-
420
- return $this;
421
- }
422
-
423
- /**
424
- * Returns true if offset exists. False otherwise.
425
- * @param integer $offset Offset
426
- * @return boolean
427
- */
428
- public function offsetExists($offset)
429
- {
430
- return isset($this->container[$offset]);
431
- }
432
-
433
- /**
434
- * Gets offset.
435
- * @param integer $offset Offset
436
- * @return mixed
437
- */
438
- public function offsetGet($offset)
439
- {
440
- return isset($this->container[$offset]) ? $this->container[$offset] : null;
441
- }
442
-
443
- /**
444
- * Sets value based on offset.
445
- * @param integer $offset Offset
446
- * @param mixed $value Value to be set
447
- * @return void
448
- */
449
- public function offsetSet($offset, $value)
450
- {
451
- if (is_null($offset)) {
452
- $this->container[] = $value;
453
- } else {
454
- $this->container[$offset] = $value;
455
- }
456
- }
457
-
458
- /**
459
- * Unsets offset.
460
- * @param integer $offset Offset
461
- * @return void
462
- */
463
- public function offsetUnset($offset)
464
- {
465
- unset($this->container[$offset]);
466
- }
467
-
468
- public function normalize()
469
- {
470
- $normalized_payload = array();
471
-
472
- $normalized_payload['em'] = Util::hash(Util::normalize('em', $this->getEmail()));
473
- $normalized_payload['ph'] = Util::hash(Util::normalize('ph', $this->getPhone()));
474
- $normalized_payload['ge'] = Util::hash(Util::normalize('ge', $this->getGender()));
475
- $normalized_payload['db'] = Util::hash(Util::normalize('db', $this->getDateOfBirth()));
476
- $normalized_payload['ln'] = Util::hash(Util::normalize('ln', $this->getLastName()));
477
- $normalized_payload['fn'] = Util::hash(Util::normalize('fn', $this->getFirstName()));
478
- $normalized_payload['ct'] = Util::hash(Util::normalize('ct', $this->getCity()));
479
- $normalized_payload['st'] = Util::hash(Util::normalize('st', $this->getState()));
480
- $normalized_payload['zp'] = Util::hash(Util::normalize('zp', $this->getZipCode()));
481
- $normalized_payload['country'] = Util::hash(Util::normalize('country', $this->getCountryCode()));
482
- $normalized_payload['external_id'] = $this->getExternalId();
483
- $normalized_payload['client_ip_address'] = $this->getClientIpAddress();
484
- $normalized_payload['client_user_agent'] = $this->getClientUserAgent();
485
- $normalized_payload['fbc'] = $this->getFbc();
486
- $normalized_payload['fbp'] = $this->getFbp();
487
- $normalized_payload['subscription_id'] = $this->getSubscriptionId();
488
-
489
- $normalized_payload = array_filter($normalized_payload);
490
- return $normalized_payload;
491
- }
492
-
493
- /**
494
- * Gets an email address, in lowercase.
495
- * @return string
496
- */
497
- public function getEmail()
498
- {
499
- return $this->container['email'];
500
- }
501
-
502
- /**
503
- * Gets a phone number
504
- * @return string
505
- */
506
- public function getPhone()
507
- {
508
- return $this->container['phone'];
509
- }
510
-
511
- /**
512
- * Gets gender.
513
- * @return string
514
- */
515
- public function getGender()
516
- {
517
- return $this->container['gender'];
518
- }
519
-
520
- /**
521
- * Gets Date Of Birth.
522
- * @return string
523
- */
524
- public function getDateOfBirth()
525
- {
526
- return $this->container['date_of_birth'];
527
- }
528
-
529
- /**
530
- * Gets Last Name.
531
- * @return string
532
- */
533
- public function getLastName()
534
- {
535
- return $this->container['last_name'];
536
- }
537
-
538
- /**
539
- * Gets First Name.
540
- * @return string
541
- */
542
- public function getFirstName()
543
- {
544
- return $this->container['first_name'];
545
- }
546
-
547
- /**
548
- * Gets city.
549
- * @return string
550
- */
551
- public function getCity()
552
- {
553
- return $this->container['city'];
554
- }
555
-
556
- /**
557
- * Gets state.
558
- * @return string
559
- */
560
- public function getState()
561
- {
562
- return $this->container['state'];
563
- }
564
-
565
- /**
566
- * Gets zip code
567
- * @return string
568
- */
569
- public function getZipCode()
570
- {
571
- return $this->container['zip_code'];
572
- }
573
-
574
- /**
575
- * Gets country code.
576
- * @return string
577
- */
578
- public function getCountryCode()
579
- {
580
- return $this->container['country_code'];
581
- }
582
-
583
- /**
584
- * Gets Any unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs.
585
- * @return string
586
- */
587
- public function getExternalId()
588
- {
589
- return $this->container['external_id'];
590
- }
591
-
592
- /**
593
- * Gets IP address of the browser corresponding to the event.
594
- * @return string
595
- */
596
- public function getClientIpAddress()
597
- {
598
- return $this->container['client_ip_address'];
599
- }
600
-
601
- /**
602
- * Gets user agent for the browser corresponding to the event.
603
- * @return string
604
- */
605
- public function getClientUserAgent()
606
- {
607
- return $this->container['client_user_agent'];
608
- }
609
-
610
- /**
611
- * Gets the Facebook click ID value stored in the _fbc browser cookie under your domain.
612
- * @return string
613
- */
614
- public function getFbc()
615
- {
616
- return $this->container['fbc'];
617
- }
618
-
619
- /**
620
- * Gets the Facebook browser ID value stored in the _fbp browser cookie under your domain.
621
- * @return string
622
- */
623
- public function getFbp()
624
- {
625
- return $this->container['fbp'];
626
- }
627
-
628
- /**
629
- * Gets the subscription ID for the user in this transaction.
630
- * @return string
631
- */
632
- public function getSubscriptionId()
633
- {
634
- return $this->container['subscription_id'];
635
- }
636
-
637
- /**
638
- * Gets the string presentation of the object
639
- * @return string
640
- */
641
- public function __toString()
642
- {
643
- if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
644
- return json_encode($this, JSON_PRETTY_PRINT);
645
- }
646
-
647
- return json_encode($this);
648
- }
649
  }
31
  *
32
  * @category Class
33
  */
34
+ class UserData implements ArrayAccess {
35
+ /**
36
+ * The original name of the model.
37
+ * @var string
38
+ */
39
+ protected static $swaggerModelName = 'server_side_pixel_user_data';
40
+
41
+ /**
42
+ * Array of property to type mappings. Used for (de)serialization
43
+ * @var string[]
44
+ */
45
+ protected static $param_types = array(
46
+ 'email' => 'string',
47
+ 'phone' => 'string',
48
+ 'gender' => 'string',
49
+ 'date_of_birth' => 'string',
50
+ 'last_name' => 'string',
51
+ 'first_name' => 'string',
52
+ 'ct' => 'string',
53
+ 'state' => 'string',
54
+ 'country_code' => 'string',
55
+ 'zip_code' => 'string',
56
+ 'external_id' => 'string',
57
+ 'client_ip_address' => 'string',
58
+ 'client_user_agent' => 'string',
59
+ 'fbc' => 'string',
60
+ 'fbp' => 'string',
61
+ 'subscription_id' => 'string',
62
+ 'fb_login_id' => 'string'
63
+ );
64
+ /**
65
+ * Array of attributes where the key is the local name, and the value is the original name
66
+ * @var string[]
67
+ */
68
+ protected static $attributeMap = array(
69
+ 'email' => 'email',
70
+ 'phone' => 'phone',
71
+ 'gender' => 'gender',
72
+ 'date_of_birth' => 'date_of_birth',
73
+ 'last_name' => 'last_name',
74
+ 'first_name' => 'first_name',
75
+ 'ct' => 'ct',
76
+ 'state' => 'state',
77
+ 'country_code' => 'country_code',
78
+ 'zip_code' => 'zip_code',
79
+ 'external_id' => 'external_id',
80
+ 'client_ip_address' => 'client_ip_address',
81
+ 'client_user_agent' => 'client_user_agent',
82
+ 'fbc' => 'fbc',
83
+ 'fbp' => 'fbp',
84
+ 'subscription_id' => 'subscription_id',
85
+ 'fb_login_id' => 'fb_login_id'
86
+ );
87
+ /**
88
+ * Array of attributes to setter functions (for deserialization of responses)
89
+ * @var string[]
90
+ */
91
+ protected static $setters = array(
92
+ 'email' => 'setEmail',
93
+ 'phone' => 'setPhone',
94
+ 'gender' => 'setGender',
95
+ 'date_of_birth' => 'setDateOfBirth',
96
+ 'last_name' => 'setLastName',
97
+ 'first_name' => 'setFirstName',
98
+ 'city' => 'setCity',
99
+ 'state' => 'setState',
100
+ 'country_code' => 'setCountryCode',
101
+ 'zip_code' => 'setZipCode',
102
+ 'external_id' => 'setExternalId',
103
+ 'client_ip_address' => 'setClientIpAddress',
104
+ 'client_user_agent' => 'setClientUserAgent',
105
+ 'fbc' => 'setFbc',
106
+ 'fbp' => 'setFbp',
107
+ 'subscription_id' => 'setSubscriptionId',
108
+ 'fb_login_id' => 'setFbLoginId'
109
+ );
110
+ /**
111
+ * Array of attributes to getter functions (for serialization of requests)
112
+ * @var string[]
113
+ */
114
+ protected static $getters = array(
115
+ 'email' => 'getEmail',
116
+ 'phone' => 'getPhone',
117
+ 'gender' => 'getGender',
118
+ 'date_of_birth' => 'getDateOfBirth',
119
+ 'last_name' => 'getLastName',
120
+ 'first_name' => 'getFirstName',
121
+ 'city' => 'getCity',
122
+ 'state' => 'getState',
123
+ 'country_code' => 'getCountryCode',
124
+ 'zip_code' => 'getZipCode',
125
+ 'external_id' => 'getExternalId',
126
+ 'client_ip_address' => 'getClientIpAddress',
127
+ 'client_user_agent' => 'getClientUserAgent',
128
+ 'fbc' => 'getFbc',
129
+ 'fbp' => 'getFbp',
130
+ 'subscription_id' => 'getSubscriptionId',
131
+ 'fb_login_id' => 'getFbLoginId'
132
+ );
133
+ /**
134
+ * Associative array for storing property values
135
+ * @var mixed[]
136
+ */
137
+ protected $container = array();
138
+
139
+ /**
140
+ * Constructor
141
+ * @param mixed[] $data Associated array of property value initalizing the model
142
+ */
143
+ public function __construct(array $data = null) {
144
+ $this->container['email'] = isset($data['email']) ? $data['email'] : null;
145
+ $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
146
+ $this->container['gender'] = isset($data['gender']) ? $data['gender'] : null;
147
+ $this->container['date_of_birth'] = isset($data['date_of_birth']) ? $data['date_of_birth'] : null;
148
+ $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null;
149
+ $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null;
150
+ $this->container['city'] = isset($data['city']) ? $data['city'] : null;
151
+ $this->container['state'] = isset($data['state']) ? $data['state'] : null;
152
+ $this->container['country_code'] = isset($data['country_code']) ? $data['country_code'] : null;
153
+ $this->container['zip_code'] = isset($data['zip_code']) ? $data['zip_code'] : null;
154
+ $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null;
155
+ $this->container['client_ip_address'] = isset($data['client_ip_address']) ? $data['client_ip_address'] : null;
156
+ $this->container['client_user_agent'] = isset($data['client_user_agent']) ? $data['client_user_agent'] : null;
157
+ $this->container['fbc'] = isset($data['fbc']) ? $data['fbc'] : null;
158
+ $this->container['fbp'] = isset($data['fbp']) ? $data['fbp'] : null;
159
+ $this->container['subscription_id'] = isset($data['subscription_id']) ? $data['subscription_id'] : null;
160
+ $this->container['fb_login_id'] = isset($data['fb_login_id']) ? $data['fb_login_id'] : null;
161
+ }
162
+
163
+ public static function paramTypes() {
164
+ return self::$param_types;
165
+ }
166
+
167
+ public static function attributeMap() {
168
+ return self::$attributeMap;
169
+ }
170
+
171
+ public static function setters() {
172
+ return self::$setters;
173
+ }
174
+
175
+ public static function getters() {
176
+ return self::$gendertters;
177
+ }
178
+
179
+ /**
180
+ * show all the invalid properties with reasons.
181
+ *
182
+ * @return array invalid properties with reasons
183
+ */
184
+ public function listInvalidProperties() {
185
+ $invalid_properties = array();
186
+ return $invalid_properties;
187
+ }
188
+
189
+ /**
190
+ * validate all the properties in the model
191
+ * return true if all passed
192
+ *
193
+ * @return bool True if all properteis are valid
194
+ */
195
+ public function valid() {
196
+ return true;
197
+ }
198
+
199
+ /**
200
+ * Sets an email address, in lowercase.
201
+ *
202
+ * <p>Example: joe@eg.com
203
+ * @param string $email An email address, in lowercase.
204
+ * @return $this
205
+ */
206
+ public function setEmail($email) {
207
+ $this->container['email'] = $email;
208
+
209
+ return $this;
210
+ }
211
+
212
+ /**
213
+ * Sets a phone number. Include only digits with countryCode code, area code, and number.
214
+ *
215
+ * <p>Example: 16505551212
216
+ * @param string $phone A phone number. Include only digits with country code, area code, and number.
217
+ * @return $this
218
+ */
219
+ public function setPhone($phone) {
220
+ $this->container['phone'] = $phone;
221
+
222
+ return $this;
223
+ }
224
+
225
+ /**
226
+ * Sets Gender, in lowercase. Either f or m.
227
+ * @param FacebookAds\Object\ServerSide\Gender $gender Gender, in lowercase. Either f or m.
228
+ * @return $this
229
+ */
230
+ public function setGender($gender) {
231
+ $this->container['gender'] = $gender;
232
+
233
+ return $this;
234
+ }
235
+
236
+ /**
237
+ * Sets a date of birth given as year, month, and day.
238
+ *
239
+ * <p>Example: 19971226 for December 26, 1997.
240
+ * @param string $date_of_birth A date of birth given as year, month, and day.
241
+ * @return $this
242
+ */
243
+ public function setDateOfBirth($date_of_birth) {
244
+ $this->container['date_of_birth'] = $date_of_birth;
245
+
246
+ return $this;
247
+ }
248
+
249
+ /**
250
+ * Sets a last name in lowercase.
251
+ *
252
+ * <p>Example: smith
253
+ * @param string $last_name A last name in lowercase.
254
+ * @return $this
255
+ */
256
+ public function setLastName($last_name) {
257
+ $this->container['last_name'] = $last_name;
258
+
259
+ return $this;
260
+ }
261
+
262
+ /**
263
+ * Sets a first name in lowercase.
264
+ *
265
+ * <p>Example: joe
266
+ * @param string $first_name A first name in lowercase.
267
+ * @return $this
268
+ */
269
+ public function setFirstName($first_name) {
270
+ $this->container['first_name'] = $first_name;
271
+
272
+ return $this;
273
+ }
274
+
275
+ /**
276
+ * Sets a city in lower-case without spaces or punctuation.
277
+ *
278
+ * <p>Example: menlopark
279
+ * @param string $city A city in lower-case without spaces or punctuation.
280
+ * @return $this
281
+ */
282
+ public function setCity($city) {
283
+ $this->container['city'] = $city;
284
+
285
+ return $this;
286
+ }
287
+
288
+ /**
289
+ * Sets a two-letter state code in lowercase.
290
+ *
291
+ * <p>Example: ca
292
+ * @param string $state A two-letter state code in lowercase.
293
+ * @return $this
294
+ */
295
+ public function setState($state) {
296
+ $this->container['state'] = $state;
297
+
298
+ return $this;
299
+ }
300
+
301
+ /**
302
+ * Sets a two-letter country code in lowercase.
303
+ *
304
+ * <p>Example: us
305
+ * @param string $country_code two-letter country code in lowercase.
306
+ * @return $this
307
+ */
308
+ public function setCountryCode($country_code) {
309
+ $this->container['country_code'] = $country_code;
310
+
311
+ return $this;
312
+ }
313
+
314
+ /**
315
+ * Sets a five-digit zip code.
316
+ *
317
+ * <p>Example: 94035
318
+ * @param string $zip_code A five-digit zip code.
319
+ * @return $this
320
+ */
321
+ public function setZipCode($zip_code) {
322
+ $this->container['zip_code'] = $zip_code;
323
+
324
+ return $this;
325
+ }
326
+
327
+ /**
328
+ * Sets any unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external
329
+ * cookie IDs. In the Offline Conversions API, this is known as extern_id. For more information,
330
+ * see Offline Conversions, Providing External IDs. If External ID is being sent via other
331
+ * channels, then it should be sent in the same format via the server-side API.
332
+ * @param string $external_id Any unique ID from the advertiser, such as loyalty membership IDs,
333
+ * user IDs, and external cookie IDs.
334
+ * @return $this
335
+ */
336
+ public function setExternalId($external_id) {
337
+ $this->container['external_id'] = $external_id;
338
+
339
+ return $this;
340
+ }
341
+
342
+ /**
343
+ * Sets IP address of the browser corresponding to the event.
344
+ * @param string $client_ip_address The IP address of the browser corresponding to the event.
345
+ * @return $this
346
+ */
347
+ public function setClientIpAddress($client_ip_address) {
348
+ $this->container['client_ip_address'] = $client_ip_address;
349
+
350
+ return $this;
351
+ }
352
+
353
+ /**
354
+ * Sets user agent for the browser corresponding to the event.
355
+ * @param string $client_user_agent The user agent for the browser corresponding to the event.
356
+ * @return $this
357
+ */
358
+ public function setClientUserAgent($client_user_agent) {
359
+ $this->container['client_user_agent'] = $client_user_agent;
360
+
361
+ return $this;
362
+ }
363
+
364
+ /**
365
+ * Sets Facebook click ID value stored in the _fbc browser cookie under your domain. See Managing
366
+ * fbc and fbp Parameters for how to get this value
367
+ * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/parameters#fbc),
368
+ * or generate this value from a fbclid query parameter.
369
+ * @param string $fbc The Facebook click ID value stored in the _fbc browser cookie under your domain.
370
+ * @return $this
371
+ */
372
+ public function setFbc($fbc) {
373
+ $this->container['fbc'] = $fbc;
374
+
375
+ return $this;
376
+ }
377
+
378
+ /**
379
+ * Sets Set Facebook browser ID value stored in the _fbp browser cookie under your domain. See Managing
380
+ * fbc and fbp Parameters for how to get this value
381
+ * (https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/parameters#fbc),
382
+ * or generate this value from a fbclid query parameter.
383
+ * @param string $fbp The Facebook browser ID value stored in the _fbp browser cookie under your domain.
384
+ * @return $this
385
+ */
386
+ public function setFbp($fbp) {
387
+ $this->container['fbp'] = $fbp;
388
+
389
+ return $this;
390
+ }
391
+
392
+ /**
393
+ * Sets subscription ID for the user in this transaction. This is similar to the order ID for an
394
+ * individual product.
395
+ * @param string $subscription_id The subscription ID for the user in this transaction.
396
+ * @return $this
397
+ */
398
+ public function setSubscriptionId($subscription_id) {
399
+ $this->container['subscription_id'] = $subscription_id;
400
+
401
+ return $this;
402
+ }
403
+
404
+ /**
405
+ * Sets FbLogin ID for the user in this transaction.
406
+ * ID issued by Facebook when a person first logs into an instance of an app.
407
+ * This is also known as App-Scoped ID.
408
+ * @param string $fb_login_id The Fb_Login_Id for the user in this transaction.
409
+ * @return $this
410
+ */
411
+ public function setFbLoginId($fb_login_id) {
412
+ $this->container['fb_login_id'] = $fb_login_id;
413
+
414
+ return $this;
415
+ }
416
+
417
+ /**
418
+ * Returns true if offset exists. False otherwise.
419
+ * @param integer $offset Offset
420
+ * @return boolean
421
+ */
422
+ public function offsetExists($offset) {
423
+ return isset($this->container[$offset]);
424
+ }
425
+
426
+ /**
427
+ * Gets offset.
428
+ * @param integer $offset Offset
429
+ * @return mixed
430
+ */
431
+ public function offsetGet($offset) {
432
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
433
+ }
434
+
435
+ /**
436
+ * Sets value based on offset.
437
+ * @param integer $offset Offset
438
+ * @param mixed $value Value to be set
439
+ * @return void
440
+ */
441
+ public function offsetSet($offset, $value) {
442
+ if (is_null($offset)) {
443
+ $this->container[] = $value;
444
+ } else {
445
+ $this->container[$offset] = $value;
446
+ }
447
+ }
448
+
449
+ /**
450
+ * Unsets offset.
451
+ * @param integer $offset Offset
452
+ * @return void
453
+ */
454
+ public function offsetUnset($offset) {
455
+ unset($this->container[$offset]);
456
+ }
457
+
458
+ public function normalize() {
459
+ $normalized_payload = array();
460
+
461
+ $normalized_payload['em'] = Util::hash(Normalizer::normalize('em', $this->getEmail()));
462
+ $normalized_payload['ph'] = Util::hash(Normalizer::normalize('ph', $this->getPhone()));
463
+ $normalized_payload['ge'] = Util::hash(Normalizer::normalize('ge', $this->getGender()));
464
+ $normalized_payload['db'] = Util::hash(Normalizer::normalize('db', $this->getDateOfBirth()));
465
+ $normalized_payload['ln'] = Util::hash(Normalizer::normalize('ln', $this->getLastName()));
466
+ $normalized_payload['fn'] = Util::hash(Normalizer::normalize('fn', $this->getFirstName()));
467
+ $normalized_payload['ct'] = Util::hash(Normalizer::normalize('ct', $this->getCity()));
468
+ $normalized_payload['st'] = Util::hash(Normalizer::normalize('st', $this->getState()));
469
+ $normalized_payload['zp'] = Util::hash(Normalizer::normalize('zp', $this->getZipCode()));
470
+ $normalized_payload['country'] = Util::hash(Normalizer::normalize('country', $this->getCountryCode()));
471
+ $normalized_payload['external_id'] = $this->getExternalId();
472
+ $normalized_payload['client_ip_address'] = $this->getClientIpAddress();
473
+ $normalized_payload['client_user_agent'] = $this->getClientUserAgent();
474
+ $normalized_payload['fbc'] = $this->getFbc();
475
+ $normalized_payload['fbp'] = $this->getFbp();
476
+ $normalized_payload['subscription_id'] = $this->getSubscriptionId();
477
+ $normalized_payload['fb_login_id'] = $this->getFbLoginId();
478
+ $normalized_payload = array_filter($normalized_payload);
479
+ return $normalized_payload;
480
+ }
481
+
482
+ /**
483
+ * Gets an email address, in lowercase.
484
+ * @return string
485
+ */
486
+ public function getEmail() {
487
+ return $this->container['email'];
488
+ }
489
+
490
+ /**
491
+ * Gets a phone number
492
+ * @return string
493
+ */
494
+ public function getPhone() {
495
+ return $this->container['phone'];
496
+ }
497
+
498
+ /**
499
+ * Gets gender.
500
+ * @return string
501
+ */
502
+ public function getGender() {
503
+ return $this->container['gender'];
504
+ }
505
+
506
+ /**
507
+ * Gets Date Of Birth.
508
+ * @return string
509
+ */
510
+ public function getDateOfBirth() {
511
+ return $this->container['date_of_birth'];
512
+ }
513
+
514
+ /**
515
+ * Gets Last Name.
516
+ * @return string
517
+ */
518
+ public function getLastName() {
519
+ return $this->container['last_name'];
520
+ }
521
+
522
+ /**
523
+ * Gets First Name.
524
+ * @return string
525
+ */
526
+ public function getFirstName() {
527
+ return $this->container['first_name'];
528
+ }
529
+
530
+ /**
531
+ * Gets city.
532
+ * @return string
533
+ */
534
+ public function getCity() {
535
+ return $this->container['city'];
536
+ }
537
+
538
+ /**
539
+ * Gets state.
540
+ * @return string
541
+ */
542
+ public function getState() {
543
+ return $this->container['state'];
544
+ }
545
+
546
+ /**
547
+ * Gets zip code
548
+ * @return string
549
+ */
550
+ public function getZipCode() {
551
+ return $this->container['zip_code'];
552
+ }
553
+
554
+ /**
555
+ * Gets country code.
556
+ * @return string
557
+ */
558
+ public function getCountryCode() {
559
+ return $this->container['country_code'];
560
+ }
561
+
562
+ /**
563
+ * Gets Any unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs.
564
+ * @return string
565
+ */
566
+ public function getExternalId() {
567
+ return $this->container['external_id'];
568
+ }
569
+
570
+ /**
571
+ * Gets IP address of the browser corresponding to the event.
572
+ * @return string
573
+ */
574
+ public function getClientIpAddress() {
575
+ return $this->container['client_ip_address'];
576
+ }
577
+
578
+ /**
579
+ * Gets user agent for the browser corresponding to the event.
580
+ * @return string
581
+ */
582
+ public function getClientUserAgent() {
583
+ return $this->container['client_user_agent'];
584
+ }
585
+
586
+ /**
587
+ * Gets the Facebook click ID value stored in the _fbc browser cookie under your domain.
588
+ * @return string
589
+ */
590
+ public function getFbc() {
591
+ return $this->container['fbc'];
592
+ }
593
+
594
+ /**
595
+ * Gets the Facebook browser ID value stored in the _fbp browser cookie under your domain.
596
+ * @return string
597
+ */
598
+ public function getFbp() {
599
+ return $this->container['fbp'];
600
+ }
601
+
602
+ /**
603
+ * Gets the subscription ID for the user in this transaction.
604
+ * @return string
605
+ */
606
+ public function getSubscriptionId() {
607
+ return $this->container['subscription_id'];
608
+ }
609
+
610
+ /**
611
+ * Gets the FbLogin ID for the user in this transaction.
612
+ * @return string
613
+ */
614
+ public function getFbLoginId() {
615
+ return $this->container['fb_login_id'];
616
+ }
617
+ /**
618
+ * Gets the string presentation of the object
619
+ * @return string
620
+ */
621
+ public function __toString() {
622
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
623
+ return json_encode($this, JSON_PRETTY_PRINT);
624
+ }
625
+
626
+ return json_encode($this);
627
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
628
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Util.php CHANGED
@@ -25,206 +25,111 @@
25
  namespace FacebookAds\Object\ServerSide;
26
 
27
  /**
28
- * Normalizer Class
29
  *
30
  * @category Class
31
  * @package FacebookAds\Object\ServerSide
32
  */
33
- class Util
34
- {
35
-
36
- /**
37
- * @param string $field to be normalized.
38
- * @param string $data value to be normalized
39
- * @return string
40
- */
41
- public static function normalize($field, $data)
42
- {
43
- if ($data == null || strlen($data) == 0) {
44
- return null;
45
- }
46
-
47
- // Check if already hashed. If yes, don't try to normalize an already hashed data.
48
- if(Util::isHashed($data)){
49
- return $data;
50
- }
51
-
52
- $data = trim(strtolower($data));
53
- $normalized_data = $data;
54
-
55
- switch ($field) {
56
- case 'em':
57
- $normalized_data = Util::normalizeEmail($data);
58
- break;
59
-
60
- case 'ph':
61
- $normalized_data = Util::normalizePhone($data);
62
- break;
63
-
64
- case 'zp':
65
- $normalized_data = Util::normalizeZipCode($data);
66
- break;
67
-
68
- case 'ct':
69
- $normalized_data = Util::normalizeCity($data);
70
- break;
71
-
72
- case 'st':
73
- $normalized_data = Util::normalizeState($data);
74
- break;
75
-
76
- case 'country':
77
- $normalized_data = Util::normalizeCountry($data);
78
- break;
79
-
80
- case 'currency':
81
- $normalized_data = Util::normalizeCurrency($data);
82
- break;
83
- default:
84
- }
85
-
86
- return $normalized_data;
87
- }
88
-
89
  /**
90
  * @param string $data hash input data using SHA256 algorithm.
91
  * @return string
92
  */
93
- public static function hash($data)
94
- {
95
  if ($data == null || Util::isHashed($data)) {
96
  return $data;
97
  }
98
  return hash('sha256', $data, false);
99
  }
100
 
101
-
102
  /**
103
  * @param string $pii PII data to check if its hashed.
104
  * @return bool
105
  */
106
- private static function isHashed($pii)
107
- {
108
  // it could be sha256 or md5
109
  return preg_match('/^[A-Fa-f0-9]{64}$/', $pii) ||
110
  preg_match('/^[a-f0-9]{32}$/', $pii);
111
  }
112
 
113
  /**
114
- * @param string $email Email address to be normalized.
115
  * @return string
116
  */
117
- private static function normalizeEmail($email)
118
- {
119
- // Validates email against RFC 822
120
- $result = filter_var($email, FILTER_SANITIZE_EMAIL);
121
-
122
- if (!filter_var($result, FILTER_VALIDATE_EMAIL))
123
- {
124
- throw new \InvalidArgumentException('Invalid email format for the passed email: ' . $email . 'Please check the passed email format.');
 
125
  }
126
 
127
- return $result;
128
- }
129
-
130
- /**
131
- * @param string $city city name to be normalized.
132
- * @return string
133
- */
134
- private static function normalizeCity($city)
135
- {
136
- return trim(preg_replace('/[0-9.\s\-()]/', '', $city));
137
- }
138
-
139
- /**
140
- * @param string $state state name to be normalized.
141
- * @return string
142
- */
143
- private static function normalizeState($state)
144
- {
145
- return preg_replace('/[^a-z]/', '', $state);
146
  }
147
 
148
  /**
149
- * @param string $country country code to be normalized(ISO 3166-2).
150
  * @return string
151
  */
152
- private static function normalizeCountry($country)
153
- {
154
- $result = preg_replace('/[^a-z]/i', '', $country);
155
 
156
- if (strlen($result) != 2) {
157
- throw new \InvalidArgumentException('Invalid country format passed(' . $country . '). Country Code should be a two-letter ISO Country Code');
158
  }
159
 
160
- return $result;
161
  }
162
 
163
  /**
164
- * @param string $zip postal code to be normalized.
165
  * @return string
166
  */
167
- private static function normalizeZipCode($zip)
168
- {
169
- // Removing the spaces from the zip code. Eg:
170
- $zip = preg_replace('/[ ]/', '', $zip);
171
-
172
- // If the code has more than one part, retain the first part.
173
- $zip = explode('-', $zip)[0];
174
- return $zip;
175
- }
176
 
177
- /**
178
- * @param string $phone phone number to be normalized.
179
- * @return string
180
- */
181
- private static function normalizePhone($phone)
182
- {
183
- $result = trim(preg_replace('/[a-z()-]/', '', $phone));
184
 
185
- if(Util::isInternationalNumber($result))
186
- {
187
- $result = preg_replace('/[\-\s+]/', '', $result);
188
  }
189
 
190
- return $result;
191
  }
192
 
193
  /**
194
- * @param string $currency currency code to be normalized(ISO 4217).
195
  * @return string
196
  */
197
- private static function normalizeCurrency($currency)
198
- {
199
- $result = preg_replace('/[^a-z]/i', '', $currency);
200
 
201
- if (strlen($result) != 3) {
202
- throw new \InvalidArgumentException('Invalid currency format passed(' . $currency . '). Currency Code should be a three-letter ISO Currency Code');
203
  }
204
 
205
- return $result;
206
  }
207
 
208
  /**
209
- * @param string $phone_number Phone number to be normalized.
210
- * @return bool
211
  */
212
- private static function isInternationalNumber($phone_number)
213
- {
214
- // Remove spaces and hyphens
215
- $phone_number = preg_replace('/[\-\s]/', '', $phone_number);
216
 
217
- // Strip + and up to 2 leading 0s
218
- $phone_number = preg_replace('/^\+?0{0,2}/', '', $phone_number);
219
-
220
- if(substr($phone_number, 0, 1) === '0')
221
- {
222
- return false;
223
  }
224
 
225
- // Internation Phone number with country calling code.
226
- $internation_number_regex = '/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/';
227
-
228
- return preg_match($internation_number_regex, $phone_number);
229
  }
230
  }
25
  namespace FacebookAds\Object\ServerSide;
26
 
27
  /**
28
+ * Util Class
29
  *
30
  * @category Class
31
  * @package FacebookAds\Object\ServerSide
32
  */
33
+ class Util {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  /**
35
  * @param string $data hash input data using SHA256 algorithm.
36
  * @return string
37
  */
38
+ public static function hash($data) {
 
39
  if ($data == null || Util::isHashed($data)) {
40
  return $data;
41
  }
42
  return hash('sha256', $data, false);
43
  }
44
 
 
45
  /**
46
  * @param string $pii PII data to check if its hashed.
47
  * @return bool
48
  */
49
+ public static function isHashed($pii) {
 
50
  // it could be sha256 or md5
51
  return preg_match('/^[A-Fa-f0-9]{64}$/', $pii) ||
52
  preg_match('/^[a-f0-9]{32}$/', $pii);
53
  }
54
 
55
  /**
56
+ * Extracts the IP Address from the PHP Request Context.
57
  * @return string
58
  */
59
+ public static function getIpAddress() {
60
+ $ip_address = null;
61
+
62
+ if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
63
+ $ip_address = $_SERVER['HTTP_CLIENT_IP'];
64
+ } else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
65
+ $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
66
+ } else if (!empty($_SERVER['REMOTE_ADDR'])) {
67
+ $ip_address = $_SERVER['REMOTE_ADDR'];
68
  }
69
 
70
+ return $ip_address;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
 
73
  /**
74
+ * Extracts the HTTP User Agent from the PHP Request Context.
75
  * @return string
76
  */
77
+ public static function getHttpUserAgent() {
78
+ $user_agent = null;
 
79
 
80
+ if (!empty($_SERVER['HTTP_USER_AGENT'])) {
81
+ $user_agent = $_SERVER['HTTP_USER_AGENT'];
82
  }
83
 
84
+ return $user_agent;
85
  }
86
 
87
  /**
88
+ * Extracts the URI from the PHP Request Context.
89
  * @return string
90
  */
91
+ public static function getRequestUri() {
92
+ $url = "http://";
93
+ if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
94
+ $url = "https://";
95
+ }
 
 
 
 
96
 
97
+ if (!empty($_SERVER['HTTP_HOST'])) {
98
+ $url .= $_SERVER['HTTP_HOST'];
99
+ }
 
 
 
 
100
 
101
+ if (!empty($_SERVER['REQUEST_URI'])) {
102
+ $url .= $_SERVER['REQUEST_URI'];
 
103
  }
104
 
105
+ return $url;
106
  }
107
 
108
  /**
109
+ * Extracts the FBP cookie from the PHP Request Context.
110
  * @return string
111
  */
112
+ public static function getFbp() {
113
+ $fbp = null;
 
114
 
115
+ if (!empty($_COOKIE['_fbp'])) {
116
+ $fbp = $_COOKIE['_fbp'];
117
  }
118
 
119
+ return $fbp;
120
  }
121
 
122
  /**
123
+ * Extracts the FBC cookie from the PHP Request Context.
124
+ * @return string
125
  */
126
+ public static function getFbc() {
127
+ $fbc = null;
 
 
128
 
129
+ if (!empty($_COOKIE['_fbc'])) {
130
+ $fbc = $_COOKIE['_fbc'];
 
 
 
 
131
  }
132
 
133
+ return $fbc;
 
 
 
134
  }
135
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/StoreCatalogSettings.php CHANGED
@@ -54,6 +54,29 @@ class StoreCatalogSettings extends AbstractCrudObject {
54
  }
55
 
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
58
  $this->assureId();
59
 
54
  }
55
 
56
 
57
+ public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) {
58
+ $this->assureId();
59
+
60
+ $param_types = array(
61
+ );
62
+ $enums = array(
63
+ );
64
+
65
+ $request = new ApiRequest(
66
+ $this->api,
67
+ $this->data['id'],
68
+ RequestInterface::METHOD_DELETE,
69
+ '/',
70
+ new AbstractCrudObject(),
71
+ 'NODE',
72
+ array(),
73
+ new TypeChecker($param_types, $enums)
74
+ );
75
+ $request->addParams($params);
76
+ $request->addFields($fields);
77
+ return $pending ? $request : $request->execute();
78
+ }
79
+
80
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
81
  $this->assureId();
82
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/URL.php CHANGED
@@ -85,7 +85,7 @@ class URL extends AbstractCrudObject {
85
  $param_types = array(
86
  'blacklist' => 'bool',
87
  'hmac' => 'string',
88
- 'locale' => 'list',
89
  'scopes' => 'list<scopes_enum>',
90
  'ts' => 'datetime',
91
  );
85
  $param_types = array(
86
  'blacklist' => 'bool',
87
  'hmac' => 'string',
88
+ 'locale' => 'list<Object>',
89
  'scopes' => 'list<scopes_enum>',
90
  'ts' => 'datetime',
91
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/UnifiedThread.php CHANGED
@@ -82,112 +82,6 @@ class UnifiedThread extends AbstractCrudObject {
82
  return $pending ? $request : $request->execute();
83
  }
84
 
85
- public function createMessage(array $fields = array(), array $params = array(), $pending = false) {
86
- $this->assureId();
87
-
88
- $param_types = array(
89
- 'aloha_action' => 'string',
90
- 'android_key_hash' => 'string',
91
- 'applied_art_data' => 'Object',
92
- 'associated_object_id' => 'Object',
93
- 'attribution_app_id' => 'string',
94
- 'attribution_app_metadata' => 'string',
95
- 'audio_duration' => 'int',
96
- 'audio_type' => 'audio_type_enum',
97
- 'body' => 'string',
98
- 'broadcast_recipients' => 'map',
99
- 'client_tags' => 'map',
100
- 'coordinates' => 'Object',
101
- 'copy_attachment' => 'string',
102
- 'copy_message' => 'string',
103
- 'customizations' => 'map',
104
- 'entry_point' => 'string',
105
- 'external_attachment_url' => 'string',
106
- 'image_type' => 'image_type_enum',
107
- 'ios_bundle_id' => 'string',
108
- 'is_admin_model_v2_enabled' => 'bool',
109
- 'is_broadcast' => 'bool',
110
- 'is_montage' => 'bool',
111
- 'is_voicemail' => 'bool',
112
- 'lightweight_action_attachment' => 'Object',
113
- 'link' => 'string',
114
- 'live_location_attachment' => 'Object',
115
- 'location_attachment' => 'Object',
116
- 'log_info' => 'map',
117
- 'mark_read_watermark_timestamp' => 'int',
118
- 'media' => 'list<string>',
119
- 'message_attempt_id' => 'string',
120
- 'message_source_data' => 'Object',
121
- 'montage_business_platform_data' => 'map',
122
- 'montage_frame_style' => 'montage_frame_style_enum',
123
- 'montage_mentions' => 'map',
124
- 'montage_overlays' => 'list<map>',
125
- 'montage_reply_data' => 'Object',
126
- 'montage_supported_features' => 'list<montage_supported_features_enum>',
127
- 'montage_targets' => 'list<string>',
128
- 'object_attachment' => 'string',
129
- 'offline_threading_id' => 'string',
130
- 'platform_xmd' => 'string',
131
- 'prng' => 'list',
132
- 'proxied_app_id' => 'string',
133
- 'recipients' => 'list<Object>',
134
- 'replied_to_message_id' => 'string',
135
- 'selected_cta_token' => 'string',
136
- 'shareable_attachment' => 'Object',
137
- 'shown_cta_tokens' => 'list<string>',
138
- 'skip_android_hash_check' => 'bool',
139
- 'story_id' => 'Object',
140
- 'tags' => 'list<string>',
141
- 'tid' => 'string',
142
- 'tracking' => 'string',
143
- 'ttl' => 'unsigned int',
144
- 'use_existing_group' => 'bool',
145
- 'video_thumbnail' => 'file',
146
- 'video_type' => 'video_type_enum',
147
- );
148
- $enums = array(
149
- 'audio_type_enum' => array(
150
- 'FILE_ATTACHMENT',
151
- 'VOICE_MESSAGE',
152
- 'VOICE_MESSAGE_WITH_TRANSCRIPT',
153
- ),
154
- 'image_type_enum' => array(
155
- 'FILE_ATTACHMENT',
156
- 'MESSENGER_CAM',
157
- 'TRANSPARENT',
158
- ),
159
- 'montage_frame_style_enum' => array(
160
- 'no_border',
161
- ),
162
- 'montage_supported_features_enum' => array(
163
- 'AUTHOR_IN_PRODUCER_QE_FOR_SMART_REPLIES',
164
- 'LIGHTWEIGHT_REPLY',
165
- 'SHOW_STORY_IN_MESSENGER_THREAD',
166
- ),
167
- 'video_type_enum' => array(
168
- 'FILE_ATTACHMENT',
169
- 'RECORDED_STICKER',
170
- 'RECORDED_VIDEO',
171
- 'SPEAKING_STICKER',
172
- 'VIDEO_MAIL',
173
- ),
174
- );
175
-
176
- $request = new ApiRequest(
177
- $this->api,
178
- $this->data['id'],
179
- RequestInterface::METHOD_POST,
180
- '/messages',
181
- new AbstractCrudObject(),
182
- 'EDGE',
183
- array(),
184
- new TypeChecker($param_types, $enums)
185
- );
186
- $request->addParams($params);
187
- $request->addFields($fields);
188
- return $pending ? $request : $request->execute();
189
- }
190
-
191
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
192
  $this->assureId();
193
 
82
  return $pending ? $request : $request->execute();
83
  }
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
86
  $this->assureId();
87
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/User.php CHANGED
@@ -41,8 +41,6 @@ use FacebookAds\Object\Values\AdVideoUploadPhaseValues;
41
  use FacebookAds\Object\Values\BusinessSurveyBusinessTypeValues;
42
  use FacebookAds\Object\Values\BusinessVerticalValues;
43
  use FacebookAds\Object\Values\EventTypeValues;
44
- use FacebookAds\Object\Values\InsightsResultDatePresetValues;
45
- use FacebookAds\Object\Values\InsightsResultPeriodValues;
46
  use FacebookAds\Object\Values\LiveVideoBroadcastStatusValues;
47
  use FacebookAds\Object\Values\LiveVideoProjectionValues;
48
  use FacebookAds\Object\Values\LiveVideoSourceValues;
@@ -54,13 +52,10 @@ use FacebookAds\Object\Values\PermissionStatusValues;
54
  use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues;
55
  use FacebookAds\Object\Values\PhotoTypeValues;
56
  use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues;
57
- use FacebookAds\Object\Values\PostWithValues;
58
  use FacebookAds\Object\Values\ProfilePictureSourceTypeValues;
59
  use FacebookAds\Object\Values\UserFilteringValues;
60
  use FacebookAds\Object\Values\UserLocalNewsMegaphoneDismissStatusValues;
61
  use FacebookAds\Object\Values\UserLocalNewsSubscriptionStatusValues;
62
- use FacebookAds\Object\Values\UserResumeTypeValues;
63
- use FacebookAds\Object\Values\UserServiceTypeValues;
64
  use FacebookAds\Object\Values\UserTypeValues;
65
 
66
  /**
@@ -85,10 +80,8 @@ class User extends AbstractCrudObject {
85
  $ref_enums = array();
86
  $ref_enums['LocalNewsMegaphoneDismissStatus'] = UserLocalNewsMegaphoneDismissStatusValues::getInstance()->getValues();
87
  $ref_enums['LocalNewsSubscriptionStatus'] = UserLocalNewsSubscriptionStatusValues::getInstance()->getValues();
88
- $ref_enums['ResumeType'] = UserResumeTypeValues::getInstance()->getValues();
89
  $ref_enums['Filtering'] = UserFilteringValues::getInstance()->getValues();
90
  $ref_enums['Type'] = UserTypeValues::getInstance()->getValues();
91
- $ref_enums['ServiceType'] = UserServiceTypeValues::getInstance()->getValues();
92
  return $ref_enums;
93
  }
94
 
@@ -206,60 +199,6 @@ class User extends AbstractCrudObject {
206
  return $pending ? $request : $request->execute();
207
  }
208
 
209
- public function createAchievement(array $fields = array(), array $params = array(), $pending = false) {
210
- $this->assureId();
211
-
212
- $param_types = array(
213
- 'added' => 'string',
214
- 'alias' => 'string',
215
- 'android_key_hash' => 'string',
216
- 'client_secret' => 'string',
217
- 'created_time' => 'datetime',
218
- 'end_time' => 'datetime',
219
- 'expires_in' => 'unsigned int',
220
- 'fb:channel' => 'string',
221
- 'fb:explicitly_shared' => 'bool',
222
- 'image:height' => 'unsigned int',
223
- 'image:secure_url' => 'string',
224
- 'image:type' => 'string',
225
- 'image:url' => 'string',
226
- 'image:user_generated' => 'bool',
227
- 'image:width' => 'unsigned int',
228
- 'ios_bundle_id' => 'string',
229
- 'message' => 'string',
230
- 'no_action_link' => 'bool',
231
- 'no_feed_story' => 'bool',
232
- 'notify' => 'bool',
233
- 'place' => 'string',
234
- 'preview' => 'bool',
235
- 'privacy' => 'string',
236
- 'proxied_app_id' => 'string',
237
- 'ref' => 'string',
238
- 'scrape' => 'bool',
239
- 'start_time' => 'datetime',
240
- 'tags' => 'list<int>',
241
- 'to' => 'string',
242
- 'user_selected_place' => 'bool',
243
- 'user_selected_tags' => 'bool',
244
- );
245
- $enums = array(
246
- );
247
-
248
- $request = new ApiRequest(
249
- $this->api,
250
- $this->data['id'],
251
- RequestInterface::METHOD_POST,
252
- '/achievements',
253
- new AbstractCrudObject(),
254
- 'EDGE',
255
- array(),
256
- new TypeChecker($param_types, $enums)
257
- );
258
- $request->addParams($params);
259
- $request->addFields($fields);
260
- return $pending ? $request : $request->execute();
261
- }
262
-
263
  public function getAdStudies(array $fields = array(), array $params = array(), $pending = false) {
264
  $this->assureId();
265
 
@@ -528,30 +467,6 @@ class User extends AbstractCrudObject {
528
  return $pending ? $request : $request->execute();
529
  }
530
 
531
- public function getBooks(array $fields = array(), array $params = array(), $pending = false) {
532
- $this->assureId();
533
-
534
- $param_types = array(
535
- 'target_id' => 'string',
536
- );
537
- $enums = array(
538
- );
539
-
540
- $request = new ApiRequest(
541
- $this->api,
542
- $this->data['id'],
543
- RequestInterface::METHOD_GET,
544
- '/books',
545
- new Page(),
546
- 'EDGE',
547
- Page::getFieldsEnum()->getValues(),
548
- new TypeChecker($param_types, $enums)
549
- );
550
- $request->addParams($params);
551
- $request->addFields($fields);
552
- return $pending ? $request : $request->execute();
553
- }
554
-
555
  public function getBusinessUsers(array $fields = array(), array $params = array(), $pending = false) {
556
  $this->assureId();
557
 
@@ -1022,30 +937,6 @@ class User extends AbstractCrudObject {
1022
  return $pending ? $request : $request->execute();
1023
  }
1024
 
1025
- public function getGames(array $fields = array(), array $params = array(), $pending = false) {
1026
- $this->assureId();
1027
-
1028
- $param_types = array(
1029
- 'target_id' => 'string',
1030
- );
1031
- $enums = array(
1032
- );
1033
-
1034
- $request = new ApiRequest(
1035
- $this->api,
1036
- $this->data['id'],
1037
- RequestInterface::METHOD_GET,
1038
- '/games',
1039
- new Page(),
1040
- 'EDGE',
1041
- Page::getFieldsEnum()->getValues(),
1042
- new TypeChecker($param_types, $enums)
1043
- );
1044
- $request->addParams($params);
1045
- $request->addFields($fields);
1046
- return $pending ? $request : $request->execute();
1047
- }
1048
-
1049
  public function createGamesPlay(array $fields = array(), array $params = array(), $pending = false) {
1050
  $this->assureId();
1051
 
@@ -1100,32 +991,6 @@ class User extends AbstractCrudObject {
1100
  return $pending ? $request : $request->execute();
1101
  }
1102
 
1103
- public function createGamesStat(array $fields = array(), array $params = array(), $pending = false) {
1104
- $this->assureId();
1105
-
1106
- $param_types = array(
1107
- 'inc' => 'unsigned int',
1108
- 'set' => 'unsigned int',
1109
- 'stat_name' => 'string',
1110
- );
1111
- $enums = array(
1112
- );
1113
-
1114
- $request = new ApiRequest(
1115
- $this->api,
1116
- $this->data['id'],
1117
- RequestInterface::METHOD_POST,
1118
- '/games_stats',
1119
- new AbstractCrudObject(),
1120
- 'EDGE',
1121
- array(),
1122
- new TypeChecker($param_types, $enums)
1123
- );
1124
- $request->addParams($params);
1125
- $request->addFields($fields);
1126
- return $pending ? $request : $request->execute();
1127
- }
1128
-
1129
  public function getGroups(array $fields = array(), array $params = array(), $pending = false) {
1130
  $this->assureId();
1131
 
@@ -1223,37 +1088,6 @@ class User extends AbstractCrudObject {
1223
  return $pending ? $request : $request->execute();
1224
  }
1225
 
1226
- public function getInsights(array $fields = array(), array $params = array(), $pending = false) {
1227
- $this->assureId();
1228
-
1229
- $param_types = array(
1230
- 'date_preset' => 'date_preset_enum',
1231
- 'metric' => 'list<Object>',
1232
- 'period' => 'period_enum',
1233
- 'show_description_from_api_doc' => 'bool',
1234
- 'since' => 'datetime',
1235
- 'until' => 'datetime',
1236
- );
1237
- $enums = array(
1238
- 'date_preset_enum' => InsightsResultDatePresetValues::getInstance()->getValues(),
1239
- 'period_enum' => InsightsResultPeriodValues::getInstance()->getValues(),
1240
- );
1241
-
1242
- $request = new ApiRequest(
1243
- $this->api,
1244
- $this->data['id'],
1245
- RequestInterface::METHOD_GET,
1246
- '/insights',
1247
- new InsightsResult(),
1248
- 'EDGE',
1249
- InsightsResult::getFieldsEnum()->getValues(),
1250
- new TypeChecker($param_types, $enums)
1251
- );
1252
- $request->addParams($params);
1253
- $request->addFields($fields);
1254
- return $pending ? $request : $request->execute();
1255
- }
1256
-
1257
  public function getLikes(array $fields = array(), array $params = array(), $pending = false) {
1258
  $this->assureId();
1259
 
@@ -1405,59 +1239,6 @@ class User extends AbstractCrudObject {
1405
  return $pending ? $request : $request->execute();
1406
  }
1407
 
1408
- public function createMfsAccountPinReset(array $fields = array(), array $params = array(), $pending = false) {
1409
- $this->assureId();
1410
-
1411
- $param_types = array(
1412
- 'password_token' => 'string',
1413
- 'provider_id' => 'string',
1414
- 'resume_payload' => 'string',
1415
- 'resume_type' => 'resume_type_enum',
1416
- 'should_bypass_token_proxy' => 'bool',
1417
- );
1418
- $enums = array(
1419
- 'resume_type_enum' => UserResumeTypeValues::getInstance()->getValues(),
1420
- );
1421
-
1422
- $request = new ApiRequest(
1423
- $this->api,
1424
- $this->data['id'],
1425
- RequestInterface::METHOD_POST,
1426
- '/mfs_account_pin_reset',
1427
- new User(),
1428
- 'EDGE',
1429
- User::getFieldsEnum()->getValues(),
1430
- new TypeChecker($param_types, $enums)
1431
- );
1432
- $request->addParams($params);
1433
- $request->addFields($fields);
1434
- return $pending ? $request : $request->execute();
1435
- }
1436
-
1437
- public function getMovies(array $fields = array(), array $params = array(), $pending = false) {
1438
- $this->assureId();
1439
-
1440
- $param_types = array(
1441
- 'target_id' => 'string',
1442
- );
1443
- $enums = array(
1444
- );
1445
-
1446
- $request = new ApiRequest(
1447
- $this->api,
1448
- $this->data['id'],
1449
- RequestInterface::METHOD_GET,
1450
- '/movies',
1451
- new Page(),
1452
- 'EDGE',
1453
- Page::getFieldsEnum()->getValues(),
1454
- new TypeChecker($param_types, $enums)
1455
- );
1456
- $request->addParams($params);
1457
- $request->addFields($fields);
1458
- return $pending ? $request : $request->execute();
1459
- }
1460
-
1461
  public function getMusic(array $fields = array(), array $params = array(), $pending = false) {
1462
  $this->assureId();
1463
 
@@ -1718,56 +1499,6 @@ class User extends AbstractCrudObject {
1718
  return $pending ? $request : $request->execute();
1719
  }
1720
 
1721
- public function getPosts(array $fields = array(), array $params = array(), $pending = false) {
1722
- $this->assureId();
1723
-
1724
- $param_types = array(
1725
- 'include_hidden' => 'bool',
1726
- 'show_expired' => 'bool',
1727
- 'with' => 'with_enum',
1728
- );
1729
- $enums = array(
1730
- 'with_enum' => PostWithValues::getInstance()->getValues(),
1731
- );
1732
-
1733
- $request = new ApiRequest(
1734
- $this->api,
1735
- $this->data['id'],
1736
- RequestInterface::METHOD_GET,
1737
- '/posts',
1738
- new Post(),
1739
- 'EDGE',
1740
- Post::getFieldsEnum()->getValues(),
1741
- new TypeChecker($param_types, $enums)
1742
- );
1743
- $request->addParams($params);
1744
- $request->addFields($fields);
1745
- return $pending ? $request : $request->execute();
1746
- }
1747
-
1748
- public function getRequestHistory(array $fields = array(), array $params = array(), $pending = false) {
1749
- $this->assureId();
1750
-
1751
- $param_types = array(
1752
- );
1753
- $enums = array(
1754
- );
1755
-
1756
- $request = new ApiRequest(
1757
- $this->api,
1758
- $this->data['id'],
1759
- RequestInterface::METHOD_GET,
1760
- '/request_history',
1761
- new RequestHistory(),
1762
- 'EDGE',
1763
- RequestHistory::getFieldsEnum()->getValues(),
1764
- new TypeChecker($param_types, $enums)
1765
- );
1766
- $request->addParams($params);
1767
- $request->addFields($fields);
1768
- return $pending ? $request : $request->execute();
1769
- }
1770
-
1771
  public function getRichMediaDocuments(array $fields = array(), array $params = array(), $pending = false) {
1772
  $this->assureId();
1773
 
@@ -1792,32 +1523,6 @@ class User extends AbstractCrudObject {
1792
  return $pending ? $request : $request->execute();
1793
  }
1794
 
1795
- public function createScreenName(array $fields = array(), array $params = array(), $pending = false) {
1796
- $this->assureId();
1797
-
1798
- $param_types = array(
1799
- 'service_type' => 'service_type_enum',
1800
- 'value' => 'string',
1801
- );
1802
- $enums = array(
1803
- 'service_type_enum' => UserServiceTypeValues::getInstance()->getValues(),
1804
- );
1805
-
1806
- $request = new ApiRequest(
1807
- $this->api,
1808
- $this->data['id'],
1809
- RequestInterface::METHOD_POST,
1810
- '/screennames',
1811
- new User(),
1812
- 'EDGE',
1813
- User::getFieldsEnum()->getValues(),
1814
- new TypeChecker($param_types, $enums)
1815
- );
1816
- $request->addParams($params);
1817
- $request->addFields($fields);
1818
- return $pending ? $request : $request->execute();
1819
- }
1820
-
1821
  public function createStagingResource(array $fields = array(), array $params = array(), $pending = false) {
1822
  $this->assureId();
1823
 
@@ -1865,30 +1570,6 @@ class User extends AbstractCrudObject {
1865
  return $pending ? $request : $request->execute();
1866
  }
1867
 
1868
- public function getTelevision(array $fields = array(), array $params = array(), $pending = false) {
1869
- $this->assureId();
1870
-
1871
- $param_types = array(
1872
- 'target_id' => 'string',
1873
- );
1874
- $enums = array(
1875
- );
1876
-
1877
- $request = new ApiRequest(
1878
- $this->api,
1879
- $this->data['id'],
1880
- RequestInterface::METHOD_GET,
1881
- '/television',
1882
- new Page(),
1883
- 'EDGE',
1884
- Page::getFieldsEnum()->getValues(),
1885
- new TypeChecker($param_types, $enums)
1886
- );
1887
- $request->addParams($params);
1888
- $request->addFields($fields);
1889
- return $pending ? $request : $request->execute();
1890
- }
1891
-
1892
  public function getVideos(array $fields = array(), array $params = array(), $pending = false) {
1893
  $this->assureId();
1894
 
41
  use FacebookAds\Object\Values\BusinessSurveyBusinessTypeValues;
42
  use FacebookAds\Object\Values\BusinessVerticalValues;
43
  use FacebookAds\Object\Values\EventTypeValues;
 
 
44
  use FacebookAds\Object\Values\LiveVideoBroadcastStatusValues;
45
  use FacebookAds\Object\Values\LiveVideoProjectionValues;
46
  use FacebookAds\Object\Values\LiveVideoSourceValues;
52
  use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues;
53
  use FacebookAds\Object\Values\PhotoTypeValues;
54
  use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues;
 
55
  use FacebookAds\Object\Values\ProfilePictureSourceTypeValues;
56
  use FacebookAds\Object\Values\UserFilteringValues;
57
  use FacebookAds\Object\Values\UserLocalNewsMegaphoneDismissStatusValues;
58
  use FacebookAds\Object\Values\UserLocalNewsSubscriptionStatusValues;
 
 
59
  use FacebookAds\Object\Values\UserTypeValues;
60
 
61
  /**
80
  $ref_enums = array();
81
  $ref_enums['LocalNewsMegaphoneDismissStatus'] = UserLocalNewsMegaphoneDismissStatusValues::getInstance()->getValues();
82
  $ref_enums['LocalNewsSubscriptionStatus'] = UserLocalNewsSubscriptionStatusValues::getInstance()->getValues();
 
83
  $ref_enums['Filtering'] = UserFilteringValues::getInstance()->getValues();
84
  $ref_enums['Type'] = UserTypeValues::getInstance()->getValues();
 
85
  return $ref_enums;
86
  }
87
 
199
  return $pending ? $request : $request->execute();
200
  }
201
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  public function getAdStudies(array $fields = array(), array $params = array(), $pending = false) {
203
  $this->assureId();
204
 
467
  return $pending ? $request : $request->execute();
468
  }
469
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
470
  public function getBusinessUsers(array $fields = array(), array $params = array(), $pending = false) {
471
  $this->assureId();
472
 
937
  return $pending ? $request : $request->execute();
938
  }
939
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
940
  public function createGamesPlay(array $fields = array(), array $params = array(), $pending = false) {
941
  $this->assureId();
942
 
991
  return $pending ? $request : $request->execute();
992
  }
993
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
994
  public function getGroups(array $fields = array(), array $params = array(), $pending = false) {
995
  $this->assureId();
996
 
1088
  return $pending ? $request : $request->execute();
1089
  }
1090
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1091
  public function getLikes(array $fields = array(), array $params = array(), $pending = false) {
1092
  $this->assureId();
1093
 
1239
  return $pending ? $request : $request->execute();
1240
  }
1241
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1242
  public function getMusic(array $fields = array(), array $params = array(), $pending = false) {
1243
  $this->assureId();
1244
 
1499
  return $pending ? $request : $request->execute();
1500
  }
1501
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1502
  public function getRichMediaDocuments(array $fields = array(), array $params = array(), $pending = false) {
1503
  $this->assureId();
1504
 
1523
  return $pending ? $request : $request->execute();
1524
  }
1525
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1526
  public function createStagingResource(array $fields = array(), array $params = array(), $pending = false) {
1527
  $this->assureId();
1528
 
1570
  return $pending ? $request : $request->execute();
1571
  }
1572
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1573
  public function getVideos(array $fields = array(), array $params = array(), $pending = false) {
1574
  $this->assureId();
1575
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountContentTypeValues.php CHANGED
@@ -42,6 +42,8 @@ class AdAccountContentTypeValues extends AbstractEnum {
42
  const FLIGHT = 'FLIGHT';
43
  const HOME_LISTING = 'HOME_LISTING';
44
  const HOTEL = 'HOTEL';
 
 
45
  const MEDIA_TITLE = 'MEDIA_TITLE';
46
  const OFFLINE_PRODUCT = 'OFFLINE_PRODUCT';
47
  const PRODUCT = 'PRODUCT';
42
  const FLIGHT = 'FLIGHT';
43
  const HOME_LISTING = 'HOME_LISTING';
44
  const HOTEL = 'HOTEL';
45
+ const LOCAL_SERVICE_BUSINESS = 'LOCAL_SERVICE_BUSINESS';
46
+ const LOCATION_BASED_ITEM = 'LOCATION_BASED_ITEM';
47
  const MEDIA_TITLE = 'MEDIA_TITLE';
48
  const OFFLINE_PRODUCT = 'OFFLINE_PRODUCT';
49
  const PRODUCT = 'PRODUCT';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountDeliveryEstimateOptimizationGoalValues.php CHANGED
@@ -61,4 +61,5 @@ class AdAccountDeliveryEstimateOptimizationGoalValues extends AbstractEnum {
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
 
64
  }
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
64
+ const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
65
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedObjectiveValues.php CHANGED
@@ -50,5 +50,6 @@ class AdAccountTargetingUnifiedObjectiveValues extends AbstractEnum {
50
  const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
51
  const PRODUCT_CATALOG_SALES = 'PRODUCT_CATALOG_SALES';
52
  const REACH = 'REACH';
 
53
  const VIDEO_VIEWS = 'VIDEO_VIEWS';
54
  }
50
  const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
51
  const PRODUCT_CATALOG_SALES = 'PRODUCT_CATALOG_SALES';
52
  const REACH = 'REACH';
53
+ const STORE_VISITS = 'STORE_VISITS';
54
  const VIDEO_VIEWS = 'VIDEO_VIEWS';
55
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedWhitelistedTypesValues.php CHANGED
@@ -106,7 +106,9 @@ class AdAccountTargetingUnifiedWhitelistedTypesValues extends AbstractEnum {
106
  const ID = 'id';
107
  const INCOME = 'income';
108
  const INDUSTRIES = 'industries';
 
109
  const INSTAGRAM_POSITIONS = 'instagram_positions';
 
110
  const INSTREAM_VIDEO_SPONSORSHIP_PLACEMENTS = 'instream_video_sponsorship_placements';
111
  const INTEREST_DEFAULTS_SOURCE = 'interest_defaults_source';
112
  const INTERESTED_IN = 'interested_in';
@@ -139,6 +141,7 @@ class AdAccountTargetingUnifiedWhitelistedTypesValues extends AbstractEnum {
139
  const RTB_FLAG = 'rtb_flag';
140
  const SITE_CATEGORY = 'site_category';
141
  const TARGETING_OPTIMIZATION = 'targeting_optimization';
 
142
  const TIMEZONES = 'timezones';
143
  const TOPIC = 'topic';
144
  const TRENDING = 'trending';
106
  const ID = 'id';
107
  const INCOME = 'income';
108
  const INDUSTRIES = 'industries';
109
+ const INSTAGRAM_HASHTAGS = 'instagram_hashtags';
110
  const INSTAGRAM_POSITIONS = 'instagram_positions';
111
+ const INSTREAM_VIDEO_SKIPPABLE_EXCLUDED = 'instream_video_skippable_excluded';
112
  const INSTREAM_VIDEO_SPONSORSHIP_PLACEMENTS = 'instream_video_sponsorship_placements';
113
  const INTEREST_DEFAULTS_SOURCE = 'interest_defaults_source';
114
  const INTERESTED_IN = 'interested_in';
141
  const RTB_FLAG = 'rtb_flag';
142
  const SITE_CATEGORY = 'site_category';
143
  const TARGETING_OPTIMIZATION = 'targeting_optimization';
144
+ const TARGETING_RELAXATION_TYPES = 'targeting_relaxation_types';
145
  const TIMEZONES = 'timezones';
146
  const TOPIC = 'topic';
147
  const TRENDING = 'trending';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdActivityEventTypeValues.php CHANGED
@@ -92,15 +92,18 @@ class AdActivityEventTypeValues extends AbstractEnum {
92
  const UPDATE_AD_SET_BIDDING = 'update_ad_set_bidding';
93
  const UPDATE_AD_SET_BUDGET = 'update_ad_set_budget';
94
  const UPDATE_AD_SET_DURATION = 'update_ad_set_duration';
 
95
  const UPDATE_AD_SET_NAME = 'update_ad_set_name';
96
  const UPDATE_AD_SET_OPTIMIZATION_GOAL = 'update_ad_set_optimization_goal';
97
  const UPDATE_AD_SET_RUN_STATUS = 'update_ad_set_run_status';
 
98
  const UPDATE_AD_SET_TARGET_SPEC = 'update_ad_set_target_spec';
99
  const UPDATE_AD_TARGETS_SPEC = 'update_ad_targets_spec';
100
  const UPDATE_ADGROUP_STOP_DELIVERY = 'update_adgroup_stop_delivery';
101
  const UPDATE_AUDIENCE = 'update_audience';
102
  const UPDATE_CAMPAIGN_AD_SCHEDULING = 'update_campaign_ad_scheduling';
103
  const UPDATE_CAMPAIGN_BUDGET = 'update_campaign_budget';
 
104
  const UPDATE_CAMPAIGN_DELIVERY_TYPE = 'update_campaign_delivery_type';
105
  const UPDATE_CAMPAIGN_DURATION = 'update_campaign_duration';
106
  const UPDATE_CAMPAIGN_GROUP_AD_SCHEDULING = 'update_campaign_group_ad_scheduling';
92
  const UPDATE_AD_SET_BIDDING = 'update_ad_set_bidding';
93
  const UPDATE_AD_SET_BUDGET = 'update_ad_set_budget';
94
  const UPDATE_AD_SET_DURATION = 'update_ad_set_duration';
95
+ const UPDATE_AD_SET_MIN_SPEND_TARGET = 'update_ad_set_min_spend_target';
96
  const UPDATE_AD_SET_NAME = 'update_ad_set_name';
97
  const UPDATE_AD_SET_OPTIMIZATION_GOAL = 'update_ad_set_optimization_goal';
98
  const UPDATE_AD_SET_RUN_STATUS = 'update_ad_set_run_status';
99
+ const UPDATE_AD_SET_SPEND_CAP = 'update_ad_set_spend_cap';
100
  const UPDATE_AD_SET_TARGET_SPEC = 'update_ad_set_target_spec';
101
  const UPDATE_AD_TARGETS_SPEC = 'update_ad_targets_spec';
102
  const UPDATE_ADGROUP_STOP_DELIVERY = 'update_adgroup_stop_delivery';
103
  const UPDATE_AUDIENCE = 'update_audience';
104
  const UPDATE_CAMPAIGN_AD_SCHEDULING = 'update_campaign_ad_scheduling';
105
  const UPDATE_CAMPAIGN_BUDGET = 'update_campaign_budget';
106
+ const UPDATE_CAMPAIGN_BUDGET_OPTIMIZATION_TOGGLING_STATUS = 'update_campaign_budget_optimization_toggling_status';
107
  const UPDATE_CAMPAIGN_DELIVERY_TYPE = 'update_campaign_delivery_type';
108
  const UPDATE_CAMPAIGN_DURATION = 'update_campaign_duration';
109
  const UPDATE_CAMPAIGN_GROUP_AD_SCHEDULING = 'update_campaign_group_ad_scheduling';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php CHANGED
@@ -54,6 +54,8 @@ class AdAssetFeedSpecCallToActionTypesValues extends AbstractEnum {
54
  const FIND_A_GROUP = 'FIND_A_GROUP';
55
  const FIND_YOUR_GROUPS = 'FIND_YOUR_GROUPS';
56
  const FOLLOW_NEWS_STORYLINE = 'FOLLOW_NEWS_STORYLINE';
 
 
57
  const GET_DIRECTIONS = 'GET_DIRECTIONS';
58
  const GET_OFFER = 'GET_OFFER';
59
  const GET_OFFER_VIEW = 'GET_OFFER_VIEW';
@@ -71,8 +73,11 @@ class AdAssetFeedSpecCallToActionTypesValues extends AbstractEnum {
71
  const NO_BUTTON = 'NO_BUTTON';
72
  const OPEN_LINK = 'OPEN_LINK';
73
  const ORDER_NOW = 'ORDER_NOW';
 
74
  const PLAY_GAME = 'PLAY_GAME';
 
75
  const RECORD_NOW = 'RECORD_NOW';
 
76
  const SAY_THANKS = 'SAY_THANKS';
77
  const SEE_MORE = 'SEE_MORE';
78
  const SELL_NOW = 'SELL_NOW';
54
  const FIND_A_GROUP = 'FIND_A_GROUP';
55
  const FIND_YOUR_GROUPS = 'FIND_YOUR_GROUPS';
56
  const FOLLOW_NEWS_STORYLINE = 'FOLLOW_NEWS_STORYLINE';
57
+ const FOLLOW_PAGE = 'FOLLOW_PAGE';
58
+ const FOLLOW_USER = 'FOLLOW_USER';
59
  const GET_DIRECTIONS = 'GET_DIRECTIONS';
60
  const GET_OFFER = 'GET_OFFER';
61
  const GET_OFFER_VIEW = 'GET_OFFER_VIEW';
73
  const NO_BUTTON = 'NO_BUTTON';
74
  const OPEN_LINK = 'OPEN_LINK';
75
  const ORDER_NOW = 'ORDER_NOW';
76
+ const PAY_TO_ACCESS = 'PAY_TO_ACCESS';
77
  const PLAY_GAME = 'PLAY_GAME';
78
+ const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
79
  const RECORD_NOW = 'RECORD_NOW';
80
+ const REQUEST_TIME = 'REQUEST_TIME';
81
  const SAY_THANKS = 'SAY_THANKS';
82
  const SEE_MORE = 'SEE_MORE';
83
  const SELL_NOW = 'SELL_NOW';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityBidStrategyNewValues.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class AdCampaignActivityBidStrategyNewValues extends AbstractEnum {
39
 
 
40
  const LOWEST_COST_WITHOUT_CAP = 'LOWEST_COST_WITHOUT_CAP';
41
  const LOWEST_COST_WITH_BID_CAP = 'LOWEST_COST_WITH_BID_CAP';
42
  const TARGET_COST = 'TARGET_COST';
37
  */
38
  class AdCampaignActivityBidStrategyNewValues extends AbstractEnum {
39
 
40
+ const COST_CAP = 'COST_CAP';
41
  const LOWEST_COST_WITHOUT_CAP = 'LOWEST_COST_WITHOUT_CAP';
42
  const LOWEST_COST_WITH_BID_CAP = 'LOWEST_COST_WITH_BID_CAP';
43
  const TARGET_COST = 'TARGET_COST';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityBidStrategyOldValues.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class AdCampaignActivityBidStrategyOldValues extends AbstractEnum {
39
 
 
40
  const LOWEST_COST_WITHOUT_CAP = 'LOWEST_COST_WITHOUT_CAP';
41
  const LOWEST_COST_WITH_BID_CAP = 'LOWEST_COST_WITH_BID_CAP';
42
  const TARGET_COST = 'TARGET_COST';
37
  */
38
  class AdCampaignActivityBidStrategyOldValues extends AbstractEnum {
39
 
40
+ const COST_CAP = 'COST_CAP';
41
  const LOWEST_COST_WITHOUT_CAP = 'LOWEST_COST_WITHOUT_CAP';
42
  const LOWEST_COST_WITH_BID_CAP = 'LOWEST_COST_WITH_BID_CAP';
43
  const TARGET_COST = 'TARGET_COST';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityOptimizationGoalNewValues.php CHANGED
@@ -61,4 +61,5 @@ class AdCampaignActivityOptimizationGoalNewValues extends AbstractEnum {
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
 
64
  }
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
64
+ const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
65
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityOptimizationGoalOldValues.php CHANGED
@@ -61,4 +61,5 @@ class AdCampaignActivityOptimizationGoalOldValues extends AbstractEnum {
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
 
64
  }
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
64
+ const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
65
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignDeliveryEstimateOptimizationGoalValues.php CHANGED
@@ -61,4 +61,5 @@ class AdCampaignDeliveryEstimateOptimizationGoalValues extends AbstractEnum {
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
 
64
  }
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
64
+ const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
65
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php CHANGED
@@ -54,6 +54,8 @@ class AdCreativeCallToActionTypeValues extends AbstractEnum {
54
  const FIND_A_GROUP = 'FIND_A_GROUP';
55
  const FIND_YOUR_GROUPS = 'FIND_YOUR_GROUPS';
56
  const FOLLOW_NEWS_STORYLINE = 'FOLLOW_NEWS_STORYLINE';
 
 
57
  const GET_DIRECTIONS = 'GET_DIRECTIONS';
58
  const GET_OFFER = 'GET_OFFER';
59
  const GET_OFFER_VIEW = 'GET_OFFER_VIEW';
@@ -71,8 +73,11 @@ class AdCreativeCallToActionTypeValues extends AbstractEnum {
71
  const NO_BUTTON = 'NO_BUTTON';
72
  const OPEN_LINK = 'OPEN_LINK';
73
  const ORDER_NOW = 'ORDER_NOW';
 
74
  const PLAY_GAME = 'PLAY_GAME';
 
75
  const RECORD_NOW = 'RECORD_NOW';
 
76
  const SAY_THANKS = 'SAY_THANKS';
77
  const SEE_MORE = 'SEE_MORE';
78
  const SELL_NOW = 'SELL_NOW';
54
  const FIND_A_GROUP = 'FIND_A_GROUP';
55
  const FIND_YOUR_GROUPS = 'FIND_YOUR_GROUPS';
56
  const FOLLOW_NEWS_STORYLINE = 'FOLLOW_NEWS_STORYLINE';
57
+ const FOLLOW_PAGE = 'FOLLOW_PAGE';
58
+ const FOLLOW_USER = 'FOLLOW_USER';
59
  const GET_DIRECTIONS = 'GET_DIRECTIONS';
60
  const GET_OFFER = 'GET_OFFER';
61
  const GET_OFFER_VIEW = 'GET_OFFER_VIEW';
73
  const NO_BUTTON = 'NO_BUTTON';
74
  const OPEN_LINK = 'OPEN_LINK';
75
  const ORDER_NOW = 'ORDER_NOW';
76
+ const PAY_TO_ACCESS = 'PAY_TO_ACCESS';
77
  const PLAY_GAME = 'PLAY_GAME';
78
+ const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
79
  const RECORD_NOW = 'RECORD_NOW';
80
+ const REQUEST_TIME = 'REQUEST_TIME';
81
  const SAY_THANKS = 'SAY_THANKS';
82
  const SEE_MORE = 'SEE_MORE';
83
  const SELL_NOW = 'SELL_NOW';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PostWithValues.php → AdCreativeInstantCheckoutSettingValues.php} RENAMED
@@ -33,9 +33,10 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static PostWithValues getInstance()
37
  */
38
- class PostWithValues extends AbstractEnum {
39
 
40
- const LOCATION = 'LOCATION';
 
41
  }
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static AdCreativeInstantCheckoutSettingValues getInstance()
37
  */
38
+ class AdCreativeInstantCheckoutSettingValues extends AbstractEnum {
39
 
40
+ const OFF = 'off';
41
+ const ON = 'on';
42
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php CHANGED
@@ -54,6 +54,8 @@ class AdCreativeLinkDataCallToActionTypeValues extends AbstractEnum {
54
  const FIND_A_GROUP = 'FIND_A_GROUP';
55
  const FIND_YOUR_GROUPS = 'FIND_YOUR_GROUPS';
56
  const FOLLOW_NEWS_STORYLINE = 'FOLLOW_NEWS_STORYLINE';
 
 
57
  const GET_DIRECTIONS = 'GET_DIRECTIONS';
58
  const GET_OFFER = 'GET_OFFER';
59
  const GET_OFFER_VIEW = 'GET_OFFER_VIEW';
@@ -71,8 +73,11 @@ class AdCreativeLinkDataCallToActionTypeValues extends AbstractEnum {
71
  const NO_BUTTON = 'NO_BUTTON';
72
  const OPEN_LINK = 'OPEN_LINK';
73
  const ORDER_NOW = 'ORDER_NOW';
 
74
  const PLAY_GAME = 'PLAY_GAME';
 
75
  const RECORD_NOW = 'RECORD_NOW';
 
76
  const SAY_THANKS = 'SAY_THANKS';
77
  const SEE_MORE = 'SEE_MORE';
78
  const SELL_NOW = 'SELL_NOW';
54
  const FIND_A_GROUP = 'FIND_A_GROUP';
55
  const FIND_YOUR_GROUPS = 'FIND_YOUR_GROUPS';
56
  const FOLLOW_NEWS_STORYLINE = 'FOLLOW_NEWS_STORYLINE';
57
+ const FOLLOW_PAGE = 'FOLLOW_PAGE';
58
+ const FOLLOW_USER = 'FOLLOW_USER';
59
  const GET_DIRECTIONS = 'GET_DIRECTIONS';
60
  const GET_OFFER = 'GET_OFFER';
61
  const GET_OFFER_VIEW = 'GET_OFFER_VIEW';
73
  const NO_BUTTON = 'NO_BUTTON';
74
  const OPEN_LINK = 'OPEN_LINK';
75
  const ORDER_NOW = 'ORDER_NOW';
76
+ const PAY_TO_ACCESS = 'PAY_TO_ACCESS';
77
  const PLAY_GAME = 'PLAY_GAME';
78
+ const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
79
  const RECORD_NOW = 'RECORD_NOW';
80
+ const REQUEST_TIME = 'REQUEST_TIME';
81
  const SAY_THANKS = 'SAY_THANKS';
82
  const SEE_MORE = 'SEE_MORE';
83
  const SELL_NOW = 'SELL_NOW';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdNetworkAnalyticsSyncQueryResultBreakdownsValues.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class AdNetworkAnalyticsSyncQueryResultBreakdownsValues extends AbstractEnum {
39
 
 
40
  const AD_SPACE = 'AD_SPACE';
41
  const AGE = 'AGE';
42
  const APP = 'APP';
@@ -49,6 +50,8 @@ class AdNetworkAnalyticsSyncQueryResultBreakdownsValues extends AbstractEnum {
49
  const DISPLAY_FORMAT = 'DISPLAY_FORMAT';
50
  const FAIL_REASON = 'FAIL_REASON';
51
  const GENDER = 'GENDER';
 
 
52
  const PLACEMENT = 'PLACEMENT';
53
  const PLACEMENT_NAME = 'PLACEMENT_NAME';
54
  const PLATFORM = 'PLATFORM';
37
  */
38
  class AdNetworkAnalyticsSyncQueryResultBreakdownsValues extends AbstractEnum {
39
 
40
+ const AD_SERVER_CAMPAIGN_ID = 'AD_SERVER_CAMPAIGN_ID';
41
  const AD_SPACE = 'AD_SPACE';
42
  const AGE = 'AGE';
43
  const APP = 'APP';
50
  const DISPLAY_FORMAT = 'DISPLAY_FORMAT';
51
  const FAIL_REASON = 'FAIL_REASON';
52
  const GENDER = 'GENDER';
53
+ const INSTANT_ARTICLE_ID = 'INSTANT_ARTICLE_ID';
54
+ const INSTANT_ARTICLE_PAGE_ID = 'INSTANT_ARTICLE_PAGE_ID';
55
  const PLACEMENT = 'PLACEMENT';
56
  const PLACEMENT_NAME = 'PLACEMENT_NAME';
57
  const PLATFORM = 'PLATFORM';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php CHANGED
@@ -50,6 +50,7 @@ class AdPreviewAdFormatValues extends AbstractEnum {
50
  const INSTANT_ARTICLE_RECIRCULATION_AD = 'INSTANT_ARTICLE_RECIRCULATION_AD';
51
  const INSTANT_ARTICLE_STANDARD = 'INSTANT_ARTICLE_STANDARD';
52
  const INSTREAM_VIDEO_DESKTOP = 'INSTREAM_VIDEO_DESKTOP';
 
53
  const INSTREAM_VIDEO_MOBILE = 'INSTREAM_VIDEO_MOBILE';
54
  const JOB_BROWSER_DESKTOP = 'JOB_BROWSER_DESKTOP';
55
  const JOB_BROWSER_MOBILE = 'JOB_BROWSER_MOBILE';
@@ -66,5 +67,6 @@ class AdPreviewAdFormatValues extends AbstractEnum {
66
  const RIGHT_COLUMN_STANDARD = 'RIGHT_COLUMN_STANDARD';
67
  const SUGGESTED_VIDEO_DESKTOP = 'SUGGESTED_VIDEO_DESKTOP';
68
  const SUGGESTED_VIDEO_MOBILE = 'SUGGESTED_VIDEO_MOBILE';
 
69
  const WATCH_FEED_MOBILE = 'WATCH_FEED_MOBILE';
70
  }
50
  const INSTANT_ARTICLE_RECIRCULATION_AD = 'INSTANT_ARTICLE_RECIRCULATION_AD';
51
  const INSTANT_ARTICLE_STANDARD = 'INSTANT_ARTICLE_STANDARD';
52
  const INSTREAM_VIDEO_DESKTOP = 'INSTREAM_VIDEO_DESKTOP';
53
+ const INSTREAM_VIDEO_IMAGE = 'INSTREAM_VIDEO_IMAGE';
54
  const INSTREAM_VIDEO_MOBILE = 'INSTREAM_VIDEO_MOBILE';
55
  const JOB_BROWSER_DESKTOP = 'JOB_BROWSER_DESKTOP';
56
  const JOB_BROWSER_MOBILE = 'JOB_BROWSER_MOBILE';
67
  const RIGHT_COLUMN_STANDARD = 'RIGHT_COLUMN_STANDARD';
68
  const SUGGESTED_VIDEO_DESKTOP = 'SUGGESTED_VIDEO_DESKTOP';
69
  const SUGGESTED_VIDEO_MOBILE = 'SUGGESTED_VIDEO_MOBILE';
70
+ const WATCH_FEED_HOME = 'WATCH_FEED_HOME';
71
  const WATCH_FEED_MOBILE = 'WATCH_FEED_MOBILE';
72
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdSetBidStrategyValues.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class AdSetBidStrategyValues extends AbstractEnum {
39
 
 
40
  const LOWEST_COST_WITHOUT_CAP = 'LOWEST_COST_WITHOUT_CAP';
41
  const LOWEST_COST_WITH_BID_CAP = 'LOWEST_COST_WITH_BID_CAP';
42
  const TARGET_COST = 'TARGET_COST';
37
  */
38
  class AdSetBidStrategyValues extends AbstractEnum {
39
 
40
+ const COST_CAP = 'COST_CAP';
41
  const LOWEST_COST_WITHOUT_CAP = 'LOWEST_COST_WITHOUT_CAP';
42
  const LOWEST_COST_WITH_BID_CAP = 'LOWEST_COST_WITH_BID_CAP';
43
  const TARGET_COST = 'TARGET_COST';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{AdVideoVideoPollWwwPlacementValues.php → AdSetMultiOptimizationGoalWeightValues.php} RENAMED
@@ -33,12 +33,12 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static AdVideoVideoPollWwwPlacementValues getInstance()
37
  */
38
- class AdVideoVideoPollWwwPlacementValues extends AbstractEnum {
39
 
40
- const BOTTOM_LEFT = 'BOTTOM_LEFT';
41
- const BOTTOM_RIGHT = 'BOTTOM_RIGHT';
42
- const TOP_LEFT = 'TOP_LEFT';
43
- const TOP_RIGHT = 'TOP_RIGHT';
44
  }
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static AdSetMultiOptimizationGoalWeightValues getInstance()
37
  */
38
+ class AdSetMultiOptimizationGoalWeightValues extends AbstractEnum {
39
 
40
+ const BALANCED = 'BALANCED';
41
+ const PREFER_EVENT = 'PREFER_EVENT';
42
+ const PREFER_INSTALL = 'PREFER_INSTALL';
43
+ const UNDEFINED = 'UNDEFINED';
44
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdSetOptimizationGoalValues.php CHANGED
@@ -61,4 +61,5 @@ class AdSetOptimizationGoalValues extends AbstractEnum {
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
 
64
  }
61
  const THRUPLAY = 'THRUPLAY';
62
  const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
63
  const VALUE = 'VALUE';
64
+ const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
65
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdStudyTypeValues.php CHANGED
@@ -38,6 +38,7 @@ use FacebookAds\Enum\AbstractEnum;
38
  class AdStudyTypeValues extends AbstractEnum {
39
 
40
  const CONTINUOUS_LIFT_CONFIG = 'CONTINUOUS_LIFT_CONFIG';
 
41
  const LIFT = 'LIFT';
42
  const SPLIT_TEST = 'SPLIT_TEST';
43
  }
38
  class AdStudyTypeValues extends AbstractEnum {
39
 
40
  const CONTINUOUS_LIFT_CONFIG = 'CONTINUOUS_LIFT_CONFIG';
41
+ const GEO_LIFT = 'GEO_LIFT';
42
  const LIFT = 'LIFT';
43
  const SPLIT_TEST = 'SPLIT_TEST';
44
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php CHANGED
@@ -72,6 +72,7 @@ class AdVideoContainerTypeValues extends AbstractEnum {
72
  const EVENT_COVER_VIDEO = 'EVENT_COVER_VIDEO';
73
  const EVENT_TOUR = 'EVENT_TOUR';
74
  const FACECAST_DVR = 'FACECAST_DVR';
 
75
  const FUNDRAISER_COVER_VIDEO = 'FUNDRAISER_COVER_VIDEO';
76
  const GAME_CLIP = 'GAME_CLIP';
77
  const GAMING_UPDATE_VIDEO = 'GAMING_UPDATE_VIDEO';
@@ -102,6 +103,7 @@ class AdVideoContainerTypeValues extends AbstractEnum {
102
  const LIVE_PHOTO = 'LIVE_PHOTO';
103
  const LOOK_NOW_DEPRECATED = 'LOOK_NOW_DEPRECATED';
104
  const MARKETPLACE_LISTING_VIDEO = 'MARKETPLACE_LISTING_VIDEO';
 
105
  const MOMENTS_VIDEO = 'MOMENTS_VIDEO';
106
  const NEO_ASYNC_GAME_VIDEO = 'NEO_ASYNC_GAME_VIDEO';
107
  const NO_STORY = 'NO_STORY';
@@ -129,6 +131,7 @@ class AdVideoContainerTypeValues extends AbstractEnum {
129
  const SLIDESHOW_SHAKR = 'SLIDESHOW_SHAKR';
130
  const SLIDESHOW_VARIATION_VIDEO = 'SLIDESHOW_VARIATION_VIDEO';
131
  const SOTTO_CONTENT = 'SOTTO_CONTENT';
 
132
  const STORIES_VIDEO = 'STORIES_VIDEO';
133
  const STORYLINE = 'STORYLINE';
134
  const STORYLINE_WITH_EXTERNAL_MUSIC = 'STORYLINE_WITH_EXTERNAL_MUSIC';
72
  const EVENT_COVER_VIDEO = 'EVENT_COVER_VIDEO';
73
  const EVENT_TOUR = 'EVENT_TOUR';
74
  const FACECAST_DVR = 'FACECAST_DVR';
75
+ const FB_SHORTS = 'FB_SHORTS';
76
  const FUNDRAISER_COVER_VIDEO = 'FUNDRAISER_COVER_VIDEO';
77
  const GAME_CLIP = 'GAME_CLIP';
78
  const GAMING_UPDATE_VIDEO = 'GAMING_UPDATE_VIDEO';
103
  const LIVE_PHOTO = 'LIVE_PHOTO';
104
  const LOOK_NOW_DEPRECATED = 'LOOK_NOW_DEPRECATED';
105
  const MARKETPLACE_LISTING_VIDEO = 'MARKETPLACE_LISTING_VIDEO';
106
+ const MARKETPLACE_PRE_RECORDED_VIDEO = 'MARKETPLACE_PRE_RECORDED_VIDEO';
107
  const MOMENTS_VIDEO = 'MOMENTS_VIDEO';
108
  const NEO_ASYNC_GAME_VIDEO = 'NEO_ASYNC_GAME_VIDEO';
109
  const NO_STORY = 'NO_STORY';
131
  const SLIDESHOW_SHAKR = 'SLIDESHOW_SHAKR';
132
  const SLIDESHOW_VARIATION_VIDEO = 'SLIDESHOW_VARIATION_VIDEO';
133
  const SOTTO_CONTENT = 'SOTTO_CONTENT';
134
+ const SOUND_PLATFORM_STREAM = 'SOUND_PLATFORM_STREAM';
135
  const STORIES_VIDEO = 'STORIES_VIDEO';
136
  const STORYLINE = 'STORYLINE';
137
  const STORYLINE_WITH_EXTERNAL_MUSIC = 'STORYLINE_WITH_EXTERNAL_MUSIC';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoValidationAdPlacementsValues.php CHANGED
@@ -46,6 +46,7 @@ class AdVideoValidationAdPlacementsValues extends AbstractEnum {
46
  const INSTAGRAM_STORY = 'INSTAGRAM_STORY';
47
  const INSTANT_ARTICLE_STANDARD = 'INSTANT_ARTICLE_STANDARD';
48
  const INSTREAM_VIDEO_DESKTOP = 'INSTREAM_VIDEO_DESKTOP';
 
49
  const INSTREAM_VIDEO_MOBILE = 'INSTREAM_VIDEO_MOBILE';
50
  const MESSENGER_MOBILE_INBOX_MEDIA = 'MESSENGER_MOBILE_INBOX_MEDIA';
51
  const MESSENGER_MOBILE_STORY_MEDIA = 'MESSENGER_MOBILE_STORY_MEDIA';
46
  const INSTAGRAM_STORY = 'INSTAGRAM_STORY';
47
  const INSTANT_ARTICLE_STANDARD = 'INSTANT_ARTICLE_STANDARD';
48
  const INSTREAM_VIDEO_DESKTOP = 'INSTREAM_VIDEO_DESKTOP';
49
+ const INSTREAM_VIDEO_IMAGE = 'INSTREAM_VIDEO_IMAGE';
50
  const INSTREAM_VIDEO_MOBILE = 'INSTREAM_VIDEO_MOBILE';
51
  const MESSENGER_MOBILE_INBOX_MEDIA = 'MESSENGER_MOBILE_INBOX_MEDIA';
52
  const MESSENGER_MOBILE_STORY_MEDIA = 'MESSENGER_MOBILE_STORY_MEDIA';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php CHANGED
@@ -43,5 +43,6 @@ class AdsInsightsActionAttributionWindowsValues extends AbstractEnum {
43
  const VALUE_28D_VIEW = '28d_view';
44
  const VALUE_7D_CLICK = '7d_click';
45
  const VALUE_7D_VIEW = '7d_view';
 
46
  const VALUE_DEFAULT = 'default';
47
  }
43
  const VALUE_28D_VIEW = '28d_view';
44
  const VALUE_7D_CLICK = '7d_click';
45
  const VALUE_7D_VIEW = '7d_view';
46
+ const DDA = 'dda';
47
  const VALUE_DEFAULT = 'default';
48
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAgreementRequestStatusValues.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static BusinessAgreementRequestStatusValues getInstance()
37
+ */
38
+ class BusinessAgreementRequestStatusValues extends AbstractEnum {
39
+
40
+ const APPROVE = 'APPROVE';
41
+ const DECLINE = 'DECLINE';
42
+ const EXPIRED = 'EXPIRED';
43
+ const IN_PROGRESS = 'IN_PROGRESS';
44
+ const PENDING = 'PENDING';
45
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupPageTasksValues.php CHANGED
@@ -39,6 +39,7 @@ class BusinessAssetGroupPageTasksValues extends AbstractEnum {
39
 
40
  const ADVERTISE = 'ADVERTISE';
41
  const ANALYZE = 'ANALYZE';
 
42
  const CREATE_CONTENT = 'CREATE_CONTENT';
43
  const MANAGE = 'MANAGE';
44
  const MANAGE_JOBS = 'MANAGE_JOBS';
@@ -47,9 +48,12 @@ class BusinessAssetGroupPageTasksValues extends AbstractEnum {
47
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
48
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
49
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
50
- const PLATFORM_MANAGE_PAGES = 'PLATFORM_MANAGE_PAGES';
51
- const PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES = 'PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES';
52
- const PLATFORM_READ_INSIGHTS = 'PLATFORM_READ_INSIGHTS';
 
 
 
53
  const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
54
  const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
55
  }
39
 
40
  const ADVERTISE = 'ADVERTISE';
41
  const ANALYZE = 'ANALYZE';
42
+ const CASHIER_ROLE = 'CASHIER_ROLE';
43
  const CREATE_CONTENT = 'CREATE_CONTENT';
44
  const MANAGE = 'MANAGE';
45
  const MANAGE_JOBS = 'MANAGE_JOBS';
48
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
49
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
50
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
51
+ const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
52
+ const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
53
+ const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
54
+ const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
55
+ const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
56
+ const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
57
  const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
58
  const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
59
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetSharingAgreementRequestStatusValues.php CHANGED
@@ -41,4 +41,5 @@ class BusinessAssetSharingAgreementRequestStatusValues extends AbstractEnum {
41
  const DECLINE = 'DECLINE';
42
  const EXPIRED = 'EXPIRED';
43
  const IN_PROGRESS = 'IN_PROGRESS';
 
44
  }
41
  const DECLINE = 'DECLINE';
42
  const EXPIRED = 'EXPIRED';
43
  const IN_PROGRESS = 'IN_PROGRESS';
44
+ const PENDING = 'PENDING';
45
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessCreativeFolderSharingAgreementRequestStatusValues.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static BusinessCreativeFolderSharingAgreementRequestStatusValues getInstance()
37
+ */
38
+ class BusinessCreativeFolderSharingAgreementRequestStatusValues extends AbstractEnum {
39
+
40
+ const APPROVE = 'APPROVE';
41
+ const DECLINE = 'DECLINE';
42
+ const EXPIRED = 'EXPIRED';
43
+ const IN_PROGRESS = 'IN_PROGRESS';
44
+ const PENDING = 'PENDING';
45
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessImageValidationAdPlacementsValues.php CHANGED
@@ -46,6 +46,7 @@ class BusinessImageValidationAdPlacementsValues extends AbstractEnum {
46
  const INSTAGRAM_STORY = 'INSTAGRAM_STORY';
47
  const INSTANT_ARTICLE_STANDARD = 'INSTANT_ARTICLE_STANDARD';
48
  const INSTREAM_VIDEO_DESKTOP = 'INSTREAM_VIDEO_DESKTOP';
 
49
  const INSTREAM_VIDEO_MOBILE = 'INSTREAM_VIDEO_MOBILE';
50
  const MESSENGER_MOBILE_INBOX_MEDIA = 'MESSENGER_MOBILE_INBOX_MEDIA';
51
  const MESSENGER_MOBILE_STORY_MEDIA = 'MESSENGER_MOBILE_STORY_MEDIA';
46
  const INSTAGRAM_STORY = 'INSTAGRAM_STORY';
47
  const INSTANT_ARTICLE_STANDARD = 'INSTANT_ARTICLE_STANDARD';
48
  const INSTREAM_VIDEO_DESKTOP = 'INSTREAM_VIDEO_DESKTOP';
49
+ const INSTREAM_VIDEO_IMAGE = 'INSTREAM_VIDEO_IMAGE';
50
  const INSTREAM_VIDEO_MOBILE = 'INSTREAM_VIDEO_MOBILE';
51
  const MESSENGER_MOBILE_INBOX_MEDIA = 'MESSENGER_MOBILE_INBOX_MEDIA';
52
  const MESSENGER_MOBILE_STORY_MEDIA = 'MESSENGER_MOBILE_STORY_MEDIA';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessOwnedObjectOnBehalfOfRequestStatusValues.php CHANGED
@@ -41,4 +41,5 @@ class BusinessOwnedObjectOnBehalfOfRequestStatusValues extends AbstractEnum {
41
  const DECLINE = 'DECLINE';
42
  const EXPIRED = 'EXPIRED';
43
  const IN_PROGRESS = 'IN_PROGRESS';
 
44
  }
41
  const DECLINE = 'DECLINE';
42
  const EXPIRED = 'EXPIRED';
43
  const IN_PROGRESS = 'IN_PROGRESS';
44
+ const PENDING = 'PENDING';
45
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessPagePermittedTasksValues.php CHANGED
@@ -39,6 +39,7 @@ class BusinessPagePermittedTasksValues extends AbstractEnum {
39
 
40
  const ADVERTISE = 'ADVERTISE';
41
  const ANALYZE = 'ANALYZE';
 
42
  const CREATE_CONTENT = 'CREATE_CONTENT';
43
  const MANAGE = 'MANAGE';
44
  const MANAGE_JOBS = 'MANAGE_JOBS';
@@ -47,9 +48,12 @@ class BusinessPagePermittedTasksValues extends AbstractEnum {
47
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
48
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
49
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
50
- const PLATFORM_MANAGE_PAGES = 'PLATFORM_MANAGE_PAGES';
51
- const PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES = 'PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES';
52
- const PLATFORM_READ_INSIGHTS = 'PLATFORM_READ_INSIGHTS';
 
 
 
53
  const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
54
  const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
55
  }
39
 
40
  const ADVERTISE = 'ADVERTISE';
41
  const ANALYZE = 'ANALYZE';
42
+ const CASHIER_ROLE = 'CASHIER_ROLE';
43
  const CREATE_CONTENT = 'CREATE_CONTENT';
44
  const MANAGE = 'MANAGE';
45
  const MANAGE_JOBS = 'MANAGE_JOBS';
48
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
49
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
50
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
51
+ const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
52
+ const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
53
+ const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
54
+ const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
55
+ const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
56
+ const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
57
  const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
58
  const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
59
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessRoleRequestRoleValues.php CHANGED
@@ -39,6 +39,7 @@ class BusinessRoleRequestRoleValues extends AbstractEnum {
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
 
42
  const EMPLOYEE = 'EMPLOYEE';
43
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
44
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
42
+ const DEVELOPER = 'DEVELOPER';
43
  const EMPLOYEE = 'EMPLOYEE';
44
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
45
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessUserRoleValues.php CHANGED
@@ -39,6 +39,7 @@ class BusinessUserRoleValues extends AbstractEnum {
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
 
42
  const EMPLOYEE = 'EMPLOYEE';
43
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
44
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
42
+ const DEVELOPER = 'DEVELOPER';
43
  const EMPLOYEE = 'EMPLOYEE';
44
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
45
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CPASParentCatalogSettingsAttributionWindowsValues.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class CPASParentCatalogSettingsAttributionWindowsValues extends AbstractEnum {
39
 
 
40
  const VALUE_DEFAULT = 'DEFAULT';
41
  const X1D_CLICK = 'X1D_CLICK';
42
  const X1D_VIEW = 'X1D_VIEW';
37
  */
38
  class CPASParentCatalogSettingsAttributionWindowsValues extends AbstractEnum {
39
 
40
+ const DDA = 'DDA';
41
  const VALUE_DEFAULT = 'DEFAULT';
42
  const X1D_CLICK = 'X1D_CLICK';
43
  const X1D_VIEW = 'X1D_VIEW';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignBidStrategyValues.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class CampaignBidStrategyValues extends AbstractEnum {
39
 
 
40
  const LOWEST_COST_WITHOUT_CAP = 'LOWEST_COST_WITHOUT_CAP';
41
  const LOWEST_COST_WITH_BID_CAP = 'LOWEST_COST_WITH_BID_CAP';
42
  const TARGET_COST = 'TARGET_COST';
37
  */
38
  class CampaignBidStrategyValues extends AbstractEnum {
39
 
40
+ const COST_CAP = 'COST_CAP';
41
  const LOWEST_COST_WITHOUT_CAP = 'LOWEST_COST_WITHOUT_CAP';
42
  const LOWEST_COST_WITH_BID_CAP = 'LOWEST_COST_WITH_BID_CAP';
43
  const TARGET_COST = 'TARGET_COST';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignObjectiveValues.php CHANGED
@@ -50,5 +50,6 @@ class CampaignObjectiveValues extends AbstractEnum {
50
  const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
51
  const PRODUCT_CATALOG_SALES = 'PRODUCT_CATALOG_SALES';
52
  const REACH = 'REACH';
 
53
  const VIDEO_VIEWS = 'VIDEO_VIEWS';
54
  }
50
  const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
51
  const PRODUCT_CATALOG_SALES = 'PRODUCT_CATALOG_SALES';
52
  const REACH = 'REACH';
53
+ const STORE_VISITS = 'STORE_VISITS';
54
  const VIDEO_VIEWS = 'VIDEO_VIEWS';
55
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignSpecialAdCategoriesValues.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static CampaignSpecialAdCategoriesValues getInstance()
37
+ */
38
+ class CampaignSpecialAdCategoriesValues extends AbstractEnum {
39
+
40
+ const CREDIT = 'CREDIT';
41
+ const EMPLOYMENT = 'EMPLOYMENT';
42
+ const HOUSING = 'HOUSING';
43
+ const NONE = 'NONE';
44
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MediaFingerprintFingerprintValidityValues.php → CommerceMerchantSettingsMerchantStatusValues.php} RENAMED
@@ -33,11 +33,10 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static MediaFingerprintFingerprintValidityValues getInstance()
37
  */
38
- class MediaFingerprintFingerprintValidityValues extends AbstractEnum {
39
 
40
- const EXPIRED = 'EXPIRED';
41
- const EXPIRING = 'EXPIRING';
42
- const VALID = 'VALID';
43
  }
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static CommerceMerchantSettingsMerchantStatusValues getInstance()
37
  */
38
+ class CommerceMerchantSettingsMerchantStatusValues extends AbstractEnum {
39
 
40
+ const ENABLED = 'ENABLED';
41
+ const EXTERNALLY_DISABLED = 'EXTERNALLY_DISABLED';
 
42
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CommerceOrderFiltersValues.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static CommerceOrderFiltersValues getInstance()
37
+ */
38
+ class CommerceOrderFiltersValues extends AbstractEnum {
39
+
40
+ const HAS_CANCELLATIONS = 'HAS_CANCELLATIONS';
41
+ const HAS_FULFILLMENTS = 'HAS_FULFILLMENTS';
42
+ const HAS_REFUNDS = 'HAS_REFUNDS';
43
+ const NO_CANCELLATIONS = 'NO_CANCELLATIONS';
44
+ const NO_REFUNDS = 'NO_REFUNDS';
45
+ const NO_SHIPMENTS = 'NO_SHIPMENTS';
46
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CommerceOrderReasonCodeValues.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static CommerceOrderReasonCodeValues getInstance()
37
+ */
38
+ class CommerceOrderReasonCodeValues extends AbstractEnum {
39
+
40
+ const BUYERS_REMORSE = 'BUYERS_REMORSE';
41
+ const DAMAGED_GOODS = 'DAMAGED_GOODS';
42
+ const NOT_AS_DESCRIBED = 'NOT_AS_DESCRIBED';
43
+ const QUALITY_ISSUE = 'QUALITY_ISSUE';
44
+ const REFUND_COMPROMISED = 'REFUND_COMPROMISED';
45
+ const REFUND_FOR_RETURN = 'REFUND_FOR_RETURN';
46
+ const REFUND_REASON_OTHER = 'REFUND_REASON_OTHER';
47
+ const REFUND_SFI_FAKE = 'REFUND_SFI_FAKE';
48
+ const REFUND_SFI_REAL = 'REFUND_SFI_REAL';
49
+ const WRONG_ITEM = 'WRONG_ITEM';
50
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CommerceOrderStateValues.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static CommerceOrderStateValues getInstance()
37
+ */
38
+ class CommerceOrderStateValues extends AbstractEnum {
39
+
40
+ const COMPLETED = 'COMPLETED';
41
+ const CREATED = 'CREATED';
42
+ const FB_PROCESSING = 'FB_PROCESSING';
43
+ const IN_PROGRESS = 'IN_PROGRESS';
44
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ContentDeliveryReportPlatformValues.php CHANGED
@@ -39,6 +39,7 @@ class ContentDeliveryReportPlatformValues extends AbstractEnum {
39
 
40
  const AUDIENCE_NETWORK = 'AUDIENCE_NETWORK';
41
  const FACEBOOK = 'FACEBOOK';
 
42
  const INSTAGRAM = 'INSTAGRAM';
43
  const MESSENGER = 'MESSENGER';
44
  const UNKNOWN = 'UNKNOWN';
39
 
40
  const AUDIENCE_NETWORK = 'AUDIENCE_NETWORK';
41
  const FACEBOOK = 'FACEBOOK';
42
+ const HIDDEN_AAA = 'HIDDEN_AAA';
43
  const INSTAGRAM = 'INSTAGRAM';
44
  const MESSENGER = 'MESSENGER';
45
  const UNKNOWN = 'UNKNOWN';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ContentDeliveryReportPositionValues.php CHANGED
@@ -43,10 +43,13 @@ class ContentDeliveryReportPositionValues extends AbstractEnum {
43
  const FACEBOOK_STORIES = 'FACEBOOK_STORIES';
44
  const FEED = 'FEED';
45
  const GROUPS = 'GROUPS';
 
46
  const INSTAGRAM_EXPLORE = 'INSTAGRAM_EXPLORE';
 
47
  const INSTAGRAM_STORIES = 'INSTAGRAM_STORIES';
48
  const INSTANT_ARTICLE = 'INSTANT_ARTICLE';
49
  const INSTREAM_VIDEO = 'INSTREAM_VIDEO';
 
50
  const MARKETPLACE = 'MARKETPLACE';
51
  const MESSENGER_INBOX = 'MESSENGER_INBOX';
52
  const MESSENGER_STORIES = 'MESSENGER_STORIES';
@@ -54,7 +57,6 @@ class ContentDeliveryReportPositionValues extends AbstractEnum {
54
  const REWARDED_VIDEO = 'REWARDED_VIDEO';
55
  const RIGHT_HAND_COLUMN = 'RIGHT_HAND_COLUMN';
56
  const SEARCH = 'SEARCH';
57
- const SEARCH_SERP = 'SEARCH_SERP';
58
  const STATUS = 'STATUS';
59
  const SUGGESTED_VIDEO = 'SUGGESTED_VIDEO';
60
  const UNKNOWN = 'UNKNOWN';
43
  const FACEBOOK_STORIES = 'FACEBOOK_STORIES';
44
  const FEED = 'FEED';
45
  const GROUPS = 'GROUPS';
46
+ const HIDDEN_AAA = 'HIDDEN_AAA';
47
  const INSTAGRAM_EXPLORE = 'INSTAGRAM_EXPLORE';
48
+ const INSTAGRAM_IGTV = 'INSTAGRAM_IGTV';
49
  const INSTAGRAM_STORIES = 'INSTAGRAM_STORIES';
50
  const INSTANT_ARTICLE = 'INSTANT_ARTICLE';
51
  const INSTREAM_VIDEO = 'INSTREAM_VIDEO';
52
+ const JOBS_BROWSER = 'JOBS_BROWSER';
53
  const MARKETPLACE = 'MARKETPLACE';
54
  const MESSENGER_INBOX = 'MESSENGER_INBOX';
55
  const MESSENGER_STORIES = 'MESSENGER_STORIES';
57
  const REWARDED_VIDEO = 'REWARDED_VIDEO';
58
  const RIGHT_HAND_COLUMN = 'RIGHT_HAND_COLUMN';
59
  const SEARCH = 'SEARCH';
 
60
  const STATUS = 'STATUS';
61
  const SUGGESTED_VIDEO = 'SUGGESTED_VIDEO';
62
  const UNKNOWN = 'UNKNOWN';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CustomAudienceContentTypeValues.php CHANGED
@@ -42,6 +42,8 @@ class CustomAudienceContentTypeValues extends AbstractEnum {
42
  const FLIGHT = 'FLIGHT';
43
  const HOME_LISTING = 'HOME_LISTING';
44
  const HOTEL = 'HOTEL';
 
 
45
  const MEDIA_TITLE = 'MEDIA_TITLE';
46
  const OFFLINE_PRODUCT = 'OFFLINE_PRODUCT';
47
  const PRODUCT = 'PRODUCT';
42
  const FLIGHT = 'FLIGHT';
43
  const HOME_LISTING = 'HOME_LISTING';
44
  const HOTEL = 'HOTEL';
45
+ const LOCAL_SERVICE_BUSINESS = 'LOCAL_SERVICE_BUSINESS';
46
+ const LOCATION_BASED_ITEM = 'LOCATION_BASED_ITEM';
47
  const MEDIA_TITLE = 'MEDIA_TITLE';
48
  const OFFLINE_PRODUCT = 'OFFLINE_PRODUCT';
49
  const PRODUCT = 'PRODUCT';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CustomConversionCustomEventTypeValues.php CHANGED
@@ -45,6 +45,7 @@ class CustomConversionCustomEventTypeValues extends AbstractEnum {
45
  const CONTENT_VIEW = 'CONTENT_VIEW';
46
  const CUSTOMIZE_PRODUCT = 'CUSTOMIZE_PRODUCT';
47
  const DONATE = 'DONATE';
 
48
  const FIND_LOCATION = 'FIND_LOCATION';
49
  const INITIATED_CHECKOUT = 'INITIATED_CHECKOUT';
50
  const LEAD = 'LEAD';
45
  const CONTENT_VIEW = 'CONTENT_VIEW';
46
  const CUSTOMIZE_PRODUCT = 'CUSTOMIZE_PRODUCT';
47
  const DONATE = 'DONATE';
48
+ const FACEBOOK_SELECTED = 'FACEBOOK_SELECTED';
49
  const FIND_LOCATION = 'FIND_LOCATION';
50
  const INITIATED_CHECKOUT = 'INITIATED_CHECKOUT';
51
  const LEAD = 'LEAD';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupGroupTypeValues.php CHANGED
@@ -43,6 +43,7 @@ class GroupGroupTypeValues extends AbstractEnum {
43
  const COUPLE = 'COUPLE';
44
  const COWORKERS = 'COWORKERS';
45
  const CUSTOM = 'CUSTOM';
 
46
  const EPHEMERAL = 'EPHEMERAL';
47
  const EVENT_PLANNING = 'EVENT_PLANNING';
48
  const FAMILY = 'FAMILY';
@@ -84,4 +85,5 @@ class GroupGroupTypeValues extends AbstractEnum {
84
  const WORK_SOCIAL = 'WORK_SOCIAL';
85
  const WORK_TEAM = 'WORK_TEAM';
86
  const WORK_TEAMWORK = 'WORK_TEAMWORK';
 
87
  }
43
  const COUPLE = 'COUPLE';
44
  const COWORKERS = 'COWORKERS';
45
  const CUSTOM = 'CUSTOM';
46
+ const DEALS = 'DEALS';
47
  const EPHEMERAL = 'EPHEMERAL';
48
  const EVENT_PLANNING = 'EVENT_PLANNING';
49
  const FAMILY = 'FAMILY';
85
  const WORK_SOCIAL = 'WORK_SOCIAL';
86
  const WORK_TEAM = 'WORK_TEAM';
87
  const WORK_TEAMWORK = 'WORK_TEAMWORK';
88
+ const WORK_VC_CALL = 'WORK_VC_CALL';
89
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupPurposeValues.php CHANGED
@@ -43,6 +43,7 @@ class GroupPurposeValues extends AbstractEnum {
43
  const COUPLE = 'COUPLE';
44
  const COWORKERS = 'COWORKERS';
45
  const CUSTOM = 'CUSTOM';
 
46
  const EPHEMERAL = 'EPHEMERAL';
47
  const EVENT_PLANNING = 'EVENT_PLANNING';
48
  const FAMILY = 'FAMILY';
@@ -84,4 +85,5 @@ class GroupPurposeValues extends AbstractEnum {
84
  const WORK_SOCIAL = 'WORK_SOCIAL';
85
  const WORK_TEAM = 'WORK_TEAM';
86
  const WORK_TEAMWORK = 'WORK_TEAMWORK';
 
87
  }
43
  const COUPLE = 'COUPLE';
44
  const COWORKERS = 'COWORKERS';
45
  const CUSTOM = 'CUSTOM';
46
+ const DEALS = 'DEALS';
47
  const EPHEMERAL = 'EPHEMERAL';
48
  const EVENT_PLANNING = 'EVENT_PLANNING';
49
  const FAMILY = 'FAMILY';
85
  const WORK_SOCIAL = 'WORK_SOCIAL';
86
  const WORK_TEAM = 'WORK_TEAM';
87
  const WORK_TEAMWORK = 'WORK_TEAMWORK';
88
+ const WORK_VC_CALL = 'WORK_VC_CALL';
89
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupSuggestionCategoryValues.php CHANGED
@@ -37,24 +37,10 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class GroupSuggestionCategoryValues extends AbstractEnum {
39
 
40
- const CLOSE_FRIENDS = 'CLOSE_FRIENDS';
41
- const CLOSE_FRIENDS_GENERIC = 'CLOSE_FRIENDS_GENERIC';
42
- const CURRENT_CITY = 'CURRENT_CITY';
43
  const EVENT = 'EVENT';
44
- const FAMILY = 'FAMILY';
45
- const FRIEND_LIST = 'FRIEND_LIST';
46
- const GAMES = 'GAMES';
47
- const LIFE_EVENT = 'LIFE_EVENT';
48
  const MESSENGER = 'MESSENGER';
49
- const MESSENGER_THREAD = 'MESSENGER_THREAD';
50
- const NEARBY_FRIENDS = 'NEARBY_FRIENDS';
51
- const PAGE_ADMIN = 'PAGE_ADMIN';
52
- const SCHOOL = 'SCHOOL';
53
- const SCHOOL_GENERIC = 'SCHOOL_GENERIC';
54
- const TOP_PAGE = 'TOP_PAGE';
55
  const WORK = 'WORK';
56
  const WORKPLACE = 'WORKPLACE';
57
  const WORKPLACE_1_1 = 'WORKPLACE_1_1';
58
  const WORKPLACE_MANAGER = 'WORKPLACE_MANAGER';
59
- const WORK_GENERIC = 'WORK_GENERIC';
60
  }
37
  */
38
  class GroupSuggestionCategoryValues extends AbstractEnum {
39
 
 
 
 
40
  const EVENT = 'EVENT';
 
 
 
 
41
  const MESSENGER = 'MESSENGER';
 
 
 
 
 
 
42
  const WORK = 'WORK';
43
  const WORKPLACE = 'WORKPLACE';
44
  const WORKPLACE_1_1 = 'WORKPLACE_1_1';
45
  const WORKPLACE_MANAGER = 'WORKPLACE_MANAGER';
 
46
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageBackdatedTimeGranularityValues.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static PageBackdatedTimeGranularityValues getInstance()
37
+ */
38
+ class PageBackdatedTimeGranularityValues extends AbstractEnum {
39
+
40
+ const DAY = 'day';
41
+ const HOUR = 'hour';
42
+ const MIN = 'min';
43
+ const MONTH = 'month';
44
+ const NONE = 'none';
45
+ const YEAR = 'year';
46
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionAndroidDestinationTypeValues.php CHANGED
@@ -38,9 +38,12 @@ use FacebookAds\Enum\AbstractEnum;
38
  class PageCallToActionAndroidDestinationTypeValues extends AbstractEnum {
39
 
40
  const APP_DEEPLINK = 'APP_DEEPLINK';
 
41
  const EMAIL = 'EMAIL';
42
  const FACEBOOK_APP = 'FACEBOOK_APP';
 
43
  const MESSENGER = 'MESSENGER';
 
44
  const NONE = 'NONE';
45
  const PHONE_CALL = 'PHONE_CALL';
46
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
38
  class PageCallToActionAndroidDestinationTypeValues extends AbstractEnum {
39
 
40
  const APP_DEEPLINK = 'APP_DEEPLINK';
41
+ const BECOME_A_VOLUNTEER = 'BECOME_A_VOLUNTEER';
42
  const EMAIL = 'EMAIL';
43
  const FACEBOOK_APP = 'FACEBOOK_APP';
44
+ const FOLLOW = 'FOLLOW';
45
  const MESSENGER = 'MESSENGER';
46
+ const MINI_SHOP = 'MINI_SHOP';
47
  const NONE = 'NONE';
48
  const PHONE_CALL = 'PHONE_CALL';
49
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionIphoneDestinationTypeValues.php CHANGED
@@ -38,9 +38,12 @@ use FacebookAds\Enum\AbstractEnum;
38
  class PageCallToActionIphoneDestinationTypeValues extends AbstractEnum {
39
 
40
  const APP_DEEPLINK = 'APP_DEEPLINK';
 
41
  const EMAIL = 'EMAIL';
42
  const FACEBOOK_APP = 'FACEBOOK_APP';
 
43
  const MESSENGER = 'MESSENGER';
 
44
  const NONE = 'NONE';
45
  const PHONE_CALL = 'PHONE_CALL';
46
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
38
  class PageCallToActionIphoneDestinationTypeValues extends AbstractEnum {
39
 
40
  const APP_DEEPLINK = 'APP_DEEPLINK';
41
+ const BECOME_A_VOLUNTEER = 'BECOME_A_VOLUNTEER';
42
  const EMAIL = 'EMAIL';
43
  const FACEBOOK_APP = 'FACEBOOK_APP';
44
+ const FOLLOW = 'FOLLOW';
45
  const MESSENGER = 'MESSENGER';
46
+ const MINI_SHOP = 'MINI_SHOP';
47
  const NONE = 'NONE';
48
  const PHONE_CALL = 'PHONE_CALL';
49
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionTypeValues.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class PageCallToActionTypeValues extends AbstractEnum {
39
 
 
40
  const BOOK_APPOINTMENT = 'BOOK_APPOINTMENT';
41
  const BOOK_NOW = 'BOOK_NOW';
42
  const BUY_TICKETS = 'BUY_TICKETS';
@@ -45,6 +46,7 @@ class PageCallToActionTypeValues extends AbstractEnum {
45
  const CONTACT_US = 'CONTACT_US';
46
  const DONATE_NOW = 'DONATE_NOW';
47
  const EMAIL = 'EMAIL';
 
48
  const GET_DIRECTIONS = 'GET_DIRECTIONS';
49
  const GET_OFFER = 'GET_OFFER';
50
  const GET_OFFER_VIEW = 'GET_OFFER_VIEW';
@@ -54,13 +56,16 @@ class PageCallToActionTypeValues extends AbstractEnum {
54
  const LOCAL_DEV_PLATFORM = 'LOCAL_DEV_PLATFORM';
55
  const MESSAGE = 'MESSAGE';
56
  const OPEN_APP = 'OPEN_APP';
 
57
  const PLAY_MUSIC = 'PLAY_MUSIC';
58
  const PLAY_NOW = 'PLAY_NOW';
 
59
  const REQUEST_APPOINTMENT = 'REQUEST_APPOINTMENT';
60
  const REQUEST_QUOTE = 'REQUEST_QUOTE';
61
  const SHOP_NOW = 'SHOP_NOW';
62
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
63
  const SIGN_UP = 'SIGN_UP';
 
64
  const VISIT_GROUP = 'VISIT_GROUP';
65
  const WATCH_NOW = 'WATCH_NOW';
66
  const WOODHENGE_SUPPORT = 'WOODHENGE_SUPPORT';
37
  */
38
  class PageCallToActionTypeValues extends AbstractEnum {
39
 
40
+ const BECOME_A_VOLUNTEER = 'BECOME_A_VOLUNTEER';
41
  const BOOK_APPOINTMENT = 'BOOK_APPOINTMENT';
42
  const BOOK_NOW = 'BOOK_NOW';
43
  const BUY_TICKETS = 'BUY_TICKETS';
46
  const CONTACT_US = 'CONTACT_US';
47
  const DONATE_NOW = 'DONATE_NOW';
48
  const EMAIL = 'EMAIL';
49
+ const FOLLOW_PAGE = 'FOLLOW_PAGE';
50
  const GET_DIRECTIONS = 'GET_DIRECTIONS';
51
  const GET_OFFER = 'GET_OFFER';
52
  const GET_OFFER_VIEW = 'GET_OFFER_VIEW';
56
  const LOCAL_DEV_PLATFORM = 'LOCAL_DEV_PLATFORM';
57
  const MESSAGE = 'MESSAGE';
58
  const OPEN_APP = 'OPEN_APP';
59
+ const ORDER_FOOD = 'ORDER_FOOD';
60
  const PLAY_MUSIC = 'PLAY_MUSIC';
61
  const PLAY_NOW = 'PLAY_NOW';
62
+ const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
63
  const REQUEST_APPOINTMENT = 'REQUEST_APPOINTMENT';
64
  const REQUEST_QUOTE = 'REQUEST_QUOTE';
65
  const SHOP_NOW = 'SHOP_NOW';
66
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
67
  const SIGN_UP = 'SIGN_UP';
68
+ const VIEW_SHOP = 'VIEW_SHOP';
69
  const VISIT_GROUP = 'VISIT_GROUP';
70
  const WATCH_NOW = 'WATCH_NOW';
71
  const WOODHENGE_SUPPORT = 'WOODHENGE_SUPPORT';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionWebDestinationTypeValues.php CHANGED
@@ -37,8 +37,10 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class PageCallToActionWebDestinationTypeValues extends AbstractEnum {
39
 
 
40
  const BECOME_SUPPORTER = 'BECOME_SUPPORTER';
41
  const EMAIL = 'EMAIL';
 
42
  const MESSENGER = 'MESSENGER';
43
  const NONE = 'NONE';
44
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
37
  */
38
  class PageCallToActionWebDestinationTypeValues extends AbstractEnum {
39
 
40
+ const BECOME_A_VOLUNTEER = 'BECOME_A_VOLUNTEER';
41
  const BECOME_SUPPORTER = 'BECOME_SUPPORTER';
42
  const EMAIL = 'EMAIL';
43
+ const FOLLOW = 'FOLLOW';
44
  const MESSENGER = 'MESSENGER';
45
  const NONE = 'NONE';
46
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostCheckinEntryPointValues.php → PageCheckinEntryPointValues.php} RENAMED
@@ -33,9 +33,9 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static PagePostCheckinEntryPointValues getInstance()
37
  */
38
- class PagePostCheckinEntryPointValues extends AbstractEnum {
39
 
40
  const BRANDING_CHECKIN = 'BRANDING_CHECKIN';
41
  const BRANDING_OTHER = 'BRANDING_OTHER';
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PageCheckinEntryPointValues getInstance()
37
  */
38
+ class PageCheckinEntryPointValues extends AbstractEnum {
39
 
40
  const BRANDING_CHECKIN = 'BRANDING_CHECKIN';
41
  const BRANDING_OTHER = 'BRANDING_OTHER';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostFormattingValues.php → PageFormattingValues.php} RENAMED
@@ -33,9 +33,9 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static PagePostFormattingValues getInstance()
37
  */
38
- class PagePostFormattingValues extends AbstractEnum {
39
 
40
  const MARKDOWN = 'MARKDOWN';
41
  const PLAINTEXT = 'PLAINTEXT';
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PageFormattingValues getInstance()
37
  */
38
+ class PageFormattingValues extends AbstractEnum {
39
 
40
  const MARKDOWN = 'MARKDOWN';
41
  const PLAINTEXT = 'PLAINTEXT';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PagePermittedTasksValues.php CHANGED
@@ -39,6 +39,7 @@ class PagePermittedTasksValues extends AbstractEnum {
39
 
40
  const ADVERTISE = 'ADVERTISE';
41
  const ANALYZE = 'ANALYZE';
 
42
  const CREATE_CONTENT = 'CREATE_CONTENT';
43
  const MANAGE = 'MANAGE';
44
  const MANAGE_JOBS = 'MANAGE_JOBS';
@@ -47,9 +48,12 @@ class PagePermittedTasksValues extends AbstractEnum {
47
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
48
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
49
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
50
- const PLATFORM_MANAGE_PAGES = 'PLATFORM_MANAGE_PAGES';
51
- const PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES = 'PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES';
52
- const PLATFORM_READ_INSIGHTS = 'PLATFORM_READ_INSIGHTS';
 
 
 
53
  const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
54
  const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
55
  }
39
 
40
  const ADVERTISE = 'ADVERTISE';
41
  const ANALYZE = 'ANALYZE';
42
+ const CASHIER_ROLE = 'CASHIER_ROLE';
43
  const CREATE_CONTENT = 'CREATE_CONTENT';
44
  const MANAGE = 'MANAGE';
45
  const MANAGE_JOBS = 'MANAGE_JOBS';
48
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
49
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
50
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
51
+ const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
52
+ const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
53
+ const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
54
+ const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
55
+ const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
56
+ const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
57
  const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
58
  const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
59
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostPlaceAttachmentSettingValues.php → PagePlaceAttachmentSettingValues.php} RENAMED
@@ -33,9 +33,9 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static PagePostPlaceAttachmentSettingValues getInstance()
37
  */
38
- class PagePostPlaceAttachmentSettingValues extends AbstractEnum {
39
 
40
  const VALUE_1 = '1';
41
  const VALUE_2 = '2';
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PagePlaceAttachmentSettingValues getInstance()
37
  */
38
+ class PagePlaceAttachmentSettingValues extends AbstractEnum {
39
 
40
  const VALUE_1 = '1';
41
  const VALUE_2 = '2';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostPostSurfacesBlacklistValues.php → PagePostSurfacesBlacklistValues.php} RENAMED
@@ -33,9 +33,9 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static PagePostPostSurfacesBlacklistValues getInstance()
37
  */
38
- class PagePostPostSurfacesBlacklistValues extends AbstractEnum {
39
 
40
  const VALUE_1 = '1';
41
  const VALUE_2 = '2';
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PagePostSurfacesBlacklistValues getInstance()
37
  */
38
+ class PagePostSurfacesBlacklistValues extends AbstractEnum {
39
 
40
  const VALUE_1 = '1';
41
  const VALUE_2 = '2';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostPostingToRedspaceValues.php → PagePostingToRedspaceValues.php} RENAMED
@@ -33,9 +33,9 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static PagePostPostingToRedspaceValues getInstance()
37
  */
38
- class PagePostPostingToRedspaceValues extends AbstractEnum {
39
 
40
  const DISABLED = 'disabled';
41
  const ENABLED = 'enabled';
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PagePostingToRedspaceValues getInstance()
37
  */
38
+ class PagePostingToRedspaceValues extends AbstractEnum {
39
 
40
  const DISABLED = 'disabled';
41
  const ENABLED = 'enabled';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageSenderActionValues.php CHANGED
@@ -38,6 +38,8 @@ use FacebookAds\Enum\AbstractEnum;
38
  class PageSenderActionValues extends AbstractEnum {
39
 
40
  const MARK_SEEN = 'MARK_SEEN';
 
41
  const TYPING_OFF = 'TYPING_OFF';
42
  const TYPING_ON = 'TYPING_ON';
 
43
  }
38
  class PageSenderActionValues extends AbstractEnum {
39
 
40
  const MARK_SEEN = 'MARK_SEEN';
41
+ const REACT = 'REACT';
42
  const TYPING_OFF = 'TYPING_OFF';
43
  const TYPING_ON = 'TYPING_ON';
44
+ const UNREACT = 'UNREACT';
45
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageSubscribedFieldsValues.php CHANGED
@@ -59,7 +59,9 @@ class PageSubscribedFieldsValues extends AbstractEnum {
59
  const GENERAL_MANAGER = 'general_manager';
60
  const HOMETOWN = 'hometown';
61
  const HOURS = 'hours';
 
62
  const INVOICE_ACCESS_INVOICE_CHANGE = 'invoice_access_invoice_change';
 
63
  const LEADGEN = 'leadgen';
64
  const LEADGEN_FAT = 'leadgen_fat';
65
  const LIVE_VIDEOS = 'live_videos';
@@ -78,6 +80,7 @@ class PageSubscribedFieldsValues extends AbstractEnum {
78
  const MESSAGING_APPOINTMENTS = 'messaging_appointments';
79
  const MESSAGING_CHECKOUT_UPDATES = 'messaging_checkout_updates';
80
  const MESSAGING_DIRECT_SENDS = 'messaging_direct_sends';
 
81
  const MESSAGING_GAME_PLAYS = 'messaging_game_plays';
82
  const MESSAGING_HANDOVERS = 'messaging_handovers';
83
  const MESSAGING_OPTINS = 'messaging_optins';
@@ -107,6 +110,7 @@ class PageSubscribedFieldsValues extends AbstractEnum {
107
  const RATINGS = 'ratings';
108
  const REGISTRATION = 'registration';
109
  const STANDBY = 'standby';
 
110
  const VIDEO_TEXT_QUESTION_RESPONSES = 'video_text_question_responses';
111
  const VIDEOS = 'videos';
112
  const WEBSITE = 'website';
59
  const GENERAL_MANAGER = 'general_manager';
60
  const HOMETOWN = 'hometown';
61
  const HOURS = 'hours';
62
+ const INBOX_LABELS = 'inbox_labels';
63
  const INVOICE_ACCESS_INVOICE_CHANGE = 'invoice_access_invoice_change';
64
+ const INVOICE_ACCESS_ONBOARDING_STATUS_ACTIVE = 'invoice_access_onboarding_status_active';
65
  const LEADGEN = 'leadgen';
66
  const LEADGEN_FAT = 'leadgen_fat';
67
  const LIVE_VIDEOS = 'live_videos';
80
  const MESSAGING_APPOINTMENTS = 'messaging_appointments';
81
  const MESSAGING_CHECKOUT_UPDATES = 'messaging_checkout_updates';
82
  const MESSAGING_DIRECT_SENDS = 'messaging_direct_sends';
83
+ const MESSAGING_FBLOGIN_ACCOUNT_LINKING = 'messaging_fblogin_account_linking';
84
  const MESSAGING_GAME_PLAYS = 'messaging_game_plays';
85
  const MESSAGING_HANDOVERS = 'messaging_handovers';
86
  const MESSAGING_OPTINS = 'messaging_optins';
110
  const RATINGS = 'ratings';
111
  const REGISTRATION = 'registration';
112
  const STANDBY = 'standby';
113
+ const USER_ACTION = 'user_action';
114
  const VIDEO_TEXT_QUESTION_RESPONSES = 'video_text_question_responses';
115
  const VIDEOS = 'videos';
116
  const WEBSITE = 'website';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostTargetSurfaceValues.php → PageTargetSurfaceValues.php} RENAMED
@@ -33,9 +33,9 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static PagePostTargetSurfaceValues getInstance()
37
  */
38
- class PagePostTargetSurfaceValues extends AbstractEnum {
39
 
40
  const STORY = 'STORY';
41
  const TIMELINE = 'TIMELINE';
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PageTargetSurfaceValues getInstance()
37
  */
38
+ class PageTargetSurfaceValues extends AbstractEnum {
39
 
40
  const STORY = 'STORY';
41
  const TIMELINE = 'TIMELINE';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageTasksValues.php CHANGED
@@ -39,6 +39,7 @@ class PageTasksValues extends AbstractEnum {
39
 
40
  const ADVERTISE = 'ADVERTISE';
41
  const ANALYZE = 'ANALYZE';
 
42
  const CREATE_CONTENT = 'CREATE_CONTENT';
43
  const MANAGE = 'MANAGE';
44
  const MANAGE_JOBS = 'MANAGE_JOBS';
@@ -47,9 +48,12 @@ class PageTasksValues extends AbstractEnum {
47
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
48
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
49
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
50
- const PLATFORM_MANAGE_PAGES = 'PLATFORM_MANAGE_PAGES';
51
- const PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES = 'PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES';
52
- const PLATFORM_READ_INSIGHTS = 'PLATFORM_READ_INSIGHTS';
 
 
 
53
  const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
54
  const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
55
  }
39
 
40
  const ADVERTISE = 'ADVERTISE';
41
  const ANALYZE = 'ANALYZE';
42
+ const CASHIER_ROLE = 'CASHIER_ROLE';
43
  const CREATE_CONTENT = 'CREATE_CONTENT';
44
  const MANAGE = 'MANAGE';
45
  const MANAGE_JOBS = 'MANAGE_JOBS';
48
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
49
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
50
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
51
+ const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
52
+ const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
53
+ const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
54
+ const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
55
+ const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
56
+ const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
57
  const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
58
  const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
59
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageTemporaryStatusValues.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static PageTemporaryStatusValues getInstance()
37
+ */
38
+ class PageTemporaryStatusValues extends AbstractEnum {
39
+
40
+ const DIFFERENTLY_OPEN = 'DIFFERENTLY_OPEN';
41
+ const NO_DATA = 'NO_DATA';
42
+ const OPERATING_AS_USUAL = 'OPERATING_AS_USUAL';
43
+ const TEMPORARILY_CLOSED = 'TEMPORARILY_CLOSED';
44
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{PagePostUnpublishedContentTypeValues.php → PageUnpublishedContentTypeValues.php} RENAMED
@@ -33,9 +33,9 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static PagePostUnpublishedContentTypeValues getInstance()
37
  */
38
- class PagePostUnpublishedContentTypeValues extends AbstractEnum {
39
 
40
  const ADS_POST = 'ADS_POST';
41
  const DRAFT = 'DRAFT';
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PageUnpublishedContentTypeValues getInstance()
37
  */
38
+ class PageUnpublishedContentTypeValues extends AbstractEnum {
39
 
40
  const ADS_POST = 'ADS_POST';
41
  const DRAFT = 'DRAFT';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductCatalogVerticalValues.php CHANGED
@@ -43,6 +43,9 @@ class ProductCatalogVerticalValues extends AbstractEnum {
43
  const FLIGHTS = 'flights';
44
  const HOME_LISTINGS = 'home_listings';
45
  const HOTELS = 'hotels';
 
 
 
46
  const OFFLINE_COMMERCE = 'offline_commerce';
47
  const TICKETED_EXPERIENCES = 'ticketed_experiences';
48
  const TRANSACTABLE_ITEMS = 'transactable_items';
43
  const FLIGHTS = 'flights';
44
  const HOME_LISTINGS = 'home_listings';
45
  const HOTELS = 'hotels';
46
+ const JOBS = 'jobs';
47
+ const LOCAL_SERVICE_BUSINESSES = 'local_service_businesses';
48
+ const OFFER_ITEMS = 'offer_items';
49
  const OFFLINE_COMMERCE = 'offline_commerce';
50
  const TICKETED_EXPERIENCES = 'ticketed_experiences';
51
  const TRANSACTABLE_ITEMS = 'transactable_items';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductFeedFeedTypeValues.php CHANGED
@@ -46,6 +46,7 @@ class ProductFeedFeedTypeValues extends AbstractEnum {
46
  const LOCAL_INVENTORY = 'LOCAL_INVENTORY';
47
  const MARKET = 'MARKET';
48
  const MEDIA_TITLE = 'MEDIA_TITLE';
 
49
  const PRODUCTS = 'PRODUCTS';
50
  const VEHICLES = 'VEHICLES';
51
  const VEHICLE_OFFER = 'VEHICLE_OFFER';
46
  const LOCAL_INVENTORY = 'LOCAL_INVENTORY';
47
  const MARKET = 'MARKET';
48
  const MEDIA_TITLE = 'MEDIA_TITLE';
49
+ const OFFER = 'OFFER';
50
  const PRODUCTS = 'PRODUCTS';
51
  const VEHICLES = 'VEHICLES';
52
  const VEHICLE_OFFER = 'VEHICLE_OFFER';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductFeedUploadInputMethodValues.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class ProductFeedUploadInputMethodValues extends AbstractEnum {
39
 
 
40
  const MANUAL_UPLOAD = 'Manual Upload';
41
  const REUPLOAD_LAST_FILE = 'Reupload Last File';
42
  const SERVER_FETCH = 'Server Fetch';
37
  */
38
  class ProductFeedUploadInputMethodValues extends AbstractEnum {
39
 
40
+ const GOOGLE_SHEETS_FETCH = 'Google Sheets Fetch';
41
  const MANUAL_UPLOAD = 'Manual Upload';
42
  const REUPLOAD_LAST_FILE = 'Reupload Last File';
43
  const SERVER_FETCH = 'Server Fetch';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProfileTypeValues.php CHANGED
@@ -38,6 +38,7 @@ use FacebookAds\Enum\AbstractEnum;
38
  class ProfileTypeValues extends AbstractEnum {
39
 
40
  const ANGRY = 'ANGRY';
 
41
  const HAHA = 'HAHA';
42
  const LIKE = 'LIKE';
43
  const LOVE = 'LOVE';
38
  class ProfileTypeValues extends AbstractEnum {
39
 
40
  const ANGRY = 'ANGRY';
41
+ const CARE = 'CARE';
42
  const HAHA = 'HAHA';
43
  const LIKE = 'LIKE';
44
  const LOVE = 'LOVE';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/RequestHistoryHttpMethodValues.php DELETED
@@ -1,43 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object\Values;
26
-
27
- use FacebookAds\Enum\AbstractEnum;
28
-
29
- /**
30
- * This class is auto-generated.
31
- *
32
- * For any issues or feature requests related to this class, please let us know
33
- * on github and we'll fix in our codegen framework. We'll not be able to accept
34
- * pull request for this class.
35
- *
36
- * @method static RequestHistoryHttpMethodValues getInstance()
37
- */
38
- class RequestHistoryHttpMethodValues extends AbstractEnum {
39
-
40
- const DELETE = 'DELETE';
41
- const GET = 'GET';
42
- const POST = 'POST';
43
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/StreamingReactionReactionTypeValues.php CHANGED
@@ -38,6 +38,7 @@ use FacebookAds\Enum\AbstractEnum;
38
  class StreamingReactionReactionTypeValues extends AbstractEnum {
39
 
40
  const ANGRY = 'ANGRY';
 
41
  const HAHA = 'HAHA';
42
  const LIKE = 'LIKE';
43
  const LOVE = 'LOVE';
38
  class StreamingReactionReactionTypeValues extends AbstractEnum {
39
 
40
  const ANGRY = 'ANGRY';
41
+ const CARE = 'CARE';
42
  const HAHA = 'HAHA';
43
  const LIKE = 'LIKE';
44
  const LOVE = 'LOVE';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/SystemUserRoleValues.php CHANGED
@@ -39,6 +39,7 @@ class SystemUserRoleValues extends AbstractEnum {
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
 
42
  const EMPLOYEE = 'EMPLOYEE';
43
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
44
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
42
+ const DEVELOPER = 'DEVELOPER';
43
  const EMPLOYEE = 'EMPLOYEE';
44
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
45
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/UserResumeTypeValues.php DELETED
@@ -1,42 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object\Values;
26
-
27
- use FacebookAds\Enum\AbstractEnum;
28
-
29
- /**
30
- * This class is auto-generated.
31
- *
32
- * For any issues or feature requests related to this class, please let us know
33
- * on github and we'll fix in our codegen framework. We'll not be able to accept
34
- * pull request for this class.
35
- *
36
- * @method static UserResumeTypeValues getInstance()
37
- */
38
- class UserResumeTypeValues extends AbstractEnum {
39
-
40
- const BOT_ACTION = 'BOT_ACTION';
41
- const NATIVE = 'NATIVE';
42
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/UserServiceTypeValues.php DELETED
@@ -1,88 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object\Values;
26
-
27
- use FacebookAds\Enum\AbstractEnum;
28
-
29
- /**
30
- * This class is auto-generated.
31
- *
32
- * For any issues or feature requests related to this class, please let us know
33
- * on github and we'll fix in our codegen framework. We'll not be able to accept
34
- * pull request for this class.
35
- *
36
- * @method static UserServiceTypeValues getInstance()
37
- */
38
- class UserServiceTypeValues extends AbstractEnum {
39
-
40
- const AIM = 'AIM';
41
- const ASK_FM = 'ASK_FM';
42
- const BBM = 'BBM';
43
- const BBM_PPID = 'BBM_PPID';
44
- const CYWORLD = 'CYWORLD';
45
- const EBUDDY = 'EBUDDY';
46
- const FOURSQUARE = 'FOURSQUARE';
47
- const GADU = 'GADU';
48
- const GITHUB = 'GITHUB';
49
- const GROUPWISE = 'GROUPWISE';
50
- const GTALK = 'GTALK';
51
- const HYVES = 'HYVES';
52
- const ICLOUD = 'ICLOUD';
53
- const ICQ = 'ICQ';
54
- const INSTAGRAM = 'INSTAGRAM';
55
- const JABBER = 'JABBER';
56
- const KAKAOTALK = 'KAKAOTALK';
57
- const KIK = 'KIK';
58
- const LINE = 'LINE';
59
- const LINKED_IN = 'LINKED_IN';
60
- const MAILRU = 'MAILRU';
61
- const MEDIUM = 'MEDIUM';
62
- const MIXI = 'MIXI';
63
- const MSN = 'MSN';
64
- const MYSPACE = 'MYSPACE';
65
- const NATEON = 'NATEON';
66
- const OCULUS = 'OCULUS';
67
- const OK = 'OK';
68
- const ORKUT = 'ORKUT';
69
- const OTHERS = 'OTHERS';
70
- const PINTEREST = 'PINTEREST';
71
- const QIP = 'QIP';
72
- const QQ = 'QQ';
73
- const REDIFF_BOL = 'REDIFF_BOL';
74
- const SKYPE = 'SKYPE';
75
- const SNAPCHAT = 'SNAPCHAT';
76
- const SOUND_CLOUD = 'SOUND_CLOUD';
77
- const SPOTIFY = 'SPOTIFY';
78
- const TUMBLR = 'TUMBLR';
79
- const TWITCH = 'TWITCH';
80
- const TWITTER = 'TWITTER';
81
- const VIMEO = 'VIMEO';
82
- const VKONTAKTE = 'VKONTAKTE';
83
- const WECHAT = 'WECHAT';
84
- const WHATSAPP = 'WHATSAPP';
85
- const YAHOO = 'YAHOO';
86
- const YAHOO_JP = 'YAHOO_JP';
87
- const YOU_TUBE = 'YOU_TUBE';
88
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/VideoGameShowActionValues.php DELETED
@@ -1,42 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object\Values;
26
-
27
- use FacebookAds\Enum\AbstractEnum;
28
-
29
- /**
30
- * This class is auto-generated.
31
- *
32
- * For any issues or feature requests related to this class, please let us know
33
- * on github and we'll fix in our codegen framework. We'll not be able to accept
34
- * pull request for this class.
35
- *
36
- * @method static VideoGameShowActionValues getInstance()
37
- */
38
- class VideoGameShowActionValues extends AbstractEnum {
39
-
40
- const END_GAME = 'END_GAME';
41
- const START_GAME = 'START_GAME';
42
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/VideoGameShow.php DELETED
@@ -1,156 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object;
26
-
27
- use FacebookAds\ApiRequest;
28
- use FacebookAds\Cursor;
29
- use FacebookAds\Http\RequestInterface;
30
- use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\VideoGameShowFields;
32
- use FacebookAds\Object\Values\VideoGameShowActionValues;
33
-
34
- /**
35
- * This class is auto-generated.
36
- *
37
- * For any issues or feature requests related to this class, please let us know
38
- * on github and we'll fix in our codegen framework. We'll not be able to accept
39
- * pull request for this class.
40
- *
41
- */
42
-
43
- class VideoGameShow extends AbstractCrudObject {
44
-
45
- /**
46
- * @return VideoGameShowFields
47
- */
48
- public static function getFieldsEnum() {
49
- return VideoGameShowFields::getInstance();
50
- }
51
-
52
- protected static function getReferencedEnums() {
53
- $ref_enums = array();
54
- $ref_enums['Action'] = VideoGameShowActionValues::getInstance()->getValues();
55
- return $ref_enums;
56
- }
57
-
58
-
59
- public function getQuestions(array $fields = array(), array $params = array(), $pending = false) {
60
- $this->assureId();
61
-
62
- $param_types = array(
63
- );
64
- $enums = array(
65
- );
66
-
67
- $request = new ApiRequest(
68
- $this->api,
69
- $this->data['id'],
70
- RequestInterface::METHOD_GET,
71
- '/questions',
72
- new AbstractCrudObject(),
73
- 'EDGE',
74
- array(),
75
- new TypeChecker($param_types, $enums)
76
- );
77
- $request->addParams($params);
78
- $request->addFields($fields);
79
- return $pending ? $request : $request->execute();
80
- }
81
-
82
- public function createQuestion(array $fields = array(), array $params = array(), $pending = false) {
83
- $this->assureId();
84
-
85
- $param_types = array(
86
- 'correct_option' => 'unsigned int',
87
- 'options' => 'list<string>',
88
- 'question' => 'string',
89
- );
90
- $enums = array(
91
- );
92
-
93
- $request = new ApiRequest(
94
- $this->api,
95
- $this->data['id'],
96
- RequestInterface::METHOD_POST,
97
- '/questions',
98
- new AbstractCrudObject(),
99
- 'EDGE',
100
- array(),
101
- new TypeChecker($param_types, $enums)
102
- );
103
- $request->addParams($params);
104
- $request->addFields($fields);
105
- return $pending ? $request : $request->execute();
106
- }
107
-
108
- public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
109
- $this->assureId();
110
-
111
- $param_types = array(
112
- );
113
- $enums = array(
114
- );
115
-
116
- $request = new ApiRequest(
117
- $this->api,
118
- $this->data['id'],
119
- RequestInterface::METHOD_GET,
120
- '/',
121
- new VideoGameShow(),
122
- 'NODE',
123
- VideoGameShow::getFieldsEnum()->getValues(),
124
- new TypeChecker($param_types, $enums)
125
- );
126
- $request->addParams($params);
127
- $request->addFields($fields);
128
- return $pending ? $request : $request->execute();
129
- }
130
-
131
- public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
132
- $this->assureId();
133
-
134
- $param_types = array(
135
- 'action' => 'action_enum',
136
- );
137
- $enums = array(
138
- 'action_enum' => VideoGameShowActionValues::getInstance()->getValues(),
139
- );
140
-
141
- $request = new ApiRequest(
142
- $this->api,
143
- $this->data['id'],
144
- RequestInterface::METHOD_POST,
145
- '/',
146
- new VideoGameShow(),
147
- 'NODE',
148
- VideoGameShow::getFieldsEnum()->getValues(),
149
- new TypeChecker($param_types, $enums)
150
- );
151
- $request->addParams($params);
152
- $request->addFields($fields);
153
- return $pending ? $request : $request->execute();
154
- }
155
-
156
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/WhatsAppBusinessAccount.php CHANGED
@@ -97,6 +97,7 @@ class WhatsAppBusinessAccount extends AbstractCrudObject {
97
  'APPROVED',
98
  'DELETED',
99
  'DISABLED',
 
100
  'PENDING',
101
  'PENDING_DELETION',
102
  'REJECTED',
@@ -169,6 +170,29 @@ class WhatsAppBusinessAccount extends AbstractCrudObject {
169
  return $pending ? $request : $request->execute();
170
  }
171
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
173
  $this->assureId();
174
 
97
  'APPROVED',
98
  'DELETED',
99
  'DISABLED',
100
+ 'IN_APPEAL',
101
  'PENDING',
102
  'PENDING_DELETION',
103
  'REJECTED',
170
  return $pending ? $request : $request->execute();
171
  }
172
 
173
+ public function createSubscribedApp(array $fields = array(), array $params = array(), $pending = false) {
174
+ $this->assureId();
175
+
176
+ $param_types = array(
177
+ );
178
+ $enums = array(
179
+ );
180
+
181
+ $request = new ApiRequest(
182
+ $this->api,
183
+ $this->data['id'],
184
+ RequestInterface::METHOD_POST,
185
+ '/subscribed_apps',
186
+ new WhatsAppBusinessAccount(),
187
+ 'EDGE',
188
+ WhatsAppBusinessAccount::getFieldsEnum()->getValues(),
189
+ new TypeChecker($param_types, $enums)
190
+ );
191
+ $request->addParams($params);
192
+ $request->addFields($fields);
193
+ return $pending ? $request : $request->execute();
194
+ }
195
+
196
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
197
  $this->assureId();
198