Partial implementation of ad pricing