Official Facebook Pixel - Version 2.2.0

Version Description

Download this release

Release Info

Developer Facebook
Plugin Icon Official Facebook Pixel
Version 2.2.0
Comparing to
See all releases

Code changes from version 2.1.0 to 2.2.0

Files changed (200) hide show
  1. changelog.txt +9 -3
  2. composer.json +1 -1
  3. composer.lock +195 -117
  4. core/FacebookPluginConfig.php +2 -2
  5. core/FacebookServerSideEvent.php +3 -2
  6. core/FacebookWordpressSettingsPage.php +4 -4
  7. core/ServerEventFactory.php +24 -0
  8. facebook-for-wordpress.php +1 -1
  9. integration/FacebookWordpressCalderaForm.php +8 -4
  10. integration/FacebookWordpressEasyDigitalDownloads.php +137 -31
  11. integration/FacebookWordpressFormidableForm.php +46 -10
  12. integration/FacebookWordpressGravityForms.php +53 -4
  13. integration/FacebookWordpressMailchimpForWp.php +29 -0
  14. integration/FacebookWordpressNinjaForms.php +61 -7
  15. integration/FacebookWordpressWPForms.php +55 -2
  16. integration/FacebookWordpressWooCommerce.php +23 -9
  17. languages/official-facebook-pixel-ar_AR.po +1 -1
  18. languages/official-facebook-pixel-cs_CZ.po +1 -1
  19. languages/official-facebook-pixel-da_DK.po +1 -1
  20. languages/official-facebook-pixel-de_DE.po +1 -1
  21. languages/official-facebook-pixel-en_GB.po +1 -1
  22. languages/official-facebook-pixel-es_ES.po +1 -1
  23. languages/official-facebook-pixel-es_LA.po +1 -1
  24. languages/official-facebook-pixel-fi_FI.po +1 -1
  25. languages/official-facebook-pixel-fr_CA.po +1 -1
  26. languages/official-facebook-pixel-fr_FR.po +1 -1
  27. languages/official-facebook-pixel-he_IL.po +1 -1
  28. languages/official-facebook-pixel-it_IT.po +1 -1
  29. languages/official-facebook-pixel-ja_JP.po +1 -1
  30. languages/official-facebook-pixel-ko_KR.po +1 -1
  31. languages/official-facebook-pixel-nb_NO.po +1 -1
  32. languages/official-facebook-pixel-nl_NL.po +1 -1
  33. languages/official-facebook-pixel-pl_PL.po +1 -1
  34. languages/official-facebook-pixel-pt_BR.po +1 -1
  35. languages/official-facebook-pixel-pt_PT.po +1 -1
  36. languages/official-facebook-pixel-ru_RU.po +1 -1
  37. languages/official-facebook-pixel-sv_SE.po +1 -1
  38. languages/official-facebook-pixel-th_TH.po +1 -1
  39. languages/official-facebook-pixel-tr_TR.po +1 -1
  40. languages/official-facebook-pixel-vi_VN.po +1 -1
  41. languages/official-facebook-pixel-zh_CN.po +1 -1
  42. languages/official-facebook-pixel-zh_TW.po +1 -1
  43. readme.txt +12 -6
  44. vendor/autoload.php +1 -1
  45. vendor/composer/autoload_real.php +4 -4
  46. vendor/composer/autoload_static.php +4 -4
  47. vendor/composer/installed.json +6 -6
  48. vendor/facebook/php-business-sdk/CHANGELOG.md +9 -1
  49. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateAdCreativeLinkAd.php +48 -0
  50. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateCarouselCallToActionAppInstall.php +48 -0
  51. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateLinkAdCallToActionAppInstall.php +48 -0
  52. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateLinkAdImageCrop.php +48 -0
  53. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateMAIDPA.php +49 -0
  54. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateVideoLeadAd.php +47 -0
  55. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateVideoPageLikeAd.php +48 -0
  56. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.php +48 -0
  57. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.php +48 -0
  58. vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.php +48 -0
  59. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostConversions.php +1 -1
  60. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostEventResponses.php +1 -1
  61. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostLeadGen.php +1 -1
  62. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostLinkClicks.php +1 -1
  63. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostLocalAwareness.php +1 -1
  64. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostMAIA.php +1 -1
  65. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostMAIDPA.php +1 -1
  66. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostOfferClaims.php +1 -1
  67. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostPageLikes.php +1 -1
  68. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostPostEngagement.php +1 -1
  69. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostStoreCampaign.php +1 -1
  70. vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostVideoViews.php +1 -1
  71. vendor/facebook/php-business-sdk/src/FacebookAds/ApiConfig.php +2 -2
  72. vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php +4 -0
  73. vendor/facebook/php-business-sdk/src/FacebookAds/Http/SimpleRequest.php +74 -0
  74. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccount.php +6 -12
  75. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdCreative.php +0 -24
  76. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{CustomAudiencePrefillState.php → AdCreativeAdDisclaimer.php} +4 -4
  77. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdPlacePageSet.php +0 -24
  78. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdReportRun.php +0 -48
  79. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdSet.php +4 -2
  80. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Album.php +49 -0
  81. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Application.php +0 -42
  82. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Business.php +71 -16
  83. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{VideoGameShow.php → BusinessAgreement.php} +13 -12
  84. vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessOwnedObjectOnBehalfOfRequest.php +0 -23
  85. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Campaign.php +5 -5
  86. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{RequestHistory.php → CatalogItemAppLinks.php} +4 -6
  87. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Comment.php +23 -0
  88. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettings.php +332 -0
  89. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettingsSetupStatus.php +57 -0
  90. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceOrder.php +397 -0
  91. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{BusinessPixelTOS.php → CommerceOrderTransactionDetail.php} +9 -16
  92. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommercePayout.php +57 -0
  93. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CustomAudience.php +0 -23
  94. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountActivityFields.php +3 -7
  95. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountCreationRequestFields.php +0 -2
  96. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +2 -0
  97. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignActivityFields.php +2 -2
  98. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{CustomAudiencePrefillStateFields.php → AdCreativeAdDisclaimerFields.php} +7 -7
  99. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativeVideoDataFields.php +2 -0
  100. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCustomizationRuleSpecFields.php +4 -0
  101. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdFields.php +0 -2
  102. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdSetFields.php +2 -0
  103. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupActivityFields.php +4 -4
  104. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php +2 -0
  105. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdsInsightsFields.php +10 -0
  106. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AutomotiveModelFields.php +2 -0
  107. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{BusinessPixelTOSFields.php → BusinessAgreementFields.php} +3 -3
  108. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CampaignFields.php +2 -0
  109. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{InstagramCommentFields.php → CatalogItemAppLinksFields.php} +17 -15
  110. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CatalogItemAppealStatusFields.php +1 -1
  111. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php +87 -0
  112. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{RequestHistoryFields.php → CommerceMerchantSettingsSetupStatusFields.php} +11 -15
  113. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceOrderFields.php +69 -0
  114. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceOrderTransactionDetailFields.php +63 -0
  115. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{VideoGameShowFields.php → CommercePayoutFields.php} +11 -11
  116. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/DestinationFields.php +2 -0
  117. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/FlightFields.php +2 -0
  118. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HomeListingFields.php +2 -0
  119. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HotelFields.php +2 -2
  120. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HotelRoomFields.php +2 -0
  121. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/IGUserFields.php +4 -0
  122. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/MessengerProfileFields.php +0 -2
  123. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/OpenGraphObjectFields.php +0 -87
  124. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageFields.php +2 -0
  125. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PagePostFields.php +18 -0
  126. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PostFields.php +18 -0
  127. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductCatalogFields.php +4 -2
  128. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductFeedUploadDiagnosticsReportFields.php +49 -0
  129. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductItemFields.php +2 -0
  130. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleFields.php +2 -2
  131. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleOfferFields.php +2 -0
  132. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Group.php +0 -54
  133. vendor/facebook/php-business-sdk/src/FacebookAds/Object/InstagramComment.php +0 -177
  134. vendor/facebook/php-business-sdk/src/FacebookAds/Object/LifeEvent.php +0 -23
  135. vendor/facebook/php-business-sdk/src/FacebookAds/Object/OfflineConversionDataSet.php +0 -24
  136. vendor/facebook/php-business-sdk/src/FacebookAds/Object/OpenGraphContext.php +0 -69
  137. vendor/facebook/php-business-sdk/src/FacebookAds/Object/OpenGraphObject.php +0 -139
  138. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Page.php +157 -139
  139. vendor/facebook/php-business-sdk/src/FacebookAds/Object/PartnerStudy.php +0 -23
  140. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Post.php +7 -0
  141. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductCatalog.php +24 -0
  142. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductFeedUploadDiagnosticsReport.php +57 -0
  143. vendor/facebook/php-business-sdk/src/FacebookAds/Object/PublisherBlockList.php +0 -24
  144. vendor/facebook/php-business-sdk/src/FacebookAds/Object/RTBDynamicPost.php +0 -23
  145. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/AdsPixelSettings.php +201 -0
  146. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Content.php +85 -1
  147. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Event.php +86 -6
  148. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/UserData.php +30 -5
  149. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Util.php +81 -0
  150. vendor/facebook/php-business-sdk/src/FacebookAds/Object/StoreCatalogSettings.php +23 -0
  151. vendor/facebook/php-business-sdk/src/FacebookAds/Object/URL.php +1 -1
  152. vendor/facebook/php-business-sdk/src/FacebookAds/Object/User.php +0 -145
  153. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountContentTypeValues.php +1 -0
  154. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedObjectiveValues.php +1 -0
  155. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedWhitelistedTypesValues.php +2 -0
  156. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdActivityEventTypeValues.php +1 -0
  157. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php +5 -0
  158. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php +5 -0
  159. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php +5 -0
  160. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdNetworkAnalyticsSyncQueryResultBreakdownsValues.php +1 -0
  161. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php +2 -0
  162. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdSetMultiOptimizationGoalWeightValues.php +44 -0
  163. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +2 -0
  164. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoValidationAdPlacementsValues.php +1 -0
  165. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsInsightsActionAttributionWindowsValues.php +1 -0
  166. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAgreementRequestStatusValues.php +45 -0
  167. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupPageTasksValues.php +0 -4
  168. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessImageValidationAdPlacementsValues.php +1 -0
  169. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessPagePermittedTasksValues.php +0 -4
  170. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessRoleRequestRoleValues.php +1 -0
  171. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessUserRoleValues.php +1 -0
  172. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CPASParentCatalogSettingsAttributionWindowsValues.php +1 -0
  173. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignObjectiveValues.php +1 -0
  174. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{RequestHistoryHttpMethodValues.php → CampaignSpecialAdCategoriesValues.php} +6 -5
  175. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{VideoGameShowActionValues.php → CommerceMerchantSettingsMerchantStatusValues.php} +4 -4
  176. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CommerceOrderFiltersValues.php +46 -0
  177. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CommerceOrderReasonCodeValues.php +50 -0
  178. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CommerceOrderStateValues.php +44 -0
  179. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CustomAudienceContentTypeValues.php +1 -0
  180. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CustomConversionCustomEventTypeValues.php +1 -0
  181. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupGroupTypeValues.php +1 -0
  182. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupPurposeValues.php +1 -0
  183. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionAndroidDestinationTypeValues.php +2 -0
  184. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionIphoneDestinationTypeValues.php +2 -0
  185. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionTypeValues.php +4 -0
  186. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageCallToActionWebDestinationTypeValues.php +1 -0
  187. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PagePermittedTasksValues.php +0 -4
  188. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageSubscribedFieldsValues.php +4 -0
  189. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageTasksValues.php +0 -4
  190. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductCatalogVerticalValues.php +2 -0
  191. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductFeedFeedTypeValues.php +1 -0
  192. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProfileTypeValues.php +1 -0
  193. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/StreamingReactionReactionTypeValues.php +1 -0
  194. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/SystemUserRoleValues.php +1 -0
  195. vendor/facebook/php-business-sdk/src/FacebookAds/Object/WhatsAppBusinessAccount.php +23 -0
  196. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Http/Exception/RequestExceptionTest.php +14 -0
  197. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ContentTest.php +78 -0
  198. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ServerSideEventTest.php +86 -0
  199. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ServerSideUtilTest.php +102 -0
  200. vendor/facebook/php-business-sdk/test/phpunit.xml +1 -1
changelog.txt CHANGED
@@ -1,17 +1,23 @@
1
  *** Facebook for WordPress Changelog ***
 
 
 
 
 
 
2
  2020-06-18 version 2.1.0
3
- * Support for WooCommerce through the Server-Side API
4
 
5
  2020-04-23 version 2.0.2
6
  * Support for WordPress 5.4
7
  * Fixing an Illegal string offset error with WP Forms
8
- * Fixing the event source url for Server-Side API events
9
 
10
  2020-03-23 version 2.0.1
11
  * Fixing an Undefined index error
12
 
13
  2020-03-09 version 2.0.0
14
- * Added support for Server-Side API
15
 
16
  2019-12-02 version 1.8.0
17
  * Support for WordPress 5.3
1
  *** Facebook for WordPress Changelog ***
2
+ 2020-08-14 version 2.2.0
3
+ * Support for WordPress 5.5
4
+ * Improved Conversions API event quality
5
+ * Sending AddToCart and ViewContent events from Easy Digitial Downloads
6
+ * New filter added before the Conversions API event is sent
7
+
8
  2020-06-18 version 2.1.0
9
+ * Support for WooCommerce through the Conversions API
10
 
11
  2020-04-23 version 2.0.2
12
  * Support for WordPress 5.4
13
  * Fixing an Illegal string offset error with WP Forms
14
+ * Fixing the event source url for Conversions API events
15
 
16
  2020-03-23 version 2.0.1
17
  * Fixing an Undefined index error
18
 
19
  2020-03-09 version 2.0.0
20
+ * Added support for Conversions API
21
 
22
  2019-12-02 version 1.8.0
23
  * Support for WordPress 5.3
composer.json CHANGED
@@ -9,7 +9,7 @@
9
  },
10
  "license": "GPL",
11
  "require": {
12
- "facebook/php-business-sdk": "6.0.4",
13
  "techcrunch/wp-async-task": "dev-master"
14
  },
15
  "autoload": {
9
  },
10
  "license": "GPL",
11
  "require": {
12
+ "facebook/php-business-sdk": "7.0.3",
13
  "techcrunch/wp-async-task": "dev-master"
14
  },
15
  "autoload": {
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": "7377f41bb6d7412df023388bf4be179f",
8
  "packages": [
9
  {
10
  "name": "facebook/php-business-sdk",
11
- "version": "6.0.4",
12
  "source": {
13
  "type": "git",
14
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
15
- "reference": "c7bf72b1f5ca8f3fd6120544cb2541546204bf83"
16
  },
17
  "dist": {
18
  "type": "zip",
19
- "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/c7bf72b1f5ca8f3fd6120544cb2541546204bf83",
20
- "reference": "c7bf72b1f5ca8f3fd6120544cb2541546204bf83",
21
  "shasum": ""
22
  },
23
  "require-dev": {
@@ -41,7 +41,7 @@
41
  "page",
42
  "sdk"
43
  ],
44
- "time": "2020-04-08T04:52:23+00:00"
45
  },
46
  {
47
  "name": "techcrunch/wp-async-task",
@@ -183,20 +183,20 @@
183
  },
184
  {
185
  "name": "doctrine/instantiator",
186
- "version": "1.3.0",
187
  "source": {
188
  "type": "git",
189
  "url": "https://github.com/doctrine/instantiator.git",
190
- "reference": "ae466f726242e637cebdd526a7d991b9433bacf1"
191
  },
192
  "dist": {
193
  "type": "zip",
194
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1",
195
- "reference": "ae466f726242e637cebdd526a7d991b9433bacf1",
196
  "shasum": ""
197
  },
198
  "require": {
199
- "php": "^7.1"
200
  },
201
  "require-dev": {
202
  "doctrine/coding-standard": "^6.0",
@@ -235,24 +235,24 @@
235
  "constructor",
236
  "instantiate"
237
  ],
238
- "time": "2019-10-21T16:45:58+00:00"
239
  },
240
  {
241
  "name": "hamcrest/hamcrest-php",
242
- "version": "v2.0.0",
243
  "source": {
244
  "type": "git",
245
  "url": "https://github.com/hamcrest/hamcrest-php.git",
246
- "reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad"
247
  },
248
  "dist": {
249
  "type": "zip",
250
- "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/776503d3a8e85d4f9a1148614f95b7a608b046ad",
251
- "reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad",
252
  "shasum": ""
253
  },
254
  "require": {
255
- "php": "^5.3|^7.0"
256
  },
257
  "replace": {
258
  "cordoval/hamcrest-php": "*",
@@ -260,14 +260,13 @@
260
  "kodova/hamcrest-php": "*"
261
  },
262
  "require-dev": {
263
- "phpunit/php-file-iterator": "1.3.3",
264
- "phpunit/phpunit": "~4.0",
265
- "satooshi/php-coveralls": "^1.0"
266
  },
267
  "type": "library",
268
  "extra": {
269
  "branch-alias": {
270
- "dev-master": "2.0-dev"
271
  }
272
  },
273
  "autoload": {
@@ -277,13 +276,13 @@
277
  },
278
  "notification-url": "https://packagist.org/downloads/",
279
  "license": [
280
- "BSD"
281
  ],
282
  "description": "This is the PHP port of Hamcrest Matchers",
283
  "keywords": [
284
  "test"
285
  ],
286
- "time": "2016-01-20T08:20:44+00:00"
287
  },
288
  {
289
  "name": "mehr-als-nix/parallel",
@@ -323,25 +322,25 @@
323
  },
324
  {
325
  "name": "mockery/mockery",
326
- "version": "1.3.1",
327
  "source": {
328
  "type": "git",
329
  "url": "https://github.com/mockery/mockery.git",
330
- "reference": "f69bbde7d7a75d6b2862d9ca8fab1cd28014b4be"
331
  },
332
  "dist": {
333
  "type": "zip",
334
- "url": "https://api.github.com/repos/mockery/mockery/zipball/f69bbde7d7a75d6b2862d9ca8fab1cd28014b4be",
335
- "reference": "f69bbde7d7a75d6b2862d9ca8fab1cd28014b4be",
336
  "shasum": ""
337
  },
338
  "require": {
339
- "hamcrest/hamcrest-php": "~2.0",
340
  "lib-pcre": ">=7.0",
341
  "php": ">=5.6.0"
342
  },
343
  "require-dev": {
344
- "phpunit/phpunit": "~5.7.10|~6.5|~7.0|~8.0"
345
  },
346
  "type": "library",
347
  "extra": {
@@ -384,24 +383,24 @@
384
  "test double",
385
  "testing"
386
  ],
387
- "time": "2019-12-26T09:49:15+00:00"
388
  },
389
  {
390
  "name": "myclabs/deep-copy",
391
- "version": "1.9.5",
392
  "source": {
393
  "type": "git",
394
  "url": "https://github.com/myclabs/DeepCopy.git",
395
- "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef"
396
  },
397
  "dist": {
398
  "type": "zip",
399
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/b2c28789e80a97badd14145fda39b545d83ca3ef",
400
- "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef",
401
  "shasum": ""
402
  },
403
  "require": {
404
- "php": "^7.1"
405
  },
406
  "replace": {
407
  "myclabs/deep-copy": "self.version"
@@ -432,7 +431,7 @@
432
  "object",
433
  "object graph"
434
  ],
435
- "time": "2020-01-17T21:11:47+00:00"
436
  },
437
  {
438
  "name": "phar-io/manifest",
@@ -635,28 +634,25 @@
635
  },
636
  {
637
  "name": "phpdocumentor/reflection-common",
638
- "version": "2.0.0",
639
  "source": {
640
  "type": "git",
641
  "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
642
- "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a"
643
  },
644
  "dist": {
645
  "type": "zip",
646
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a",
647
- "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a",
648
  "shasum": ""
649
  },
650
  "require": {
651
- "php": ">=7.1"
652
- },
653
- "require-dev": {
654
- "phpunit/phpunit": "~6"
655
  },
656
  "type": "library",
657
  "extra": {
658
  "branch-alias": {
659
- "dev-master": "2.x-dev"
660
  }
661
  },
662
  "autoload": {
@@ -683,32 +679,31 @@
683
  "reflection",
684
  "static analysis"
685
  ],
686
- "time": "2018-08-07T13:53:10+00:00"
687
  },
688
  {
689
  "name": "phpdocumentor/reflection-docblock",
690
- "version": "5.1.0",
691
  "source": {
692
  "type": "git",
693
  "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
694
- "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e"
695
  },
696
  "dist": {
697
  "type": "zip",
698
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e",
699
- "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e",
700
  "shasum": ""
701
  },
702
  "require": {
703
- "ext-filter": "^7.1",
704
- "php": "^7.2",
705
- "phpdocumentor/reflection-common": "^2.0",
706
- "phpdocumentor/type-resolver": "^1.0",
707
- "webmozart/assert": "^1"
708
  },
709
  "require-dev": {
710
- "doctrine/instantiator": "^1",
711
- "mockery/mockery": "^1"
712
  },
713
  "type": "library",
714
  "extra": {
@@ -736,34 +731,33 @@
736
  }
737
  ],
738
  "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
739
- "time": "2020-02-22T12:28:44+00:00"
740
  },
741
  {
742
  "name": "phpdocumentor/type-resolver",
743
- "version": "1.1.0",
744
  "source": {
745
  "type": "git",
746
  "url": "https://github.com/phpDocumentor/TypeResolver.git",
747
- "reference": "7462d5f123dfc080dfdf26897032a6513644fc95"
748
  },
749
  "dist": {
750
  "type": "zip",
751
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/7462d5f123dfc080dfdf26897032a6513644fc95",
752
- "reference": "7462d5f123dfc080dfdf26897032a6513644fc95",
753
  "shasum": ""
754
  },
755
  "require": {
756
- "php": "^7.2",
757
  "phpdocumentor/reflection-common": "^2.0"
758
  },
759
  "require-dev": {
760
- "ext-tokenizer": "^7.2",
761
- "mockery/mockery": "~1"
762
  },
763
  "type": "library",
764
  "extra": {
765
  "branch-alias": {
766
- "dev-master": "1.x-dev"
767
  }
768
  },
769
  "autoload": {
@@ -782,7 +776,7 @@
782
  }
783
  ],
784
  "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
785
- "time": "2020-02-18T18:59:58+00:00"
786
  },
787
  {
788
  "name": "phpspec/prophecy",
@@ -1850,22 +1844,23 @@
1850
  },
1851
  {
1852
  "name": "symfony/console",
1853
- "version": "v4.4.7",
1854
  "source": {
1855
  "type": "git",
1856
  "url": "https://github.com/symfony/console.git",
1857
- "reference": "10bb3ee3c97308869d53b3e3d03f6ac23ff985f7"
1858
  },
1859
  "dist": {
1860
  "type": "zip",
1861
- "url": "https://api.github.com/repos/symfony/console/zipball/10bb3ee3c97308869d53b3e3d03f6ac23ff985f7",
1862
- "reference": "10bb3ee3c97308869d53b3e3d03f6ac23ff985f7",
1863
  "shasum": ""
1864
  },
1865
  "require": {
1866
- "php": "^7.1.3",
1867
  "symfony/polyfill-mbstring": "~1.0",
1868
  "symfony/polyfill-php73": "^1.8",
 
1869
  "symfony/service-contracts": "^1.1|^2"
1870
  },
1871
  "conflict": {
@@ -1922,20 +1917,20 @@
1922
  ],
1923
  "description": "Symfony Console Component",
1924
  "homepage": "https://symfony.com",
1925
- "time": "2020-03-30T11:41:10+00:00"
1926
  },
1927
  {
1928
  "name": "symfony/polyfill-ctype",
1929
- "version": "v1.15.0",
1930
  "source": {
1931
  "type": "git",
1932
  "url": "https://github.com/symfony/polyfill-ctype.git",
1933
- "reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14"
1934
  },
1935
  "dist": {
1936
  "type": "zip",
1937
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/4719fa9c18b0464d399f1a63bf624b42b6fa8d14",
1938
- "reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14",
1939
  "shasum": ""
1940
  },
1941
  "require": {
@@ -1947,7 +1942,11 @@
1947
  "type": "library",
1948
  "extra": {
1949
  "branch-alias": {
1950
- "dev-master": "1.15-dev"
 
 
 
 
1951
  }
1952
  },
1953
  "autoload": {
@@ -1980,20 +1979,20 @@
1980
  "polyfill",
1981
  "portable"
1982
  ],
1983
- "time": "2020-02-27T09:26:54+00:00"
1984
  },
1985
  {
1986
  "name": "symfony/polyfill-mbstring",
1987
- "version": "v1.15.0",
1988
  "source": {
1989
  "type": "git",
1990
  "url": "https://github.com/symfony/polyfill-mbstring.git",
1991
- "reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac"
1992
  },
1993
  "dist": {
1994
  "type": "zip",
1995
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/81ffd3a9c6d707be22e3012b827de1c9775fc5ac",
1996
- "reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac",
1997
  "shasum": ""
1998
  },
1999
  "require": {
@@ -2005,7 +2004,11 @@
2005
  "type": "library",
2006
  "extra": {
2007
  "branch-alias": {
2008
- "dev-master": "1.15-dev"
 
 
 
 
2009
  }
2010
  },
2011
  "autoload": {
@@ -2039,20 +2042,20 @@
2039
  "portable",
2040
  "shim"
2041
  ],
2042
- "time": "2020-03-09T19:04:49+00:00"
2043
  },
2044
  {
2045
  "name": "symfony/polyfill-php73",
2046
- "version": "v1.15.0",
2047
  "source": {
2048
  "type": "git",
2049
  "url": "https://github.com/symfony/polyfill-php73.git",
2050
- "reference": "0f27e9f464ea3da33cbe7ca3bdf4eb66def9d0f7"
2051
  },
2052
  "dist": {
2053
  "type": "zip",
2054
- "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f27e9f464ea3da33cbe7ca3bdf4eb66def9d0f7",
2055
- "reference": "0f27e9f464ea3da33cbe7ca3bdf4eb66def9d0f7",
2056
  "shasum": ""
2057
  },
2058
  "require": {
@@ -2061,7 +2064,11 @@
2061
  "type": "library",
2062
  "extra": {
2063
  "branch-alias": {
2064
- "dev-master": "1.15-dev"
 
 
 
 
2065
  }
2066
  },
2067
  "autoload": {
@@ -2097,24 +2104,90 @@
2097
  "portable",
2098
  "shim"
2099
  ],
2100
- "time": "2020-02-27T09:26:54+00:00"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2101
  },
2102
  {
2103
  "name": "symfony/service-contracts",
2104
- "version": "v2.0.1",
2105
  "source": {
2106
  "type": "git",
2107
  "url": "https://github.com/symfony/service-contracts.git",
2108
- "reference": "144c5e51266b281231e947b51223ba14acf1a749"
2109
  },
2110
  "dist": {
2111
  "type": "zip",
2112
- "url": "https://api.github.com/repos/symfony/service-contracts/zipball/144c5e51266b281231e947b51223ba14acf1a749",
2113
- "reference": "144c5e51266b281231e947b51223ba14acf1a749",
2114
  "shasum": ""
2115
  },
2116
  "require": {
2117
- "php": "^7.2.5",
2118
  "psr/container": "^1.0"
2119
  },
2120
  "suggest": {
@@ -2123,7 +2196,11 @@
2123
  "type": "library",
2124
  "extra": {
2125
  "branch-alias": {
2126
- "dev-master": "2.0-dev"
 
 
 
 
2127
  }
2128
  },
2129
  "autoload": {
@@ -2155,24 +2232,24 @@
2155
  "interoperability",
2156
  "standards"
2157
  ],
2158
- "time": "2019-11-18T17:27:11+00:00"
2159
  },
2160
  {
2161
  "name": "symfony/yaml",
2162
- "version": "v4.4.7",
2163
  "source": {
2164
  "type": "git",
2165
  "url": "https://github.com/symfony/yaml.git",
2166
- "reference": "ef166890d821518106da3560086bfcbeb4fadfec"
2167
  },
2168
  "dist": {
2169
  "type": "zip",
2170
- "url": "https://api.github.com/repos/symfony/yaml/zipball/ef166890d821518106da3560086bfcbeb4fadfec",
2171
- "reference": "ef166890d821518106da3560086bfcbeb4fadfec",
2172
  "shasum": ""
2173
  },
2174
  "require": {
2175
- "php": "^7.1.3",
2176
  "symfony/polyfill-ctype": "~1.8"
2177
  },
2178
  "conflict": {
@@ -2214,27 +2291,27 @@
2214
  ],
2215
  "description": "Symfony Yaml Component",
2216
  "homepage": "https://symfony.com",
2217
- "time": "2020-03-30T11:41:10+00:00"
2218
  },
2219
  {
2220
  "name": "theseer/tokenizer",
2221
- "version": "1.1.3",
2222
  "source": {
2223
  "type": "git",
2224
  "url": "https://github.com/theseer/tokenizer.git",
2225
- "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9"
2226
  },
2227
  "dist": {
2228
  "type": "zip",
2229
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
2230
- "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
2231
  "shasum": ""
2232
  },
2233
  "require": {
2234
  "ext-dom": "*",
2235
  "ext-tokenizer": "*",
2236
  "ext-xmlwriter": "*",
2237
- "php": "^7.0"
2238
  },
2239
  "type": "library",
2240
  "autoload": {
@@ -2254,28 +2331,29 @@
2254
  }
2255
  ],
2256
  "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
2257
- "time": "2019-06-13T22:48:21+00:00"
2258
  },
2259
  {
2260
  "name": "webmozart/assert",
2261
- "version": "1.7.0",
2262
  "source": {
2263
  "type": "git",
2264
  "url": "https://github.com/webmozart/assert.git",
2265
- "reference": "aed98a490f9a8f78468232db345ab9cf606cf598"
2266
  },
2267
  "dist": {
2268
  "type": "zip",
2269
- "url": "https://api.github.com/repos/webmozart/assert/zipball/aed98a490f9a8f78468232db345ab9cf606cf598",
2270
- "reference": "aed98a490f9a8f78468232db345ab9cf606cf598",
2271
  "shasum": ""
2272
  },
2273
  "require": {
2274
- "php": "^5.3.3 || ^7.0",
2275
  "symfony/polyfill-ctype": "^1.8"
2276
  },
2277
  "conflict": {
2278
- "vimeo/psalm": "<3.6.0"
 
2279
  },
2280
  "require-dev": {
2281
  "phpunit/phpunit": "^4.8.36 || ^7.5.13"
@@ -2302,7 +2380,7 @@
2302
  "check",
2303
  "validate"
2304
  ],
2305
- "time": "2020-02-14T12:15:55+00:00"
2306
  }
2307
  ],
2308
  "aliases": [],
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": "8525d272beb712ed341e2acd76074577",
8
  "packages": [
9
  {
10
  "name": "facebook/php-business-sdk",
11
+ "version": "7.0.3",
12
  "source": {
13
  "type": "git",
14
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
15
+ "reference": "ddbd867b0ee296f83a4d5a1a4aae5c82fa5a5eaa"
16
  },
17
  "dist": {
18
  "type": "zip",
19
+ "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/ddbd867b0ee296f83a4d5a1a4aae5c82fa5a5eaa",
20
+ "reference": "ddbd867b0ee296f83a4d5a1a4aae5c82fa5a5eaa",
21
  "shasum": ""
22
  },
23
  "require-dev": {
41
  "page",
42
  "sdk"
43
  ],
44
+ "time": "2020-07-20T17:04:42+00:00"
45
  },
46
  {
47
  "name": "techcrunch/wp-async-task",
183
  },
184
  {
185
  "name": "doctrine/instantiator",
186
+ "version": "1.3.1",
187
  "source": {
188
  "type": "git",
189
  "url": "https://github.com/doctrine/instantiator.git",
190
+ "reference": "f350df0268e904597e3bd9c4685c53e0e333feea"
191
  },
192
  "dist": {
193
  "type": "zip",
194
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f350df0268e904597e3bd9c4685c53e0e333feea",
195
+ "reference": "f350df0268e904597e3bd9c4685c53e0e333feea",
196
  "shasum": ""
197
  },
198
  "require": {
199
+ "php": "^7.1 || ^8.0"
200
  },
201
  "require-dev": {
202
  "doctrine/coding-standard": "^6.0",
235
  "constructor",
236
  "instantiate"
237
  ],
238
+ "time": "2020-05-29T17:27:14+00:00"
239
  },
240
  {
241
  "name": "hamcrest/hamcrest-php",
242
+ "version": "v2.0.1",
243
  "source": {
244
  "type": "git",
245
  "url": "https://github.com/hamcrest/hamcrest-php.git",
246
+ "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3"
247
  },
248
  "dist": {
249
  "type": "zip",
250
+ "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
251
+ "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
252
  "shasum": ""
253
  },
254
  "require": {
255
+ "php": "^5.3|^7.0|^8.0"
256
  },
257
  "replace": {
258
  "cordoval/hamcrest-php": "*",
260
  "kodova/hamcrest-php": "*"
261
  },
262
  "require-dev": {
263
+ "phpunit/php-file-iterator": "^1.4 || ^2.0",
264
+ "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0"
 
265
  },
266
  "type": "library",
267
  "extra": {
268
  "branch-alias": {
269
+ "dev-master": "2.1-dev"
270
  }
271
  },
272
  "autoload": {
276
  },
277
  "notification-url": "https://packagist.org/downloads/",
278
  "license": [
279
+ "BSD-3-Clause"
280
  ],
281
  "description": "This is the PHP port of Hamcrest Matchers",
282
  "keywords": [
283
  "test"
284
  ],
285
+ "time": "2020-07-09T08:09:16+00:00"
286
  },
287
  {
288
  "name": "mehr-als-nix/parallel",
322
  },
323
  {
324
  "name": "mockery/mockery",
325
+ "version": "1.3.2",
326
  "source": {
327
  "type": "git",
328
  "url": "https://github.com/mockery/mockery.git",
329
+ "reference": "9b6f117dd7d36dc3858d8d8ddf9b3d584fcae283"
330
  },
331
  "dist": {
332
  "type": "zip",
333
+ "url": "https://api.github.com/repos/mockery/mockery/zipball/9b6f117dd7d36dc3858d8d8ddf9b3d584fcae283",
334
+ "reference": "9b6f117dd7d36dc3858d8d8ddf9b3d584fcae283",
335
  "shasum": ""
336
  },
337
  "require": {
338
+ "hamcrest/hamcrest-php": "^2.0.1",
339
  "lib-pcre": ">=7.0",
340
  "php": ">=5.6.0"
341
  },
342
  "require-dev": {
343
+ "phpunit/phpunit": "~5.7.10|~6.5|~7.0|~8.0|~9.0"
344
  },
345
  "type": "library",
346
  "extra": {
383
  "test double",
384
  "testing"
385
  ],
386
+ "time": "2020-07-09T08:23:05+00:00"
387
  },
388
  {
389
  "name": "myclabs/deep-copy",
390
+ "version": "1.10.1",
391
  "source": {
392
  "type": "git",
393
  "url": "https://github.com/myclabs/DeepCopy.git",
394
+ "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5"
395
  },
396
  "dist": {
397
  "type": "zip",
398
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
399
+ "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
400
  "shasum": ""
401
  },
402
  "require": {
403
+ "php": "^7.1 || ^8.0"
404
  },
405
  "replace": {
406
  "myclabs/deep-copy": "self.version"
431
  "object",
432
  "object graph"
433
  ],
434
+ "time": "2020-06-29T13:22:24+00:00"
435
  },
436
  {
437
  "name": "phar-io/manifest",
634
  },
635
  {
636
  "name": "phpdocumentor/reflection-common",
637
+ "version": "2.2.0",
638
  "source": {
639
  "type": "git",
640
  "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
641
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
642
  },
643
  "dist": {
644
  "type": "zip",
645
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
646
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
647
  "shasum": ""
648
  },
649
  "require": {
650
+ "php": "^7.2 || ^8.0"
 
 
 
651
  },
652
  "type": "library",
653
  "extra": {
654
  "branch-alias": {
655
+ "dev-2.x": "2.x-dev"
656
  }
657
  },
658
  "autoload": {
679
  "reflection",
680
  "static analysis"
681
  ],
682
+ "time": "2020-06-27T09:03:43+00:00"
683
  },
684
  {
685
  "name": "phpdocumentor/reflection-docblock",
686
+ "version": "5.2.0",
687
  "source": {
688
  "type": "git",
689
  "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
690
+ "reference": "3170448f5769fe19f456173d833734e0ff1b84df"
691
  },
692
  "dist": {
693
  "type": "zip",
694
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/3170448f5769fe19f456173d833734e0ff1b84df",
695
+ "reference": "3170448f5769fe19f456173d833734e0ff1b84df",
696
  "shasum": ""
697
  },
698
  "require": {
699
+ "ext-filter": "*",
700
+ "php": "^7.2 || ^8.0",
701
+ "phpdocumentor/reflection-common": "^2.2",
702
+ "phpdocumentor/type-resolver": "^1.3",
703
+ "webmozart/assert": "^1.9.1"
704
  },
705
  "require-dev": {
706
+ "mockery/mockery": "~1.3.2"
 
707
  },
708
  "type": "library",
709
  "extra": {
731
  }
732
  ],
733
  "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
734
+ "time": "2020-07-20T20:05:34+00:00"
735
  },
736
  {
737
  "name": "phpdocumentor/type-resolver",
738
+ "version": "1.3.0",
739
  "source": {
740
  "type": "git",
741
  "url": "https://github.com/phpDocumentor/TypeResolver.git",
742
+ "reference": "e878a14a65245fbe78f8080eba03b47c3b705651"
743
  },
744
  "dist": {
745
  "type": "zip",
746
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e878a14a65245fbe78f8080eba03b47c3b705651",
747
+ "reference": "e878a14a65245fbe78f8080eba03b47c3b705651",
748
  "shasum": ""
749
  },
750
  "require": {
751
+ "php": "^7.2 || ^8.0",
752
  "phpdocumentor/reflection-common": "^2.0"
753
  },
754
  "require-dev": {
755
+ "ext-tokenizer": "*"
 
756
  },
757
  "type": "library",
758
  "extra": {
759
  "branch-alias": {
760
+ "dev-1.x": "1.x-dev"
761
  }
762
  },
763
  "autoload": {
776
  }
777
  ],
778
  "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
779
+ "time": "2020-06-27T10:12:23+00:00"
780
  },
781
  {
782
  "name": "phpspec/prophecy",
1844
  },
1845
  {
1846
  "name": "symfony/console",
1847
+ "version": "v4.4.11",
1848
  "source": {
1849
  "type": "git",
1850
  "url": "https://github.com/symfony/console.git",
1851
+ "reference": "55d07021da933dd0d633ffdab6f45d5b230c7e02"
1852
  },
1853
  "dist": {
1854
  "type": "zip",
1855
+ "url": "https://api.github.com/repos/symfony/console/zipball/55d07021da933dd0d633ffdab6f45d5b230c7e02",
1856
+ "reference": "55d07021da933dd0d633ffdab6f45d5b230c7e02",
1857
  "shasum": ""
1858
  },
1859
  "require": {
1860
+ "php": ">=7.1.3",
1861
  "symfony/polyfill-mbstring": "~1.0",
1862
  "symfony/polyfill-php73": "^1.8",
1863
+ "symfony/polyfill-php80": "^1.15",
1864
  "symfony/service-contracts": "^1.1|^2"
1865
  },
1866
  "conflict": {
1917
  ],
1918
  "description": "Symfony Console Component",
1919
  "homepage": "https://symfony.com",
1920
+ "time": "2020-07-06T13:18:39+00:00"
1921
  },
1922
  {
1923
  "name": "symfony/polyfill-ctype",
1924
+ "version": "v1.18.0",
1925
  "source": {
1926
  "type": "git",
1927
  "url": "https://github.com/symfony/polyfill-ctype.git",
1928
+ "reference": "1c302646f6efc070cd46856e600e5e0684d6b454"
1929
  },
1930
  "dist": {
1931
  "type": "zip",
1932
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/1c302646f6efc070cd46856e600e5e0684d6b454",
1933
+ "reference": "1c302646f6efc070cd46856e600e5e0684d6b454",
1934
  "shasum": ""
1935
  },
1936
  "require": {
1942
  "type": "library",
1943
  "extra": {
1944
  "branch-alias": {
1945
+ "dev-master": "1.18-dev"
1946
+ },
1947
+ "thanks": {
1948
+ "name": "symfony/polyfill",
1949
+ "url": "https://github.com/symfony/polyfill"
1950
  }
1951
  },
1952
  "autoload": {
1979
  "polyfill",
1980
  "portable"
1981
  ],
1982
+ "time": "2020-07-14T12:35:20+00:00"
1983
  },
1984
  {
1985
  "name": "symfony/polyfill-mbstring",
1986
+ "version": "v1.18.0",
1987
  "source": {
1988
  "type": "git",
1989
  "url": "https://github.com/symfony/polyfill-mbstring.git",
1990
+ "reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a"
1991
  },
1992
  "dist": {
1993
  "type": "zip",
1994
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/a6977d63bf9a0ad4c65cd352709e230876f9904a",
1995
+ "reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a",
1996
  "shasum": ""
1997
  },
1998
  "require": {
2004
  "type": "library",
2005
  "extra": {
2006
  "branch-alias": {
2007
+ "dev-master": "1.18-dev"
2008
+ },
2009
+ "thanks": {
2010
+ "name": "symfony/polyfill",
2011
+ "url": "https://github.com/symfony/polyfill"
2012
  }
2013
  },
2014
  "autoload": {
2042
  "portable",
2043
  "shim"
2044
  ],
2045
+ "time": "2020-07-14T12:35:20+00:00"
2046
  },
2047
  {
2048
  "name": "symfony/polyfill-php73",
2049
+ "version": "v1.18.0",
2050
  "source": {
2051
  "type": "git",
2052
  "url": "https://github.com/symfony/polyfill-php73.git",
2053
+ "reference": "fffa1a52a023e782cdcc221d781fe1ec8f87fcca"
2054
  },
2055
  "dist": {
2056
  "type": "zip",
2057
+ "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fffa1a52a023e782cdcc221d781fe1ec8f87fcca",
2058
+ "reference": "fffa1a52a023e782cdcc221d781fe1ec8f87fcca",
2059
  "shasum": ""
2060
  },
2061
  "require": {
2064
  "type": "library",
2065
  "extra": {
2066
  "branch-alias": {
2067
+ "dev-master": "1.18-dev"
2068
+ },
2069
+ "thanks": {
2070
+ "name": "symfony/polyfill",
2071
+ "url": "https://github.com/symfony/polyfill"
2072
  }
2073
  },
2074
  "autoload": {
2104
  "portable",
2105
  "shim"
2106
  ],
2107
+ "time": "2020-07-14T12:35:20+00:00"
2108
+ },
2109
+ {
2110
+ "name": "symfony/polyfill-php80",
2111
+ "version": "v1.18.0",
2112
+ "source": {
2113
+ "type": "git",
2114
+ "url": "https://github.com/symfony/polyfill-php80.git",
2115
+ "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981"
2116
+ },
2117
+ "dist": {
2118
+ "type": "zip",
2119
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/d87d5766cbf48d72388a9f6b85f280c8ad51f981",
2120
+ "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981",
2121
+ "shasum": ""
2122
+ },
2123
+ "require": {
2124
+ "php": ">=7.0.8"
2125
+ },
2126
+ "type": "library",
2127
+ "extra": {
2128
+ "branch-alias": {
2129
+ "dev-master": "1.18-dev"
2130
+ },
2131
+ "thanks": {
2132
+ "name": "symfony/polyfill",
2133
+ "url": "https://github.com/symfony/polyfill"
2134
+ }
2135
+ },
2136
+ "autoload": {
2137
+ "psr-4": {
2138
+ "Symfony\\Polyfill\\Php80\\": ""
2139
+ },
2140
+ "files": [
2141
+ "bootstrap.php"
2142
+ ],
2143
+ "classmap": [
2144
+ "Resources/stubs"
2145
+ ]
2146
+ },
2147
+ "notification-url": "https://packagist.org/downloads/",
2148
+ "license": [
2149
+ "MIT"
2150
+ ],
2151
+ "authors": [
2152
+ {
2153
+ "name": "Ion Bazan",
2154
+ "email": "ion.bazan@gmail.com"
2155
+ },
2156
+ {
2157
+ "name": "Nicolas Grekas",
2158
+ "email": "p@tchwork.com"
2159
+ },
2160
+ {
2161
+ "name": "Symfony Community",
2162
+ "homepage": "https://symfony.com/contributors"
2163
+ }
2164
+ ],
2165
+ "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
2166
+ "homepage": "https://symfony.com",
2167
+ "keywords": [
2168
+ "compatibility",
2169
+ "polyfill",
2170
+ "portable",
2171
+ "shim"
2172
+ ],
2173
+ "time": "2020-07-14T12:35:20+00:00"
2174
  },
2175
  {
2176
  "name": "symfony/service-contracts",
2177
+ "version": "v2.1.3",
2178
  "source": {
2179
  "type": "git",
2180
  "url": "https://github.com/symfony/service-contracts.git",
2181
+ "reference": "58c7475e5457c5492c26cc740cc0ad7464be9442"
2182
  },
2183
  "dist": {
2184
  "type": "zip",
2185
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/58c7475e5457c5492c26cc740cc0ad7464be9442",
2186
+ "reference": "58c7475e5457c5492c26cc740cc0ad7464be9442",
2187
  "shasum": ""
2188
  },
2189
  "require": {
2190
+ "php": ">=7.2.5",
2191
  "psr/container": "^1.0"
2192
  },
2193
  "suggest": {
2196
  "type": "library",
2197
  "extra": {
2198
  "branch-alias": {
2199
+ "dev-master": "2.1-dev"
2200
+ },
2201
+ "thanks": {
2202
+ "name": "symfony/contracts",
2203
+ "url": "https://github.com/symfony/contracts"
2204
  }
2205
  },
2206
  "autoload": {
2232
  "interoperability",
2233
  "standards"
2234
  ],
2235
+ "time": "2020-07-06T13:23:11+00:00"
2236
  },
2237
  {
2238
  "name": "symfony/yaml",
2239
+ "version": "v4.4.11",
2240
  "source": {
2241
  "type": "git",
2242
  "url": "https://github.com/symfony/yaml.git",
2243
+ "reference": "c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a"
2244
  },
2245
  "dist": {
2246
  "type": "zip",
2247
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a",
2248
+ "reference": "c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a",
2249
  "shasum": ""
2250
  },
2251
  "require": {
2252
+ "php": ">=7.1.3",
2253
  "symfony/polyfill-ctype": "~1.8"
2254
  },
2255
  "conflict": {
2291
  ],
2292
  "description": "Symfony Yaml Component",
2293
  "homepage": "https://symfony.com",
2294
+ "time": "2020-05-20T08:37:50+00:00"
2295
  },
2296
  {
2297
  "name": "theseer/tokenizer",
2298
+ "version": "1.2.0",
2299
  "source": {
2300
  "type": "git",
2301
  "url": "https://github.com/theseer/tokenizer.git",
2302
+ "reference": "75a63c33a8577608444246075ea0af0d052e452a"
2303
  },
2304
  "dist": {
2305
  "type": "zip",
2306
+ "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a",
2307
+ "reference": "75a63c33a8577608444246075ea0af0d052e452a",
2308
  "shasum": ""
2309
  },
2310
  "require": {
2311
  "ext-dom": "*",
2312
  "ext-tokenizer": "*",
2313
  "ext-xmlwriter": "*",
2314
+ "php": "^7.2 || ^8.0"
2315
  },
2316
  "type": "library",
2317
  "autoload": {
2331
  }
2332
  ],
2333
  "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
2334
+ "time": "2020-07-12T23:59:07+00:00"
2335
  },
2336
  {
2337
  "name": "webmozart/assert",
2338
+ "version": "1.9.1",
2339
  "source": {
2340
  "type": "git",
2341
  "url": "https://github.com/webmozart/assert.git",
2342
+ "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389"
2343
  },
2344
  "dist": {
2345
  "type": "zip",
2346
+ "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
2347
+ "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389",
2348
  "shasum": ""
2349
  },
2350
  "require": {
2351
+ "php": "^5.3.3 || ^7.0 || ^8.0",
2352
  "symfony/polyfill-ctype": "^1.8"
2353
  },
2354
  "conflict": {
2355
+ "phpstan/phpstan": "<0.12.20",
2356
+ "vimeo/psalm": "<3.9.1"
2357
  },
2358
  "require-dev": {
2359
  "phpunit/phpunit": "^4.8.36 || ^7.5.13"
2380
  "check",
2381
  "validate"
2382
  ],
2383
+ "time": "2020-07-08T17:02:28+00:00"
2384
  }
2385
  ],
2386
  "aliases": [],
core/FacebookPluginConfig.php CHANGED
@@ -20,7 +20,7 @@ namespace FacebookPixelPlugin\Core;
20
  defined('ABSPATH') or die('Direct access not allowed');
21
 
22
  class FacebookPluginConfig {
23
- const PLUGIN_VERSION = '2.1.0';
24
  const SOURCE = 'wordpress';
25
  const TEXT_DOMAIN = 'official-facebook-pixel';
26
 
@@ -34,7 +34,7 @@ class FacebookPluginConfig {
34
  const ADMIN_OPTION_GROUP = 'facebook_option_group';
35
  const ADMIN_PAGE_TITLE = 'Facebook Pixel Settings';
36
  const ADMIN_PRIVACY_URL = 'https://developers.facebook.com/docs/privacy/';
37
- const ADMIN_S2S_URL = 'https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api';
38
  const ADMIN_SECTION_ID = 'facebook_settings_section';
39
 
40
  const DEFAULT_PIXEL_ID = null;
20
  defined('ABSPATH') or die('Direct access not allowed');
21
 
22
  class FacebookPluginConfig {
23
+ const PLUGIN_VERSION = '2.2.0';
24
  const SOURCE = 'wordpress';
25
  const TEXT_DOMAIN = 'official-facebook-pixel';
26
 
34
  const ADMIN_OPTION_GROUP = 'facebook_option_group';
35
  const ADMIN_PAGE_TITLE = 'Facebook Pixel Settings';
36
  const ADMIN_PRIVACY_URL = 'https://developers.facebook.com/docs/privacy/';
37
+ const ADMIN_S2S_URL = 'https://developers.facebook.com/docs/marketing-api/conversions-api';
38
  const ADMIN_SECTION_ID = 'facebook_settings_section';
39
 
40
  const DEFAULT_PIXEL_ID = null;
core/FacebookServerSideEvent.php CHANGED
@@ -49,6 +49,7 @@ class FacebookServerSideEvent {
49
  }
50
 
51
  public static function send($events) {
 
52
  if (empty($events)) {
53
  return;
54
  }
@@ -60,8 +61,8 @@ class FacebookServerSideEvent {
60
  $api = Api::init(null, null, $access_token);
61
 
62
  $request = (new EventRequest($pixel_id))
63
- ->setEvents($events)
64
- ->setPartnerAgent($agent);
65
 
66
  $response = $request->execute();
67
  }
49
  }
50
 
51
  public static function send($events) {
52
+ $events = apply_filters('before_conversions_api_event_sent', $events);
53
  if (empty($events)) {
54
  return;
55
  }
61
  $api = Api::init(null, null, $access_token);
62
 
63
  $request = (new EventRequest($pixel_id))
64
+ ->setEvents($events)
65
+ ->setPartnerAgent($agent);
66
 
67
  $response = $request->execute();
68
  }
core/FacebookWordpressSettingsPage.php CHANGED
@@ -90,7 +90,7 @@ class FacebookWordpressSettingsPage {
90
  FacebookPluginConfig::ADMIN_SECTION_ID);
91
  add_settings_field(
92
  FacebookPluginConfig::USE_S2S_KEY,
93
- 'Use Server-Side API?',
94
  array($this, 'useS2SFormField'),
95
  FacebookPluginConfig::ADMIN_MENU_SLUG,
96
  FacebookPluginConfig::ADMIN_SECTION_ID);
@@ -210,7 +210,7 @@ class FacebookWordpressSettingsPage {
210
  $link = sprintf(
211
  wp_kses(
212
  __(
213
- 'An access token is required to use the server-side API.<br>
214
  <a href="%s" target="_blank"> Generate Access Token</a>',
215
  FacebookPluginConfig::TEXT_DOMAIN),
216
  array('a' => array('href' => array(), 'target' => array()))),
@@ -238,7 +238,7 @@ class FacebookWordpressSettingsPage {
238
  ',
239
  esc_html__(
240
  'Also send events directly from your web server to Facebook through the
241
- server-side API. This can help you capture more events.',
242
  FacebookPluginConfig::TEXT_DOMAIN),
243
  $link);
244
  }
@@ -311,7 +311,7 @@ class FacebookWordpressSettingsPage {
311
 
312
  public function serverSideApiNotEnabledNotice() {
313
  $this->setNotice(
314
- __('The Facebook Pixel plugin now includes support for the Server-Side
315
  API, which lets you send events directly from your page\'s website.
316
  Click <a href="%s">here</a> to configure the plugin.',
317
  FacebookPluginConfig::TEXT_DOMAIN),
90
  FacebookPluginConfig::ADMIN_SECTION_ID);
91
  add_settings_field(
92
  FacebookPluginConfig::USE_S2S_KEY,
93
+ 'Use Conversions API?',
94
  array($this, 'useS2SFormField'),
95
  FacebookPluginConfig::ADMIN_MENU_SLUG,
96
  FacebookPluginConfig::ADMIN_SECTION_ID);
210
  $link = sprintf(
211
  wp_kses(
212
  __(
213
+ 'An access token is required to use the Conversions API.<br>
214
  <a href="%s" target="_blank"> Generate Access Token</a>',
215
  FacebookPluginConfig::TEXT_DOMAIN),
216
  array('a' => array('href' => array(), 'target' => array()))),
238
  ',
239
  esc_html__(
240
  'Also send events directly from your web server to Facebook through the
241
+ Conversions API. This can help you capture more events.',
242
  FacebookPluginConfig::TEXT_DOMAIN),
243
  $link);
244
  }
311
 
312
  public function serverSideApiNotEnabledNotice() {
313
  $this->setNotice(
314
+ __('The Facebook Pixel plugin now includes support for the Conversions
315
  API, which lets you send events directly from your page\'s website.
316
  Click <a href="%s">here</a> to configure the plugin.',
317
  FacebookPluginConfig::TEXT_DOMAIN),
core/ServerEventFactory.php CHANGED
@@ -163,6 +163,26 @@ class ServerEventFactory {
163
  if (!empty($data['phone'])) {
164
  $user_data->setPhone($data['phone']);
165
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  }
167
 
168
  $custom_data = $event->getCustomData();
@@ -191,6 +211,10 @@ class ServerEventFactory {
191
  if (!empty($data['num_items'])) {
192
  $custom_data->setNumItems($data['num_items']);
193
  }
 
 
 
 
194
  } catch (\Exception $e) {
195
  // Need to log
196
  }
163
  if (!empty($data['phone'])) {
164
  $user_data->setPhone($data['phone']);
165
  }
166
+
167
+ if(!empty($data['state'])){
168
+ $user_data->setState($data['state']);
169
+ }
170
+
171
+ if(!empty($data['country'])){
172
+ $user_data->setCountryCode($data['country']);
173
+ }
174
+
175
+ if(!empty($data['city'])){
176
+ $user_data->setCity($data['city']);
177
+ }
178
+
179
+ if(!empty($data['zip'])){
180
+ $user_data->setZipCode($data['zip']);
181
+ }
182
+
183
+ if(!empty($data['gender'])){
184
+ $user_data->setGender($data['gender']);
185
+ }
186
  }
187
 
188
  $custom_data = $event->getCustomData();
211
  if (!empty($data['num_items'])) {
212
  $custom_data->setNumItems($data['num_items']);
213
  }
214
+
215
+ if (!empty($data['content_name'])) {
216
+ $custom_data->setContentName($data['content_name']);
217
+ }
218
  } catch (\Exception $e) {
219
  // Need to log
220
  }
facebook-for-wordpress.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
6
  * Author: Facebook
7
  * Author URI: https://www.facebook.com/
8
- * Version: 2.1.0
9
  * Text Domain: official-facebook-pixel
10
  */
11
 
5
  * Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
6
  * Author: Facebook
7
  * Author URI: https://www.facebook.com/
8
+ * Version: 2.2.0
9
  * Text Domain: official-facebook-pixel
10
  */
11
 
integration/FacebookWordpressCalderaForm.php CHANGED
@@ -57,8 +57,8 @@ class FacebookWordpressCalderaForm extends FacebookWordpressIntegrationBase {
57
  <!-- Facebook Pixel Event Code -->
58
  %s
59
  <!-- End Facebook Pixel Event Code -->
60
- ",
61
- $code);
62
 
63
  $out['html'] .= $code;
64
  return $out;
@@ -68,12 +68,12 @@ class FacebookWordpressCalderaForm extends FacebookWordpressIntegrationBase {
68
  if (empty($form)) {
69
  return array();
70
  }
71
-
72
  return array(
73
  'email' => self::getEmail($form),
74
  'first_name' => self::getFirstName($form),
75
  'last_name' => self::getLastName($form),
76
- 'phone' => self::getPhone($form)
 
77
  );
78
  }
79
 
@@ -89,6 +89,10 @@ class FacebookWordpressCalderaForm extends FacebookWordpressIntegrationBase {
89
  return self::getFieldValue($form, 'slug', 'last_name');
90
  }
91
 
 
 
 
 
92
  private static function getPhone($form) {
93
  // Extract phone number from the better version first, fallback to the basic
94
  // version if it's null
57
  <!-- Facebook Pixel Event Code -->
58
  %s
59
  <!-- End Facebook Pixel Event Code -->
60
+ ",
61
+ $code);
62
 
63
  $out['html'] .= $code;
64
  return $out;
68
  if (empty($form)) {
69
  return array();
70
  }
 
71
  return array(
72
  'email' => self::getEmail($form),
73
  'first_name' => self::getFirstName($form),
74
  'last_name' => self::getLastName($form),
75
+ 'phone' => self::getPhone($form),
76
+ 'state' => self::getState($form)
77
  );
78
  }
79
 
89
  return self::getFieldValue($form, 'slug', 'last_name');
90
  }
91
 
92
+ private static function getState($form){
93
+ return self::getFieldValue($form, 'type', 'states');
94
+ }
95
+
96
  private static function getPhone($form) {
97
  // Extract phone number from the better version first, fallback to the basic
98
  // version if it's null
integration/FacebookWordpressEasyDigitalDownloads.php CHANGED
@@ -24,6 +24,8 @@ use FacebookPixelPlugin\Core\FacebookPluginUtils;
24
  use FacebookPixelPlugin\Core\ServerEventFactory;
25
  use FacebookPixelPlugin\Core\FacebookServerSideEvent;
26
  use FacebookPixelPlugin\Core\PixelRenderer;
 
 
27
 
28
  class FacebookWordpressEasyDigitalDownloads extends FacebookWordpressIntegrationBase {
29
  const PLUGIN_FILE = 'easy-digital-downloads/easy-digital-downloads.php';
@@ -40,6 +42,7 @@ jQuery(document).ready(function ($) {
40
  var form = _this.parents('form').last();
41
  var value = 0;
42
  var variable_price = _this.data('variable-price');
 
43
  if( variable_price == 'yes' ) {
44
  form.find('.edd_price_option_' + download + ':checked', form).each(function(index) {
45
  value = $(this).data('price');
@@ -57,17 +60,46 @@ jQuery(document).ready(function ($) {
57
  '%s': '%s',
58
  'value': value
59
  };
60
- %s
 
 
 
 
 
 
61
  });
62
  });
63
  ";
64
 
65
  public static function injectPixelCode() {
66
- // AddToCart
67
- self::addPixelFireForHook(array(
68
- 'hook_name' => 'edd_after_download_content',
69
- 'classname' => __CLASS__,
70
- 'inject_function' => 'injectAddToCartEvent'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  // InitiateCheckout
73
  self::addPixelFireForHook(array(
@@ -82,23 +114,59 @@ jQuery(document).ready(function ($) {
82
  10, 2);
83
 
84
  // ViewContent
85
- self::addPixelFireForHook(array(
86
- 'hook_name' => 'edd_after_download_content',
87
- 'classname' => __CLASS__,
88
- 'inject_function' => 'injectViewContentEvent'));
 
 
 
 
 
 
 
 
 
 
 
89
  }
90
 
91
- public static function injectAddToCartEvent($download_id) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  if (FacebookPluginUtils::isAdmin()) {
93
  return;
94
  }
95
 
96
- $pixel_code = FacebookPixel::getPixelAddToCartCode('param', self::TRACKING_NAME, false);
97
  $listener_code = sprintf(
98
  self::$addToCartJS,
99
  FacebookPixel::FB_INTEGRATION_TRACKING_KEY,
100
- self::TRACKING_NAME,
101
- $pixel_code);
102
 
103
  printf("
104
  <!-- Facebook Pixel Event Code -->
@@ -169,25 +237,16 @@ jQuery(document).ready(function ($) {
169
  return;
170
  }
171
 
172
- $currency = edd_get_currency();
173
- if (get_post_meta($download_id, '_variable_pricing', true)) { // variable price
174
- $prices = get_post_meta($download_id, 'edd_variable_prices', true);
175
- $price = array_shift($prices);
176
- $value = $price['amount'];
177
- } else {
178
- $value = get_post_meta($download_id, 'edd_price', true);
179
- }
180
- if (!$value) {
181
- $value = 0;
182
- }
183
- $param = array(
184
- 'content_ids' => array($download_id),
185
- 'content_type' => 'product',
186
- 'currency' => $currency,
187
- 'value' => $value,
188
  );
189
- $code = FacebookPixel::getPixelViewContentCode($param, self::TRACKING_NAME);
190
 
 
 
 
191
  printf("
192
  <!-- Facebook Pixel Event Code -->
193
  %s
@@ -230,4 +289,51 @@ jQuery(document).ready(function ($) {
230
 
231
  return $event_data;
232
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
  }
24
  use FacebookPixelPlugin\Core\ServerEventFactory;
25
  use FacebookPixelPlugin\Core\FacebookServerSideEvent;
26
  use FacebookPixelPlugin\Core\PixelRenderer;
27
+ use FacebookPixelPlugin\Core\FacebookWordpressOptions;
28
+ use FacebookPixelPlugin\Core\EventIdGenerator;
29
 
30
  class FacebookWordpressEasyDigitalDownloads extends FacebookWordpressIntegrationBase {
31
  const PLUGIN_FILE = 'easy-digital-downloads/easy-digital-downloads.php';
42
  var form = _this.parents('form').last();
43
  var value = 0;
44
  var variable_price = _this.data('variable-price');
45
+ var event_id = form.find(\"input[name='facebook_event_id']\").val();
46
  if( variable_price == 'yes' ) {
47
  form.find('.edd_price_option_' + download + ':checked', form).each(function(index) {
48
  value = $(this).data('price');
60
  '%s': '%s',
61
  'value': value
62
  };
63
+
64
+ if(event_id){
65
+ fbq('track', 'AddToCart', param, {'eventID': event_id});
66
+ }
67
+ else{
68
+ fbq('track', 'AddToCart', param);
69
+ }
70
  });
71
  });
72
  ";
73
 
74
  public static function injectPixelCode() {
75
+ // AddToCart JS listener
76
+ add_action(
77
+ 'edd_after_download_content',
78
+ array(__CLASS__, 'injectAddToCartListener')
79
+ );
80
+ add_action(
81
+ 'edd_downloads_list_after',
82
+ array(__CLASS__, 'injectAddToCartListener')
83
+ );
84
+
85
+ //Hooks to AddToCart ajax requests
86
+ add_action(
87
+ 'wp_ajax_edd_add_to_cart',
88
+ array(__CLASS__, 'injectAddToCartEventAjax'),
89
+ 5
90
+ );
91
+
92
+ add_action(
93
+ 'wp_ajax_nopriv_edd_add_to_cart',
94
+ array(__CLASS__, 'injectAddToCartEventAjax'),
95
+ 5
96
+ );
97
+
98
+ //Injects a hidden field with event id to send it in AddToCart ajax request
99
+ add_action(
100
+ 'edd_purchase_link_top',
101
+ array(__CLASS__, 'injectAddToCartEventId')
102
+ );
103
 
104
  // InitiateCheckout
105
  self::addPixelFireForHook(array(
114
  10, 2);
115
 
116
  // ViewContent
117
+ add_action(
118
+ 'edd_after_download_content',
119
+ array(__CLASS__, 'injectViewContentEvent'),
120
+ 40, 1
121
+ );
122
+ }
123
+
124
+ public static function injectAddToCartEventId(){
125
+ if(FacebookPluginUtils::isAdmin()
126
+ || !FacebookWordpressOptions::getUseS2S()){
127
+ return;
128
+ }
129
+ $eventId = EventIdGenerator::guidv4();
130
+ printf("<input type=\"hidden\" name=\"facebook_event_id\" value=\"%s\">",
131
+ $eventId);
132
  }
133
 
134
+ public static function injectAddToCartEventAjax(){
135
+ if( isset($_POST['nonce']) && isset($_POST['download_id'])
136
+ && isset($_POST['post_data'])){
137
+ $download_id = absint( $_POST['download_id'] );
138
+ //Adding form validations
139
+ $nonce = sanitize_text_field( $_POST['nonce'] );
140
+ if( wp_verify_nonce($nonce, 'edd-add-to-cart-'.$download_id) === false ){
141
+ return;
142
+ }
143
+ //Getting form data
144
+ parse_str( $_POST['post_data'], $post_data );
145
+ if(isset($post_data['facebook_event_id'])){
146
+ //Starting CAPI event creation
147
+ $event_id = $post_data['facebook_event_id'];
148
+ $server_event = ServerEventFactory::safeCreateEvent(
149
+ 'AddToCart',
150
+ array(__CLASS__, 'createAddToCartEvent'),
151
+ array($download_id),
152
+ self::TRACKING_NAME
153
+ );
154
+ $server_event->setEventId($event_id);
155
+ FacebookServerSideEvent::getInstance()->track($server_event);
156
+ }
157
+ }
158
+ }
159
+
160
+ public static function injectAddToCartListener($download_id) {
161
  if (FacebookPluginUtils::isAdmin()) {
162
  return;
163
  }
164
 
 
165
  $listener_code = sprintf(
166
  self::$addToCartJS,
167
  FacebookPixel::FB_INTEGRATION_TRACKING_KEY,
168
+ self::TRACKING_NAME
169
+ );
170
 
171
  printf("
172
  <!-- Facebook Pixel Event Code -->
237
  return;
238
  }
239
 
240
+ $server_event = ServerEventFactory::safeCreateEvent(
241
+ 'ViewContent',
242
+ array(__CLASS__, 'createViewContentEvent'),
243
+ array($download_id),
244
+ self::TRACKING_NAME
 
 
 
 
 
 
 
 
 
 
 
245
  );
 
246
 
247
+ FacebookServerSideEvent::getInstance()->track($server_event);
248
+
249
+ $code = PixelRenderer::render(array($server_event), self::TRACKING_NAME);
250
  printf("
251
  <!-- Facebook Pixel Event Code -->
252
  %s
289
 
290
  return $event_data;
291
  }
292
+
293
+ public static function createViewContentEvent($download_id){
294
+ $event_data = FacebookPluginUtils::getLoggedInUserInfo();
295
+ $currency = EDDUtils::getCurrency();
296
+ $download = edd_get_download($download_id);
297
+ $title = $download ? $download->post_title : '';
298
+
299
+ if (get_post_meta($download_id, '_variable_pricing', true)) {
300
+ $prices = get_post_meta($download_id, 'edd_variable_prices', true);
301
+ $price = array_shift($prices);
302
+ $value = $price['amount'];
303
+ } else {
304
+ $value = get_post_meta($download_id, 'edd_price', true);
305
+ }
306
+ if (!$value) {
307
+ $value = 0;
308
+ }
309
+ $event_data['content_ids'] = [(string)$download_id];
310
+ $event_data['content_type'] = 'product';
311
+ $event_data['currency'] = $currency;
312
+ $event_data['value'] = floatval($value);
313
+ $event_data['content_name'] = $title;
314
+ return $event_data;
315
+ }
316
+
317
+ public static function createAddToCartEvent($download_id){
318
+ $event_data = FacebookPluginUtils::getLoggedInUserInfo();
319
+ $currency = EDDUtils::getCurrency();
320
+ $download = edd_get_download($download_id);
321
+ $title = $download ? $download->post_title : '';
322
+ if ( get_post_meta($download_id, '_variable_pricing', true) ) {
323
+ $prices = get_post_meta($download_id, 'edd_variable_prices', true);
324
+ $price = array_shift($prices);
325
+ $value = $price['amount'];
326
+ } else {
327
+ $value = get_post_meta($download_id, 'edd_price', true);
328
+ }
329
+ if (!$value) {
330
+ $value = 0;
331
+ }
332
+ $event_data['content_ids'] = [(string)$download_id];
333
+ $event_data['content_type'] = 'product';
334
+ $event_data['currency'] = $currency;
335
+ $event_data['value'] = $value;
336
+ $event_data['content_name'] = $title;
337
+ return $event_data;
338
+ }
339
  }
integration/FacebookWordpressFormidableForm.php CHANGED
@@ -88,25 +88,21 @@ class FacebookWordpressFormidableForm extends FacebookWordpressIntegrationBase {
88
 
89
  $field_values = $entry_values->get_field_values();
90
  if (!empty($field_values)) {
91
- return array(
92
  'email' => self::getEmail($field_values),
93
  'first_name' => self::getFirstName($field_values),
94
- 'last_name' => self::getLastName($field_values)
 
95
  );
 
 
96
  }
97
 
98
  return array();
99
  }
100
 
101
  private static function getEmail($field_values) {
102
- foreach ($field_values as $field_value) {
103
- $field = $field_value->get_field();
104
- if ($field->type == 'email') {
105
- return $field_value->get_saved_value();
106
- }
107
- }
108
-
109
- return null;
110
  }
111
 
112
  private static function getFirstName($field_values) {
@@ -117,6 +113,46 @@ class FacebookWordpressFormidableForm extends FacebookWordpressIntegrationBase {
117
  return self::getFieldValue($field_values, 'text', 'Last', 'Last');
118
  }
119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  private static function getFieldValue(
121
  $field_values,
122
  $type,
88
 
89
  $field_values = $entry_values->get_field_values();
90
  if (!empty($field_values)) {
91
+ $user_data = array(
92
  'email' => self::getEmail($field_values),
93
  'first_name' => self::getFirstName($field_values),
94
+ 'last_name' => self::getLastName($field_values),
95
+ 'phone' => self::getPhone($field_values)
96
  );
97
+ $address_data = self::getAddressInformation($field_values);
98
+ return array_merge($user_data, $address_data);
99
  }
100
 
101
  return array();
102
  }
103
 
104
  private static function getEmail($field_values) {
105
+ return self::getFieldValueByType($field_values, 'email');
 
 
 
 
 
 
 
106
  }
107
 
108
  private static function getFirstName($field_values) {
113
  return self::getFieldValue($field_values, 'text', 'Last', 'Last');
114
  }
115
 
116
+ private static function getPhone($field_values) {
117
+ return self::getFieldValueByType($field_values, 'phone');
118
+ }
119
+
120
+ private static function getAddressInformation($field_values){
121
+ $address_saved_value = self::getFieldValueByType($field_values, 'address');
122
+ $address_data = array();
123
+ if($address_saved_value){
124
+ if(array_key_exists('city', $address_saved_value)){
125
+ $address_data['city'] = $address_saved_value['city'];
126
+ }
127
+ if(array_key_exists('state', $address_saved_value)){
128
+ $address_data['state'] = $address_saved_value['state'];
129
+ }
130
+ // Validating ISO code
131
+ // In current version, country field saves the full name
132
+ if(
133
+ array_key_exists('country', $address_saved_value)
134
+ && strlen($address_saved_value['country']) == 2
135
+ ){
136
+ $address_data['country'] = $address_saved_value['country'];
137
+ }
138
+ if(array_key_exists('zip', $address_saved_value)){
139
+ $address_data['zip'] = $address_saved_value['zip'];
140
+ }
141
+ }
142
+ return $address_data;
143
+ }
144
+
145
+ private static function getFieldValueByType($field_values, $type){
146
+ foreach ($field_values as $field_value) {
147
+ $field = $field_value->get_field();
148
+ if ($field->type == $type) {
149
+ return $field_value->get_saved_value();
150
+ }
151
+ }
152
+
153
+ return null;
154
+ }
155
+
156
  private static function getFieldValue(
157
  $field_values,
158
  $type,
integration/FacebookWordpressGravityForms.php CHANGED
@@ -84,21 +84,70 @@ class FacebookWordpressGravityForms extends FacebookWordpressIntegrationBase {
84
  if (empty($form) || empty($entry)) {
85
  return array();
86
  }
87
-
88
- return array(
89
  'email' => self::getEmail($form, $entry),
90
  'first_name' => self::getFirstName($form, $entry),
91
- 'last_name' => self::getLastName($form, $entry)
 
92
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  }
94
 
95
  private static function getEmail($form, $entry) {
 
 
 
 
96
  if (empty($form['fields'])) {
97
  return null;
98
  }
99
 
100
  foreach ($form['fields'] as $field) {
101
- if ($field->type == 'email') {
102
  return $entry[$field->id];
103
  }
104
  }
84
  if (empty($form) || empty($entry)) {
85
  return array();
86
  }
87
+ $user_data = array(
 
88
  'email' => self::getEmail($form, $entry),
89
  'first_name' => self::getFirstName($form, $entry),
90
+ 'last_name' => self::getLastName($form, $entry),
91
+ 'phone' => self::getPhone($form, $entry)
92
  );
93
+ $address_data = self::getAddressData($form, $entry);
94
+ return array_merge($user_data, $address_data);
95
+ }
96
+
97
+ private static function getAddressData($form, $entry){
98
+ if (empty($form['fields'])) {
99
+ return array();
100
+ }
101
+
102
+ $address_data = array();
103
+
104
+ foreach ($form['fields'] as $field) {
105
+ if ($field->type == 'address') {
106
+ if($field->inputs){
107
+ foreach($field->inputs as $input){
108
+ if(
109
+ array_key_exists('label', $input)
110
+ && $input['label'] != null
111
+ ){
112
+ if($input['label'] == 'City'){
113
+ $address_data['city'] = $entry[$input['id']];
114
+ }
115
+ else if($input['label'] == 'State / Province'){
116
+ $address_data['state'] = $entry[$input['id']];
117
+ }
118
+ else if($input['label'] == 'ZIP / Postal Code'){
119
+ $address_data['zip'] = $entry[$input['id']];
120
+ }
121
+ else if($input['label'] == 'Country'){
122
+ if(strlen($entry[$input['id']]) == 2){
123
+ $address_data['country'] = $entry[$input['id']];
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ break;
130
+ }
131
+ }
132
+
133
+ return $address_data;
134
+ }
135
+
136
+ private static function getPhone($form, $entry) {
137
+ return self::getFieldByType($form, $entry, 'phone');
138
  }
139
 
140
  private static function getEmail($form, $entry) {
141
+ return self::getFieldByType($form, $entry, 'email');
142
+ }
143
+
144
+ private static function getFieldByType($form, $entry, $type){
145
  if (empty($form['fields'])) {
146
  return null;
147
  }
148
 
149
  foreach ($form['fields'] as $field) {
150
+ if ($field->type == $type) {
151
  return $entry[$field->id];
152
  }
153
  }
integration/FacebookWordpressMailchimpForWp.php CHANGED
@@ -73,6 +73,35 @@ class FacebookWordpressMailchimpForWp extends FacebookWordpressIntegrationBase {
73
  $event_data['last_name'] = $_POST['LNAME'];
74
  }
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  return $event_data;
77
  }
78
  }
73
  $event_data['last_name'] = $_POST['LNAME'];
74
  }
75
 
76
+ if(!empty($_POST['PHONE'])){
77
+ $event_data['phone'] = $_POST['PHONE'];
78
+ }
79
+
80
+ if(!empty($_POST['ADDRESS'])){
81
+ $address_data = $_POST['ADDRESS'];
82
+
83
+ if(!empty($address_data['city'])){
84
+ $event_data['city'] = $address_data['city'];
85
+ }
86
+
87
+ if(!empty($address_data['state'])){
88
+ $event_data['state'] = $address_data['state'];
89
+ }
90
+
91
+ if(!empty($address_data['zip'])){
92
+ $event_data['zip'] = $address_data['zip'];
93
+ }
94
+
95
+ // You can edit the country field in the plugin editor
96
+ // and do not use ISO code
97
+ // Validating this case
98
+ if(
99
+ !empty($address_data['country'])
100
+ && strlen($address_data['country'])==2
101
+ ){
102
+ $event_data['country'] = $address_data['country'];
103
+ }
104
+ }
105
  return $event_data;
106
  }
107
  }
integration/FacebookWordpressNinjaForms.php CHANGED
@@ -85,12 +85,25 @@ class FacebookWordpressNinjaForms extends FacebookWordpressIntegrationBase {
85
  return array();
86
  }
87
 
 
88
  $name = self::getName($form_data);
89
- return array(
90
- 'email' => self::getEmail($form_data),
91
- 'first_name' => $name[0],
92
- 'last_name' => $name[1]
93
- );
 
 
 
 
 
 
 
 
 
 
 
 
94
  }
95
 
96
  private static function getEmail($form_data) {
@@ -98,7 +111,48 @@ class FacebookWordpressNinjaForms extends FacebookWordpressIntegrationBase {
98
  }
99
 
100
  private static function getName($form_data) {
101
- return ServerEventFactory::splitName(self::getField($form_data, 'name'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  }
103
 
104
  private static function getField($form_data, $key) {
@@ -107,7 +161,7 @@ class FacebookWordpressNinjaForms extends FacebookWordpressIntegrationBase {
107
  }
108
 
109
  foreach ($form_data['fields'] as $field) {
110
- if ($field['key'] == $key) {
111
  return $field['value'];
112
  }
113
  }
85
  return array();
86
  }
87
 
88
+ $event_data = array();
89
  $name = self::getName($form_data);
90
+ if( $name ){
91
+ $event_data['first_name'] = $name[0];
92
+ $event_data['last_name'] = $name[1];
93
+ }
94
+ else{
95
+ $event_data['first_name'] = self::getFirstName($form_data);
96
+ $event_data['last_name'] = self::getLastName($form_data);
97
+ }
98
+ $event_data['email'] = self::getEmail($form_data);
99
+ $event_data['phone'] = self::getPhone($form_data);
100
+ $event_data['city'] = self::getCity($form_data);
101
+ $event_data['zip'] = self::getZipCode($form_data);
102
+ $event_data['state'] = self::getState($form_data);
103
+ $event_data['country'] = self::getCountry($form_data);
104
+ $event_data['gender'] = self::getGender($form_data);
105
+
106
+ return $event_data;
107
  }
108
 
109
  private static function getEmail($form_data) {
111
  }
112
 
113
  private static function getName($form_data) {
114
+ $name = self::getField($form_data, 'name');
115
+ if($name){
116
+ return ServerEventFactory::splitName($name);
117
+ }
118
+ return null;
119
+ }
120
+
121
+ private static function getFirstName($form_data){
122
+ return self::getField($form_data, 'firstname');
123
+ }
124
+
125
+ private static function getLastName($form_data){
126
+ return self::getField($form_data, 'lastname');
127
+ }
128
+
129
+ private static function getPhone($form_data) {
130
+ return self::getField($form_data, 'phone');
131
+ }
132
+
133
+ private static function getCity($form_data) {
134
+ return self::getField($form_data, 'city');
135
+ }
136
+
137
+ private static function getZipCode($form_data) {
138
+ return self::getField($form_data, 'zip');
139
+ }
140
+
141
+ private static function getState($form_data) {
142
+ return self::getField($form_data, 'liststate');
143
+ }
144
+
145
+ private static function getCountry($form_data) {
146
+ return self::getField($form_data, 'listcountry');
147
+ }
148
+
149
+ private static function getGender($form_data) {
150
+ return self::getField($form_data, 'gender');
151
+ }
152
+
153
+ private static function hasPrefix($string, $prefix){
154
+ $len = strlen($prefix);
155
+ return substr($string, 0, $len) === $prefix;
156
  }
157
 
158
  private static function getField($form_data, $key) {
161
  }
162
 
163
  foreach ($form_data['fields'] as $field) {
164
+ if ( self::hasPrefix( $field['key'], $key) ) {
165
  return $field['value'];
166
  }
167
  }
integration/FacebookWordpressWPForms.php CHANGED
@@ -85,17 +85,59 @@ class FacebookWordpressWPForms extends FacebookWordpressIntegrationBase {
85
 
86
  $name = self::getName($entry, $form_data);
87
 
88
- return array(
89
  'email' => self::getEmail($entry, $form_data),
90
  'first_name' => !empty($name) ? $name[0] : null,
91
- 'last_name' => !empty($name) ? $name[1] : null
 
92
  );
 
 
 
 
 
 
 
 
 
 
 
93
  }
94
 
95
  private static function getEmail($entry, $form_data) {
96
  return self::getField($entry, $form_data, 'email');
97
  }
98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  private static function getName($entry, $form_data) {
100
  if (empty($form_data['fields']) || empty($entry['fields'])) {
101
  return null;
@@ -131,4 +173,15 @@ class FacebookWordpressWPForms extends FacebookWordpressIntegrationBase {
131
 
132
  return null;
133
  }
 
 
 
 
 
 
 
 
 
 
 
134
  }
85
 
86
  $name = self::getName($entry, $form_data);
87
 
88
+ $event_data = array(
89
  'email' => self::getEmail($entry, $form_data),
90
  'first_name' => !empty($name) ? $name[0] : null,
91
+ 'last_name' => !empty($name) ? $name[1] : null,
92
+ 'phone' => self::getPhone($entry, $form_data)
93
  );
94
+
95
+ $event_data = array_merge(
96
+ $event_data,
97
+ self::getAddress($entry, $form_data)
98
+ );
99
+
100
+ return $event_data;
101
+ }
102
+
103
+ private static function getPhone($entry, $form_data) {
104
+ return self::getField($entry, $form_data, 'phone');
105
  }
106
 
107
  private static function getEmail($entry, $form_data) {
108
  return self::getField($entry, $form_data, 'email');
109
  }
110
 
111
+ private static function getAddress($entry, $form_data){
112
+ $address_field_data = self::getField($entry, $form_data, 'address');
113
+ if($address_field_data == null){
114
+ return array();
115
+ }
116
+ $address_data = array();
117
+ if(array_key_exists('city', $address_field_data)){
118
+ $address_data['city'] = $address_field_data['city'];
119
+ }
120
+ if(array_key_exists('state', $address_field_data)){
121
+ $address_data['state'] = $address_field_data['state'];
122
+ }
123
+ //Country values are sent in ISO format
124
+ if(array_key_exists('country', $address_field_data)){
125
+ $address_data['country'] = $address_field_data['country'];
126
+ }
127
+ else{
128
+ // When country is not present, it could be that address scheme is us
129
+ // so country will be US
130
+ $address_scheme = self::getAddressScheme($form_data);
131
+ if( $address_scheme == 'us'){
132
+ $address_data['country'] = 'US';
133
+ }
134
+ }
135
+ if(array_key_exists('postal', $address_field_data)){
136
+ $address_data['zip'] = $address_field_data['postal'];
137
+ }
138
+ return $address_data;
139
+ }
140
+
141
  private static function getName($entry, $form_data) {
142
  if (empty($form_data['fields']) || empty($entry['fields'])) {
143
  return null;
173
 
174
  return null;
175
  }
176
+
177
+ private static function getAddressScheme($form_data){
178
+ foreach ($form_data['fields'] as $field) {
179
+ if ($field['type'] == 'address') {
180
+ if(array_key_exists('scheme', $field)){
181
+ return $field['scheme'];
182
+ }
183
+ }
184
+ }
185
+ return null;
186
+ }
187
  }
integration/FacebookWordpressWooCommerce.php CHANGED
@@ -125,7 +125,7 @@ class FacebookWordpressWooCommerce extends FacebookWordpressIntegrationBase {
125
  public static function createAddToCartEvent(
126
  $cart_item_key, $product_id, $quantity)
127
  {
128
- $event_data = FacebookPluginUtils::getLoggedInUserInfo();
129
  $event_data['content_type'] = 'product';
130
  $event_data['currency'] = \get_woocommerce_currency();
131
 
@@ -155,7 +155,7 @@ class FacebookWordpressWooCommerce extends FacebookWordpressIntegrationBase {
155
  }
156
 
157
  public static function createInitiateCheckoutEvent() {
158
- $event_data = FacebookPluginUtils::getLoggedInUserInfo();
159
  $event_data['content_type'] = 'product';
160
  $event_data['currency'] = \get_woocommerce_currency();
161
 
@@ -171,14 +171,15 @@ class FacebookWordpressWooCommerce extends FacebookWordpressIntegrationBase {
171
 
172
  private static function getPiiFromBillingInformation($order) {
173
  $pii = array();
174
- $billingInfo = $order->data['billing'];
175
 
176
- if (!empty($billingInfo)) {
177
- $pii['first_name'] = $billingInfo['first_name'];
178
- $pii['last_name'] = $billingInfo['last_name'];
179
- $pii['email'] = $billingInfo['email'];
180
- $pii['phone'] = $billingInfo['phone'];
181
- }
 
 
182
 
183
  return $pii;
184
  }
@@ -238,6 +239,19 @@ class FacebookWordpressWooCommerce extends FacebookWordpressIntegrationBase {
238
  : self::FB_ID_PREFIX . $woo_id;
239
  }
240
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  private static function isFacebookForWooCommerceActive() {
242
  return in_array(
243
  'facebook-for-woocommerce/facebook-for-woocommerce.php',
125
  public static function createAddToCartEvent(
126
  $cart_item_key, $product_id, $quantity)
127
  {
128
+ $event_data = self::getPIIFromSession();
129
  $event_data['content_type'] = 'product';
130
  $event_data['currency'] = \get_woocommerce_currency();
131
 
155
  }
156
 
157
  public static function createInitiateCheckoutEvent() {
158
+ $event_data = self::getPIIFromSession();
159
  $event_data['content_type'] = 'product';
160
  $event_data['currency'] = \get_woocommerce_currency();
161
 
171
 
172
  private static function getPiiFromBillingInformation($order) {
173
  $pii = array();
 
174
 
175
+ $pii['first_name'] = $order->get_billing_first_name();
176
+ $pii['last_name'] = $order->get_billing_last_name();
177
+ $pii['email'] = $order->get_billing_email();
178
+ $pii['zip'] = $order->get_billing_postcode();
179
+ $pii['state'] = $order->get_billing_state();
180
+ $pii['country'] = $order->get_billing_country();
181
+ $pii['city'] = $order->get_billing_city();
182
+ $pii['phone'] = $order->get_billing_phone();
183
 
184
  return $pii;
185
  }
239
  : self::FB_ID_PREFIX . $woo_id;
240
  }
241
 
242
+ private static function getPIIFromSession(){
243
+ $event_data = FacebookPluginUtils::getLoggedInUserInfo();
244
+ $user_id = get_current_user_id();
245
+ if($user_id != 0){
246
+ $event_data['city'] = get_user_meta($user_id, 'billing_city', true);
247
+ $event_data['zip'] = get_user_meta($user_id, 'billing_postcode', true);
248
+ $event_data['country'] = get_user_meta($user_id, 'billing_country', true);
249
+ $event_data['state'] = get_user_meta($user_id, 'billing_state', true);
250
+ $event_data['phone'] = get_user_meta($user_id, 'billing_phone', true);
251
+ }
252
+ return array_filter($event_data);
253
+ }
254
+
255
  private static function isFacebookForWooCommerceActive() {
256
  return in_array(
257
  'facebook-for-woocommerce/facebook-for-woocommerce.php',
languages/official-facebook-pixel-ar_AR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-cs_CZ.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-da_DK.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-de_DE.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-en_GB.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-es_ES.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-es_LA.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-fi_FI.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-fr_CA.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-fr_FR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-he_IL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-it_IT.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-ja_JP.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-ko_KR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-nb_NO.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-nl_NL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-pl_PL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-pt_BR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-pt_PT.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-ru_RU.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-sv_SE.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-th_TH.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
7
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
8
  "PO-Revision-Date: 2018-11-28 17:37-0800\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
7
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
8
  "PO-Revision-Date: 2018-11-28 17:37-0800\n"
languages/official-facebook-pixel-tr_TR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-vi_VN.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-zh_CN.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-zh_TW.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: facebook
3
  Tags: Facebook, Facebook Conversion Pixel, Facebook Pixel, Facebook Pixel Events, facebook retargeting, facebook standard events
4
  Requires at least: 4.4
5
- Tested up to: 5.4
6
  Requires PHP: 5.3
7
  Stable tag: 2.1.0
8
  License: GPLv2
@@ -11,7 +11,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  Grow your business with Official Facebook Pixel!
12
 
13
  == Description ==
14
- This plugin will install a Facebook Pixel for your page so you can capture the actions people take when they interact with your page, such as Lead, ViewContent, AddToCart, InitiateCheckout and Purchase events. Version 2.0.0 also includes support for the server-side API, which lets you send events directly from your page's server so you can capture a more of these events when they happen. This can help you better understand your customer's journey from the moment they show interest in your business to the moment they complete a conversion. You can use this information to create ad campaigns that are relevant to your audience. [Learn More](https://www.facebook.com/business/learn/facebook-ads-pixel)
15
 
16
  This plugin also includes built-in support for these other WordPress plugins:
17
  * Caldera Forms
@@ -23,7 +23,7 @@ This plugin also includes built-in support for these other WordPress plugins:
23
  * Ninja Forms
24
  * WP eCommerce
25
  * WPForms
26
- * WooCommerce (through the Server-Side API)
27
 
28
  == Installation ==
29
  __To install from your WordPress site__ <br />
@@ -50,19 +50,25 @@ If you get stuck, or have any questions, you can ask for help in the [Official F
50
  Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
51
 
52
  == Changelog ==
 
 
 
 
 
 
53
  = 2020-06-18 version 2.1.0 =
54
- * Support for WooCommerce through the Server-Side API
55
 
56
  = 2020-04-23 version 2.0.2 =
57
  * Support for WordPress 5.4
58
  * Fixing an Illegal string offset error with WP Forms
59
- * Fixing the event source url for Server-Side API events
60
 
61
  = 2020-03-23 version 2.0.1 =
62
  * Fixing an Undefined index error
63
 
64
  = 2020-03-09 version 2.0.0 =
65
- * Added support for Server-Side API [Learn More](https://developers.facebook.com/docs/marketing-api/server-side-api)
66
 
67
  = 2019-12-02 version 1.8.0 =
68
  * Support for WordPress 5.3
2
  Contributors: facebook
3
  Tags: Facebook, Facebook Conversion Pixel, Facebook Pixel, Facebook Pixel Events, facebook retargeting, facebook standard events
4
  Requires at least: 4.4
5
+ Tested up to: 5.5
6
  Requires PHP: 5.3
7
  Stable tag: 2.1.0
8
  License: GPLv2
11
  Grow your business with Official Facebook Pixel!
12
 
13
  == Description ==
14
+ This plugin will install a Facebook Pixel for your page so you can capture the actions people take when they interact with your page, such as Lead, ViewContent, AddToCart, InitiateCheckout and Purchase events. Version 2.0.0 also includes support for the Conversions API, which lets you send events directly from your page's server so you can capture a more of these events when they happen. This can help you better understand your customer's journey from the moment they show interest in your business to the moment they complete a conversion. You can use this information to create ad campaigns that are relevant to your audience. [Learn More](https://www.facebook.com/business/learn/facebook-ads-pixel)
15
 
16
  This plugin also includes built-in support for these other WordPress plugins:
17
  * Caldera Forms
23
  * Ninja Forms
24
  * WP eCommerce
25
  * WPForms
26
+ * WooCommerce (through the Conversions API)
27
 
28
  == Installation ==
29
  __To install from your WordPress site__ <br />
50
  Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
51
 
52
  == Changelog ==
53
+ = 2020-08-14 version 2.2.0 =
54
+ * Support for WordPress 5.5
55
+ * Improved Conversions API event quality
56
+ * Sending AddToCart and ViewContent events from Easy Digitial Downloads
57
+ * New filter added before the Conversions API event is sent
58
+
59
  = 2020-06-18 version 2.1.0 =
60
+ * Support for WooCommerce through the Conversions API
61
 
62
  = 2020-04-23 version 2.0.2 =
63
  * Support for WordPress 5.4
64
  * Fixing an Illegal string offset error with WP Forms
65
+ * Fixing the event source url for Conversions API events
66
 
67
  = 2020-03-23 version 2.0.1 =
68
  * Fixing an Undefined index error
69
 
70
  = 2020-03-09 version 2.0.0 =
71
+ * Added support for Conversions API [Learn More](https://developers.facebook.com/docs/marketing-api/conversions-api)
72
 
73
  = 2019-12-02 version 1.8.0 =
74
  * Support for WordPress 5.3
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitf86f03e642fb38d360aec66970fd23ac::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitd240e549ff778e21e170e5e3e6b60735::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitf86f03e642fb38d360aec66970fd23ac
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitf86f03e642fb38d360aec66970fd23ac
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitf86f03e642fb38d360aec66970fd23ac', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitf86f03e642fb38d360aec66970fd23ac', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInitf86f03e642fb38d360aec66970fd23ac::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitd240e549ff778e21e170e5e3e6b60735
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitd240e549ff778e21e170e5e3e6b60735', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitd240e549ff778e21e170e5e3e6b60735', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitd240e549ff778e21e170e5e3e6b60735::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitf86f03e642fb38d360aec66970fd23ac
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'F' =>
@@ -42,9 +42,9 @@ class ComposerStaticInitf86f03e642fb38d360aec66970fd23ac
42
  public static function getInitializer(ClassLoader $loader)
43
  {
44
  return \Closure::bind(function () use ($loader) {
45
- $loader->prefixLengthsPsr4 = ComposerStaticInitf86f03e642fb38d360aec66970fd23ac::$prefixLengthsPsr4;
46
- $loader->prefixDirsPsr4 = ComposerStaticInitf86f03e642fb38d360aec66970fd23ac::$prefixDirsPsr4;
47
- $loader->classMap = ComposerStaticInitf86f03e642fb38d360aec66970fd23ac::$classMap;
48
 
49
  }, null, ClassLoader::class);
50
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitd240e549ff778e21e170e5e3e6b60735
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'F' =>
42
  public static function getInitializer(ClassLoader $loader)
43
  {
44
  return \Closure::bind(function () use ($loader) {
45
+ $loader->prefixLengthsPsr4 = ComposerStaticInitd240e549ff778e21e170e5e3e6b60735::$prefixLengthsPsr4;
46
+ $loader->prefixDirsPsr4 = ComposerStaticInitd240e549ff778e21e170e5e3e6b60735::$prefixDirsPsr4;
47
+ $loader->classMap = ComposerStaticInitd240e549ff778e21e170e5e3e6b60735::$classMap;
48
 
49
  }, null, ClassLoader::class);
50
  }
vendor/composer/installed.json CHANGED
@@ -1,24 +1,24 @@
1
  [
2
  {
3
  "name": "facebook/php-business-sdk",
4
- "version": "6.0.4",
5
- "version_normalized": "6.0.4.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
9
- "reference": "c7bf72b1f5ca8f3fd6120544cb2541546204bf83"
10
  },
11
  "dist": {
12
  "type": "zip",
13
- "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/c7bf72b1f5ca8f3fd6120544cb2541546204bf83",
14
- "reference": "c7bf72b1f5ca8f3fd6120544cb2541546204bf83",
15
  "shasum": ""
16
  },
17
  "require-dev": {
18
  "phpunit/phpunit": "~8",
19
  "symfony/finder": "~2.6"
20
  },
21
- "time": "2020-04-08T04:52:23+00:00",
22
  "type": "library",
23
  "installation-source": "dist",
24
  "autoload": {
1
  [
2
  {
3
  "name": "facebook/php-business-sdk",
4
+ "version": "7.0.3",
5
+ "version_normalized": "7.0.3.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
9
+ "reference": "ddbd867b0ee296f83a4d5a1a4aae5c82fa5a5eaa"
10
  },
11
  "dist": {
12
  "type": "zip",
13
+ "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/ddbd867b0ee296f83a4d5a1a4aae5c82fa5a5eaa",
14
+ "reference": "ddbd867b0ee296f83a4d5a1a4aae5c82fa5a5eaa",
15
  "shasum": ""
16
  },
17
  "require-dev": {
18
  "phpunit/phpunit": "~8",
19
  "symfony/finder": "~2.6"
20
  },
21
+ "time": "2020-07-20T17:04:42+00:00",
22
  "type": "library",
23
  "installation-source": "dist",
24
  "autoload": {
vendor/facebook/php-business-sdk/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ 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
@@ -71,4 +80,3 @@ All notable changes to this project will be documented in this file.
71
  $async_job = $async_job->getSelf();
72
  }
73
  ```
74
-
4
 
5
 
6
  ## Unreleased
7
+
8
+ ## v7.0.2
9
+ ### Added
10
+ - Added support for data processing options in Serverside API. For more details see : https://developers.facebook.com/docs/marketing-apis/data-processing-options
11
+
12
+ ## v7.0.0
13
+ ### Changed
14
+ - Graph API call upgrade to [v7.0](https://developers.facebook.com/docs/graph-api/changelog/version7.0)
15
+
16
  ## v6.0.2
17
  ### Added
18
  - Add support for custom properties in the Server-Side API
80
  $async_job = $async_job->getSelf();
81
  }
82
  ```
 
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateAdCreativeLinkAd.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'name' => 'Sample Creative',
43
+ 'object_story_spec' => array('page_id' => '<pageID>','link_data' => array('image_hash' => '<imageHash>','link' => 'https:\/\/facebook.com\/<pageID>','message' => 'try it out')),
44
+ );
45
+ echo json_encode((new AdAccount($id))->createAdCreative(
46
+ $fields,
47
+ $params
48
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateCarouselCallToActionAppInstall.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'name' => 'Carousel app ad',
43
+ 'object_story_spec' => array('page_id' => '<pageID>','link_data' => array('message' => 'My message','link' => 'http://www.example.com/appstoreurl','caption' => 'WWW.ITUNES.COM','name' => 'The link name','description' => 'The link description','child_attachments' => array(array('link' => 'http://www.example.com/appstoreurl','image_hash' => '<imageHash>','call_to_action' => array('type' => 'USE_MOBILE_APP','value' => array('app_link' => '<deepLink>'))),array('link' => 'http://www.example.com/appstoreurl','image_hash' => '<imageHash>','call_to_action' => array('type' => 'USE_MOBILE_APP','value' => array('app_link' => '<deepLink>'))),array('link' => 'http://www.example.com/appstoreurl','image_hash' => '<imageHash>','call_to_action' => array('type' => 'USE_MOBILE_APP','value' => array('app_link' => '<deepLink>'))),array('link' => 'http://www.example.com/appstoreurl','image_hash' => '<imageHash>','call_to_action' => array('type' => 'USE_MOBILE_APP','value' => array('app_link' => '<deepLink>')))),'multi_share_optimized' => true)),
44
+ );
45
+ echo json_encode((new AdAccount($id))->createAdCreative(
46
+ $fields,
47
+ $params
48
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateLinkAdCallToActionAppInstall.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'name' => 'Sample Creative',
43
+ 'object_story_spec' => array('page_id' => '<pageID>','link_data' => array('call_to_action' => array('type' => 'INSTALL_MOBILE_APP','value' => array('link' => '<appLink>')),'image_hash' => '<imageHash>','link' => '<appLink>','message' => 'Try it out')),
44
+ );
45
+ echo json_encode((new AdAccount($id))->createAdCreative(
46
+ $fields,
47
+ $params
48
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateLinkAdImageCrop.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'name' => 'Image crop creative',
43
+ 'object_story_spec' => array('page_id' => '<pageID>','link_data' => array('image_crops' => array('100x100' => array(array(0,0),array(100,100))),'image_hash' => '<imageHash>','link' => '<url>','message' => 'Ad message')),
44
+ );
45
+ echo json_encode((new AdAccount($id))->createAdCreative(
46
+ $fields,
47
+ $params
48
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateMAIDPA.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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'name' => 'Dynamic Ad Template Creative Sample',
43
+ 'object_story_spec' => array('page_id' => '<pageID>','template_data' => array('call_to_action' => array('type' => 'INSTALL_MOBILE_APP','value' => array('link' => 'http://www.example.com/appstoreurl')),'message' => 'Test array(array(product.name | titleize))','link' => 'http://www.example.com/appstoreurl','name' => 'Headline array(array(product.price))','description' => 'Description array(array(product.description))')),
44
+ 'product_set_id' => '<productSetID>',
45
+ );
46
+ echo json_encode((new AdAccount($id))->createAdCreative(
47
+ $fields,
48
+ $params
49
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateVideoLeadAd.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'object_story_spec' => array('page_id' => '<pageID>','video_data' => array('link_description' => 'try it out','image_url' => '<imageURL>','video_id' => '<videoID>','call_to_action' => array('type' => 'SIGN_UP','value' => array('link' => 'http:\/\/fb.me\/','lead_gen_form_id' => '<formID>')))),
43
+ );
44
+ echo json_encode((new AdAccount($id))->createAdCreative(
45
+ $fields,
46
+ $params
47
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPost2CreateVideoPageLikeAd.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'name' => 'Sample Creative',
43
+ 'object_story_spec' => array('page_id' => '<pageID>','video_data' => array('image_url' => '<imageURL>','video_id' => '<videoID>','call_to_action' => array('type' => 'LIKE_PAGE','value' => array('page' => '<pageID>')))),
44
+ );
45
+ echo json_encode((new AdAccount($id))->createAdCreative(
46
+ $fields,
47
+ $params
48
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'object_story_spec' => array('page_id' => '<pageID>','template_data' => array('format_option' => 'collection_video','link' => '<canvasURI>','name' => 'English Creative title','message' => 'English Creative message','call_to_action' => array('type' => 'LEARN_MORE'),'retailer_item_ids' => array(0,0,0,0),'customization_rules_spec' => array(array('customization_spec' => array('language' => 'en_XX')),array('customization_spec' => array('language' => 'fr_XX'),'link' => '<canvasURIFR>','name' => 'French Creative title','message' => 'French Creative message')))),
43
+ 'product_set_id' => '<productSetID>',
44
+ );
45
+ echo json_encode((new AdAccount($id))->createAdCreative(
46
+ $fields,
47
+ $params
48
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'object_story_spec' => array('page_id' => '<pageID>','link_data' => array('picture' => '<imageURL>','link' => '<canvasURI>','name' => 'English Creative title','message' => 'English Creative message','call_to_action' => array('type' => 'LEARN_MORE'),'retailer_item_ids' => array(0,0,0,0),'customization_rules_spec' => array(array('customization_spec' => array('language' => 'en_XX')),array('customization_spec' => array('language' => 'fr_XX'),'picture' => '<imageURLFR>','link' => '<canvasURIFR>','name' => 'French Creative title','message' => 'French Creative message')))),
43
+ 'product_set_id' => '<productSetID>',
44
+ );
45
+ echo json_encode((new AdAccount($id))->createAdCreative(
46
+ $fields,
47
+ $params
48
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdCreative;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ 'object_story_spec' => array('page_id' => '<pageID>','video_data' => array('video_id' => '<videoID>','image_url' => '<imageURL>','title' => 'English Creative title','message' => 'English Creative message','call_to_action' => array('type' => 'LEARN_MORE','value' => array('link' => '<canvasURI>')),'retailer_item_ids' => array(0,0,0,0),'customization_rules_spec' => array(array('customization_spec' => array('language' => 'en_XX')),array('customization_spec' => array('language' => 'fr_XX'),'video_id' => '<videoIDFR>','picture' => '<imageURLFR>','link' => '<canvasURIFR>','name' => 'French Creative title','message' => 'French Creative message')))),
43
+ 'product_set_id' => '<productSetID>',
44
+ );
45
+ echo json_encode((new AdAccount($id))->createAdCreative(
46
+ $fields,
47
+ $params
48
+ )->exportAllData(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostConversions.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'Conversions Campaign',
44
  'objective' => 'CONVERSIONS',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'Conversions Campaign',
43
  'objective' => 'CONVERSIONS',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostEventResponses.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'My First Event Campaign',
44
  'objective' => 'EVENT_RESPONSES',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'My First Event Campaign',
43
  'objective' => 'EVENT_RESPONSES',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostLeadGen.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'Lead generation campaign',
44
  'objective' => 'LEAD_GENERATION',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'Lead generation campaign',
43
  'objective' => 'LEAD_GENERATION',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostLinkClicks.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'My campaign',
44
  'objective' => 'LINK_CLICKS',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'My campaign',
43
  'objective' => 'LINK_CLICKS',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostLocalAwareness.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'Local ad campaign',
44
  'objective' => 'REACH',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'Local ad campaign',
43
  'objective' => 'REACH',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostMAIA.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'Mobile App Installs Campaign',
44
  'objective' => 'APP_INSTALLS',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'Mobile App Installs Campaign',
43
  'objective' => 'APP_INSTALLS',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostMAIDPA.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'App Installs Campaign with Dynamic Product Ads',
44
  'objective' => 'APP_INSTALLS',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'App Installs Campaign with Dynamic Product Ads',
43
  'objective' => 'APP_INSTALLS',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostOfferClaims.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'My Offer Claims Campaign',
44
  'objective' => 'OFFER_CLAIMS',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'My Offer Claims Campaign',
43
  'objective' => 'OFFER_CLAIMS',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostPageLikes.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'My First Campaign',
44
  'objective' => 'PAGE_LIKES',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'My First Campaign',
43
  'objective' => 'PAGE_LIKES',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostPostEngagement.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'My First Campaign',
44
  'objective' => 'POST_ENGAGEMENT',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'My First Campaign',
43
  'objective' => 'POST_ENGAGEMENT',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostStoreCampaign.php CHANGED
@@ -39,11 +39,11 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'Store Traffic Campaign',
44
  'objective' => 'STORE_VISITS',
45
  'promoted_object' => array('page_id' => '<pageID>'),
46
  'status' => 'PAUSED',
 
47
  );
48
  echo json_encode((new AdAccount($id))->createCampaign(
49
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'Store Traffic Campaign',
43
  'objective' => 'STORE_VISITS',
44
  'promoted_object' => array('page_id' => '<pageID>'),
45
  'status' => 'PAUSED',
46
+ 'special_ad_categories' => array(),
47
  );
48
  echo json_encode((new AdAccount($id))->createCampaign(
49
  $fields,
vendor/facebook/php-business-sdk/examples/AdAccountCampaignsPostVideoViews.php CHANGED
@@ -39,10 +39,10 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'special_ad_category' => 'NONE',
43
  'name' => 'Video Views campaign',
44
  'objective' => 'VIDEO_VIEWS',
45
  'status' => 'PAUSED',
 
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
 
42
  'name' => 'Video Views campaign',
43
  'objective' => 'VIDEO_VIEWS',
44
  'status' => 'PAUSED',
45
+ 'special_ad_categories' => array(),
46
  );
47
  echo json_encode((new AdAccount($id))->createCampaign(
48
  $fields,
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.4';
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.3';
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
@@ -68,6 +68,7 @@ use FacebookAds\Object\Values\AdSetDestinationTypeValues;
68
  use FacebookAds\Object\Values\AdSetEffectiveStatusValues;
69
  use FacebookAds\Object\Values\AdSetExecutionOptionsValues;
70
  use FacebookAds\Object\Values\AdSetFullFunnelExplorationModeValues;
 
71
  use FacebookAds\Object\Values\AdSetOperatorValues;
72
  use FacebookAds\Object\Values\AdSetOptimizationGoalValues;
73
  use FacebookAds\Object\Values\AdSetOptimizationSubEventValues;
@@ -98,7 +99,7 @@ use FacebookAds\Object\Values\CampaignEffectiveStatusValues;
98
  use FacebookAds\Object\Values\CampaignExecutionOptionsValues;
99
  use FacebookAds\Object\Values\CampaignObjectiveValues;
100
  use FacebookAds\Object\Values\CampaignOperatorValues;
101
- use FacebookAds\Object\Values\CampaignSpecialAdCategoryValues;
102
  use FacebookAds\Object\Values\CampaignStatusValues;
103
  use FacebookAds\Object\Values\ContentDeliveryReportPlatformValues;
104
  use FacebookAds\Object\Values\ContentDeliveryReportPositionValues;
@@ -726,13 +727,10 @@ class AdAccount extends AbstractCrudObject {
726
  $this->assureId();
727
 
728
  $param_types = array(
729
- 'ad_draft_id' => 'string',
730
  'date_preset' => 'date_preset_enum',
731
  'effective_status' => 'list<string>',
732
- 'include_drafts' => 'bool',
733
  'time_range' => 'Object',
734
  'updated_since' => 'int',
735
- 'use_employee_draft' => 'bool',
736
  );
737
  $enums = array(
738
  'date_preset_enum' => AdDatePresetValues::getInstance()->getValues(),
@@ -851,13 +849,10 @@ class AdAccount extends AbstractCrudObject {
851
  $this->assureId();
852
 
853
  $param_types = array(
854
- 'ad_draft_id' => 'string',
855
  'date_preset' => 'date_preset_enum',
856
  'effective_status' => 'list<effective_status_enum>',
857
- 'include_drafts' => 'bool',
858
  'is_completed' => 'bool',
859
  'time_range' => 'Object',
860
- 'use_employee_draft' => 'bool',
861
  );
862
  $enums = array(
863
  'date_preset_enum' => AdSetDatePresetValues::getInstance()->getValues(),
@@ -910,6 +905,7 @@ class AdAccount extends AbstractCrudObject {
910
  'lifetime_min_spend_target' => 'unsigned int',
911
  'lifetime_spend_cap' => 'unsigned int',
912
  'line_number' => 'unsigned int',
 
913
  'name' => 'string',
914
  'optimization_goal' => 'optimization_goal_enum',
915
  'optimization_sub_event' => 'optimization_sub_event_enum',
@@ -935,6 +931,7 @@ class AdAccount extends AbstractCrudObject {
935
  'destination_type_enum' => AdSetDestinationTypeValues::getInstance()->getValues(),
936
  'execution_options_enum' => AdSetExecutionOptionsValues::getInstance()->getValues(),
937
  'full_funnel_exploration_mode_enum' => AdSetFullFunnelExplorationModeValues::getInstance()->getValues(),
 
938
  'optimization_goal_enum' => AdSetOptimizationGoalValues::getInstance()->getValues(),
939
  'optimization_sub_event_enum' => AdSetOptimizationSubEventValues::getInstance()->getValues(),
940
  'status_enum' => AdSetStatusValues::getInstance()->getValues(),
@@ -1623,10 +1620,8 @@ class AdAccount extends AbstractCrudObject {
1623
  $param_types = array(
1624
  'date_preset' => 'date_preset_enum',
1625
  'effective_status' => 'list<effective_status_enum>',
1626
- 'include_drafts' => 'bool',
1627
  'is_completed' => 'bool',
1628
  'time_range' => 'Object',
1629
- 'use_employee_draft' => 'bool',
1630
  );
1631
  $enums = array(
1632
  'date_preset_enum' => CampaignDatePresetValues::getInstance()->getValues(),
@@ -1654,7 +1649,6 @@ class AdAccount extends AbstractCrudObject {
1654
  $param_types = array(
1655
  'adlabels' => 'list<Object>',
1656
  'bid_strategy' => 'bid_strategy_enum',
1657
- 'budget_rebalance_flag' => 'bool',
1658
  'buying_type' => 'string',
1659
  'daily_budget' => 'unsigned int',
1660
  'execution_options' => 'list<execution_options_enum>',
@@ -1665,7 +1659,7 @@ class AdAccount extends AbstractCrudObject {
1665
  'pacing_type' => 'list<string>',
1666
  'promoted_object' => 'Object',
1667
  'source_campaign_id' => 'string',
1668
- 'special_ad_category' => 'special_ad_category_enum',
1669
  'spend_cap' => 'unsigned int',
1670
  'status' => 'status_enum',
1671
  'topline_id' => 'string',
@@ -1675,7 +1669,7 @@ class AdAccount extends AbstractCrudObject {
1675
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
1676
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
1677
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
1678
- 'special_ad_category_enum' => CampaignSpecialAdCategoryValues::getInstance()->getValues(),
1679
  'status_enum' => CampaignStatusValues::getInstance()->getValues(),
1680
  );
1681
 
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;
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(),
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(),
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
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdCreative.php CHANGED
@@ -91,30 +91,6 @@ class AdCreative extends AbstractCrudObject {
91
  }
92
  }
93
 
94
- public function deleteAdLabels(array $fields = array(), array $params = array(), $pending = false) {
95
- $this->assureId();
96
-
97
- $param_types = array(
98
- 'adlabels' => 'list<Object>',
99
- );
100
- $enums = array(
101
- );
102
-
103
- $request = new ApiRequest(
104
- $this->api,
105
- $this->data['id'],
106
- RequestInterface::METHOD_DELETE,
107
- '/adlabels',
108
- new AbstractCrudObject(),
109
- 'EDGE',
110
- array(),
111
- new TypeChecker($param_types, $enums)
112
- );
113
- $request->addParams($params);
114
- $request->addFields($fields);
115
- return $pending ? $request : $request->execute();
116
- }
117
-
118
  public function createAdLabel(array $fields = array(), array $params = array(), $pending = false) {
119
  $this->assureId();
120
 
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/{CustomAudiencePrefillState.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\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\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/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/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/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
@@ -1068,39 +1068,6 @@ class Application extends AbstractCrudObject {
1068
  return $pending ? $request : $request->execute();
1069
  }
1070
 
1071
- public function createMonetization(array $fields = array(), array $params = array(), $pending = false) {
1072
- $this->assureId();
1073
-
1074
- $param_types = array(
1075
- 'breakdowns' => 'list<breakdowns_enum>',
1076
- 'campaign_id' => 'string',
1077
- 'device_list' => 'list<string>',
1078
- 'query_id' => 'string',
1079
- 'request_id' => 'string',
1080
- 'since' => 'datetime',
1081
- 'until' => 'datetime',
1082
- );
1083
- $enums = array(
1084
- 'breakdowns_enum' => array(
1085
- 'COUNTRY',
1086
- ),
1087
- );
1088
-
1089
- $request = new ApiRequest(
1090
- $this->api,
1091
- $this->data['id'],
1092
- RequestInterface::METHOD_POST,
1093
- '/monetization',
1094
- new AbstractCrudObject(),
1095
- 'EDGE',
1096
- array(),
1097
- new TypeChecker($param_types, $enums)
1098
- );
1099
- $request->addParams($params);
1100
- $request->addFields($fields);
1101
- return $pending ? $request : $request->execute();
1102
- }
1103
-
1104
  public function createOccludesPopup(array $fields = array(), array $params = array(), $pending = false) {
1105
  $this->assureId();
1106
 
@@ -1573,7 +1540,6 @@ class Application extends AbstractCrudObject {
1573
  'app_domains' => 'list<string>',
1574
  'app_name' => 'string',
1575
  'app_type' => 'bool',
1576
- 'auth_dialog_data_help_url' => 'string',
1577
  'auth_dialog_headline' => 'string',
1578
  'auth_dialog_perms_explanation' => 'string',
1579
  'auth_referral_default_activity_privacy' => 'string',
@@ -1585,28 +1551,20 @@ class Application extends AbstractCrudObject {
1585
  'canvas_fluid_height' => 'bool',
1586
  'canvas_fluid_width' => 'bool',
1587
  'canvas_url' => 'string',
1588
- 'category' => 'string',
1589
  'configured_ios_sso' => 'bool',
1590
  'contact_email' => 'string',
1591
- 'created_time' => 'Object',
1592
- 'creator_uid' => 'int',
1593
  'deauth_callback_url' => 'string',
1594
- 'hosting_url' => 'string',
1595
  'ios_bundle_id' => 'list<string>',
1596
  'ipad_app_store_id' => 'string',
1597
  'iphone_app_store_id' => 'string',
1598
- 'migrations' => 'string',
1599
  'mobile_web_url' => 'string',
1600
  'namespace' => 'string',
1601
  'page_tab_default_name' => 'string',
1602
- 'page_tab_url' => 'string',
1603
  'privacy_policy_url' => 'string',
1604
  'restrictions' => 'string',
1605
  'secure_canvas_url' => 'string',
1606
  'secure_page_tab_url' => 'string',
1607
  'server_ip_whitelist' => 'list<string>',
1608
- 'social_discovery' => 'bool',
1609
- 'subcategory' => 'string',
1610
  'terms_of_service_url' => 'string',
1611
  'url_scheme_suffix' => 'string',
1612
  'user_support_email' => 'string',
1068
  return $pending ? $request : $request->execute();
1069
  }
1070
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1071
  public function createOccludesPopup(array $fields = array(), array $params = array(), $pending = false) {
1072
  $this->assureId();
1073
 
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,6 +44,7 @@ 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\BusinessCreativeFolderSharingAgreementRequestStatusValues;
49
  use FacebookAds\Object\Values\BusinessImageValidationAdPlacementsValues;
@@ -897,6 +898,29 @@ class Business extends AbstractCrudObject {
897
  return $pending ? $request : $request->execute();
898
  }
899
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
900
  public function getContentDeliveryReport(array $fields = array(), array $params = array(), $pending = false) {
901
  $this->assureId();
902
 
@@ -1107,6 +1131,7 @@ class Business extends AbstractCrudObject {
1107
  $this->assureId();
1108
 
1109
  $param_types = array(
 
1110
  );
1111
  $enums = array(
1112
  );
@@ -1181,6 +1206,32 @@ class Business extends AbstractCrudObject {
1181
  return $pending ? $request : $request->execute();
1182
  }
1183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1184
  public function deleteInstagramAccounts(array $fields = array(), array $params = array(), $pending = false) {
1185
  $this->assureId();
1186
 
@@ -1589,7 +1640,6 @@ class Business extends AbstractCrudObject {
1589
 
1590
  $param_types = array(
1591
  'code' => 'string',
1592
- 'ig_password' => 'string',
1593
  'page_id' => 'int',
1594
  );
1595
  $enums = array(
@@ -1660,10 +1710,12 @@ class Business extends AbstractCrudObject {
1660
  $this->assureId();
1661
 
1662
  $param_types = array(
 
1663
  'da_display_settings' => 'Object',
1664
  'destination_catalog_settings' => 'map',
1665
  'flight_catalog_settings' => 'map',
1666
  'name' => 'string',
 
1667
  'store_catalog_settings' => 'map',
1668
  'vertical' => 'vertical_enum',
1669
  );
@@ -1900,7 +1952,7 @@ class Business extends AbstractCrudObject {
1900
  return $pending ? $request : $request->execute();
1901
  }
1902
 
1903
- public function getPixelTos(array $fields = array(), array $params = array(), $pending = false) {
1904
  $this->assureId();
1905
 
1906
  $param_types = array(
@@ -1911,11 +1963,11 @@ class Business extends AbstractCrudObject {
1911
  $request = new ApiRequest(
1912
  $this->api,
1913
  $this->data['id'],
1914
- RequestInterface::METHOD_GET,
1915
  '/pixel_tos',
1916
- new BusinessPixelTOS(),
1917
  'EDGE',
1918
- BusinessPixelTOS::getFieldsEnum()->getValues(),
1919
  new TypeChecker($param_types, $enums)
1920
  );
1921
  $request->addParams($params);
@@ -1923,22 +1975,25 @@ class Business extends AbstractCrudObject {
1923
  return $pending ? $request : $request->execute();
1924
  }
1925
 
1926
- public function createPixelTo(array $fields = array(), array $params = array(), $pending = false) {
1927
  $this->assureId();
1928
 
1929
  $param_types = array(
 
 
1930
  );
1931
  $enums = array(
 
1932
  );
1933
 
1934
  $request = new ApiRequest(
1935
  $this->api,
1936
  $this->data['id'],
1937
- RequestInterface::METHOD_POST,
1938
- '/pixel_tos',
1939
- new BusinessPixelTOS(),
1940
  'EDGE',
1941
- BusinessPixelTOS::getFieldsEnum()->getValues(),
1942
  new TypeChecker($param_types, $enums)
1943
  );
1944
  $request->addParams($params);
@@ -1946,25 +2001,25 @@ class Business extends AbstractCrudObject {
1946
  return $pending ? $request : $request->execute();
1947
  }
1948
 
1949
- public function getReceivedAudienceSharingRequests(array $fields = array(), array $params = array(), $pending = false) {
1950
  $this->assureId();
1951
 
1952
  $param_types = array(
1953
- 'initiator_id' => 'string',
1954
  'request_status' => 'request_status_enum',
 
1955
  );
1956
  $enums = array(
1957
- 'request_status_enum' => BusinessAssetSharingAgreementRequestStatusValues::getInstance()->getValues(),
1958
  );
1959
 
1960
  $request = new ApiRequest(
1961
  $this->api,
1962
  $this->data['id'],
1963
  RequestInterface::METHOD_GET,
1964
- '/received_audience_sharing_requests',
1965
- new BusinessAssetSharingAgreement(),
1966
  'EDGE',
1967
- BusinessAssetSharingAgreement::getFieldsEnum()->getValues(),
1968
  new TypeChecker($param_types, $enums)
1969
  );
1970
  $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;
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
 
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
 
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/{VideoGameShow.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\VideoGameShowFields;
32
- use FacebookAds\Object\Values\VideoGameShowActionValues;
33
 
34
  /**
35
  * This class is auto-generated.
@@ -40,18 +40,18 @@ use FacebookAds\Object\Values\VideoGameShowActionValues;
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
 
@@ -69,9 +69,9 @@ class VideoGameShow extends AbstractCrudObject {
69
  $this->data['id'],
70
  RequestInterface::METHOD_GET,
71
  '/',
72
- new VideoGameShow(),
73
  'NODE',
74
- VideoGameShow::getFieldsEnum()->getValues(),
75
  new TypeChecker($param_types, $enums)
76
  );
77
  $request->addParams($params);
@@ -83,10 +83,11 @@ class VideoGameShow extends AbstractCrudObject {
83
  $this->assureId();
84
 
85
  $param_types = array(
86
- 'action' => 'action_enum',
 
87
  );
88
  $enums = array(
89
- 'action_enum' => VideoGameShowActionValues::getInstance()->getValues(),
90
  );
91
 
92
  $request = new ApiRequest(
@@ -94,9 +95,9 @@ class VideoGameShow extends AbstractCrudObject {
94
  $this->data['id'],
95
  RequestInterface::METHOD_POST,
96
  '/',
97
- new VideoGameShow(),
98
  'NODE',
99
- VideoGameShow::getFieldsEnum()->getValues(),
100
  new TypeChecker($param_types, $enums)
101
  );
102
  $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
 
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);
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(
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/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
  );
@@ -509,6 +507,7 @@ class Campaign extends AbstractArchivableCrudObject {
509
  'objective' => 'objective_enum',
510
  'pacing_type' => 'list<string>',
511
  'promoted_object' => 'Object',
 
512
  'special_ad_category' => 'special_ad_category_enum',
513
  'spend_cap' => 'unsigned int',
514
  'status' => 'status_enum',
@@ -518,6 +517,7 @@ class Campaign extends AbstractArchivableCrudObject {
518
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
519
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
520
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
 
521
  'special_ad_category_enum' => CampaignSpecialAdCategoryValues::getInstance()->getValues(),
522
  'status_enum' => CampaignStatusValues::getInstance()->getValues(),
523
  );
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
  );
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/{RequestHistory.php → CatalogItemAppLinks.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\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() {
52
  $ref_enums = array();
 
53
  return $ref_enums;
54
  }
55
 
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/{BusinessPixelTOS.php → CommerceOrderTransactionDetail.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() {
@@ -61,7 +54,7 @@ class BusinessPixelTOS extends AbstractCrudObject {
61
  }
62
 
63
 
64
- public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
65
  $this->assureId();
66
 
67
  $param_types = array(
@@ -73,10 +66,10 @@ class BusinessPixelTOS extends AbstractCrudObject {
73
  $this->api,
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\CommerceOrderTransactionDetailFields;
32
 
33
  /**
34
  * This class is auto-generated.
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() {
54
  }
55
 
56
 
57
+ public function getTaxDetails(array $fields = array(), array $params = array(), $pending = false) {
58
  $this->assureId();
59
 
60
  $param_types = array(
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);
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/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/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/{CustomAudiencePrefillStateFields.php → AdCreativeAdDisclaimerFields.php} RENAMED
@@ -35,17 +35,17 @@ 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 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/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
@@ -71,6 +71,7 @@ class AdSetFields extends AbstractEnum {
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 NAME = 'name';
75
  const OPTIMIZATION_GOAL = 'optimization_goal';
76
  const OPTIMIZATION_SUB_EVENT = 'optimization_sub_event';
@@ -137,6 +138,7 @@ class AdSetFields extends AbstractEnum {
137
  'lifetime_imps' => 'int',
138
  'lifetime_min_spend_target' => 'string',
139
  'lifetime_spend_cap' => 'string',
 
140
  'name' => 'string',
141
  'optimization_goal' => 'OptimizationGoal',
142
  'optimization_sub_event' => 'string',
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';
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,6 +45,7 @@ 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 FACEBOOK_PAGES_LIVE_SHOPPING = 'facebook_pages_live_shopping';
50
  const INSTAGRAM = 'instagram';
@@ -75,6 +76,7 @@ class AdgroupPlacementSpecificReviewFeedbackFields extends AbstractEnum {
75
  'daily_deals' => 'map<string, string>',
76
  'daily_deals_legacy' => 'map<string, string>',
77
  'dpa' => 'map<string, string>',
 
78
  'facebook' => 'map<string, string>',
79
  'facebook_pages_live_shopping' => 'map<string, string>',
80
  'instagram' => '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';
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>',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdsInsightsFields.php CHANGED
@@ -67,6 +67,10 @@ class AdsInsightsFields extends AbstractEnum {
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 CLICKS = 'clicks';
71
  const CONVERSION_RATE_RANKING = 'conversion_rate_ranking';
72
  const CONVERSION_VALUES = 'conversion_values';
@@ -123,6 +127,7 @@ class AdsInsightsFields extends AbstractEnum {
123
  const OUTBOUND_CLICKS_CTR = 'outbound_clicks_ctr';
124
  const PLACE_PAGE_NAME = 'place_page_name';
125
  const PURCHASE_ROAS = 'purchase_roas';
 
126
  const QUALITY_RANKING = 'quality_ranking';
127
  const QUALITY_SCORE_ECTR = 'quality_score_ectr';
128
  const QUALITY_SCORE_ECVR = 'quality_score_ecvr';
@@ -195,6 +200,10 @@ class AdsInsightsFields extends AbstractEnum {
195
  'campaign_name' => 'string',
196
  'canvas_avg_view_percent' => 'string',
197
  'canvas_avg_view_time' => 'string',
 
 
 
 
198
  'clicks' => 'string',
199
  'conversion_rate_ranking' => 'string',
200
  'conversion_values' => 'list<AdsActionStats>',
@@ -251,6 +260,7 @@ class AdsInsightsFields extends AbstractEnum {
251
  'outbound_clicks_ctr' => 'list<AdsActionStats>',
252
  'place_page_name' => 'string',
253
  'purchase_roas' => 'list<AdsActionStats>',
 
254
  'quality_ranking' => 'string',
255
  'quality_score_ectr' => 'string',
256
  'quality_score_ecvr' => 'string',
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';
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';
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>',
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',
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/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/{InstagramCommentFields.php → CatalogItemAppLinksFields.php} RENAMED
@@ -35,25 +35,27 @@ 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 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/CatalogItemAppealStatusFields.php CHANGED
@@ -47,7 +47,7 @@ class CatalogItemAppealStatusFields extends AbstractEnum {
47
  'handle' => 'string',
48
  'item_id' => 'int',
49
  'status' => 'string',
50
- 'use_cases' => 'map<Object, Object>',
51
  );
52
  }
53
  }
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/{RequestHistoryFields.php → CommerceMerchantSettingsSetupStatusFields.php} RENAMED
@@ -35,25 +35,21 @@ use FacebookAds\Enum\AbstractEnum;
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
  }
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/CommerceOrderFields.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 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/CommerceOrderTransactionDetailFields.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 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/{VideoGameShowFields.php → CommercePayoutFields.php} RENAMED
@@ -35,21 +35,21 @@ 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 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/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/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/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/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,6 +66,7 @@ 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 DIFFERENTLY_OPEN_OFFERINGS = 'differently_open_offerings';
@@ -209,6 +210,7 @@ class PageFields extends AbstractEnum {
209
  'cover' => 'CoverPhoto',
210
  'culinary_team' => 'string',
211
  'current_location' => 'string',
 
212
  'description' => 'string',
213
  'description_html' => 'string',
214
  'differently_open_offerings' => 'map<string, bool>',
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';
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>',
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,7 +38,7 @@ 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';
@@ -51,11 +51,12 @@ class ProductCatalogFields extends AbstractEnum {
51
  const VERTICAL = 'vertical';
52
  const DESTINATION_CATALOG_SETTINGS = 'destination_catalog_settings';
53
  const FLIGHT_CATALOG_SETTINGS = 'flight_catalog_settings';
 
54
 
55
  public function getFieldTypes() {
56
  return array(
57
  'business' => 'Business',
58
- 'cpas_parent_catalog_settings' => 'CPASParentCatalogSettings',
59
  'da_display_settings' => 'ProductCatalogImageSettings',
60
  'default_image_url' => 'string',
61
  'fallback_image_url' => 'list<string>',
@@ -68,6 +69,7 @@ class ProductCatalogFields extends AbstractEnum {
68
  'vertical' => 'string',
69
  'destination_catalog_settings' => 'map',
70
  'flight_catalog_settings' => 'map',
 
71
  );
72
  }
73
  }
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';
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>',
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/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/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/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/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/OpenGraphObject.php DELETED
@@ -1,139 +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\OpenGraphObjectFields;
32
- use FacebookAds\Object\Values\CommentFilterValues;
33
- use FacebookAds\Object\Values\CommentLiveFilterValues;
34
- use FacebookAds\Object\Values\CommentOrderValues;
35
- use FacebookAds\Object\Values\ProfileTypeValues;
36
-
37
- /**
38
- * This class is auto-generated.
39
- *
40
- * For any issues or feature requests related to this class, please let us know
41
- * on github and we'll fix in our codegen framework. We'll not be able to accept
42
- * pull request for this class.
43
- *
44
- */
45
-
46
- class OpenGraphObject extends AbstractCrudObject {
47
-
48
- /**
49
- * @return OpenGraphObjectFields
50
- */
51
- public static function getFieldsEnum() {
52
- return OpenGraphObjectFields::getInstance();
53
- }
54
-
55
- protected static function getReferencedEnums() {
56
- $ref_enums = array();
57
- return $ref_enums;
58
- }
59
-
60
-
61
- public function getComments(array $fields = array(), array $params = array(), $pending = false) {
62
- $this->assureId();
63
-
64
- $param_types = array(
65
- 'filter' => 'filter_enum',
66
- 'live_filter' => 'live_filter_enum',
67
- 'order' => 'order_enum',
68
- 'since' => 'datetime',
69
- );
70
- $enums = array(
71
- 'filter_enum' => CommentFilterValues::getInstance()->getValues(),
72
- 'live_filter_enum' => CommentLiveFilterValues::getInstance()->getValues(),
73
- 'order_enum' => CommentOrderValues::getInstance()->getValues(),
74
- );
75
-
76
- $request = new ApiRequest(
77
- $this->api,
78
- $this->data['id'],
79
- RequestInterface::METHOD_GET,
80
- '/comments',
81
- new Comment(),
82
- 'EDGE',
83
- Comment::getFieldsEnum()->getValues(),
84
- new TypeChecker($param_types, $enums)
85
- );
86
- $request->addParams($params);
87
- $request->addFields($fields);
88
- return $pending ? $request : $request->execute();
89
- }
90
-
91
- public function getReactions(array $fields = array(), array $params = array(), $pending = false) {
92
- $this->assureId();
93
-
94
- $param_types = array(
95
- 'type' => 'type_enum',
96
- );
97
- $enums = array(
98
- 'type_enum' => ProfileTypeValues::getInstance()->getValues(),
99
- );
100
-
101
- $request = new ApiRequest(
102
- $this->api,
103
- $this->data['id'],
104
- RequestInterface::METHOD_GET,
105
- '/reactions',
106
- new Profile(),
107
- 'EDGE',
108
- Profile::getFieldsEnum()->getValues(),
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 getSelf(array $fields = array(), array $params = array(), $pending = false) {
117
- $this->assureId();
118
-
119
- $param_types = array(
120
- );
121
- $enums = array(
122
- );
123
-
124
- $request = new ApiRequest(
125
- $this->api,
126
- $this->data['id'],
127
- RequestInterface::METHOD_GET,
128
- '/',
129
- new OpenGraphObject(),
130
- 'NODE',
131
- OpenGraphObject::getFieldsEnum()->getValues(),
132
- new TypeChecker($param_types, $enums)
133
- );
134
- $request->addParams($params);
135
- $request->addFields($fields);
136
- return $pending ? $request : $request->execute();
137
- }
138
-
139
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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;
@@ -141,6 +143,31 @@ class Page extends AbstractCrudObject {
141
  }
142
 
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  public function getAdsPosts(array $fields = array(), array $params = array(), $pending = false) {
145
  $this->assureId();
146
 
@@ -264,40 +291,6 @@ class Page extends AbstractCrudObject {
264
  return $pending ? $request : $request->execute();
265
  }
266
 
267
- public function createAlbum(array $fields = array(), array $params = array(), $pending = false) {
268
- $this->assureId();
269
-
270
- $param_types = array(
271
- 'contributors' => 'list<int>',
272
- 'description' => 'string',
273
- 'is_default' => 'bool',
274
- 'location' => 'string',
275
- 'make_shared_album' => 'bool',
276
- 'message' => 'string',
277
- 'name' => 'string',
278
- 'place' => 'Object',
279
- 'privacy' => 'string',
280
- 'tags' => 'list<int>',
281
- 'visible' => 'string',
282
- );
283
- $enums = array(
284
- );
285
-
286
- $request = new ApiRequest(
287
- $this->api,
288
- $this->data['id'],
289
- RequestInterface::METHOD_POST,
290
- '/albums',
291
- new Album(),
292
- 'EDGE',
293
- Album::getFieldsEnum()->getValues(),
294
- new TypeChecker($param_types, $enums)
295
- );
296
- $request->addParams($params);
297
- $request->addFields($fields);
298
- return $pending ? $request : $request->execute();
299
- }
300
-
301
  public function deleteAssignedUsers(array $fields = array(), array $params = array(), $pending = false) {
302
  $this->assureId();
303
 
@@ -430,8 +423,8 @@ class Page extends AbstractCrudObject {
430
  $param_types = array(
431
  'asid' => 'list',
432
  'psid' => 'list<int>',
433
- 'uid' => 'list<string>',
434
- 'user' => 'list<string>',
435
  );
436
  $enums = array(
437
  );
@@ -656,6 +649,109 @@ class Page extends AbstractCrudObject {
656
  return $pending ? $request : $request->execute();
657
  }
658
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
659
  public function getConversations(array $fields = array(), array $params = array(), $pending = false) {
660
  $this->assureId();
661
 
@@ -932,29 +1028,6 @@ class Page extends AbstractCrudObject {
932
  return $pending ? $request : $request->execute();
933
  }
934
 
935
- public function getFeaturedVideosCollection(array $fields = array(), array $params = array(), $pending = false) {
936
- $this->assureId();
937
-
938
- $param_types = array(
939
- );
940
- $enums = array(
941
- );
942
-
943
- $request = new ApiRequest(
944
- $this->api,
945
- $this->data['id'],
946
- RequestInterface::METHOD_GET,
947
- '/featured_videos_collection',
948
- new AdVideo(),
949
- 'EDGE',
950
- AdVideo::getFieldsEnum()->getValues(),
951
- new TypeChecker($param_types, $enums)
952
- );
953
- $request->addParams($params);
954
- $request->addFields($fields);
955
- return $pending ? $request : $request->execute();
956
- }
957
-
958
  public function getFeed(array $fields = array(), array $params = array(), $pending = false) {
959
  $this->assureId();
960
 
@@ -1604,6 +1677,7 @@ class Page extends AbstractCrudObject {
1604
 
1605
  $param_types = array(
1606
  'always_open' => 'bool',
 
1607
  'differently_open_offerings' => 'map',
1608
  'hours' => 'map',
1609
  'ignore_warnings' => 'bool',
@@ -1862,7 +1936,6 @@ class Page extends AbstractCrudObject {
1862
  'account_linking_url' => 'string',
1863
  'get_started' => 'Object',
1864
  'greeting' => 'list<Object>',
1865
- 'home_url' => 'Object',
1866
  'ice_breakers' => 'list<map>',
1867
  'payment_settings' => 'Object',
1868
  'persistent_menu' => 'list<Object>',
@@ -2418,36 +2491,6 @@ class Page extends AbstractCrudObject {
2418
  return $pending ? $request : $request->execute();
2419
  }
2420
 
2421
- public function createPromotion(array $fields = array(), array $params = array(), $pending = false) {
2422
- $this->assureId();
2423
-
2424
- $param_types = array(
2425
- 'ad_account_id' => 'string',
2426
- 'budget' => 'unsigned int',
2427
- 'duration' => 'string',
2428
- 'gender' => 'unsigned int',
2429
- 'geo_level' => 'string',
2430
- 'max_age' => 'unsigned int',
2431
- 'min_age' => 'unsigned int',
2432
- );
2433
- $enums = array(
2434
- );
2435
-
2436
- $request = new ApiRequest(
2437
- $this->api,
2438
- $this->data['id'],
2439
- RequestInterface::METHOD_POST,
2440
- '/promotions',
2441
- new AbstractCrudObject(),
2442
- 'EDGE',
2443
- array(),
2444
- new TypeChecker($param_types, $enums)
2445
- );
2446
- $request->addParams($params);
2447
- $request->addFields($fields);
2448
- return $pending ? $request : $request->execute();
2449
- }
2450
-
2451
  public function getPublishedPosts(array $fields = array(), array $params = array(), $pending = false) {
2452
  $this->assureId();
2453
 
@@ -2662,6 +2705,29 @@ class Page extends AbstractCrudObject {
2662
  return $pending ? $request : $request->execute();
2663
  }
2664
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2665
  public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = false) {
2666
  $this->assureId();
2667
 
@@ -3020,30 +3086,6 @@ class Page extends AbstractCrudObject {
3020
  return $pending ? $request : $request->execute();
3021
  }
3022
 
3023
- public function getUpcomingChanges(array $fields = array(), array $params = array(), $pending = false) {
3024
- $this->assureId();
3025
-
3026
- $param_types = array(
3027
- 'include_inactive' => 'bool',
3028
- );
3029
- $enums = array(
3030
- );
3031
-
3032
- $request = new ApiRequest(
3033
- $this->api,
3034
- $this->data['id'],
3035
- RequestInterface::METHOD_GET,
3036
- '/upcoming_changes',
3037
- new PageUpcomingChange(),
3038
- 'EDGE',
3039
- PageUpcomingChange::getFieldsEnum()->getValues(),
3040
- new TypeChecker($param_types, $enums)
3041
- );
3042
- $request->addParams($params);
3043
- $request->addFields($fields);
3044
- return $pending ? $request : $request->execute();
3045
- }
3046
-
3047
  public function getVideoCopyrightRules(array $fields = array(), array $params = array(), $pending = false) {
3048
  $this->assureId();
3049
 
@@ -3070,31 +3112,6 @@ class Page extends AbstractCrudObject {
3070
  return $pending ? $request : $request->execute();
3071
  }
3072
 
3073
- public function createVideoCopyrightRule(array $fields = array(), array $params = array(), $pending = false) {
3074
- $this->assureId();
3075
-
3076
- $param_types = array(
3077
- 'condition_groups' => 'list<Object>',
3078
- 'name' => 'string',
3079
- );
3080
- $enums = array(
3081
- );
3082
-
3083
- $request = new ApiRequest(
3084
- $this->api,
3085
- $this->data['id'],
3086
- RequestInterface::METHOD_POST,
3087
- '/video_copyright_rules',
3088
- new VideoCopyrightRule(),
3089
- 'EDGE',
3090
- VideoCopyrightRule::getFieldsEnum()->getValues(),
3091
- new TypeChecker($param_types, $enums)
3092
- );
3093
- $request->addParams($params);
3094
- $request->addFields($fields);
3095
- return $pending ? $request : $request->execute();
3096
- }
3097
-
3098
  public function createVideoCopyright(array $fields = array(), array $params = array(), $pending = false) {
3099
  $this->assureId();
3100
 
@@ -3367,6 +3384,7 @@ class Page extends AbstractCrudObject {
3367
  'contact_address' => 'Object',
3368
  'cover' => 'string',
3369
  'culinary_team' => 'string',
 
3370
  'description' => 'string',
3371
  'differently_open_offerings' => 'map',
3372
  'directed_by' => 'string',
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;
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
 
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',
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>',
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
 
3112
  return $pending ? $request : $request->execute();
3113
  }
3114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3115
  public function createVideoCopyright(array $fields = array(), array $params = array(), $pending = false) {
3116
  $this->assureId();
3117
 
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',
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
@@ -282,6 +282,7 @@ class Post extends AbstractCrudObject {
282
  'AUTO_LOOKALIKE',
283
  'AUTO_PAGE_LOOKALIKE',
284
  'AUTO_TARGETING',
 
285
  'CREATE_NEW',
286
  'CUSTOM_AUDIENCE',
287
  'DISTRICT',
@@ -293,6 +294,7 @@ class Post extends AbstractCrudObject {
293
  'IG_PROMOTED_POST_AUTO',
294
  'LOCAL',
295
  'LOOKALIKE',
 
296
  'MULT_CUSTOM_AUDIENCES',
297
  'NCPP',
298
  'SAVED_AUDIENCE',
@@ -316,6 +318,8 @@ class Post extends AbstractCrudObject {
316
  'FIND_A_GROUP',
317
  'FIND_YOUR_GROUPS',
318
  'FOLLOW_NEWS_STORYLINE',
 
 
319
  'GET_DIRECTIONS',
320
  'GET_OFFER',
321
  'GET_OFFER_VIEW',
@@ -333,8 +337,11 @@ class Post extends AbstractCrudObject {
333
  'NO_BUTTON',
334
  'OPEN_LINK',
335
  'ORDER_NOW',
 
336
  'PLAY_GAME',
 
337
  'RECORD_NOW',
 
338
  'SAY_THANKS',
339
  'SEE_MORE',
340
  'SELL_NOW',
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
@@ -739,6 +739,30 @@ class ProductCatalog extends AbstractCrudObject {
739
  return $pending ? $request : $request->execute();
740
  }
741
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  public function getPricingVariablesBatch(array $fields = array(), array $params = array(), $pending = false) {
743
  $this->assureId();
744
 
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
 
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
@@ -41,6 +41,10 @@ class Content implements ArrayAccess {
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
 
@@ -101,6 +105,82 @@ class Content implements ArrayAccess {
101
  return $this;
102
  }
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  /**
105
  * Returns true if offset exists. False otherwise.
106
  * @param integer $offset Offset
@@ -163,6 +243,10 @@ class Content implements ArrayAccess {
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);
@@ -170,4 +254,4 @@ class Content implements ArrayAccess {
170
  return $normalized_payload;
171
  }
172
 
173
- }
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
+ $this->container['title'] = isset($data['title']) ? $data['title'] : null;
45
+ $this->container['description'] = isset($data['description']) ? $data['description'] : null;
46
+ $this->container['brand'] = isset($data['brand']) ? $data['brand'] : null;
47
+ $this->container['category'] = isset($data['category']) ? $data['category'] : null;
48
  }
49
 
50
 
105
  return $this;
106
  }
107
 
108
+
109
+ /**
110
+ * Get title.
111
+ * @return string title
112
+ */
113
+ public function getTitle() {
114
+ return $this->container['title'];
115
+ }
116
+
117
+ /**
118
+ * Sets title.
119
+ * @param string $title title
120
+ * @return $this
121
+ */
122
+ public function setTitle($title) {
123
+ $this->container['title'] = $title;
124
+ return $this;
125
+ }
126
+
127
+
128
+ /**
129
+ * Get description.
130
+ * @return string description
131
+ */
132
+ public function getDescription() {
133
+ return $this->container['description'];
134
+ }
135
+
136
+ /**
137
+ * Sets description.
138
+ * @param string $description description
139
+ * @return $this
140
+ */
141
+ public function setDescription($description) {
142
+ $this->container['description'] = $description;
143
+ return $this;
144
+ }
145
+
146
+
147
+ /**
148
+ * Get brand.
149
+ * @return string brand
150
+ */
151
+ public function getBrand() {
152
+ return $this->container['brand'];
153
+ }
154
+
155
+ /**
156
+ * Sets brand.
157
+ * @param string $brand brand
158
+ * @return $this
159
+ */
160
+ public function setBrand($brand) {
161
+ $this->container['brand'] = $brand;
162
+ return $this;
163
+ }
164
+
165
+
166
+ /**
167
+ * Get category.
168
+ * @return string category
169
+ */
170
+ public function getCategory() {
171
+ return $this->container['category'];
172
+ }
173
+
174
+ /**
175
+ * Sets category.
176
+ * @param string $category category
177
+ * @return $this
178
+ */
179
+ public function setCategory($category) {
180
+ $this->container['category'] = $category;
181
+ return $this;
182
+ }
183
+
184
  /**
185
  * Returns true if offset exists. False otherwise.
186
  * @param integer $offset Offset
243
  'id' => $this->container['product_id'],
244
  'quantity' => $this->container['quantity'],
245
  'item_price' => $this->container['item_price'],
246
+ 'title' => $this->container['title'],
247
+ 'description' => $this->container['description'],
248
+ 'brand' => $this->container['brand'],
249
+ 'category' => $this->container['category'],
250
  );
251
 
252
  $normalized_payload = array_filter($normalized_payload);
254
  return $normalized_payload;
255
  }
256
 
257
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Event.php CHANGED
@@ -44,7 +44,10 @@ class Event implements ArrayAccess {
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
@@ -57,8 +60,12 @@ class Event implements ArrayAccess {
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[]
@@ -70,7 +77,10 @@ class Event implements ArrayAccess {
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)
@@ -83,7 +93,10 @@ class Event implements ArrayAccess {
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
@@ -103,6 +116,9 @@ class Event implements ArrayAccess {
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() {
@@ -242,6 +258,43 @@ class Event implements ArrayAccess {
242
  return $this;
243
  }
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  /**
246
  * Returns true if offset exists. False otherwise.
247
  * @param integer $offset Offset
@@ -299,7 +352,10 @@ class Event implements ArrayAccess {
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
  }
@@ -363,7 +419,31 @@ class Event implements ArrayAccess {
363
  }
364
 
365
  /**
366
- * Gets the string presentation of the object
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  * @return string
368
  */
369
  public function __toString() {
44
  'opt_out' => 'bool',
45
  'event_id' => 'string',
46
  'user_data' => 'FacebookAds\Object\ServerSide\UserData',
47
+ 'custom_data' => 'FacebookAds\Object\ServerSide\CustomData',
48
+ 'data_processing_options' => 'string[]',
49
+ 'data_processing_options_country' => 'int',
50
+ 'data_processing_options_state' => 'int',
51
  );
52
  /**
53
  * Array of attributes where the key is the local name, and the value is the original name
60
  'opt_out' => 'opt_out',
61
  'event_id' => 'event_id',
62
  'user_data' => 'user_data',
63
+ 'custom_data' => 'custom_data',
64
+ 'data_processing_options' => 'data_processing_options',
65
+ 'data_processing_options_country' => 'data_processing_options_country',
66
+ 'data_processing_options_state' => 'data_processing_options_state'
67
  );
68
+
69
  /**
70
  * Array of attributes to setter functions (for deserialization of responses)
71
  * @var string[]
77
  'opt_out' => 'setOptOut',
78
  'event_id' => 'setEventId',
79
  'user_data' => 'setUserData',
80
+ 'custom_data' => 'setCustomData',
81
+ 'data_processing_options' => 'setDataProcessingOptions',
82
+ 'data_processing_options_country' => 'setDataProcessingOptionsCountry',
83
+ 'data_processing_options_state' => 'setDataProcessingOptionsState',
84
  );
85
  /**
86
  * Array of attributes to getter functions (for serialization of requests)
93
  'opt_out' => 'getOptOut',
94
  'event_id' => 'getEventId',
95
  'user_data' => 'getUserData',
96
+ 'custom_data' => 'getCustomData',
97
+ 'data_processing_options' => 'getDataProcessingOptions',
98
+ 'data_processing_options_country' => 'getDataProcessingOptionsCountry',
99
+ 'data_processing_options_state' => 'getDataProcessingOptionsState',
100
  );
101
  /**
102
  * Associative array for storing property values
116
  $this->container['event_id'] = isset($data['event_id']) ? $data['event_id'] : null;
117
  $this->container['user_data'] = isset($data['user_data']) ? $data['user_data'] : null;
118
  $this->container['custom_data'] = isset($data['custom_data']) ? $data['custom_data'] : null;
119
+ $this->container['data_processing_options'] = isset($data['data_processing_options']) ? $data['data_processing_options'] : null;
120
+ $this->container['data_processing_options_country'] = isset($data['data_processing_options_country']) ? $data['data_processing_options_country'] : null;
121
+ $this->container['data_processing_options_state'] = isset($data['data_processing_options_state']) ? $data['data_processing_options_state'] : null;
122
  }
123
 
124
  public static function paramTypes() {
258
  return $this;
259
  }
260
 
261
+ /**
262
+ * Sets the processing options you would like to enable for a specific event.
263
+ * For more details see: https://developers.facebook.com/docs/marketing-apis/data-processing-options
264
+ * @param string[], e.g. [] or ['LDU']
265
+ * @return $this
266
+ */
267
+ public function setDataProcessingOptions($data_processing_options) {
268
+ $this->container['data_processing_options'] = $data_processing_options;
269
+
270
+ return $this;
271
+ }
272
+
273
+ /**
274
+ * Sets a country that you want to associate to this data processing option. If you set a country, you must also set a state.
275
+ * For more details see: https://developers.facebook.com/docs/marketing-apis/data-processing-options
276
+ * @param int
277
+ * @return $this
278
+ */
279
+ public function setDataProcessingOptionsCountry($data_processing_options_country) {
280
+ $this->container['data_processing_options_country'] = $data_processing_options_country;
281
+
282
+ return $this;
283
+ }
284
+
285
+ /**
286
+ * Sets a state that you want to associate with this data processing option.
287
+ * For more details see: https://developers.facebook.com/docs/marketing-apis/data-processing-options
288
+ * @param int
289
+ * @return $this
290
+ *
291
+ */
292
+ public function setDataProcessingOptionsState($data_processing_options_state) {
293
+ $this->container['data_processing_options_state'] = $data_processing_options_state;
294
+
295
+ return $this;
296
+ }
297
+
298
  /**
299
  * Returns true if offset exists. False otherwise.
300
  * @param integer $offset Offset
352
  $normalized_payload['custom_data'] = isset($this->container['custom_data']) ? $this->getCustomData()
353
  ->normalize() : null;
354
 
355
+ $normalized_payload['data_processing_options'] = $this->getDataProcessingOptions();
356
+ $normalized_payload['data_processing_options_country'] = $this->getDataProcessingOptionsCountry();
357
+ $normalized_payload['data_processing_options_state'] = $this->getDataProcessingOptionsState();
358
+ $normalized_payload = array_filter($normalized_payload, function($val) { if(is_array($val)) { return true; } else { return strlen($val); }});
359
 
360
  return $normalized_payload;
361
  }
419
  }
420
 
421
  /**
422
+ * Gets DataProcessionOptions value of Processing options you would like to enable for a specific event.
423
+ * @return string[]
424
+ */
425
+ public function getDataProcessingOptions() {
426
+ return $this->container['data_processing_options'];
427
+ }
428
+
429
+ /**
430
+ * Gets DataProcessionOptionsState value that represents the state that you want to associate with this data processing option.
431
+ * @return int
432
+ */
433
+ public function getDataProcessingOptionsState() {
434
+ return $this->container['data_processing_options_state'];
435
+ }
436
+
437
+ /**
438
+ * Gets DataProcessionOptionsCountry value that represents the country that you want to associate to this data processing option.
439
+ * @return int
440
+ */
441
+ public function getDataProcessingOptionsCountry() {
442
+ return $this->container['data_processing_options_country'];
443
+ }
444
+
445
+ /**
446
+ * Gets the string representation of the object
447
  * @return string
448
  */
449
  public function __toString() {
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/UserData.php CHANGED
@@ -58,7 +58,8 @@ class UserData implements ArrayAccess {
58
  'client_user_agent' => 'string',
59
  'fbc' => 'string',
60
  'fbp' => 'string',
61
- 'subscription_id' => 'string'
 
62
  );
63
  /**
64
  * Array of attributes where the key is the local name, and the value is the original name
@@ -80,7 +81,8 @@ class UserData implements ArrayAccess {
80
  'client_user_agent' => 'client_user_agent',
81
  'fbc' => 'fbc',
82
  'fbp' => 'fbp',
83
- 'subscription_id' => 'subscription_id'
 
84
  );
85
  /**
86
  * Array of attributes to setter functions (for deserialization of responses)
@@ -102,7 +104,8 @@ class UserData implements ArrayAccess {
102
  'client_user_agent' => 'setClientUserAgent',
103
  'fbc' => 'setFbc',
104
  'fbp' => 'setFbp',
105
- 'subscription_id' => 'setSubscriptionId'
 
106
  );
107
  /**
108
  * Array of attributes to getter functions (for serialization of requests)
@@ -124,7 +127,8 @@ class UserData implements ArrayAccess {
124
  'client_user_agent' => 'getClientUserAgent',
125
  'fbc' => 'getFbc',
126
  'fbp' => 'getFbp',
127
- 'subscription_id' => 'getSubscriptionId'
 
128
  );
129
  /**
130
  * Associative array for storing property values
@@ -153,6 +157,7 @@ class UserData implements ArrayAccess {
153
  $this->container['fbc'] = isset($data['fbc']) ? $data['fbc'] : null;
154
  $this->container['fbp'] = isset($data['fbp']) ? $data['fbp'] : null;
155
  $this->container['subscription_id'] = isset($data['subscription_id']) ? $data['subscription_id'] : null;
 
156
  }
157
 
158
  public static function paramTypes() {
@@ -396,6 +401,19 @@ class UserData implements ArrayAccess {
396
  return $this;
397
  }
398
 
 
 
 
 
 
 
 
 
 
 
 
 
 
399
  /**
400
  * Returns true if offset exists. False otherwise.
401
  * @param integer $offset Offset
@@ -456,7 +474,7 @@ class UserData implements ArrayAccess {
456
  $normalized_payload['fbc'] = $this->getFbc();
457
  $normalized_payload['fbp'] = $this->getFbp();
458
  $normalized_payload['subscription_id'] = $this->getSubscriptionId();
459
-
460
  $normalized_payload = array_filter($normalized_payload);
461
  return $normalized_payload;
462
  }
@@ -589,6 +607,13 @@ class UserData implements ArrayAccess {
589
  return $this->container['subscription_id'];
590
  }
591
 
 
 
 
 
 
 
 
592
  /**
593
  * Gets the string presentation of the object
594
  * @return 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
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)
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)
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
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() {
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
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
  }
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
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Util.php CHANGED
@@ -51,4 +51,85 @@ class Util {
51
  return preg_match('/^[A-Fa-f0-9]{64}$/', $pii) ||
52
  preg_match('/^[a-f0-9]{32}$/', $pii);
53
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  }
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/User.php CHANGED
@@ -467,30 +467,6 @@ class User extends AbstractCrudObject {
467
  return $pending ? $request : $request->execute();
468
  }
469
 
470
- public function getBooks(array $fields = array(), array $params = array(), $pending = false) {
471
- $this->assureId();
472
-
473
- $param_types = array(
474
- 'target_id' => 'string',
475
- );
476
- $enums = array(
477
- );
478
-
479
- $request = new ApiRequest(
480
- $this->api,
481
- $this->data['id'],
482
- RequestInterface::METHOD_GET,
483
- '/books',
484
- new Page(),
485
- 'EDGE',
486
- Page::getFieldsEnum()->getValues(),
487
- new TypeChecker($param_types, $enums)
488
- );
489
- $request->addParams($params);
490
- $request->addFields($fields);
491
- return $pending ? $request : $request->execute();
492
- }
493
-
494
  public function getBusinessUsers(array $fields = array(), array $params = array(), $pending = false) {
495
  $this->assureId();
496
 
@@ -961,30 +937,6 @@ class User extends AbstractCrudObject {
961
  return $pending ? $request : $request->execute();
962
  }
963
 
964
- public function getGames(array $fields = array(), array $params = array(), $pending = false) {
965
- $this->assureId();
966
-
967
- $param_types = array(
968
- 'target_id' => 'string',
969
- );
970
- $enums = array(
971
- );
972
-
973
- $request = new ApiRequest(
974
- $this->api,
975
- $this->data['id'],
976
- RequestInterface::METHOD_GET,
977
- '/games',
978
- new Page(),
979
- 'EDGE',
980
- Page::getFieldsEnum()->getValues(),
981
- new TypeChecker($param_types, $enums)
982
- );
983
- $request->addParams($params);
984
- $request->addFields($fields);
985
- return $pending ? $request : $request->execute();
986
- }
987
-
988
  public function createGamesPlay(array $fields = array(), array $params = array(), $pending = false) {
989
  $this->assureId();
990
 
@@ -1039,32 +991,6 @@ class User extends AbstractCrudObject {
1039
  return $pending ? $request : $request->execute();
1040
  }
1041
 
1042
- public function createGamesStat(array $fields = array(), array $params = array(), $pending = false) {
1043
- $this->assureId();
1044
-
1045
- $param_types = array(
1046
- 'inc' => 'unsigned int',
1047
- 'set' => 'unsigned int',
1048
- 'stat_name' => 'string',
1049
- );
1050
- $enums = array(
1051
- );
1052
-
1053
- $request = new ApiRequest(
1054
- $this->api,
1055
- $this->data['id'],
1056
- RequestInterface::METHOD_POST,
1057
- '/games_stats',
1058
- new AbstractCrudObject(),
1059
- 'EDGE',
1060
- array(),
1061
- new TypeChecker($param_types, $enums)
1062
- );
1063
- $request->addParams($params);
1064
- $request->addFields($fields);
1065
- return $pending ? $request : $request->execute();
1066
- }
1067
-
1068
  public function getGroups(array $fields = array(), array $params = array(), $pending = false) {
1069
  $this->assureId();
1070
 
@@ -1313,30 +1239,6 @@ class User extends AbstractCrudObject {
1313
  return $pending ? $request : $request->execute();
1314
  }
1315
 
1316
- public function getMovies(array $fields = array(), array $params = array(), $pending = false) {
1317
- $this->assureId();
1318
-
1319
- $param_types = array(
1320
- 'target_id' => 'string',
1321
- );
1322
- $enums = array(
1323
- );
1324
-
1325
- $request = new ApiRequest(
1326
- $this->api,
1327
- $this->data['id'],
1328
- RequestInterface::METHOD_GET,
1329
- '/movies',
1330
- new Page(),
1331
- 'EDGE',
1332
- Page::getFieldsEnum()->getValues(),
1333
- new TypeChecker($param_types, $enums)
1334
- );
1335
- $request->addParams($params);
1336
- $request->addFields($fields);
1337
- return $pending ? $request : $request->execute();
1338
- }
1339
-
1340
  public function getMusic(array $fields = array(), array $params = array(), $pending = false) {
1341
  $this->assureId();
1342
 
@@ -1597,29 +1499,6 @@ class User extends AbstractCrudObject {
1597
  return $pending ? $request : $request->execute();
1598
  }
1599
 
1600
- public function getRequestHistory(array $fields = array(), array $params = array(), $pending = false) {
1601
- $this->assureId();
1602
-
1603
- $param_types = array(
1604
- );
1605
- $enums = array(
1606
- );
1607
-
1608
- $request = new ApiRequest(
1609
- $this->api,
1610
- $this->data['id'],
1611
- RequestInterface::METHOD_GET,
1612
- '/request_history',
1613
- new RequestHistory(),
1614
- 'EDGE',
1615
- RequestHistory::getFieldsEnum()->getValues(),
1616
- new TypeChecker($param_types, $enums)
1617
- );
1618
- $request->addParams($params);
1619
- $request->addFields($fields);
1620
- return $pending ? $request : $request->execute();
1621
- }
1622
-
1623
  public function getRichMediaDocuments(array $fields = array(), array $params = array(), $pending = false) {
1624
  $this->assureId();
1625
 
@@ -1691,30 +1570,6 @@ class User extends AbstractCrudObject {
1691
  return $pending ? $request : $request->execute();
1692
  }
1693
 
1694
- public function getTelevision(array $fields = array(), array $params = array(), $pending = false) {
1695
- $this->assureId();
1696
-
1697
- $param_types = array(
1698
- 'target_id' => 'string',
1699
- );
1700
- $enums = array(
1701
- );
1702
-
1703
- $request = new ApiRequest(
1704
- $this->api,
1705
- $this->data['id'],
1706
- RequestInterface::METHOD_GET,
1707
- '/television',
1708
- new Page(),
1709
- 'EDGE',
1710
- Page::getFieldsEnum()->getValues(),
1711
- new TypeChecker($param_types, $enums)
1712
- );
1713
- $request->addParams($params);
1714
- $request->addFields($fields);
1715
- return $pending ? $request : $request->execute();
1716
- }
1717
-
1718
  public function getVideos(array $fields = array(), array $params = array(), $pending = false) {
1719
  $this->assureId();
1720
 
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
 
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
 
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,7 @@ class AdAccountContentTypeValues extends AbstractEnum {
42
  const FLIGHT = 'FLIGHT';
43
  const HOME_LISTING = 'HOME_LISTING';
44
  const HOTEL = 'HOTEL';
 
45
  const LOCATION_BASED_ITEM = 'LOCATION_BASED_ITEM';
46
  const MEDIA_TITLE = 'MEDIA_TITLE';
47
  const OFFLINE_PRODUCT = 'OFFLINE_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';
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
@@ -108,6 +108,7 @@ class AdAccountTargetingUnifiedWhitelistedTypesValues extends AbstractEnum {
108
  const INDUSTRIES = 'industries';
109
  const INSTAGRAM_HASHTAGS = 'instagram_hashtags';
110
  const INSTAGRAM_POSITIONS = 'instagram_positions';
 
111
  const INSTREAM_VIDEO_SPONSORSHIP_PLACEMENTS = 'instream_video_sponsorship_placements';
112
  const INTEREST_DEFAULTS_SOURCE = 'interest_defaults_source';
113
  const INTERESTED_IN = 'interested_in';
@@ -140,6 +141,7 @@ class AdAccountTargetingUnifiedWhitelistedTypesValues extends AbstractEnum {
140
  const RTB_FLAG = 'rtb_flag';
141
  const SITE_CATEGORY = 'site_category';
142
  const TARGETING_OPTIMIZATION = 'targeting_optimization';
 
143
  const TIMEZONES = 'timezones';
144
  const TOPIC = 'topic';
145
  const TRENDING = 'trending';
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
@@ -103,6 +103,7 @@ class AdActivityEventTypeValues extends AbstractEnum {
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_DELIVERY_TYPE = 'update_campaign_delivery_type';
107
  const UPDATE_CAMPAIGN_DURATION = 'update_campaign_duration';
108
  const UPDATE_CAMPAIGN_GROUP_AD_SCHEDULING = 'update_campaign_group_ad_scheduling';
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/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/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';
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';
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/AdSetMultiOptimizationGoalWeightValues.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 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/AdVideoContainerTypeValues.php CHANGED
@@ -103,6 +103,7 @@ class AdVideoContainerTypeValues extends AbstractEnum {
103
  const LIVE_PHOTO = 'LIVE_PHOTO';
104
  const LOOK_NOW_DEPRECATED = 'LOOK_NOW_DEPRECATED';
105
  const MARKETPLACE_LISTING_VIDEO = 'MARKETPLACE_LISTING_VIDEO';
 
106
  const MOMENTS_VIDEO = 'MOMENTS_VIDEO';
107
  const NEO_ASYNC_GAME_VIDEO = 'NEO_ASYNC_GAME_VIDEO';
108
  const NO_STORY = 'NO_STORY';
@@ -130,6 +131,7 @@ class AdVideoContainerTypeValues extends AbstractEnum {
130
  const SLIDESHOW_SHAKR = 'SLIDESHOW_SHAKR';
131
  const SLIDESHOW_VARIATION_VIDEO = 'SLIDESHOW_VARIATION_VIDEO';
132
  const SOTTO_CONTENT = 'SOTTO_CONTENT';
 
133
  const STORIES_VIDEO = 'STORIES_VIDEO';
134
  const STORYLINE = 'STORYLINE';
135
  const STORYLINE_WITH_EXTERNAL_MUSIC = 'STORYLINE_WITH_EXTERNAL_MUSIC';
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
@@ -48,10 +48,6 @@ class BusinessAssetGroupPageTasksValues extends AbstractEnum {
48
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
49
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
50
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
51
- const PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES = 'PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES';
52
- const PLATFORM_PAGE_ADMINISTER = 'PLATFORM_PAGE_ADMINISTER';
53
- const PLATFORM_PAGE_BASIC_ADMIN = 'PLATFORM_PAGE_BASIC_ADMIN';
54
- const PLATFORM_READ_INSIGHTS = 'PLATFORM_READ_INSIGHTS';
55
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
56
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
57
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
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';
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/BusinessPagePermittedTasksValues.php CHANGED
@@ -48,10 +48,6 @@ class BusinessPagePermittedTasksValues extends AbstractEnum {
48
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
49
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
50
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
51
- const PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES = 'PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES';
52
- const PLATFORM_PAGE_ADMINISTER = 'PLATFORM_PAGE_ADMINISTER';
53
- const PLATFORM_PAGE_BASIC_ADMIN = 'PLATFORM_PAGE_BASIC_ADMIN';
54
- const PLATFORM_READ_INSIGHTS = 'PLATFORM_READ_INSIGHTS';
55
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
56
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
57
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
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';
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/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/{RequestHistoryHttpMethodValues.php → CampaignSpecialAdCategoriesValues.php} RENAMED
@@ -33,11 +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 RequestHistoryHttpMethodValues getInstance()
37
  */
38
- class RequestHistoryHttpMethodValues extends AbstractEnum {
39
 
40
- const DELETE = 'DELETE';
41
- const GET = 'GET';
42
- const POST = 'POST';
 
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 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/{VideoGameShowActionValues.php → CommerceMerchantSettingsMerchantStatusValues.php} RENAMED
@@ -33,10 +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 VideoGameShowActionValues getInstance()
37
  */
38
- class VideoGameShowActionValues extends AbstractEnum {
39
 
40
- const END_GAME = 'END_GAME';
41
- const START_GAME = 'START_GAME';
42
  }
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/CustomAudienceContentTypeValues.php CHANGED
@@ -42,6 +42,7 @@ class CustomAudienceContentTypeValues extends AbstractEnum {
42
  const FLIGHT = 'FLIGHT';
43
  const HOME_LISTING = 'HOME_LISTING';
44
  const HOTEL = 'HOTEL';
 
45
  const LOCATION_BASED_ITEM = 'LOCATION_BASED_ITEM';
46
  const MEDIA_TITLE = 'MEDIA_TITLE';
47
  const OFFLINE_PRODUCT = 'OFFLINE_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';
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
@@ -85,4 +85,5 @@ class GroupGroupTypeValues extends AbstractEnum {
85
  const WORK_SOCIAL = 'WORK_SOCIAL';
86
  const WORK_TEAM = 'WORK_TEAM';
87
  const WORK_TEAMWORK = 'WORK_TEAMWORK';
 
88
  }
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
@@ -85,4 +85,5 @@ class GroupPurposeValues extends AbstractEnum {
85
  const WORK_SOCIAL = 'WORK_SOCIAL';
86
  const WORK_TEAM = 'WORK_TEAM';
87
  const WORK_TEAMWORK = 'WORK_TEAMWORK';
 
88
  }
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/PageCallToActionAndroidDestinationTypeValues.php CHANGED
@@ -41,7 +41,9 @@ class PageCallToActionAndroidDestinationTypeValues extends AbstractEnum {
41
  const BECOME_A_VOLUNTEER = 'BECOME_A_VOLUNTEER';
42
  const EMAIL = 'EMAIL';
43
  const FACEBOOK_APP = 'FACEBOOK_APP';
 
44
  const MESSENGER = 'MESSENGER';
 
45
  const NONE = 'NONE';
46
  const PHONE_CALL = 'PHONE_CALL';
47
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
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
@@ -41,7 +41,9 @@ class PageCallToActionIphoneDestinationTypeValues extends AbstractEnum {
41
  const BECOME_A_VOLUNTEER = 'BECOME_A_VOLUNTEER';
42
  const EMAIL = 'EMAIL';
43
  const FACEBOOK_APP = 'FACEBOOK_APP';
 
44
  const MESSENGER = 'MESSENGER';
 
45
  const NONE = 'NONE';
46
  const PHONE_CALL = 'PHONE_CALL';
47
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
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
@@ -46,6 +46,7 @@ class PageCallToActionTypeValues extends AbstractEnum {
46
  const CONTACT_US = 'CONTACT_US';
47
  const DONATE_NOW = 'DONATE_NOW';
48
  const EMAIL = 'EMAIL';
 
49
  const GET_DIRECTIONS = 'GET_DIRECTIONS';
50
  const GET_OFFER = 'GET_OFFER';
51
  const GET_OFFER_VIEW = 'GET_OFFER_VIEW';
@@ -55,13 +56,16 @@ class PageCallToActionTypeValues extends AbstractEnum {
55
  const LOCAL_DEV_PLATFORM = 'LOCAL_DEV_PLATFORM';
56
  const MESSAGE = 'MESSAGE';
57
  const OPEN_APP = 'OPEN_APP';
 
58
  const PLAY_MUSIC = 'PLAY_MUSIC';
59
  const PLAY_NOW = 'PLAY_NOW';
 
60
  const REQUEST_APPOINTMENT = 'REQUEST_APPOINTMENT';
61
  const REQUEST_QUOTE = 'REQUEST_QUOTE';
62
  const SHOP_NOW = 'SHOP_NOW';
63
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
64
  const SIGN_UP = 'SIGN_UP';
 
65
  const VISIT_GROUP = 'VISIT_GROUP';
66
  const WATCH_NOW = 'WATCH_NOW';
67
  const WOODHENGE_SUPPORT = 'WOODHENGE_SUPPORT';
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
@@ -40,6 +40,7 @@ class PageCallToActionWebDestinationTypeValues extends AbstractEnum {
40
  const BECOME_A_VOLUNTEER = 'BECOME_A_VOLUNTEER';
41
  const BECOME_SUPPORTER = 'BECOME_SUPPORTER';
42
  const EMAIL = 'EMAIL';
 
43
  const MESSENGER = 'MESSENGER';
44
  const NONE = 'NONE';
45
  const SHOP_ON_FACEBOOK = 'SHOP_ON_FACEBOOK';
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/PagePermittedTasksValues.php CHANGED
@@ -48,10 +48,6 @@ class PagePermittedTasksValues extends AbstractEnum {
48
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
49
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
50
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
51
- const PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES = 'PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES';
52
- const PLATFORM_PAGE_ADMINISTER = 'PLATFORM_PAGE_ADMINISTER';
53
- const PLATFORM_PAGE_BASIC_ADMIN = 'PLATFORM_PAGE_BASIC_ADMIN';
54
- const PLATFORM_READ_INSIGHTS = 'PLATFORM_READ_INSIGHTS';
55
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
56
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
57
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
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';
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/PageTasksValues.php CHANGED
@@ -48,10 +48,6 @@ class PageTasksValues extends AbstractEnum {
48
  const MODERATE_COMMUNITY = 'MODERATE_COMMUNITY';
49
  const PAGES_MESSAGING = 'PAGES_MESSAGING';
50
  const PAGES_MESSAGING_SUBSCRIPTIONS = 'PAGES_MESSAGING_SUBSCRIPTIONS';
51
- const PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES = 'PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES';
52
- const PLATFORM_PAGE_ADMINISTER = 'PLATFORM_PAGE_ADMINISTER';
53
- const PLATFORM_PAGE_BASIC_ADMIN = 'PLATFORM_PAGE_BASIC_ADMIN';
54
- const PLATFORM_READ_INSIGHTS = 'PLATFORM_READ_INSIGHTS';
55
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
56
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
57
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
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';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductCatalogVerticalValues.php CHANGED
@@ -43,6 +43,8 @@ class ProductCatalogVerticalValues extends AbstractEnum {
43
  const FLIGHTS = 'flights';
44
  const HOME_LISTINGS = 'home_listings';
45
  const HOTELS = 'hotels';
 
 
46
  const OFFER_ITEMS = 'offer_items';
47
  const OFFLINE_COMMERCE = 'offline_commerce';
48
  const TICKETED_EXPERIENCES = 'ticketed_experiences';
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';
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/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/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/WhatsAppBusinessAccount.php CHANGED
@@ -170,6 +170,29 @@ class WhatsAppBusinessAccount extends AbstractCrudObject {
170
  return $pending ? $request : $request->execute();
171
  }
172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
174
  $this->assureId();
175
 
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
 
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Http/Exception/RequestExceptionTest.php CHANGED
@@ -79,6 +79,20 @@ class RequestExceptionTest extends AbstractUnitTestCase {
79
  $this->assertSame('abc123', $e->getFacebookTraceId());
80
  }
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  /**
83
  * @return array
84
  */
79
  $this->assertSame('abc123', $e->getFacebookTraceId());
80
  }
81
 
82
+ public function testGetErrorBlameFieldSpecsReturnsNullWithNullErrorData() {
83
+ $data = array(
84
+ 'error' => array(
85
+ 'error_data' => null,
86
+ ),
87
+ );
88
+
89
+ $response = new Response();
90
+ $response->setBody(json_encode($data));
91
+ $e = new RequestException($response);
92
+
93
+ $this->assertNull($e->getErrorBlameFieldSpecs());
94
+ }
95
+
96
  /**
97
  * @return array
98
  */
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ContentTest.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 FacebookAdsTest\Object;
26
+
27
+ use FacebookAdsTest\AbstractUnitTestCase;
28
+ use FacebookAds\Object\ServerSide\Content;
29
+
30
+
31
+ class ContentTest extends AbstractUnitTestCase {
32
+ public function testContentBuilder() {
33
+ $expected = array(
34
+ 'id' => 'product-test',
35
+ 'quantity' => 10,
36
+ 'item_price' => 4.99,
37
+ 'title' => 'title-test',
38
+ 'description' => 'description-test',
39
+ 'brand' => 'brand-test',
40
+ 'category' => 'category-test',
41
+ );
42
+
43
+ $content = (new Content())
44
+ ->setProductId($expected['id'])
45
+ ->setQuantity($expected['quantity'])
46
+ ->setItemPrice($expected['item_price'])
47
+ ->setTitle($expected['title'])
48
+ ->setDescription($expected['description'])
49
+ ->setBrand($expected['brand'])
50
+ ->setCategory($expected['category']);
51
+
52
+ $this->assertEquals($content->normalize(), $expected);
53
+ }
54
+
55
+ public function testContentConstructor() {
56
+ $initial = array(
57
+ 'product_id' => 'product-test',
58
+ 'quantity' => 10,
59
+ 'item_price' => 4.99,
60
+ 'title' => 'title-test',
61
+ 'description' => 'description-test',
62
+ 'brand' => 'brand-test',
63
+ 'category' => 'category-test',
64
+ );
65
+ $expected = array(
66
+ 'id' => $initial['product_id'],
67
+ 'quantity' => $initial['quantity'],
68
+ 'item_price' => $initial['item_price'],
69
+ 'title' => $initial['title'],
70
+ 'description' => $initial['description'],
71
+ 'brand' => $initial['brand'],
72
+ 'category' => $initial['category'],
73
+ );
74
+ $content = new Content($initial);
75
+
76
+ $this->assertEquals($content->normalize(), $expected);
77
+ }
78
+ }
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ServerSideEventTest.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 FacebookAdsTest\Object;
26
+
27
+ use FacebookAdsTest\AbstractUnitTestCase;
28
+ use FacebookAds\Object\ServerSide\Event;
29
+
30
+
31
+ class ServerSideNormalizeTest extends AbstractUnitTestCase {
32
+
33
+ public function testEventData(){
34
+ $testName = 'Test123Event';
35
+ $testUrl = 'www.example.com';
36
+ $testTime = time();
37
+
38
+ $event = (new Event())
39
+ ->setEventName($testName)
40
+ ->setEventTime($testTime)
41
+ ->setEventSourceUrl($testUrl);
42
+
43
+ $normalized_array = $event->normalize();
44
+ $this->assertEquals($normalized_array['event_name'], $testName);
45
+ $this->assertEquals($normalized_array['event_time'], $testTime);
46
+ $this->assertEquals($normalized_array['event_source_url'], $testUrl);
47
+ }
48
+
49
+ public function testEmptyLDUData(){
50
+ $event = (new Event())
51
+ ->setEventName('TestEvent')
52
+ ->setDataProcessingOptions([]);
53
+
54
+ $normalized_array = $event->normalize();
55
+
56
+ $this->assertEquals($normalized_array['data_processing_options'], array());
57
+ }
58
+
59
+ public function testDefaultLDUData(){
60
+ $event = (new Event())
61
+ ->setEventName('TestEvent')
62
+ ->setDataProcessingOptions(['LDU'])
63
+ ->setDataProcessingOptionsCountry(0)
64
+ ->setDataProcessingOptionsState(0);
65
+
66
+ $normalized_array = $event->normalize();
67
+
68
+ $this->assertEquals($normalized_array['data_processing_options'], array("LDU"));
69
+ $this->assertEquals($normalized_array['data_processing_options_state'], "0");
70
+ $this->assertEquals($normalized_array['data_processing_options_country'], "0");
71
+ }
72
+
73
+ public function testValidLDUStateCountryData(){
74
+ $event = (new Event())
75
+ ->setEventName('TestEvent')
76
+ ->setDataProcessingOptions(['LDU'])
77
+ ->setDataProcessingOptionsCountry(1)
78
+ ->setDataProcessingOptionsState(1000);
79
+
80
+ $normalized_array = $event->normalize();
81
+
82
+ $this->assertEquals($normalized_array['data_processing_options'], array("LDU"));
83
+ $this->assertEquals($normalized_array['data_processing_options_state'], "1000");
84
+ $this->assertEquals($normalized_array['data_processing_options_country'], "1");
85
+ }
86
+ }
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ServerSideUtilTest.php ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 FacebookAdsTest\Object\ServerSide;
26
+
27
+ use PHPUnit\Framework\TestCase;
28
+ use FacebookAds\Object\ServerSide\Util;
29
+
30
+ class ServerSideUtilTest extends TestCase {
31
+
32
+ public function setUp(): void {
33
+ $_SERVER = [];
34
+ $_COOKIE = [];
35
+ }
36
+
37
+ public function testNewEventTakesIpAddressFromHttpClientIP() {
38
+ $_SERVER["HTTP_CLIENT_IP"] = "HTTP_CLIENT_IP_VALUE";
39
+ $_SERVER["HTTP_X_FORWARDED_FOR"] = "HTTP_X_FORWARDED_FOR_VALUE";
40
+ $_SERVER["REMOTE_ADDR"] = "REMOTE_ADDR";
41
+ $this->assertEquals("HTTP_CLIENT_IP_VALUE",
42
+ Util::getIpAddress());
43
+ }
44
+
45
+ public function testNewEventTakesIpAddressFromHttpXForwardedFor() {
46
+ $_SERVER["HTTP_X_FORWARDED_FOR"] = "HTTP_X_FORWARDED_FOR_VALUE";
47
+ $_SERVER["REMOTE_ADDR"] = "REMOTE_ADDR";
48
+ $this->assertEquals("HTTP_X_FORWARDED_FOR_VALUE",
49
+ Util::getIpAddress());
50
+ }
51
+
52
+ public function testNewEventTakesIpAddressFromRemoteAddr() {
53
+ $_SERVER["REMOTE_ADDR"] = "REMOTE_ADDR_VALUE";
54
+ $this->assertEquals("REMOTE_ADDR_VALUE",
55
+ Util::getIpAddress());
56
+ }
57
+
58
+ public function testNewEventHasUserAgent() {
59
+ $_SERVER["HTTP_USER_AGENT"] = "HTTP_USER_AGENT_VALUE";
60
+
61
+ $this->assertEquals("HTTP_USER_AGENT_VALUE",
62
+ Util::getHttpUserAgent());
63
+ }
64
+
65
+ public function testNewEventHasEventSourceUrlWithHttps() {
66
+ $_SERVER["HTTPS"] = "anyvalue";
67
+ $_SERVER["HTTP_HOST"] = "www.pikachu.com";
68
+ $_SERVER["REQUEST_URI"] = "/index.php";
69
+
70
+ $this->assertEquals("https://www.pikachu.com/index.php", Util::getRequestUri());
71
+ }
72
+
73
+ public function testNewEventHasEventSourceUrlWithHttp() {
74
+ $_SERVER["HTTPS"] = "";
75
+ $_SERVER["HTTP_HOST"] = "www.pikachu.com";
76
+ $_SERVER["REQUEST_URI"] = "/index.php";
77
+
78
+
79
+ $this->assertEquals("http://www.pikachu.com/index.php", Util::getRequestUri());
80
+ }
81
+
82
+ public function testNewEventHasEventSourceUrlWithHttpsOff() {
83
+ $_SERVER["HTTPS"] = "off";
84
+ $_SERVER["HTTP_HOST"] = "www.pikachu.com";
85
+ $_SERVER["REQUEST_URI"] = "/index.php";
86
+
87
+ $this->assertEquals("http://www.pikachu.com/index.php", Util::getRequestUri());
88
+ }
89
+
90
+
91
+ public function testNewEventHasFbc() {
92
+ $_COOKIE["_fbc"] = "_fbc_value";
93
+
94
+ $this->assertEquals("_fbc_value", Util::getFbc());
95
+ }
96
+
97
+ public function testNewEventHasFbp() {
98
+ $_COOKIE["_fbp"] = "_fbp_value";
99
+
100
+ $this->assertEquals("_fbp_value", Util::getFbp());
101
+ }
102
+ }
vendor/facebook/php-business-sdk/test/phpunit.xml CHANGED
@@ -1,4 +1,4 @@
1
- <phpunit bootstrap="init_integration.php" colors="true">
2
  <testsuites>
3
  <testsuite name="Facebook AdsAPI PHP SDK">
4
  <directory>./FacebookAdsTest</directory>
1
+ <phpunit bootstrap="init_integration.php" colors="true" backupGlobals="true">
2
  <testsuites>
3
  <testsuite name="Facebook AdsAPI PHP SDK">
4
  <directory>./FacebookAdsTest</directory>