Skip to content

Migrating from AdWhirl

Manny edited this page Oct 6, 2013 · 2 revisions

On iOS you can migrate from AdWhirl to AdFlake in a minute by changing only a few lines of code and updating your SDK key to an AdFlake SDK key.

Create your account and register your app on AdFlake.com and update your AdWhirl SDK key to an AdFlake SDK key.

Updating your AdWhirlView delegate

Simply copy and paste the following code into your AdWhirlView's delegate implementation:

- (NSURL *)adWhirlConfigURL
{
	return [NSURL URLWithString:@"http://api.adflake.com/get"];
}

- (NSURL *)adWhirlImpMetricURL
{
	return [NSURL URLWithString:@"http://metrics.adflake.com/impression"];
}

- (NSURL *)adWhirlClickMetricURL
{
	return [NSURL URLWithString:@"http://metrics.adflake.com/click"];
}

- (NSURL *)adWhirlCustomAdURL
{
	return [NSURL URLWithString:@"http://api.adflake.com/custom"];
}

You are good to go. Fire up your app and you should be receiving ads from AdFlake.com!

Migrating from AdWhirl to AdFlake on Android

Unfortunately the AdWhirl SDK on Android does not provide mechanisms to change the server endpoints. But swapping out a jar can be done in a minute, too :)