APP集成tapjoy积分墙(10)
[alView show];
}
-(void)consumeTJPointsError:(NSNotification*)notifyObj
{
NSLog(@"Tapjoy积分消费失败!");
/*
UIAlertView * alView =[[[UIAlertView alloc] initWithTitle:@"Bad News"
message:[NSString stringWithFormat:@"Your Tapjoy virtual currency fail to change to coins,now still has %d Tapjoy virtual currency!", tapPoints]
delegate:nil
cancelButtonTitle:@"Cancel" otherButtonTitles:nil, nil] autorelease];
[alView show];*/
}
//全屏广告监视函数
-(void)getTJFullScreenAd:(NSNotification*)notifyObj
{
[TapjoyConnect showFullScreenAd];
}
//全屏广告退出函数
-(void)fullScreenAdClosed:(NSNotification*)notifyObj
{
NSLog(@"Fullscreen Ad closed");
}
#pragma mark Tapjoy Display Ads Delegate Methods
- (void)didReceiveAd:(TJCAdView*)adView
{
NSLog(@"Tapjoy Display Ad Received");
if(rootWindow == nil)
{
rootWindow = [[AppDelegate sharedAppDelegate] window];
[rootWindow addSubview:adView];
}
}
- (void)didFailWithMessage:(NSString*)msg
{
NSLog(@"No Tapjoy Display Ads available");
}
- (NSString*)adContentSize
{
return TJC_DISPLAY_AD_SIZE_320X50;
}
- (BOOL)shouldRefreshAd
{
return YES;
}
#pragma mark Tapjoy Video Ad Delegate Methods
- (void)videoAdBegan
{
NSLog(@"Tapjoy Video Ad Began Playing");
}
- (void)videoAdClosed
{
NSLog(@"Tapjoy Video Ad View Closed");
}
- (void)videoAdError:(NSString *)errorMsg
{
NSLog(@"Tapjoy Video Ad Error: %@", errorMsg);
相关新闻>>
- 发表评论
-
- 最新评论 更多>>