Skip to content

Commit 5122e32

Browse files
generatedunixname89002005295453facebook-github-bot
authored andcommitted
Auto-generated php SDK code update
Summary: ignore-conflict-markers Reviewed By: liliarizona Differential Revision: D58591423 fbshipit-source-id: 9695adc477600920ac121d0903eb72348a487035
1 parent f3eb099 commit 5122e32

File tree

994 files changed

+43215
-666
lines changed

Some content is hidden

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

994 files changed

+43215
-666
lines changed

examples/AdAccountAdSetsPostAdSetCreateCpa.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
'name' => 'A CPA Ad Set',
4444
'campaign_id' => '<adCampaignLinkClicksID>',
4545
'daily_budget' => '5000',
46-
'start_time' => '2024-04-08T11:26:05-0700',
47-
'end_time' => '2024-04-15T11:26:05-0700',
46+
'start_time' => '2024-06-18T16:39:15-0700',
47+
'end_time' => '2024-06-25T16:39:15-0700',
4848
'billing_event' => 'IMPRESSIONS',
4949
'optimization_goal' => 'REACH',
5050
'bid_amount' => '1000',

examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
'name' => 'A CPA Ad Set optimized for App Events',
4444
'campaign_id' => '<adCampaignAppInstallsID>',
4545
'daily_budget' => '300',
46-
'start_time' => '2024-04-08T11:26:49-0700',
47-
'end_time' => '2024-04-15T11:26:49-0700',
46+
'start_time' => '2024-06-18T16:40:02-0700',
47+
'end_time' => '2024-06-25T16:40:02-0700',
4848
'billing_event' => 'IMPRESSIONS',
4949
'optimization_goal' => 'OFFSITE_CONVERSIONS',
5050
'bid_amount' => '100',

examples/AdAccountAdSetsPostCreateAdSet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
$params = array(
4343
'name' => 'My First AdSet',
4444
'lifetime_budget' => '20000',
45-
'start_time' => '2024-04-08T11:25:19-0700',
46-
'end_time' => '2024-04-15T11:25:19-0700',
45+
'start_time' => '2024-06-18T16:38:30-0700',
46+
'end_time' => '2024-06-25T16:38:30-0700',
4747
'campaign_id' => '<adCampaignLinkClicksID>',
4848
'bid_amount' => '500',
4949
'billing_event' => 'IMPRESSIONS',

examples/AdAccountAdSetsPostDailyBudget20.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
$params = array(
4343
'name' => 'My First Adset',
4444
'daily_budget' => '2000',
45-
'start_time' => '2024-04-01T11:26:23-0700',
46-
'end_time' => '2024-04-08T11:26:23-0700',
45+
'start_time' => '2024-06-11T16:39:34-0700',
46+
'end_time' => '2024-06-18T16:39:34-0700',
4747
'campaign_id' => '<adCampaignLinkClicksID>',
4848
'bid_amount' => '100',
4949
'billing_event' => 'LINK_CLICKS',

examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
$params = array(
4343
'name' => 'My First Adset',
4444
'lifetime_budget' => '20000',
45-
'start_time' => '2024-04-01T11:26:32-0700',
46-
'end_time' => '2024-04-11T11:26:32-0700',
45+
'start_time' => '2024-06-11T16:39:43-0700',
46+
'end_time' => '2024-06-21T16:39:43-0700',
4747
'campaign_id' => '<adCampaignLinkClicksID>',
4848
'bid_amount' => '100',
4949
'billing_event' => 'LINK_CLICKS',

examples/AdAccountAdSetsPostOptimizePostEngagement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
$params = array(
4343
'name' => 'My First Adset',
4444
'lifetime_budget' => '20000',
45-
'start_time' => '2024-04-01T11:26:40-0700',
46-
'end_time' => '2024-04-11T11:26:40-0700',
45+
'start_time' => '2024-06-11T16:39:52-0700',
46+
'end_time' => '2024-06-21T16:39:52-0700',
4747
'campaign_id' => '<adCampaignLinkClicksID>',
4848
'bid_amount' => '500',
4949
'billing_event' => 'IMPRESSIONS',

examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
$fields = array(
4141
);
4242
$params = array(
43-
'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1711391704)),
43+
'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1717544918)),
4444
);
4545
echo json_encode((new Ad($id))->getLeads(
4646
$fields,

examples/AdsPixelEventsPost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
$fields = array(
4040
);
4141
$params = array(
42-
'data' => array(array('event_name' => 'PageView','event_time' => 1711995835,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))),
42+
'data' => array(array('event_name' => 'PageView','event_time' => 1718149023,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))),
4343
);
4444
echo json_encode((new AdsPixel($id))->createEvent(
4545
$fields,

src/FacebookAds/ApiConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace FacebookAds;
1111
class ApiConfig {
12-
const APIVersion = '19.0';
13-
const SDKVersion = '19.0.3';
12+
const APIVersion = '20.0';
13+
const SDKVersion = '20.0.0';
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\AMOneshopSettingsFields;
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 AMOneshopSettings extends AbstractObject {
28+
29+
/**
30+
* @return AMOneshopSettingsFields
31+
*/
32+
public static function getFieldsEnum() {
33+
return AMOneshopSettingsFields::getInstance();
34+
}
35+
36+
protected static function getReferencedEnums() {
37+
$ref_enums = array();
38+
return $ref_enums;
39+
}
40+
41+
42+
}

0 commit comments

Comments
 (0)