Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7898397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:25:19+00:00 2026-06-03T08:25:19+00:00

I have a game showing ads through AdWhirl. Ads are only shown when the

  • 0

I have a game showing ads through AdWhirl.
Ads are only shown when the user is in the menu and are periodically refreshed with:

        [adView requestFreshAd];

My problem is that the refresh and the associated networking will take place when the user is playing (i.e. not when the user is in the menu), which generates lag and is very annoying for a few seconds.

To avoid this, I have prohibited refreshes from being triggered outside of the menu. (basically using a boolean canUpdateAd):

-(void)updateAd{
    if(adView!=nil){
        if(canUpdateiAd){
            NSLog(@"requesting fresh ad");
            [adView requestFreshAd];
            [self performSelector:@selector(updateAd) withObject:nil afterDelay:refreshRate];
        }
        else {
         [self performSelector:@selector(updateAd) withObject:nil afterDelay:4];
        }
    }
}

But even so, refreshes sometimes start while in the menu, just before the user starts a new game. Is there anyway to “pause” or “slow-down” an ad refresh to avoid having lags?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:25:21+00:00Added an answer on June 3, 2026 at 8:25 am

    You can use following link : How to Integrate AdWhirl into a Cocos2D Game

    http://www.raywenderlich.com/5350/how-to-integrate-adwhirl-into-a-cocos2d-game

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Long version: I have an Android game. In each screen I'm showing the ads
I have a game where user controls a character (with his finger) and i
I have 3 screens(xmls): screen 1 is main menu, screen 2 is main game
I have a game with menu - level select - game vc I'd like
I'm writing a Java applet for a small game. When a user doesn't have
I am developing a game in which I have to implement timer for showing
The only way i can describe this is showing the code I have already
i'm making a 15 puzzle (http://en.wikipedia.org/wiki/Fifteen_puzzle) game, and i have an activity for user
I'm developing a game. I want to have game entities each have their own
Update The reason I couldn't update properly was I didn't have game's jar file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.