Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
stcheng authored Aug 23, 2024
2 parents cdeaad3 + f1810f9 commit a4ce876
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 40 deletions.
8 changes: 2 additions & 6 deletions facebook_business/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@
from facebook_business.session import FacebookSession
from facebook_business.api import FacebookAdsApi

__version__ = '20.0.0'
__all__ = [
'session',
'objects',
'api',
]
__version__ = '20.0.1'
__all__ = ['session', 'api']
2 changes: 1 addition & 1 deletion facebook_business/adobjects/adaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -3191,7 +3191,7 @@ def get_ios_fourteen_campaign_limits(self, fields=None, params=None, batch=None,
self.assure_call()
return request.execute()

def create_m_an_age_d_partner_ad(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_managed_partner_ad(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
8 changes: 4 additions & 4 deletions facebook_business/adobjects/adspixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def create_shadow_traffic_helper(self, fields=None, params=None, batch=None, suc
self.assure_call()
return request.execute()

def delete_share_d_accounts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def delete_shared_accounts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -608,7 +608,7 @@ def delete_share_d_accounts(self, fields=None, params=None, batch=None, success=
self.assure_call()
return request.execute()

def get_share_d_accounts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_shared_accounts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -640,7 +640,7 @@ def get_share_d_accounts(self, fields=None, params=None, batch=None, success=Non
self.assure_call()
return request.execute()

def create_share_d_account(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_shared_account(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -672,7 +672,7 @@ def create_share_d_account(self, fields=None, params=None, batch=None, success=N
self.assure_call()
return request.execute()

def get_share_d_agencies(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_shared_agencies(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
2 changes: 1 addition & 1 deletion facebook_business/adobjects/advideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def create_comment(self, fields=None, params=None, batch=None, success=None, fai
self.assure_call()
return request.execute()

def get_crosspost_share_d_pages(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_crosspost_shared_pages(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
14 changes: 7 additions & 7 deletions facebook_business/adobjects/business.py
Original file line number Diff line number Diff line change
Expand Up @@ -2719,7 +2719,7 @@ def get_instagram_business_accounts(self, fields=None, params=None, batch=None,
self.assure_call()
return request.execute()

def delete_m_an_age_d_businesses(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def delete_managed_businesses(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -2750,7 +2750,7 @@ def delete_m_an_age_d_businesses(self, fields=None, params=None, batch=None, suc
self.assure_call()
return request.execute()

def create_m_an_age_d_business(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_managed_business(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -2792,7 +2792,7 @@ def create_m_an_age_d_business(self, fields=None, params=None, batch=None, succe
self.assure_call()
return request.execute()

def create_m_an_age_d_partner_business_setup(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_managed_partner_business_setup(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -2829,7 +2829,7 @@ def create_m_an_age_d_partner_business_setup(self, fields=None, params=None, bat
self.assure_call()
return request.execute()

def delete_m_an_age_d_partner_businesses(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def delete_managed_partner_businesses(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -2861,7 +2861,7 @@ def delete_m_an_age_d_partner_businesses(self, fields=None, params=None, batch=N
self.assure_call()
return request.execute()

def create_m_an_age_d_partner_business(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_managed_partner_business(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -4281,7 +4281,7 @@ def get_pending_owned_pages(self, fields=None, params=None, batch=None, success=
self.assure_call()
return request.execute()

def get_pending_share_d_offsite_signal_container_business_objects(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_pending_shared_offsite_signal_container_business_objects(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -4541,7 +4541,7 @@ def get_self_certified_whatsapp_business_submissions(self, fields=None, params=N
self.assure_call()
return request.execute()

def create_setup_m_an_age_d_partner_ad_account(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_setup_managed_partner_ad_account(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
4 changes: 2 additions & 2 deletions facebook_business/adobjects/commercemerchantsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def get_commerce_transactions(self, fields=None, params=None, batch=None, succes
self.assure_call()
return request.execute()

def get_order_m_an_age_m_ent_apps(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_order_management_apps(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -239,7 +239,7 @@ def get_order_m_an_age_m_ent_apps(self, fields=None, params=None, batch=None, su
self.assure_call()
return request.execute()

def create_order_m_an_age_m_ent_app(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_order_management_app(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
2 changes: 1 addition & 1 deletion facebook_business/adobjects/customaudience.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def get_sessions(self, fields=None, params=None, batch=None, success=None, failu
self.assure_call()
return request.execute()

def get_share_d_account_info(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_shared_account_info(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
4 changes: 2 additions & 2 deletions facebook_business/adobjects/eventsourcegroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def api_update(self, fields=None, params=None, batch=None, success=None, failure
self.assure_call()
return request.execute()

def get_share_d_accounts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_shared_accounts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -136,7 +136,7 @@ def get_share_d_accounts(self, fields=None, params=None, batch=None, success=Non
self.assure_call()
return request.execute()

def create_share_d_account(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_shared_account(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
2 changes: 1 addition & 1 deletion facebook_business/adobjects/extendedcredit.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def create_owning_credit_allocation_config(self, fields=None, params=None, batch
self.assure_call()
return request.execute()

def create_whats_app_credit_sharing_an_d_attach(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_whats_app_credit_sharing_and_attach(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
4 changes: 2 additions & 2 deletions facebook_business/adobjects/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def api_update(self, fields=None, params=None, batch=None, success=None, failure
self.assure_call()
return request.execute()

def delete_ad_m_ins(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def delete_admins(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -234,7 +234,7 @@ def delete_ad_m_ins(self, fields=None, params=None, batch=None, success=None, fa
self.assure_call()
return request.execute()

def create_ad_m_in(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_admin(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
2 changes: 1 addition & 1 deletion facebook_business/adobjects/livevideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def get_comments(self, fields=None, params=None, batch=None, success=None, failu
self.assure_call()
return request.execute()

def get_crosspost_share_d_pages(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_crosspost_shared_pages(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
4 changes: 2 additions & 2 deletions facebook_business/adobjects/offlineconversiondataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def get_server_events_permitted_business(self, fields=None, params=None, batch=N
self.assure_call()
return request.execute()

def get_share_d_accounts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_shared_accounts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -284,7 +284,7 @@ def get_share_d_accounts(self, fields=None, params=None, batch=None, success=Non
self.assure_call()
return request.execute()

def get_share_d_agencies(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_shared_agencies(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
8 changes: 4 additions & 4 deletions facebook_business/adobjects/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -2887,7 +2887,7 @@ def create_media_fingerprint(self, fields=None, params=None, batch=None, success
self.assure_call()
return request.execute()

def create_message_attach_m_ent(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_message_attachment(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -3060,7 +3060,7 @@ def create_messenger_call_setting(self, fields=None, params=None, batch=None, su
self.assure_call()
return request.execute()

def get_messenger_lead_for_ms(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_messenger_lead_forms(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -3091,7 +3091,7 @@ def get_messenger_lead_for_ms(self, fields=None, params=None, batch=None, succes
self.assure_call()
return request.execute()

def create_messenger_lead_for_m(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def create_messenger_lead_form(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -4092,7 +4092,7 @@ def get_rtb_dynamic_posts(self, fields=None, params=None, batch=None, success=No
self.assure_call()
return request.execute()

def get_schedule_d_posts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_scheduled_posts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
4 changes: 2 additions & 2 deletions facebook_business/adobjects/pagepost.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def api_update(self, fields=None, params=None, batch=None, success=None, failure
self.assure_call()
return request.execute()

def get_attach_m_ents(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_attachments(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down Expand Up @@ -541,7 +541,7 @@ def get_reactions(self, fields=None, params=None, batch=None, success=None, fail
self.assure_call()
return request.execute()

def get_share_d_posts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
def get_shared_posts(self, fields=None, params=None, batch=None, success=None, failure=None, pending=False):
from facebook_business.utils import api_utils
if batch is None and (success is not None or failure is not None):
api_utils.warning('`success` and `failure` callback only work for batch call.')
Expand Down
Loading

0 comments on commit a4ce876

Please sign in to comment.