<s> from facebookads . adobjects . abstractobject import AbstractObject <EOL> from facebookads . adobjects . abstractcrudobject import AbstractCrudObject <EOL> from facebookads . adobjects . objectparser import ObjectParser <EOL> from facebookads . api import FacebookRequest <EOL> from facebookads . typechecker import TypeChecker <EOL> """<STR_LIT>""" <EOL> class AdsDataPartner ( <EOL> AbstractCrudObject , <EOL> ) : <EOL> def __init__ ( self , fbid = None , parent_id = None , api = None ) : <EOL> self . _isAdsDataPartner = True <EOL> super ( AdsDataPartner , self ) . __init__ ( fbid , parent_id , api ) <EOL> class Field ( AbstractObject . Field ) : <EOL> id = '<STR_LIT:id>' <EOL> name = '<STR_LIT:name>' <EOL> rev_share_policies = '<STR_LIT>' <EOL> def api_get ( self , fields = None , params = None , batch = None , pending = False ) : <EOL> self . assure_call ( ) <EOL> param_types = { <EOL> } <EOL> enums = { <EOL> } <EOL> request = FacebookRequest ( <EOL> node_id = self [ '<STR_LIT:id>' ] , <EOL> method = '<STR_LIT:GET>' , <EOL> endpoint = '<STR_LIT:/>' , <EOL> api = self . _api , <EOL> param_checker = TypeChecker ( param_types , enums ) , <EOL> target_class = AdsDataPartner , <EOL> api_type = '<STR_LIT>' , <EOL> response_parser = ObjectParser ( reuse_object = self ) , <EOL> ) <EOL> request . add_params ( params ) <EOL> request . add_fields ( fields ) <EOL> if batch is not None : <EOL> request . add_to_batch ( batch ) <EOL> return request <EOL> return request if pending else request . execute ( ) <EOL> _field_types = { <EOL> '<STR_LIT:id>' : '<STR_LIT:string>' , <EOL> '<STR_LIT:name>' : '<STR_LIT:string>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> @ classmethod <EOL> def _get_field_enum_info ( cls ) : <EOL> field_enum_info = { } <EOL> return field_enum_info </s>
