Skip to content

Commit ff8c1c6

Browse files
generatedunixname89002005295453facebook-github-bot
authored andcommitted
Auto-generated python SDK code update
Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D54970845 fbshipit-source-id: c8ef2b1d9350912ec00403451598c315aa9f2dd4
1 parent 03898e9 commit ff8c1c6

32 files changed

+160
-71
lines changed

examples/AdAccountAdSetsPostAdSetCreateCpa.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
'name': 'A CPA Ad Set',
3636
'campaign_id': '<adCampaignLinkClicksID>',
3737
'daily_budget': '5000',
38-
'start_time': '2023-04-24T09:25:05-0700',
39-
'end_time': '2023-05-01T09:25:05-0700',
38+
'start_time': '2024-03-20T14:31:58-0700',
39+
'end_time': '2024-03-27T14:31:58-0700',
4040
'billing_event': 'IMPRESSIONS',
4141
'optimization_goal': 'REACH',
4242
'bid_amount': '1000',

examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
'name': 'A CPA Ad Set optimized for App Events',
3636
'campaign_id': '<adCampaignAppInstallsID>',
3737
'daily_budget': '300',
38-
'start_time': '2023-04-24T09:25:55-0700',
39-
'end_time': '2023-05-01T09:25:55-0700',
38+
'start_time': '2024-03-20T14:32:42-0700',
39+
'end_time': '2024-03-27T14:32:42-0700',
4040
'billing_event': 'IMPRESSIONS',
4141
'optimization_goal': 'OFFSITE_CONVERSIONS',
4242
'bid_amount': '100',

examples/AdAccountAdSetsPostCreateAdSet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
params = {
3535
'name': 'My First AdSet',
3636
'lifetime_budget': '20000',
37-
'start_time': '2023-04-24T09:24:18-0700',
38-
'end_time': '2023-05-01T09:24:18-0700',
37+
'start_time': '2024-03-20T14:31:13-0700',
38+
'end_time': '2024-03-27T14:31:13-0700',
3939
'campaign_id': '<adCampaignLinkClicksID>',
4040
'bid_amount': '500',
4141
'billing_event': 'IMPRESSIONS',

examples/AdAccountAdSetsPostDailyBudget20.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
params = {
3535
'name': 'My First Adset',
3636
'daily_budget': '2000',
37-
'start_time': '2023-04-17T09:25:24-0700',
38-
'end_time': '2023-04-24T09:25:24-0700',
37+
'start_time': '2024-03-13T14:32:15-0700',
38+
'end_time': '2024-03-20T14:32:15-0700',
3939
'campaign_id': '<adCampaignLinkClicksID>',
4040
'bid_amount': '100',
4141
'billing_event': 'LINK_CLICKS',

examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
params = {
3535
'name': 'My First Adset',
3636
'lifetime_budget': '20000',
37-
'start_time': '2023-04-17T09:25:36-0700',
38-
'end_time': '2023-04-27T09:25:36-0700',
37+
'start_time': '2024-03-13T14:32:24-0700',
38+
'end_time': '2024-03-23T14:32:24-0700',
3939
'campaign_id': '<adCampaignLinkClicksID>',
4040
'bid_amount': '100',
4141
'billing_event': 'LINK_CLICKS',

examples/AdAccountAdSetsPostOptimizePostEngagement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
params = {
3535
'name': 'My First Adset',
3636
'lifetime_budget': '20000',
37-
'start_time': '2023-04-17T09:25:45-0700',
38-
'end_time': '2023-04-27T09:25:45-0700',
37+
'start_time': '2024-03-13T14:32:33-0700',
38+
'end_time': '2024-03-23T14:32:33-0700',
3939
'campaign_id': '<adCampaignLinkClicksID>',
4040
'bid_amount': '500',
4141
'billing_event': 'IMPRESSIONS',

facebook_business/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from facebook_business.session import FacebookSession
88
from facebook_business.api import FacebookAdsApi
99

10-
__version__ = '19.0.1'
10+
__version__ = '19.0.2'
1111
__all__ = [
1212
'session',
1313
'objects',

facebook_business/adobjects/ad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class DatePreset:
120120
last_week_mon_sun = 'last_week_mon_sun'
121121
last_week_sun_sat = 'last_week_sun_sat'
122122
last_year = 'last_year'
123-
lifetime = 'lifetime'
123+
maximum = 'maximum'
124124
this_month = 'this_month'
125125
this_quarter = 'this_quarter'
126126
this_week_mon_today = 'this_week_mon_today'
@@ -208,7 +208,7 @@ def api_get(self, fields=None, params=None, batch=None, success=None, failure=No
208208
'last_week_mon_sun',
209209
'last_week_sun_sat',
210210
'last_year',
211-
'lifetime',
211+
'maximum',
212212
'this_month',
213213
'this_quarter',
214214
'this_week_mon_today',

facebook_business/adobjects/adaccount.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,6 @@ def create_ad_video(self, fields=None, params=None, batch=None, success=None, fa
16911691
'fun_fact_toastee_id': 'unsigned int',
16921692
'guide': 'list<list<unsigned int>>',
16931693
'guide_enabled': 'bool',
1694-
'has_nickname': 'bool',
16951694
'holiday_card': 'string',
16961695
'initial_heading': 'unsigned int',
16971696
'initial_pitch': 'unsigned int',
@@ -4105,36 +4104,6 @@ def delete_users_of_any_audience(self, fields=None, params=None, batch=None, suc
41054104
self.assure_call()
41064105
return request.execute()
41074106

4108-
def get_value_adjustment_rule_persona_groups(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
4109-
from facebook_business.utils import api_utils
4110-
if batch is None and (success is not None or failure is not None):
4111-
api_utils.warning('`success` and `failure` callback only work for batch call.')
4112-
param_types = {
4113-
}
4114-
enums = {
4115-
}
4116-
request = FacebookRequest(
4117-
node_id=self['id'],
4118-
method='GET',
4119-
endpoint='/value_adjustment_rule_persona_groups',
4120-
api=self._api,
4121-
param_checker=TypeChecker(param_types, enums),
4122-
target_class=AbstractCrudObject,
4123-
api_type='EDGE',
4124-
response_parser=ObjectParser(target_class=AbstractCrudObject, api=self._api),
4125-
)
4126-
request.add_params(params)
4127-
request.add_fields(fields)
4128-
4129-
if batch is not None:
4130-
request.add_to_batch(batch, success=success, failure=failure)
4131-
return request
4132-
elif pending:
4133-
return request
4134-
else:
4135-
self.assure_call()
4136-
return request.execute()
4137-
41384107
def get_value_adjustment_rules(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
41394108
from facebook_business.utils import api_utils
41404109
if batch is None and (success is not None or failure is not None):

facebook_business/adobjects/adaccountadvolume.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class RecommendationType:
6464
app_aem_v2_installation_promotion = 'APP_AEM_V2_INSTALLATION_PROMOTION'
6565
asc_budget_optimization = 'ASC_BUDGET_OPTIMIZATION'
6666
asc_budget_optimization_pfr = 'ASC_BUDGET_OPTIMIZATION_PFR'
67+
asc_creation_package = 'ASC_CREATION_PACKAGE'
6768
aspect_ratio = 'ASPECT_RATIO'
6869
atleast_6_placements = 'ATLEAST_6_PLACEMENTS'
6970
auction_overlap = 'AUCTION_OVERLAP'
@@ -83,12 +84,14 @@ class RecommendationType:
8384
cash_rewards_opt_in = 'CASH_REWARDS_OPT_IN'
8485
connect_facebook_page_to_instagram = 'CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM'
8586
connect_facebook_page_to_whatsapp = 'CONNECT_FACEBOOK_PAGE_TO_WHATSAPP'
87+
conversion_lead_ads = 'CONVERSION_LEAD_ADS'
8688
cost_goal = 'COST_GOAL'
8789
cost_goal_budget_limited = 'COST_GOAL_BUDGET_LIMITED'
8890
cost_goal_cpa_limited = 'COST_GOAL_CPA_LIMITED'
8991
cost_per_result = 'COST_PER_RESULT'
9092
creation_package_upgrade_to_asc = 'CREATION_PACKAGE_UPGRADE_TO_ASC'
9193
creation_package_upgrade_to_tla = 'CREATION_PACKAGE_UPGRADE_TO_TLA'
94+
creation_package_upgrade_to_tmc = 'CREATION_PACKAGE_UPGRADE_TO_TMC'
9295
creative_badge = 'CREATIVE_BADGE'
9396
creative_diversity = 'CREATIVE_DIVERSITY'
9497
creative_fatigue = 'CREATIVE_FATIGUE'
@@ -98,6 +101,7 @@ class RecommendationType:
98101
creator_ads_pa_conversion = 'CREATOR_ADS_PA_CONVERSION'
99102
cta = 'CTA'
100103
ctx_budget_optimization = 'CTX_BUDGET_OPTIMIZATION'
104+
ctx_guidance = 'CTX_GUIDANCE'
101105
da_advantage_plus_creative_info_labels = 'DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS'
102106
dead_link = 'DEAD_LINK'
103107
dynamic_advantage_campaign_budget = 'DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET'
@@ -110,6 +114,7 @@ class RecommendationType:
110114
high_cost = 'HIGH_COST'
111115
historical_benchmark = 'HISTORICAL_BENCHMARK'
112116
ig_multi_ads = 'IG_MULTI_ADS'
117+
lead_ads_guidance = 'LEAD_ADS_GUIDANCE'
113118
learning_limited = 'LEARNING_LIMITED'
114119
learning_pause_friction = 'LEARNING_PAUSE_FRICTION'
115120
learning_phase_budget_edits = 'LEARNING_PHASE_BUDGET_EDITS'
@@ -143,6 +148,7 @@ class RecommendationType:
143148
spend_limit = 'SPEND_LIMIT'
144149
syd_test_mode = 'SYD_TEST_MODE'
145150
tailored_lead_ad_campaign = 'TAILORED_LEAD_AD_CAMPAIGN'
151+
tailored_messages_campaign = 'TAILORED_MESSAGES_CAMPAIGN'
146152
top_adsets_with_ads_under_cap = 'TOP_ADSETS_WITH_ADS_UNDER_CAP'
147153
top_campaigns_with_ads_under_cap = 'TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP'
148154
two_p_guidance_card_aaa = 'TWO_P_GUIDANCE_CARD_AAA'

0 commit comments

Comments
 (0)