Skip to content

Commit 8ffe173

Browse files
generatedunixname89002005295453facebook-github-bot
authored andcommitted
Auto-generated php SDK code update
Summary: ignore-conflict-markers Reviewed By: satwikareddy3 Differential Revision: D78445011 fbshipit-source-id: 5f94e2db3aa1f44412a671297227fde7bfb6d7c7
1 parent 393152d commit 8ffe173

File tree

73 files changed

+1158
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1158
-124
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 = '23.0';
13-
const SDKVersion = '23.0.0';
13+
const SDKVersion = '23.0.1';
1414
const TYPE_CHECKER_STRICT_MODE = false;
1515
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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;
11+
12+
use FacebookAds\ApiRequest;
13+
use FacebookAds\Cursor;
14+
use FacebookAds\Http\RequestInterface;
15+
use FacebookAds\TypeChecker;
16+
use FacebookAds\Object\Fields\ABTestPostTestActionsFields;
17+
18+
/**
19+
* This class is auto-generated.
20+
*
21+
* For any issues or feature requests related to this class, please let us know
22+
* on github and we'll fix in our codegen framework. We'll not be able to accept
23+
* pull request for this class.
24+
*
25+
*/
26+
27+
class ABTestPostTestActions extends AbstractObject {
28+
29+
/**
30+
* @return ABTestPostTestActionsFields
31+
*/
32+
public static function getFieldsEnum() {
33+
return ABTestPostTestActionsFields::getInstance();
34+
}
35+
36+
protected static function getReferencedEnums() {
37+
$ref_enums = array();
38+
return $ref_enums;
39+
}
40+
41+
42+
}

src/FacebookAds/Object/AdAccount.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
use FacebookAds\Object\Values\AdPreviewRenderTypeValues;
5454
use FacebookAds\Object\Values\AdRuleStatusValues;
5555
use FacebookAds\Object\Values\AdRuleUiCreationSourceValues;
56+
use FacebookAds\Object\Values\AdSetAutomaticManualStateValues;
5657
use FacebookAds\Object\Values\AdSetBidStrategyValues;
5758
use FacebookAds\Object\Values\AdSetBillingEventValues;
5859
use FacebookAds\Object\Values\AdSetBudgetSourceValues;
@@ -431,9 +432,11 @@ public function createAdCreative(array $fields = array(), array $params = array(
431432
'creative_sourcing_spec' => 'map',
432433
'degrees_of_freedom_spec' => 'map',
433434
'destination_set_id' => 'string',
435+
'destination_spec' => 'map',
434436
'dynamic_ad_voice' => 'dynamic_ad_voice_enum',
435437
'enable_launch_instant_app' => 'bool',
436438
'facebook_branded_content' => 'map',
439+
'format_transformation_spec' => 'list<map>',
437440
'image_crops' => 'map',
438441
'image_file' => 'string',
439442
'image_hash' => 'string',
@@ -993,6 +996,7 @@ public function createAdSet(array $fields = array(), array $params = array(), $p
993996
'adlabels' => 'list<Object>',
994997
'adset_schedule' => 'list<Object>',
995998
'attribution_spec' => 'list<map>',
999+
'automatic_manual_state' => 'automatic_manual_state_enum',
9961000
'bid_adjustments' => 'Object',
9971001
'bid_amount' => 'int',
9981002
'bid_constraints' => 'map<string, Object>',
@@ -1051,6 +1055,7 @@ public function createAdSet(array $fields = array(), array $params = array(), $p
10511055
'tune_for_category' => 'tune_for_category_enum',
10521056
);
10531057
$enums = array(
1058+
'automatic_manual_state_enum' => AdSetAutomaticManualStateValues::getInstance()->getValues(),
10541059
'bid_strategy_enum' => AdSetBidStrategyValues::getInstance()->getValues(),
10551060
'billing_event_enum' => AdSetBillingEventValues::getInstance()->getValues(),
10561061
'budget_source_enum' => AdSetBudgetSourceValues::getInstance()->getValues(),
@@ -2842,6 +2847,7 @@ public function createReachFrequencyPrediction(array $fields = array(), array $p
28422847
'target_frequency' => 'unsigned int',
28432848
'target_frequency_reset_period' => 'unsigned int',
28442849
'target_spec' => 'Targeting',
2850+
'trending_topics_spec' => 'map',
28452851
'video_view_length_constraint' => 'unsigned int',
28462852
);
28472853
$enums = array(

src/FacebookAds/Object/AdPromotedObject.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use FacebookAds\TypeChecker;
1616
use FacebookAds\Object\Fields\AdPromotedObjectFields;
1717
use FacebookAds\Object\Values\AdPromotedObjectCustomEventTypeValues;
18+
use FacebookAds\Object\Values\AdPromotedObjectFullFunnelObjectiveValues;
1819
use FacebookAds\Object\Values\AdPromotedObjectLeadAdsCustomEventTypeValues;
1920

2021
/**
@@ -38,6 +39,7 @@ public static function getFieldsEnum() {
3839
protected static function getReferencedEnums() {
3940
$ref_enums = array();
4041
$ref_enums['CustomEventType'] = AdPromotedObjectCustomEventTypeValues::getInstance()->getValues();
42+
$ref_enums['FullFunnelObjective'] = AdPromotedObjectFullFunnelObjectiveValues::getInstance()->getValues();
4143
$ref_enums['LeadAdsCustomEventType'] = AdPromotedObjectLeadAdsCustomEventTypeValues::getInstance()->getValues();
4244
return $ref_enums;
4345
}

src/FacebookAds/Object/AdSet.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use FacebookAds\Object\Values\AdAsyncRequestStatusesValues;
1919
use FacebookAds\Object\Values\AdCampaignDeliveryEstimateOptimizationGoalValues;
2020
use FacebookAds\Object\Values\AdDatePresetValues;
21+
use FacebookAds\Object\Values\AdSetAutomaticManualStateValues;
2122
use FacebookAds\Object\Values\AdSetBidStrategyValues;
2223
use FacebookAds\Object\Values\AdSetBillingEventValues;
2324
use FacebookAds\Object\Values\AdSetBudgetSourceValues;
@@ -86,6 +87,7 @@ protected static function getReferencedEnums() {
8687
$ref_enums['EffectiveStatus'] = AdSetEffectiveStatusValues::getInstance()->getValues();
8788
$ref_enums['OptimizationGoal'] = AdSetOptimizationGoalValues::getInstance()->getValues();
8889
$ref_enums['Status'] = AdSetStatusValues::getInstance()->getValues();
90+
$ref_enums['AutomaticManualState'] = AdSetAutomaticManualStateValues::getInstance()->getValues();
8991
$ref_enums['BudgetSource'] = AdSetBudgetSourceValues::getInstance()->getValues();
9092
$ref_enums['CreativeSequenceRepetitionPattern'] = AdSetCreativeSequenceRepetitionPatternValues::getInstance()->getValues();
9193
$ref_enums['DatePreset'] = AdSetDatePresetValues::getInstance()->getValues();
@@ -664,6 +666,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe
664666
'adlabels' => 'list<Object>',
665667
'adset_schedule' => 'list<Object>',
666668
'attribution_spec' => 'list<map>',
669+
'automatic_manual_state' => 'automatic_manual_state_enum',
667670
'bid_adjustments' => 'Object',
668671
'bid_amount' => 'int',
669672
'bid_constraints' => 'map<string, Object>',
@@ -714,6 +717,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe
714717
'tune_for_category' => 'tune_for_category_enum',
715718
);
716719
$enums = array(
720+
'automatic_manual_state_enum' => AdSetAutomaticManualStateValues::getInstance()->getValues(),
717721
'bid_strategy_enum' => AdSetBidStrategyValues::getInstance()->getValues(),
718722
'billing_event_enum' => AdSetBillingEventValues::getInstance()->getValues(),
719723
'creative_sequence_repetition_pattern_enum' => AdSetCreativeSequenceRepetitionPatternValues::getInstance()->getValues(),

src/FacebookAds/Object/Application.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,30 +1025,6 @@ public function getLinkedDataset(array $fields = array(), array $params = array(
10251025
return $pending ? $request : $request->execute();
10261026
}
10271027

1028-
public function getMessageTemplates(array $fields = array(), array $params = array(), $pending = false) {
1029-
$this->assureId();
1030-
1031-
$param_types = array(
1032-
'template_id' => 'string',
1033-
);
1034-
$enums = array(
1035-
);
1036-
1037-
$request = new ApiRequest(
1038-
$this->api,
1039-
$this->data['id'],
1040-
RequestInterface::METHOD_GET,
1041-
'/message_templates',
1042-
new AbstractCrudObject(),
1043-
'EDGE',
1044-
array(),
1045-
new TypeChecker($param_types, $enums)
1046-
);
1047-
$request->addParams($params);
1048-
$request->addFields($fields);
1049-
return $pending ? $request : $request->execute();
1050-
}
1051-
10521028
public function createMmpAuditing(array $fields = array(), array $params = array(), $pending = false) {
10531029
$this->assureId();
10541030

src/FacebookAds/Object/EventTour.php renamed to src/FacebookAds/Object/BrandedContentFBPromodeUser.php

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use FacebookAds\Cursor;
1414
use FacebookAds\Http\RequestInterface;
1515
use FacebookAds\TypeChecker;
16-
use FacebookAds\Object\Fields\EventTourFields;
16+
use FacebookAds\Object\Fields\BrandedContentFBPromodeUserFields;
1717

1818
/**
1919
* This class is auto-generated.
@@ -24,13 +24,13 @@
2424
*
2525
*/
2626

27-
class EventTour extends AbstractCrudObject {
27+
class BrandedContentFBPromodeUser extends AbstractObject {
2828

2929
/**
30-
* @return EventTourFields
30+
* @return BrandedContentFBPromodeUserFields
3131
*/
3232
public static function getFieldsEnum() {
33-
return EventTourFields::getInstance();
33+
return BrandedContentFBPromodeUserFields::getInstance();
3434
}
3535

3636
protected static function getReferencedEnums() {
@@ -39,27 +39,4 @@ protected static function getReferencedEnums() {
3939
}
4040

4141

42-
public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
43-
$this->assureId();
44-
45-
$param_types = array(
46-
);
47-
$enums = array(
48-
);
49-
50-
$request = new ApiRequest(
51-
$this->api,
52-
$this->data['id'],
53-
RequestInterface::METHOD_GET,
54-
'/',
55-
new EventTour(),
56-
'NODE',
57-
EventTour::getFieldsEnum()->getValues(),
58-
new TypeChecker($param_types, $enums)
59-
);
60-
$request->addParams($params);
61-
$request->addFields($fields);
62-
return $pending ? $request : $request->execute();
63-
}
64-
6542
}

src/FacebookAds/Object/Business.php

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
use FacebookAds\Object\Values\ManagedPartnerBusinessSurveyBusinessTypeValues;
5454
use FacebookAds\Object\Values\ManagedPartnerBusinessTimezoneIdValues;
5555
use FacebookAds\Object\Values\ManagedPartnerBusinessVerticalValues;
56+
use FacebookAds\Object\Values\OmegaCustomerTrxProductTypesValues;
5657
use FacebookAds\Object\Values\OmegaCustomerTrxTypeValues;
5758
use FacebookAds\Object\Values\ProductCatalogAdditionalVerticalOptionValues;
5859
use FacebookAds\Object\Values\ProductCatalogVerticalValues;
@@ -736,15 +737,21 @@ public function getBusinessInvoices(array $fields = array(), array $params = arr
736737
$this->assureId();
737738

738739
$param_types = array(
740+
'account_ids' => 'list<unsigned int>',
741+
'advertiser_name' => 'string',
742+
'billing_period_end' => 'string',
743+
'billing_period_start' => 'string',
739744
'end_date' => 'string',
740745
'invoice_id' => 'string',
741746
'issue_end_date' => 'string',
742747
'issue_start_date' => 'string',
748+
'product_types' => 'list<product_types_enum>',
743749
'root_id' => 'unsigned int',
744750
'start_date' => 'string',
745751
'type' => 'type_enum',
746752
);
747753
$enums = array(
754+
'product_types_enum' => OmegaCustomerTrxProductTypesValues::getInstance()->getValues(),
748755
'type_enum' => OmegaCustomerTrxTypeValues::getInstance()->getValues(),
749756
);
750757

@@ -934,6 +941,29 @@ public function createClientApp(array $fields = array(), array $params = array()
934941
return $pending ? $request : $request->execute();
935942
}
936943

944+
public function getClientInstagramAssets(array $fields = array(), array $params = array(), $pending = false) {
945+
$this->assureId();
946+
947+
$param_types = array(
948+
);
949+
$enums = array(
950+
);
951+
952+
$request = new ApiRequest(
953+
$this->api,
954+
$this->data['id'],
955+
RequestInterface::METHOD_GET,
956+
'/client_instagram_assets',
957+
new InstagramBusinessAsset(),
958+
'EDGE',
959+
InstagramBusinessAsset::getFieldsEnum()->getValues(),
960+
new TypeChecker($param_types, $enums)
961+
);
962+
$request->addParams($params);
963+
$request->addFields($fields);
964+
return $pending ? $request : $request->execute();
965+
}
966+
937967
public function getClientOffsiteSignalContainerBusinessObjects(array $fields = array(), array $params = array(), $pending = false) {
938968
$this->assureId();
939969

@@ -2078,6 +2108,29 @@ public function getOwnedInstagramAccounts(array $fields = array(), array $params
20782108
return $pending ? $request : $request->execute();
20792109
}
20802110

2111+
public function getOwnedInstagramAssets(array $fields = array(), array $params = array(), $pending = false) {
2112+
$this->assureId();
2113+
2114+
$param_types = array(
2115+
);
2116+
$enums = array(
2117+
);
2118+
2119+
$request = new ApiRequest(
2120+
$this->api,
2121+
$this->data['id'],
2122+
RequestInterface::METHOD_GET,
2123+
'/owned_instagram_assets',
2124+
new InstagramBusinessAsset(),
2125+
'EDGE',
2126+
InstagramBusinessAsset::getFieldsEnum()->getValues(),
2127+
new TypeChecker($param_types, $enums)
2128+
);
2129+
$request->addParams($params);
2130+
$request->addFields($fields);
2131+
return $pending ? $request : $request->execute();
2132+
}
2133+
20812134
public function getOwnedOffsiteSignalContainerBusinessObjects(array $fields = array(), array $params = array(), $pending = false) {
20822135
$this->assureId();
20832136

src/FacebookAds/Object/BusinessUser.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,29 @@ public function getAssignedProductCatalogs(array $fields = array(), array $param
146146
return $pending ? $request : $request->execute();
147147
}
148148

149+
public function getAssignedWhatsAppBusinessAccounts(array $fields = array(), array $params = array(), $pending = false) {
150+
$this->assureId();
151+
152+
$param_types = array(
153+
);
154+
$enums = array(
155+
);
156+
157+
$request = new ApiRequest(
158+
$this->api,
159+
$this->data['id'],
160+
RequestInterface::METHOD_GET,
161+
'/assigned_whatsapp_business_accounts',
162+
new WhatsAppBusinessAccount(),
163+
'EDGE',
164+
WhatsAppBusinessAccount::getFieldsEnum()->getValues(),
165+
new TypeChecker($param_types, $enums)
166+
);
167+
$request->addParams($params);
168+
$request->addFields($fields);
169+
return $pending ? $request : $request->execute();
170+
}
171+
149172
public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) {
150173
$this->assureId();
151174

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 ABTestPostTestActionsFields extends AbstractEnum {
24+
25+
const AUTO_CHANGE_BUDGET_TO_WINNER = 'auto_change_budget_to_winner';
26+
27+
public function getFieldTypes() {
28+
return array(
29+
'auto_change_budget_to_winner' => 'int',
30+
);
31+
}
32+
}

0 commit comments

Comments
 (0)