<s> from facebookads . adobjects . adaccount import AdAccount <EOL> from facebookads . adobjects . adaccountgroup import AdAccountGroup <EOL> from facebookads . adobjects . page import Page <EOL> from facebookads . adobjects . objectparser import ObjectParser <EOL> from facebookads . api import FacebookRequest <EOL> from facebookads . typechecker import TypeChecker <EOL> class AdAccountUserMixin : <EOL> class Field ( object ) : <EOL> id = '<STR_LIT:id>' <EOL> name = '<STR_LIT:name>' <EOL> permissions = '<STR_LIT>' <EOL> role = '<STR_LIT>' <EOL> class Permission ( object ) : <EOL> account_admin = <NUM_LIT:1> <EOL> admanager_read = <NUM_LIT:2> <EOL> admanager_write = <NUM_LIT:3> <EOL> billing_read = <NUM_LIT:4> <EOL> billing_write = <NUM_LIT:5> <EOL> reports = <NUM_LIT:7> <EOL> class Role ( object ) : <EOL> administrator = <NUM_LIT> <EOL> analyst = <NUM_LIT> <EOL> manager = <NUM_LIT> <EOL> @ classmethod <EOL> def get_endpoint ( cls ) : <EOL> return '<STR_LIT>' <EOL> def get_ad_accounts ( self , fields = None , params = None ) : <EOL> """<STR_LIT>""" <EOL> return self . iterate_edge ( AdAccount , fields , params , endpoint = '<STR_LIT>' ) <EOL> def get_ad_account ( self , fields = None , params = None ) : <EOL> """<STR_LIT>""" <EOL> return self . edge_object ( AdAccount , fields , params ) <EOL> def get_pages ( self , fields = None , params = None ) : <EOL> """<STR_LIT>""" <EOL> return self . iterate_edge ( Page , fields , params ) <EOL> def get_ad_account_groups ( self , fields = None , params = None ) : <EOL> """<STR_LIT>""" <EOL> return self . iterate_edge ( AdAccountGroup , fields , params ) <EOL> def create_ad_account_group ( self , fields = None , params = None , batch = None , pending = False ) : <EOL> param_types = { <EOL> } <EOL> enums = { <EOL> } <EOL> param_checker = TypeChecker ( param_types , enums ) <EOL> request = FacebookRequest ( <EOL> api = self . _api , <EOL> node_id = self [ '<STR_LIT:id>' ] , <EOL> method = '<STR_LIT:POST>' , <EOL> endpoint = '<STR_LIT>' , <EOL> param_checker = param_checker , <EOL> target_class = AdAccountGroup , <EOL> api_type = '<STR_LIT>' , <EOL> allow_file_upload = False , <EOL> response_parser = ObjectParser ( <EOL> target_class = AdAccountGroup , <EOL> ) , <EOL> ) <EOL> if params is not None : <EOL> request . add_params ( params ) <EOL> if fields is not None : <EOL> request . add_fields ( fields ) <EOL> if batch is not None : <EOL> request . add_to_batch ( batch ) <EOL> return request <EOL> elif pending : <EOL> return request <EOL> else : <EOL> return request . execute ( ) </s>
