Our custom C# plugin is for Publishers who are not using one of the supported CMS systems like WordPress and Drupal, but use .NET on their website. The plugin consists of several files, described below:
An initializing class which, when compiled, can be executed via a cron job. Again, it should not be triggered by any website activitiy, but executed every hour. Inside, it simply runs the code updater and then outputs to the console the successful update of the codebase and a sample of how the code should be included in your web pages.
Here you have to replace the following Yavli credentials for your website – website_id and api_key.
The cron invocation class itself. If calling this script directly, you need to declare the website_id and api_key like above.
This is our actual API implementation. You don’t need to modify anything to this class.
A simple integration example of our API. As you can see, the only thing you have to do is instantiate the API(var yr = new YavliResilience_Api();) and output the returned contents of the yr.get_ad_server_code() function as close to the closing </body> tag as possible. This is the only invocation of Yavli’s API that you have to execute from inside your web pages. The CronInvoker or the main Program(if compiled) should be executed from a cron job.
Download link: YavliResilience_ApiCS.