This is modifying the global YOUTUBE_API settings object.  That doesn't seem like what you want to do.