Skip to content

Commit

Permalink
add new words
Browse files Browse the repository at this point in the history
Summary: unblock business sdk release

Reviewed By: liliarizona

Differential Revision: D66021719

fbshipit-source-id: 48702414deabf76c4f78ffe6c5be348ea5c4d189
  • Loading branch information
satwikareddy3 authored and facebook-github-bot committed Nov 15, 2024
1 parent a8388bb commit d895542
Show file tree
Hide file tree
Showing 73 changed files with 653 additions and 185 deletions.
8 changes: 7 additions & 1 deletion src/FacebookAds/Object/AdAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ public function createAdCreative(array $fields = array(), array $params = array(

$param_types = array(
'actor_id' => 'unsigned int',
'ad_disclaimer_spec' => 'map',
'adlabels' => 'list<Object>',
'applink_treatment' => 'applink_treatment_enum',
'asset_feed_spec' => 'Object',
Expand All @@ -422,6 +423,7 @@ public function createAdCreative(array $fields = array(), array $params = array(
'categorization_criteria' => 'categorization_criteria_enum',
'category_media_source' => 'category_media_source_enum',
'contextual_multi_ads' => 'map',
'creative_sourcing_spec' => 'map',
'degrees_of_freedom_spec' => 'map',
'destination_set_id' => 'string',
'dynamic_ad_voice' => 'dynamic_ad_voice_enum',
Expand Down Expand Up @@ -1279,7 +1281,6 @@ public function createAdVideo(array $fields = array(), array $params = array(),
'start_offset' => 'unsigned int',
'swap_mode' => 'swap_mode_enum',
'text_format_metadata' => 'string',
'throwback_camera_roll_media' => 'string',
'thumb' => 'file',
'time_since_original_post' => 'unsigned int',
'title' => 'string',
Expand Down Expand Up @@ -2879,7 +2880,12 @@ public function createRecommendation(array $fields = array(), array $params = ar
$this->assureId();

$param_types = array(
'asc_fragmentation_parameters' => 'map',
'autoflow_parameters' => 'map',
'fragmentation_parameters' => 'map',
'music_parameters' => 'map',
'recommendation_signature' => 'string',
'scale_good_campaign_parameters' => 'map',
);
$enums = array(
);
Expand Down
1 change: 1 addition & 0 deletions src/FacebookAds/Object/AdMonetizationProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function getAdNetworkAnalytics(array $fields = array(), array $params = a
'metrics' => 'list<metrics_enum>',
'ordering_column' => 'ordering_column_enum',
'ordering_type' => 'ordering_type_enum',
'should_include_until' => 'bool',
'since' => 'datetime',
'until' => 'datetime',
);
Expand Down
2 changes: 1 addition & 1 deletion src/FacebookAds/Object/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ public function getAdNetworkAnalytics(array $fields = array(), array $params = a
'metrics' => 'list<metrics_enum>',
'ordering_column' => 'ordering_column_enum',
'ordering_type' => 'ordering_type_enum',
'should_include_until' => 'bool',
'since' => 'datetime',
'until' => 'datetime',
);
Expand Down Expand Up @@ -1651,7 +1652,6 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe
'app_type' => 'bool',
'auth_dialog_headline' => 'string',
'auth_dialog_perms_explanation' => 'string',
'auth_referral_default_activity_privacy' => 'string',
'auth_referral_enabled' => 'bool',
'auth_referral_extended_perms' => 'list<string>',
'auth_referral_friend_perms' => 'list<string>',
Expand Down
46 changes: 45 additions & 1 deletion src/FacebookAds/Object/Business.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
use FacebookAds\Object\Values\AdsPixelSortByValues;
use FacebookAds\Object\Values\BusinessActionSourceValues;
use FacebookAds\Object\Values\BusinessAssetSharingAgreementRequestStatusValues;
use FacebookAds\Object\Values\BusinessBusinessVerticalValues;
use FacebookAds\Object\Values\BusinessImageValidationAdPlacementsValues;
use FacebookAds\Object\Values\BusinessPagePermittedTasksValues;
use FacebookAds\Object\Values\BusinessPermittedTasksValues;
Expand All @@ -40,6 +41,7 @@
use FacebookAds\Object\Values\BusinessTwoFactorTypeValues;
use FacebookAds\Object\Values\BusinessUserInvitedUserTypeValues;
use FacebookAds\Object\Values\BusinessUserRoleValues;
use FacebookAds\Object\Values\BusinessVerificationStatusValues;
use FacebookAds\Object\Values\BusinessVerticalV2Values;
use FacebookAds\Object\Values\BusinessVerticalValues;
use FacebookAds\Object\Values\CPASCollaborationRequestRequesterAgencyOrBrandValues;
Expand Down Expand Up @@ -72,12 +74,14 @@ public static function getFieldsEnum() {

protected static function getReferencedEnums() {
$ref_enums = array();
$ref_enums['VerificationStatus'] = BusinessVerificationStatusValues::getInstance()->getValues();
$ref_enums['TwoFactorType'] = BusinessTwoFactorTypeValues::getInstance()->getValues();
$ref_enums['Vertical'] = BusinessVerticalValues::getInstance()->getValues();
$ref_enums['PermittedTasks'] = BusinessPermittedTasksValues::getInstance()->getValues();
$ref_enums['SurveyBusinessType'] = BusinessSurveyBusinessTypeValues::getInstance()->getValues();
$ref_enums['TimezoneId'] = BusinessTimezoneIdValues::getInstance()->getValues();
$ref_enums['PagePermittedTasks'] = BusinessPagePermittedTasksValues::getInstance()->getValues();
$ref_enums['BusinessVertical'] = BusinessBusinessVerticalValues::getInstance()->getValues();
$ref_enums['SubverticalV2'] = BusinessSubverticalV2Values::getInstance()->getValues();
$ref_enums['VerticalV2'] = BusinessVerticalV2Values::getInstance()->getValues();
$ref_enums['ActionSource'] = BusinessActionSourceValues::getInstance()->getValues();
Expand Down Expand Up @@ -340,6 +344,7 @@ public function getAdNetworkAnalytics(array $fields = array(), array $params = a
'metrics' => 'list<metrics_enum>',
'ordering_column' => 'ordering_column_enum',
'ordering_type' => 'ordering_type_enum',
'should_include_until' => 'bool',
'since' => 'datetime',
'until' => 'datetime',
);
Expand Down Expand Up @@ -2285,12 +2290,19 @@ public function createOpenBridgeConfiguration(array $fields = array(), array $pa

$param_types = array(
'active' => 'bool',
'cloud_provider' => 'string',
'cloud_region' => 'string',
'destination_id' => 'string',
'endpoint' => 'string',
'fallback_domain' => 'string',
'fallback_domain_enabled' => 'bool',
'first_party_domain' => 'string',
'host_business_id' => 'unsigned int',
'host_external_id' => 'string',
'instance_id' => 'string',
'instance_version' => 'string',
'is_sgw_instance' => 'bool',
'partner_name' => 'string',
'pixel_id' => 'unsigned int',
);
$enums = array(
Expand Down Expand Up @@ -3081,6 +3093,39 @@ public function getSelfCertifiedWhatsAppBusinessSubmissions(array $fields = arra
return $pending ? $request : $request->execute();
}

public function createSelfCertifyWhatsAppBusiness(array $fields = array(), array $params = array(), $pending = false) {
$this->assureId();

$param_types = array(
'average_monthly_revenue_spend_with_partner' => 'map',
'business_documents' => 'list<file>',
'business_vertical' => 'business_vertical_enum',
'end_business_address' => 'map',
'end_business_id' => 'string',
'end_business_legal_name' => 'string',
'end_business_trade_names' => 'list<string>',
'end_business_website' => 'string',
'num_billing_cycles_with_partner' => 'unsigned int',
);
$enums = array(
'business_vertical_enum' => BusinessBusinessVerticalValues::getInstance()->getValues(),
);

$request = new ApiRequest(
$this->api,
$this->data['id'],
RequestInterface::METHOD_POST,
'/self_certify_whatsapp_business',
new Business(),
'EDGE',
Business::getFieldsEnum()->getValues(),
new TypeChecker($param_types, $enums)
);
$request->addParams($params);
$request->addFields($fields);
return $pending ? $request : $request->execute();
}

public function createSetupManagedPartnerAdAccount(array $fields = array(), array $params = array(), $pending = false) {
$this->assureId();

Expand Down Expand Up @@ -3320,7 +3365,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p
'start_offset' => 'unsigned int',
'swap_mode' => 'swap_mode_enum',
'text_format_metadata' => 'string',
'throwback_camera_roll_media' => 'string',
'thumb' => 'file',
'time_since_original_post' => 'unsigned int',
'title' => 'string',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use FacebookAds\Cursor;
use FacebookAds\Http\RequestInterface;
use FacebookAds\TypeChecker;
use FacebookAds\Object\Fields\AnalyticsCohortQueryResultFields;
use FacebookAds\Object\Fields\CatalogAdvertiserInsightFields;

/**
* This class is auto-generated.
Expand All @@ -24,13 +24,13 @@
*
*/

class AnalyticsCohortQueryResult extends AbstractObject {
class CatalogAdvertiserInsight extends AbstractObject {

/**
* @return AnalyticsCohortQueryResultFields
* @return CatalogAdvertiserInsightFields
*/
public static function getFieldsEnum() {
return AnalyticsCohortQueryResultFields::getInstance();
return CatalogAdvertiserInsightFields::getInstance();
}

protected static function getReferencedEnums() {
Expand Down
28 changes: 0 additions & 28 deletions src/FacebookAds/Object/CommerceOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,34 +435,6 @@ public function createUpdateShipment(array $fields = array(), array $params = ar
return $pending ? $request : $request->execute();
}

public function createUpdate(array $fields = array(), array $params = array(), $pending = false) {
$this->assureId();

$param_types = array(
'cancel_amount' => 'map',
'fulfill_amount' => 'map',
'merchant_order_reference' => 'string',
'refund_amount' => 'map',
'total_amount' => 'map',
);
$enums = array(
);

$request = new ApiRequest(
$this->api,
$this->data['id'],
RequestInterface::METHOD_POST,
'/updates',
new CommerceOrder(),
'EDGE',
CommerceOrder::getFieldsEnum()->getValues(),
new TypeChecker($param_types, $enums)
);
$request->addParams($params);
$request->addFields($fields);
return $pending ? $request : $request->execute();
}

public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
$this->assureId();

Expand Down
4 changes: 2 additions & 2 deletions src/FacebookAds/Object/ExtendedCredit.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ public function createWhatsAppCreditSharingAndAttach(array $fields = array(), ar
$this->data['id'],
RequestInterface::METHOD_POST,
'/whatsapp_credit_sharing_and_attach',
new AbstractCrudObject(),
new ExtendedCreditAllocationConfig(),
'EDGE',
array(),
ExtendedCreditAllocationConfig::getFieldsEnum()->getValues(),
new TypeChecker($param_types, $enums)
);
$request->addParams($params);
Expand Down
2 changes: 2 additions & 0 deletions src/FacebookAds/Object/Fields/AdAccountFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class AdAccountFields extends AbstractEnum {
const END_ADVERTISER = 'end_advertiser';
const END_ADVERTISER_NAME = 'end_advertiser_name';
const EXISTING_CUSTOMERS = 'existing_customers';
const EXPIRED_FUNDING_SOURCE_DETAILS = 'expired_funding_source_details';
const EXTENDED_CREDIT_INVOICE_GROUP = 'extended_credit_invoice_group';
const FAILED_DELIVERY_CHECKS = 'failed_delivery_checks';
const FB_ENTITY = 'fb_entity';
Expand Down Expand Up @@ -123,6 +124,7 @@ public function getFieldTypes() {
'end_advertiser' => 'string',
'end_advertiser_name' => 'string',
'existing_customers' => 'list<string>',
'expired_funding_source_details' => 'FundingSourceDetails',
'extended_credit_invoice_group' => 'ExtendedCreditInvoiceGroup',
'failed_delivery_checks' => 'list<DeliveryCheck>',
'fb_entity' => 'unsigned int',
Expand Down
10 changes: 10 additions & 0 deletions src/FacebookAds/Object/Fields/AdAccountRecommendationsFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,22 @@
class AdAccountRecommendationsFields extends AbstractEnum {

const RECOMMENDATIONS = 'recommendations';
const ASC_FRAGMENTATION_PARAMETERS = 'asc_fragmentation_parameters';
const AUTOFLOW_PARAMETERS = 'autoflow_parameters';
const FRAGMENTATION_PARAMETERS = 'fragmentation_parameters';
const MUSIC_PARAMETERS = 'music_parameters';
const RECOMMENDATION_SIGNATURE = 'recommendation_signature';
const SCALE_GOOD_CAMPAIGN_PARAMETERS = 'scale_good_campaign_parameters';

public function getFieldTypes() {
return array(
'recommendations' => 'list<Object>',
'asc_fragmentation_parameters' => 'map',
'autoflow_parameters' => 'map',
'fragmentation_parameters' => 'map',
'music_parameters' => 'map',
'recommendation_signature' => 'string',
'scale_good_campaign_parameters' => 'map',
);
}
}
2 changes: 2 additions & 0 deletions src/FacebookAds/Object/Fields/AdAccountUserSettingsFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class AdAccountUserSettingsFields extends AbstractEnum {
const SHOULD_DEFAULT_INSTAGRAM_PROFILE_CARD_OPTIMIZATION = 'should_default_instagram_profile_card_optimization';
const SHOULD_DEFAULT_TEXT_SWAPPING_OPTIMIZATION = 'should_default_text_swapping_optimization';
const SHOULD_LOGOUT_OF_3P_SOURCING = 'should_logout_of_3p_sourcing';
const SHOULD_SHOW_SHOPS_ADS_METRICS_ONBOARDING_TOUR = 'should_show_shops_ads_metrics_onboarding_tour';
const SHOW_ARCHIVED_DATA = 'show_archived_data';
const SHOW_TEXT_VARIATION_NUX_TOOLTIP = 'show_text_variation_nux_tooltip';
const SYD_CAMPAIGN_TRENDS_ACTIVEMETRIC = 'syd_campaign_trends_activemetric';
Expand Down Expand Up @@ -125,6 +126,7 @@ public function getFieldTypes() {
'should_default_instagram_profile_card_optimization' => 'bool',
'should_default_text_swapping_optimization' => 'bool',
'should_logout_of_3p_sourcing' => 'bool',
'should_show_shops_ads_metrics_onboarding_tour' => 'bool',
'show_archived_data' => 'bool',
'show_text_variation_nux_tooltip' => 'bool',
'syd_campaign_trends_activemetric' => 'string',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class AdAssetFeedSpecLinkURLFields extends AbstractEnum {
const CAROUSEL_SEE_MORE_URL = 'carousel_see_more_url';
const DEEPLINK_URL = 'deeplink_url';
const DISPLAY_URL = 'display_url';
const OBJECT_STORE_URLS = 'object_store_urls';
const URL_TAGS = 'url_tags';
const WEBSITE_URL = 'website_url';

Expand All @@ -35,6 +36,7 @@ public function getFieldTypes() {
'carousel_see_more_url' => 'string',
'deeplink_url' => 'string',
'display_url' => 'string',
'object_store_urls' => 'list<string>',
'url_tags' => 'string',
'website_url' => 'string',
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class AdCreativeFeaturesSpecFields extends AbstractEnum {
const MEDIA_LIQUIDITY_ANIMATED_IMAGE = 'media_liquidity_animated_image';
const MEDIA_ORDER = 'media_order';
const MEDIA_TYPE_AUTOMATION = 'media_type_automation';
const MULTI_PHOTO_TO_VIDEO = 'multi_photo_to_video';
const PAC_RELAXATION = 'pac_relaxation';
const PRODUCT_EXTENSIONS = 'product_extensions';
const PRODUCT_METADATA_AUTOMATION = 'product_metadata_automation';
Expand Down Expand Up @@ -109,6 +110,7 @@ public function getFieldTypes() {
'media_liquidity_animated_image' => 'AdCreativeFeatureDetails',
'media_order' => 'AdCreativeFeatureDetails',
'media_type_automation' => 'AdCreativeFeatureDetails',
'multi_photo_to_video' => 'AdCreativeFeatureDetails',
'pac_relaxation' => 'AdCreativeFeatureDetails',
'product_extensions' => 'AdCreativeFeatureDetails',
'product_metadata_automation' => 'AdCreativeFeatureDetails',
Expand Down
4 changes: 4 additions & 0 deletions src/FacebookAds/Object/Fields/AdCreativeFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class AdCreativeFields extends AbstractEnum {

const ACCOUNT_ID = 'account_id';
const ACTOR_ID = 'actor_id';
const AD_DISCLAIMER_SPEC = 'ad_disclaimer_spec';
const ADLABELS = 'adlabels';
const APPLINK_TREATMENT = 'applink_treatment';
const ASSET_FEED_SPEC = 'asset_feed_spec';
Expand Down Expand Up @@ -78,6 +79,7 @@ class AdCreativeFields extends AbstractEnum {
const PLATFORM_CUSTOMIZATIONS = 'platform_customizations';
const PLAYABLE_ASSET_ID = 'playable_asset_id';
const PORTRAIT_CUSTOMIZATIONS = 'portrait_customizations';
const PRODUCT_DATA = 'product_data';
const PRODUCT_SET_ID = 'product_set_id';
const RECOMMENDER_SETTINGS = 'recommender_settings';
const SOURCE_INSTAGRAM_MEDIA_ID = 'source_instagram_media_id';
Expand All @@ -98,6 +100,7 @@ public function getFieldTypes() {
return array(
'account_id' => 'string',
'actor_id' => 'string',
'ad_disclaimer_spec' => 'AdCreativeAdDisclaimer',
'adlabels' => 'list<AdLabel>',
'applink_treatment' => 'string',
'asset_feed_spec' => 'AdAssetFeedSpec',
Expand Down Expand Up @@ -152,6 +155,7 @@ public function getFieldTypes() {
'platform_customizations' => 'AdCreativePlatformCustomization',
'playable_asset_id' => 'string',
'portrait_customizations' => 'AdCreativePortraitCustomizations',
'product_data' => 'list<AdCreativeProductData>',
'product_set_id' => 'string',
'recommender_settings' => 'AdCreativeRecommenderSettings',
'source_instagram_media_id' => 'string',
Expand Down
2 changes: 2 additions & 0 deletions src/FacebookAds/Object/Fields/AdCreativeLinkDataFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AdCreativeLinkDataFields extends AbstractEnum {
const APP_LINK_SPEC = 'app_link_spec';
const ATTACHMENT_STYLE = 'attachment_style';
const AUTOMATED_PRODUCT_TAGS = 'automated_product_tags';
const BOOSTED_PRODUCT_SET_ID = 'boosted_product_set_id';
const BRANDED_CONTENT_SHARED_TO_SPONSOR_STATUS = 'branded_content_shared_to_sponsor_status';
const BRANDED_CONTENT_SPONSOR_PAGE_ID = 'branded_content_sponsor_page_id';
const CALL_TO_ACTION = 'call_to_action';
Expand Down Expand Up @@ -65,6 +66,7 @@ public function getFieldTypes() {
'app_link_spec' => 'AdCreativeLinkDataAppLinkSpec',
'attachment_style' => 'string',
'automated_product_tags' => 'bool',
'boosted_product_set_id' => 'string',
'branded_content_shared_to_sponsor_status' => 'string',
'branded_content_sponsor_page_id' => 'string',
'call_to_action' => 'AdCreativeLinkDataCallToAction',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@

class AdNetworkAnalyticsAsyncQueryExportFields extends AbstractEnum {

const ERROR = 'error';
const EXPORT_LINK = 'export_link';
const QUERY_ID = 'query_id';
const STATUS = 'status';

public function getFieldTypes() {
return array(
'error' => 'Object',
'export_link' => 'string',
'query_id' => 'string',
'status' => 'string',
Expand Down
Loading

0 comments on commit d895542

Please sign in to comment.