Exemplary implementation of an encapsulated JSON based ad vendor library