Skip to content

Commit

Permalink
Auto-generated php SDK code update
Browse files Browse the repository at this point in the history
Summary: ignore-conflict-markers

Reviewed By: stcheng

Differential Revision: D54971065

fbshipit-source-id: e912137558596dcef4c99d560053d49696740763
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Mar 19, 2024
1 parent 108278b commit 6270c85
Show file tree
Hide file tree
Showing 43 changed files with 236 additions and 60 deletions.
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostAdSetCreateCpa.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
'name' => 'A CPA Ad Set',
'campaign_id' => '<adCampaignLinkClicksID>',
'daily_budget' => '5000',
'start_time' => '2023-04-24T09:25:05-0700',
'end_time' => '2023-05-01T09:25:05-0700',
'start_time' => '2024-03-20T14:31:58-0700',
'end_time' => '2024-03-27T14:31:58-0700',
'billing_event' => 'IMPRESSIONS',
'optimization_goal' => 'REACH',
'bid_amount' => '1000',
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
'name' => 'A CPA Ad Set optimized for App Events',
'campaign_id' => '<adCampaignAppInstallsID>',
'daily_budget' => '300',
'start_time' => '2023-04-24T09:25:55-0700',
'end_time' => '2023-05-01T09:25:55-0700',
'start_time' => '2024-03-20T14:32:42-0700',
'end_time' => '2024-03-27T14:32:42-0700',
'billing_event' => 'IMPRESSIONS',
'optimization_goal' => 'OFFSITE_CONVERSIONS',
'bid_amount' => '100',
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostCreateAdSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
$params = array(
'name' => 'My First AdSet',
'lifetime_budget' => '20000',
'start_time' => '2023-04-24T09:24:18-0700',
'end_time' => '2023-05-01T09:24:18-0700',
'start_time' => '2024-03-20T14:31:13-0700',
'end_time' => '2024-03-27T14:31:13-0700',
'campaign_id' => '<adCampaignLinkClicksID>',
'bid_amount' => '500',
'billing_event' => 'IMPRESSIONS',
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostDailyBudget20.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
$params = array(
'name' => 'My First Adset',
'daily_budget' => '2000',
'start_time' => '2023-04-17T09:25:24-0700',
'end_time' => '2023-04-24T09:25:24-0700',
'start_time' => '2024-03-13T14:32:15-0700',
'end_time' => '2024-03-20T14:32:15-0700',
'campaign_id' => '<adCampaignLinkClicksID>',
'bid_amount' => '100',
'billing_event' => 'LINK_CLICKS',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
$params = array(
'name' => 'My First Adset',
'lifetime_budget' => '20000',
'start_time' => '2023-04-17T09:25:36-0700',
'end_time' => '2023-04-27T09:25:36-0700',
'start_time' => '2024-03-13T14:32:24-0700',
'end_time' => '2024-03-23T14:32:24-0700',
'campaign_id' => '<adCampaignLinkClicksID>',
'bid_amount' => '100',
'billing_event' => 'LINK_CLICKS',
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostOptimizePostEngagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
$params = array(
'name' => 'My First Adset',
'lifetime_budget' => '20000',
'start_time' => '2023-04-17T09:25:45-0700',
'end_time' => '2023-04-27T09:25:45-0700',
'start_time' => '2024-03-13T14:32:33-0700',
'end_time' => '2024-03-23T14:32:33-0700',
'campaign_id' => '<adCampaignLinkClicksID>',
'bid_amount' => '500',
'billing_event' => 'IMPRESSIONS',
Expand Down
2 changes: 1 addition & 1 deletion src/FacebookAds/ApiConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
namespace FacebookAds;
class ApiConfig {
const APIVersion = '19.0';
const SDKVersion = '19.0.1';
const SDKVersion = '19.0.2';
const TYPE_CHECKER_STRICT_MODE = false;
}
2 changes: 1 addition & 1 deletion src/FacebookAds/Object/Ad.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi
'last_week_mon_sun',
'last_week_sun_sat',
'last_year',
'lifetime',
'maximum',
'this_month',
'this_quarter',
'this_week_mon_today',
Expand Down
24 changes: 0 additions & 24 deletions src/FacebookAds/Object/AdAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,6 @@ public function createAdVideo(array $fields = array(), array $params = array(),
'fun_fact_toastee_id' => 'unsigned int',
'guide' => 'list<list<unsigned int>>',
'guide_enabled' => 'bool',
'has_nickname' => 'bool',
'holiday_card' => 'string',
'initial_heading' => 'unsigned int',
'initial_pitch' => 'unsigned int',
Expand Down Expand Up @@ -3152,29 +3151,6 @@ public function deleteUsersOfAnyAudience(array $fields = array(), array $params
return $pending ? $request : $request->execute();
}

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

$param_types = array(
);
$enums = array(
);

$request = new ApiRequest(
$this->api,
$this->data['id'],
RequestInterface::METHOD_GET,
'/value_adjustment_rule_persona_groups',
new AbstractCrudObject(),
'EDGE',
array(),
new TypeChecker($param_types, $enums)
);
$request->addParams($params);
$request->addFields($fields);
return $pending ? $request : $request->execute();
}

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

Expand Down
2 changes: 1 addition & 1 deletion src/FacebookAds/Object/AdSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi
'last_week_mon_sun',
'last_week_sun_sat',
'last_year',
'lifetime',
'maximum',
'this_month',
'this_quarter',
'this_week_mon_today',
Expand Down
1 change: 0 additions & 1 deletion src/FacebookAds/Object/Album.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ public function createPhoto(array $fields = array(), array $params = array(), $p
'proxied_app_id' => 'string',
'published' => 'bool',
'qn' => 'string',
'scheduled_publish_time' => 'unsigned int',
'spherical_metadata' => 'map',
'sponsor_id' => 'string',
'sponsor_relationship' => 'unsigned int',
Expand Down
1 change: 1 addition & 0 deletions src/FacebookAds/Object/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function getModels(array $fields = array(), array $params = array(), $pen
$param_types = array(
'client_name' => 'string',
'client_version' => 'string',
'config_id' => 'string',
'force_generate' => 'bool',
'platform' => 'string',
'profile' => 'string',
Expand Down
1 change: 0 additions & 1 deletion src/FacebookAds/Object/Business.php
Original file line number Diff line number Diff line change
Expand Up @@ -2758,7 +2758,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p
'fun_fact_toastee_id' => 'unsigned int',
'guide' => 'list<list<unsigned int>>',
'guide_enabled' => 'bool',
'has_nickname' => 'bool',
'holiday_card' => 'string',
'initial_heading' => 'unsigned int',
'initial_pitch' => 'unsigned int',
Expand Down
2 changes: 1 addition & 1 deletion src/FacebookAds/Object/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi
'last_week_mon_sun',
'last_week_sun_sat',
'last_year',
'lifetime',
'maximum',
'this_month',
'this_quarter',
'this_week_mon_today',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AdAssetFeedAdditionalDataFields extends AbstractEnum {
const IS_CLICK_TO_MESSAGE = 'is_click_to_message';
const MULTI_SHARE_END_CARD = 'multi_share_end_card';
const PAGE_WELCOME_MESSAGE = 'page_welcome_message';
const PARTNER_APP_WELCOME_MESSAGE_FLOW_ID = 'partner_app_welcome_message_flow_id';

public function getFieldTypes() {
return array(
Expand All @@ -35,6 +36,7 @@ public function getFieldTypes() {
'is_click_to_message' => 'bool',
'multi_share_end_card' => 'bool',
'page_welcome_message' => 'string',
'partner_app_welcome_message_flow_id' => 'string',
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class AdgroupPlacementSpecificReviewFeedbackFields extends AbstractEnum {
const BSG = 'bsg';
const CITY_COMMUNITY = 'city_community';
const COMMERCE = 'commerce';
const COMPROMISE = 'compromise';
const DAILY_DEALS = 'daily_deals';
const DAILY_DEALS_LEGACY = 'daily_deals_legacy';
const DPA = 'dpa';
Expand Down Expand Up @@ -69,6 +70,7 @@ public function getFieldTypes() {
'bsg' => 'map<string, string>',
'city_community' => 'map<string, string>',
'commerce' => 'map<string, string>',
'compromise' => 'map<string, string>',
'daily_deals' => 'map<string, string>',
'daily_deals_legacy' => 'map<string, string>',
'dpa' => 'map<string, string>',
Expand Down
2 changes: 2 additions & 0 deletions src/FacebookAds/Object/Fields/AdsInsightsFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class AdsInsightsFields extends AbstractEnum {
const MARKETING_MESSAGES_COST_PER_DELIVERED = 'marketing_messages_cost_per_delivered';
const MARKETING_MESSAGES_COST_PER_LINK_BTN_CLICK = 'marketing_messages_cost_per_link_btn_click';
const MARKETING_MESSAGES_SPEND = 'marketing_messages_spend';
const MARKETING_MESSAGES_WEBSITE_PURCHASE_VALUES = 'marketing_messages_website_purchase_values';
const MOBILE_APP_PURCHASE_ROAS = 'mobile_app_purchase_roas';
const OBJECTIVE = 'objective';
const OPTIMIZATION_GOAL = 'optimization_goal';
Expand Down Expand Up @@ -247,6 +248,7 @@ public function getFieldTypes() {
'marketing_messages_cost_per_delivered' => 'string',
'marketing_messages_cost_per_link_btn_click' => 'string',
'marketing_messages_spend' => 'string',
'marketing_messages_website_purchase_values' => 'string',
'mobile_app_purchase_roas' => 'list<AdsActionStats>',
'objective' => 'string',
'optimization_goal' => 'string',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class CatalogSubVerticalListFields extends AbstractEnum {
const LOCAL_SERVICE_BUSINESS_ITEM = 'local_service_business_item';
const LOCAL_SERVICE_BUSINESS_RESTAURANT = 'local_service_business_restaurant';
const LOYALTY_OFFER = 'loyalty_offer';
const MEETUP_SPACE = 'meetup_space';
const NURSERY = 'nursery';
const PRINTERS_AND_SCANNERS = 'printers_and_scanners';
const PRINTERS_SCANNERS_AND_FAX_MACHINES = 'printers_scanners_and_fax_machines';
Expand Down Expand Up @@ -108,7 +107,6 @@ public function getFieldTypes() {
'local_service_business_item' => 'Object',
'local_service_business_restaurant' => 'Object',
'loyalty_offer' => 'Object',
'meetup_space' => 'Object',
'nursery' => 'Object',
'printers_and_scanners' => 'Object',
'printers_scanners_and_fax_machines' => 'Object',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
class FundingSourceDetailsCouponFields extends AbstractEnum {

const AMOUNT = 'amount';
const CAMPAIGN_IDS = 'campaign_ids';
const CURRENCY = 'currency';
const DISPLAY_AMOUNT = 'display_amount';
const EXPIRATION = 'expiration';

public function getFieldTypes() {
return array(
'amount' => 'int',
'campaign_ids' => 'list<int>',
'currency' => 'string',
'display_amount' => 'string',
'expiration' => 'datetime',
Expand Down
2 changes: 2 additions & 0 deletions src/FacebookAds/Object/Fields/FundingSourceDetailsFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
class FundingSourceDetailsFields extends AbstractEnum {

const COUPON = 'coupon';
const COUPONS = 'coupons';
const DISPLAY_STRING = 'display_string';
const ID = 'id';
const TYPE = 'type';

public function getFieldTypes() {
return array(
'coupon' => 'FundingSourceDetailsCoupon',
'coupons' => 'list<FundingSourceDetailsCoupon>',
'display_string' => 'string',
'id' => 'string',
'type' => 'int',
Expand Down
2 changes: 1 addition & 1 deletion src/FacebookAds/Object/Fields/InsightsResultFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getFieldTypes() {
'name' => 'string',
'period' => 'string',
'title' => 'string',
'values' => 'list<Object>',
'values' => 'list<InsightsValue>',
);
}
}
50 changes: 50 additions & 0 deletions src/FacebookAds/Object/Fields/InsightsValueFields.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

namespace FacebookAds\Object\Fields;

use FacebookAds\Enum\AbstractEnum;

/**
* This class is auto-generated.
*
* For any issues or feature requests related to this class, please let us know
* on github and we'll fix in our codegen framework. We'll not be able to accept
* pull request for this class.
*
*/

class InsightsValueFields extends AbstractEnum {

const CAMPAIGN_ID = 'campaign_id';
const END_TIME = 'end_time';
const ENGAGEMENT_SOURCE = 'engagement_source';
const MESSAGE_TYPE = 'message_type';
const MESSAGING_CHANNEL = 'messaging_channel';
const RECURRING_NOTIFICATIONS_ENTRY_POINT = 'recurring_notifications_entry_point';
const RECURRING_NOTIFICATIONS_FREQUENCY = 'recurring_notifications_frequency';
const RECURRING_NOTIFICATIONS_TOPIC = 'recurring_notifications_topic';
const START_TIME = 'start_time';
const VALUE = 'value';

public function getFieldTypes() {
return array(
'campaign_id' => 'string',
'end_time' => 'datetime',
'engagement_source' => 'string',
'message_type' => 'string',
'messaging_channel' => 'string',
'recurring_notifications_entry_point' => 'string',
'recurring_notifications_frequency' => 'string',
'recurring_notifications_topic' => 'string',
'start_time' => 'datetime',
'value' => 'Object',
);
}
}
2 changes: 2 additions & 0 deletions src/FacebookAds/Object/Fields/PageFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class PageFields extends AbstractEnum {
const BIO = 'bio';
const BIRTHDAY = 'birthday';
const BOOKING_AGENT = 'booking_agent';
const BREAKING_NEWS_USAGE = 'breaking_news_usage';
const BUILT = 'built';
const BUSINESS = 'business';
const CAN_CHECKIN = 'can_checkin';
Expand Down Expand Up @@ -189,6 +190,7 @@ public function getFieldTypes() {
'bio' => 'string',
'birthday' => 'string',
'booking_agent' => 'string',
'breaking_news_usage' => 'Object',
'built' => 'string',
'business' => 'Object',
'can_checkin' => 'bool',
Expand Down
5 changes: 2 additions & 3 deletions src/FacebookAds/Object/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ public function createFeed(array $fields = array(), array $params = array(), $pe
'audience_exp' => 'bool',
'backdated_time' => 'datetime',
'backdated_time_granularity' => 'backdated_time_granularity_enum',
'breaking_news' => 'bool',
'breaking_news_expiration' => 'unsigned int',
'call_to_action' => 'Object',
'caption' => 'string',
'child_attachments' => 'list<Object>',
Expand All @@ -295,7 +297,6 @@ public function createFeed(array $fields = array(), array $params = array(), $pe
'formatting' => 'formatting_enum',
'fun_fact_prompt_id' => 'unsigned int',
'fun_fact_toastee_id' => 'unsigned int',
'has_nickname' => 'bool',
'height' => 'unsigned int',
'holiday_card' => 'string',
'home_checkin_city_id' => 'Object',
Expand Down Expand Up @@ -669,7 +670,6 @@ public function createPhoto(array $fields = array(), array $params = array(), $p
'proxied_app_id' => 'string',
'published' => 'bool',
'qn' => 'string',
'scheduled_publish_time' => 'unsigned int',
'spherical_metadata' => 'map',
'sponsor_id' => 'string',
'sponsor_relationship' => 'unsigned int',
Expand Down Expand Up @@ -789,7 +789,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p
'fun_fact_toastee_id' => 'unsigned int',
'guide' => 'list<list<unsigned int>>',
'guide_enabled' => 'bool',
'has_nickname' => 'bool',
'holiday_card' => 'string',
'initial_heading' => 'unsigned int',
'initial_pitch' => 'unsigned int',
Expand Down
1 change: 1 addition & 0 deletions src/FacebookAds/Object/IGUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ public function createMedia(array $fields = array(), array $params = array(), $p
'product_tags' => 'list<map>',
'share_to_feed' => 'bool',
'thumb_offset' => 'string',
'upload_type' => 'string',
'user_tags' => 'list<map>',
'video_url' => 'string',
);
Expand Down
Loading

0 comments on commit 6270c85

Please sign in to comment.