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: liliarizona

Differential Revision: D58591423

fbshipit-source-id: 9695adc477600920ac121d0903eb72348a487035
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Jun 14, 2024
1 parent f3eb099 commit 5122e32
Show file tree
Hide file tree
Showing 994 changed files with 43,215 additions and 666 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' => '2024-04-08T11:26:05-0700',
'end_time' => '2024-04-15T11:26:05-0700',
'start_time' => '2024-06-18T16:39:15-0700',
'end_time' => '2024-06-25T16:39:15-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' => '2024-04-08T11:26:49-0700',
'end_time' => '2024-04-15T11:26:49-0700',
'start_time' => '2024-06-18T16:40:02-0700',
'end_time' => '2024-06-25T16:40:02-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' => '2024-04-08T11:25:19-0700',
'end_time' => '2024-04-15T11:25:19-0700',
'start_time' => '2024-06-18T16:38:30-0700',
'end_time' => '2024-06-25T16:38:30-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' => '2024-04-01T11:26:23-0700',
'end_time' => '2024-04-08T11:26:23-0700',
'start_time' => '2024-06-11T16:39:34-0700',
'end_time' => '2024-06-18T16:39:34-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' => '2024-04-01T11:26:32-0700',
'end_time' => '2024-04-11T11:26:32-0700',
'start_time' => '2024-06-11T16:39:43-0700',
'end_time' => '2024-06-21T16:39:43-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' => '2024-04-01T11:26:40-0700',
'end_time' => '2024-04-11T11:26:40-0700',
'start_time' => '2024-06-11T16:39:52-0700',
'end_time' => '2024-06-21T16:39:52-0700',
'campaign_id' => '<adCampaignLinkClicksID>',
'bid_amount' => '500',
'billing_event' => 'IMPRESSIONS',
Expand Down
2 changes: 1 addition & 1 deletion examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
$fields = array(
);
$params = array(
'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1711391704)),
'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1717544918)),
);
echo json_encode((new Ad($id))->getLeads(
$fields,
Expand Down
2 changes: 1 addition & 1 deletion examples/AdsPixelEventsPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
$fields = array(
);
$params = array(
'data' => array(array('event_name' => 'PageView','event_time' => 1711995835,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))),
'data' => array(array('event_name' => 'PageView','event_time' => 1718149023,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))),
);
echo json_encode((new AdsPixel($id))->createEvent(
$fields,
Expand Down
4 changes: 2 additions & 2 deletions src/FacebookAds/ApiConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace FacebookAds;
class ApiConfig {
const APIVersion = '19.0';
const SDKVersion = '19.0.3';
const APIVersion = '20.0';
const SDKVersion = '20.0.0';
const TYPE_CHECKER_STRICT_MODE = false;
}
42 changes: 42 additions & 0 deletions src/FacebookAds/Object/AMOneshopSettings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?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;

use FacebookAds\ApiRequest;
use FacebookAds\Cursor;
use FacebookAds\Http\RequestInterface;
use FacebookAds\TypeChecker;
use FacebookAds\Object\Fields\AMOneshopSettingsFields;

/**
* 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 AMOneshopSettings extends AbstractObject {

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

protected static function getReferencedEnums() {
$ref_enums = array();
return $ref_enums;
}


}
42 changes: 42 additions & 0 deletions src/FacebookAds/Object/ANBlockedBICategory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?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;

use FacebookAds\ApiRequest;
use FacebookAds\Cursor;
use FacebookAds\Http\RequestInterface;
use FacebookAds\TypeChecker;
use FacebookAds\Object\Fields\ANBlockedBICategoryFields;

/**
* 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 ANBlockedBICategory extends AbstractObject {

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

protected static function getReferencedEnums() {
$ref_enums = array();
return $ref_enums;
}


}
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\PageSavedFilterFields;
use FacebookAds\Object\Fields\AREffectFields;

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

class PageSavedFilter extends AbstractCrudObject {
class AREffect extends AbstractCrudObject {

/**
* @return PageSavedFilterFields
* @return AREffectFields
*/
public static function getFieldsEnum() {
return PageSavedFilterFields::getInstance();
return AREffectFields::getInstance();
}

protected static function getReferencedEnums() {
Expand All @@ -52,9 +52,9 @@ public function getSelf(array $fields = array(), array $params = array(), $pendi
$this->data['id'],
RequestInterface::METHOD_GET,
'/',
new PageSavedFilter(),
new AREffect(),
'NODE',
PageSavedFilter::getFieldsEnum()->getValues(),
AREffect::getFieldsEnum()->getValues(),
new TypeChecker($param_types, $enums)
);
$request->addParams($params);
Expand Down
1 change: 1 addition & 0 deletions src/FacebookAds/Object/Ad.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ public function updateSelf(array $fields = array(), array $params = array(), $pe
'bid_amount' => 'int',
'conversion_domain' => 'string',
'creative' => 'AdCreative',
'creative_asset_groups_spec' => 'Object',
'display_sequence' => 'unsigned int',
'draft_adgroup_id' => 'string',
'engagement_audience' => 'bool',
Expand Down
Loading

0 comments on commit 5122e32

Please sign in to comment.