<s> """<STR_LIT>""" <EOL> import sys <EOL> import os <EOL> sdk_path = os . path . abspath ( os . path . join ( __file__ , os . pardir , os . pardir ) ) <EOL> sys . path . insert ( <NUM_LIT:1> , sdk_path ) <EOL> from facebookads . objects import * <EOL> config_filename = os . path . join ( sdk_path , '<STR_LIT>' ) <EOL> config_file = open ( config_filename ) <EOL> config = json . load ( config_file ) <EOL> config_file . close ( ) <EOL> session = FacebookSession ( <EOL> config [ '<STR_LIT>' ] , <EOL> config [ '<STR_LIT>' ] , <EOL> config [ '<STR_LIT>' ] , <EOL> ) <EOL> FacebookAdsApi . set_default_api ( FacebookAdsApi ( session ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> video = AdVideo ( parent_id = config [ '<STR_LIT>' ] ) <EOL> video_path = os . path . join ( <EOL> os . path . dirname ( __file__ ) , <EOL> os . pardir , <EOL> '<STR_LIT>' <EOL> ) <EOL> video [ AdVideo . Field . filepath ] = video_path <EOL> video . remote_create ( ) <EOL> video . waitUntilEncodingReady ( ) <EOL> print ( video ) </s>
