Skip to content

Commit eb61b29

Browse files
generatedunixname89002005295453facebook-github-bot
authored andcommitted
Auto-generated php SDK code update
Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D50280588 fbshipit-source-id: 0c0ccac8ccb8c9c5af9a77a162e8f07565433526
1 parent c1628cb commit eb61b29

29 files changed

+270
-167
lines changed

src/FacebookAds/ApiConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
namespace FacebookAds;
1111
class ApiConfig {
1212
const APIVersion = '18.0';
13-
const SDKVersion = '18.0.1';
13+
const SDKVersion = '18.0.2';
1414
const TYPE_CHECKER_STRICT_MODE = false;
1515
}

src/FacebookAds/Object/AdAccount.php

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -842,103 +842,6 @@ public function createAd(array $fields = array(), array $params = array(), $pend
842842
return $pending ? $request : $request->execute();
843843
}
844844

845-
public function createAdsConversionGoal(array $fields = array(), array $params = array(), $pending = false) {
846-
$this->assureId();
847-
848-
$param_types = array(
849-
'conversion_event_value_source' => 'conversion_event_value_source_enum',
850-
'description' => 'string',
851-
'goal_creation_method' => 'goal_creation_method_enum',
852-
'goal_name' => 'string',
853-
'performance_goal' => 'performance_goal_enum',
854-
'single_channel_conversion_events' => 'list<map>',
855-
'value_adjustment_rule' => 'map',
856-
);
857-
$enums = array(
858-
'conversion_event_value_source_enum' => array(
859-
'DATA_SOURCE',
860-
'VALUE_RULE',
861-
),
862-
'goal_creation_method_enum' => array(
863-
'ADVERTISER_CREATED_UI',
864-
'AUTO_MIGRATION',
865-
'L2_ENHANCE_API_MIGRATION',
866-
),
867-
'performance_goal_enum' => array(
868-
'AD_OPTIMIZATION_GOAL_AD_RECALL_LIFT',
869-
'AD_OPTIMIZATION_GOAL_APP_DOWNLOADS',
870-
'AD_OPTIMIZATION_GOAL_APP_INSTALLS',
871-
'AD_OPTIMIZATION_GOAL_APP_INSTALLS_AND_OFFSITE_CONVERSIONS',
872-
'AD_OPTIMIZATION_GOAL_BRAND_AWARENESS',
873-
'AD_OPTIMIZATION_GOAL_CLICKS',
874-
'AD_OPTIMIZATION_GOAL_COMPLETED_VIDEO_VIEWS',
875-
'AD_OPTIMIZATION_GOAL_CONVERSATIONS',
876-
'AD_OPTIMIZATION_GOAL_DERIVED_EVENTS',
877-
'AD_OPTIMIZATION_GOAL_DWELLS',
878-
'AD_OPTIMIZATION_GOAL_ENGAGED_REACH',
879-
'AD_OPTIMIZATION_GOAL_ENGAGED_USERS',
880-
'AD_OPTIMIZATION_GOAL_EVENT_RESPONSES',
881-
'AD_OPTIMIZATION_GOAL_EXTERNAL',
882-
'AD_OPTIMIZATION_GOAL_IMPRESSIONS',
883-
'AD_OPTIMIZATION_GOAL_INCREMENTAL_OFFSITE_CONVERSIONS',
884-
'AD_OPTIMIZATION_GOAL_IN_APP_VALUE',
885-
'AD_OPTIMIZATION_GOAL_JOB_APPLICATIONS',
886-
'AD_OPTIMIZATION_GOAL_LANDING_PAGE_VIEWS',
887-
'AD_OPTIMIZATION_GOAL_LEAD_GENERATION',
888-
'AD_OPTIMIZATION_GOAL_MEDIA_DOWNLOADS',
889-
'AD_OPTIMIZATION_GOAL_MESSAGING_APPOINTMENT_CONVERSION',
890-
'AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_FOLLOW',
891-
'AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_REPLY',
892-
'AD_OPTIMIZATION_GOAL_MESSAGING_PURCHASE_CONVERSION',
893-
'AD_OPTIMIZATION_GOAL_MID_FUNNEL_EVENT',
894-
'AD_OPTIMIZATION_GOAL_MRC_VIDEO_VIEWS',
895-
'AD_OPTIMIZATION_GOAL_MULTI_CONVERSIONS',
896-
'AD_OPTIMIZATION_GOAL_NONE',
897-
'AD_OPTIMIZATION_GOAL_OFFER_CLAIMS',
898-
'AD_OPTIMIZATION_GOAL_OFFLINE_CONVERSIONS',
899-
'AD_OPTIMIZATION_GOAL_OFFSITE_CLICKS',
900-
'AD_OPTIMIZATION_GOAL_OFFSITE_CONVERSIONS',
901-
'AD_OPTIMIZATION_GOAL_ONSITE_CONVERSIONS',
902-
'AD_OPTIMIZATION_GOAL_PAGE_ENGAGEMENT',
903-
'AD_OPTIMIZATION_GOAL_PAGE_FOLLOWS',
904-
'AD_OPTIMIZATION_GOAL_PAGE_LIKES',
905-
'AD_OPTIMIZATION_GOAL_POST_ENGAGEMENT',
906-
'AD_OPTIMIZATION_GOAL_QUALITY_CALL',
907-
'AD_OPTIMIZATION_GOAL_QUALITY_LEAD',
908-
'AD_OPTIMIZATION_GOAL_REACH',
909-
'AD_OPTIMIZATION_GOAL_REMINDERS_SET',
910-
'AD_OPTIMIZATION_GOAL_REPLIES',
911-
'AD_OPTIMIZATION_GOAL_RESEARCH_POLL_RESPONSES',
912-
'AD_OPTIMIZATION_GOAL_RETENTION',
913-
'AD_OPTIMIZATION_GOAL_RETURN_ON_AD_SPEND',
914-
'AD_OPTIMIZATION_GOAL_SOCIAL_IMPRESSIONS',
915-
'AD_OPTIMIZATION_GOAL_STORE_VISITS',
916-
'AD_OPTIMIZATION_GOAL_SUBSCRIBERS',
917-
'AD_OPTIMIZATION_GOAL_TICKET_PURCHASE',
918-
'AD_OPTIMIZATION_GOAL_VALUE',
919-
'AD_OPTIMIZATION_GOAL_VIDEO_LONG_VIEWS',
920-
'AD_OPTIMIZATION_GOAL_VIDEO_VIEWS',
921-
'AD_OPTIMIZATION_GOAL_VIDEO_VIEWS_15S',
922-
'AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE',
923-
'AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE_AND_PROFILE_ACTIONS',
924-
),
925-
);
926-
927-
$request = new ApiRequest(
928-
$this->api,
929-
$this->data['id'],
930-
RequestInterface::METHOD_POST,
931-
'/ads_conversion_goal',
932-
new AbstractCrudObject(),
933-
'EDGE',
934-
array(),
935-
new TypeChecker($param_types, $enums)
936-
);
937-
$request->addParams($params);
938-
$request->addFields($fields);
939-
return $pending ? $request : $request->execute();
940-
}
941-
942845
public function getAdsReportingMmmReports(array $fields = array(), array $params = array(), $pending = false) {
943846
$this->assureId();
944847

src/FacebookAds/Object/AdsPixel.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,30 @@ public function getAgencies(array $fields = array(), array $params = array(), $p
107107
return $pending ? $request : $request->execute();
108108
}
109109

110+
public function createAhpConfig(array $fields = array(), array $params = array(), $pending = false) {
111+
$this->assureId();
112+
113+
$param_types = array(
114+
'applink_autosetup' => 'bool',
115+
);
116+
$enums = array(
117+
);
118+
119+
$request = new ApiRequest(
120+
$this->api,
121+
$this->data['id'],
122+
RequestInterface::METHOD_POST,
123+
'/ahp_configs',
124+
new AbstractCrudObject(),
125+
'EDGE',
126+
array(),
127+
new TypeChecker($param_types, $enums)
128+
);
129+
$request->addParams($params);
130+
$request->addFields($fields);
131+
return $pending ? $request : $request->execute();
132+
}
133+
110134
public function getAssignedUsers(array $fields = array(), array $params = array(), $pending = false) {
111135
$this->assureId();
112136

src/FacebookAds/Object/Business.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,8 @@ public function createOpenBridgeConfiguration(array $fields = array(), array $pa
17701770
'access_key' => 'string',
17711771
'active' => 'bool',
17721772
'endpoint' => 'string',
1773+
'fallback_domain' => 'string',
1774+
'fallback_domain_enabled' => 'bool',
17731775
'host_business_id' => 'unsigned int',
17741776
'host_external_id' => 'string',
17751777
'pixel_id' => 'unsigned int',
@@ -2046,6 +2048,7 @@ public function createOwnedPage(array $fields = array(), array $params = array()
20462048

20472049
$param_types = array(
20482050
'code' => 'string',
2051+
'entry_point' => 'string',
20492052
'page_id' => 'int',
20502053
);
20512054
$enums = array(
@@ -2825,6 +2828,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe
28252828
$this->assureId();
28262829

28272830
$param_types = array(
2831+
'entry_point' => 'string',
28282832
'name' => 'string',
28292833
'primary_page' => 'string',
28302834
'timezone_id' => 'unsigned int',

src/FacebookAds/Object/Fields/AdPromotedObjectFields.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class AdPromotedObjectFields extends AbstractEnum {
4545
const PRODUCT_ITEM_ID = 'product_item_id';
4646
const PRODUCT_SET_ID = 'product_set_id';
4747
const RETENTION_DAYS = 'retention_days';
48-
const WHATS_APP_BUSINESS_PHONE_NUMBER_ID = 'whats_app_business_phone_number_id';
4948

5049
public function getFieldTypes() {
5150
return array(
@@ -72,7 +71,6 @@ public function getFieldTypes() {
7271
'product_item_id' => 'string',
7372
'product_set_id' => 'string',
7473
'retention_days' => 'string',
75-
'whats_app_business_phone_number_id' => 'Object',
7674
);
7775
}
7876
}

src/FacebookAds/Object/Fields/IGMediaFields.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class IGMediaFields extends AbstractEnum {
2424

2525
const CAPTION = 'caption';
2626
const COMMENTS_COUNT = 'comments_count';
27+
const COPYRIGHT_CHECK_INFORMATION = 'copyright_check_information';
2728
const ID = 'id';
2829
const IG_ID = 'ig_id';
2930
const IS_COMMENT_ENABLED = 'is_comment_enabled';
@@ -43,6 +44,7 @@ public function getFieldTypes() {
4344
return array(
4445
'caption' => 'string',
4546
'comments_count' => 'int',
47+
'copyright_check_information' => 'IGVideoCopyrightCheckMatchesInformation',
4648
'id' => 'string',
4749
'ig_id' => 'string',
4850
'is_comment_enabled' => 'bool',
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/*
3+
* Copyright (c) Meta Platforms, Inc. and affiliates.
4+
* All rights reserved.
5+
*
6+
* This source code is licensed under the license found in the
7+
* LICENSE file in the root directory of this source tree.
8+
*/
9+
10+
namespace FacebookAds\Object\Fields;
11+
12+
use FacebookAds\Enum\AbstractEnum;
13+
14+
/**
15+
* This class is auto-generated.
16+
*
17+
* For any issues or feature requests related to this class, please let us know
18+
* on github and we'll fix in our codegen framework. We'll not be able to accept
19+
* pull request for this class.
20+
*
21+
*/
22+
23+
class IGVideoCopyrightCheckMatchesInformationFields extends AbstractEnum {
24+
25+
const COPYRIGHT_MATCHES = 'copyright_matches';
26+
const STATUS = 'status';
27+
28+
public function getFieldTypes() {
29+
return array(
30+
'copyright_matches' => 'list<Object>',
31+
'status' => 'IGVideoCopyrightCheckStatus',
32+
);
33+
}
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/*
3+
* Copyright (c) Meta Platforms, Inc. and affiliates.
4+
* All rights reserved.
5+
*
6+
* This source code is licensed under the license found in the
7+
* LICENSE file in the root directory of this source tree.
8+
*/
9+
10+
namespace FacebookAds\Object\Fields;
11+
12+
use FacebookAds\Enum\AbstractEnum;
13+
14+
/**
15+
* This class is auto-generated.
16+
*
17+
* For any issues or feature requests related to this class, please let us know
18+
* on github and we'll fix in our codegen framework. We'll not be able to accept
19+
* pull request for this class.
20+
*
21+
*/
22+
23+
class IGVideoCopyrightCheckStatusFields extends AbstractEnum {
24+
25+
const MATCHES_FOUND = 'matches_found';
26+
const STATUS = 'status';
27+
28+
public function getFieldTypes() {
29+
return array(
30+
'matches_found' => 'bool',
31+
'status' => 'string',
32+
);
33+
}
34+
}

src/FacebookAds/Object/Fields/InstagramCommentFields.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class InstagramCommentFields extends AbstractEnum {
2929
const INSTAGRAM_USER = 'instagram_user';
3030
const MENTIONED_INSTAGRAM_USERS = 'mentioned_instagram_users';
3131
const MESSAGE = 'message';
32+
const USERNAME = 'username';
3233

3334
public function getFieldTypes() {
3435
return array(
@@ -39,6 +40,7 @@ public function getFieldTypes() {
3940
'instagram_user' => 'InstagramUser',
4041
'mentioned_instagram_users' => 'list<InstagramUser>',
4142
'message' => 'string',
43+
'username' => 'string',
4244
);
4345
}
4446
}

src/FacebookAds/Object/Fields/OpenBridgeConfigurationFields.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class OpenBridgeConfigurationFields extends AbstractEnum {
2525
const ACCESS_KEY = 'access_key';
2626
const ACTIVE = 'active';
2727
const ENDPOINT = 'endpoint';
28+
const FALLBACK_DOMAIN = 'fallback_domain';
29+
const FALLBACK_DOMAIN_ENABLED = 'fallback_domain_enabled';
2830
const HOST_BUSINESS_ID = 'host_business_id';
2931
const HOST_EXTERNAL_ID = 'host_external_id';
3032
const ID = 'id';
@@ -35,6 +37,8 @@ public function getFieldTypes() {
3537
'access_key' => 'string',
3638
'active' => 'bool',
3739
'endpoint' => 'string',
40+
'fallback_domain' => 'string',
41+
'fallback_domain_enabled' => 'bool',
3842
'host_business_id' => 'string',
3943
'host_external_id' => 'string',
4044
'id' => 'string',

0 commit comments

Comments
 (0)