Skip to content

Commit

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

Reviewed By: liliarizona

Differential Revision: D58591195

fbshipit-source-id: c9b196dccae9cef6abc781579efed2221cb4d02e
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Jun 14, 2024
1 parent 063d440 commit 0a8f347
Show file tree
Hide file tree
Showing 501 changed files with 28,784 additions and 771 deletions.
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostAdSetCreateCpa.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,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.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,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.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
params = {
'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.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
params = {
'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 @@ -34,8 +34,8 @@
params = {
'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.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
params = {
'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.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
fields = [
]
params = {
'filtering': [{'field':'time_created','operator':'GREATER_THAN','value':1711391704}],
'filtering': [{'field':'time_created','operator':'GREATER_THAN','value':1717544918}],
}
print Ad(id).get_leads(
fields=fields,
Expand Down
2 changes: 1 addition & 1 deletion examples/AdsPixelEventsPost.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
fields = [
]
params = {
'data': [{'event_name':'PageView','event_time':1711995835,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}],
'data': [{'event_name':'PageView','event_time':1718149023,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}],
}
print AdsPixel(id).create_event(
fields=fields,
Expand Down
2 changes: 1 addition & 1 deletion facebook_business/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from facebook_business.session import FacebookSession
from facebook_business.api import FacebookAdsApi

__version__ = '19.0.3'
__version__ = '20.0.0'
__all__ = [
'session',
'objects',
Expand Down
3 changes: 3 additions & 0 deletions facebook_business/adobjects/ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Field(AbstractObject.Field):
conversion_specs = 'conversion_specs'
created_time = 'created_time'
creative = 'creative'
creative_asset_groups_spec = 'creative_asset_groups_spec'
demolink_hash = 'demolink_hash'
display_sequence = 'display_sequence'
effective_status = 'effective_status'
Expand Down Expand Up @@ -253,6 +254,7 @@ def api_update(self, fields=None, params=None, batch=None, success=None, failure
'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 Expand Up @@ -710,6 +712,7 @@ def get_targeting_sentence_lines(self, fields=None, params=None, batch=None, suc
'conversion_specs': 'list<ConversionActionQuery>',
'created_time': 'datetime',
'creative': 'AdCreative',
'creative_asset_groups_spec': 'AdCreativeAssetGroupsSpec',
'demolink_hash': 'string',
'display_sequence': 'int',
'effective_status': 'EffectiveStatus',
Expand Down
Loading

0 comments on commit 0a8f347

Please sign in to comment.