This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function convertObjectKeyToArray(obj,key) { | |
if( obj.hasOwnProperty(key) ) { | |
if( obj[key].constructor == Object ) { | |
new_array = []; | |
for ( objkey in obj[key] ) { | |
new_array.push(obj[key][objkey]); | |
} | |
obj[key] = new_array; | |
} else if(obj[key].constructor != Array ) { | |
print("{" + obj._id + "} has type " + typeof obj[key]+ " for key: " + key ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status":200, | |
"message":"More apps returned.", | |
"data": | |
[ | |
{ | |
"url":"http:\/\/www.chartboost.com\/api\/click.json?to=5127f12c17ba47913100001c&uuid=xxxx1234xxxx1234&url=&cgn=-377bcd5879f8dce68aa96f6be946def8305d3ae7--default-&more_type=app&type=more&model=&country=US&os=&signature=5ed3ce71e0212b5d37a4dc853aaca310&app=5124171817ba47fb09000065", | |
"click_metadata": | |
{ | |
"to":"5127f12c17ba47913100001c", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)didFailToLoadInterstitial:(NSString *)location { | |
NSLog(@"failure to load interstitial at location %@", location); | |
[[Chartboost sharedChartboost] cacheInterstitial]; | |
[NSTimer scheduledTimerWithTimeInterval:30 | |
target:[Chartboost sharedChartboost] | |
selector:@selector(showInterstitial) | |
userInfo:nil | |
repeats:NO]; | |
} |