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 9083537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:47:52+00:00 2026-06-16T20:47:52+00:00

I have setup a testing application with an Ad Banner. The ad banner is

  • 0

I have setup a testing application with an Ad Banner. The ad banner is setup using AdWhirl where I use iAd and AdMob.

The application works fine and runs without errors. I am now looking to setup iAd only for the specific countries it is available within.

Within the iAd documentation it states

iAd Network recently launched in Canada. Ads are now available in apps in the U.S., Canada, U.K., Germany, Italy, Spain, France, and Japan App Stores. Be sure to configure your apps to serve ads in only these countries.

How can I configure the app to only show the iAds to users in these countries using adWhirl? I guess the first point would be to determine which ad network is serving the Ad at the time is this possible? Here is my view controller h and m if of any use, but it simply one banner at the moment for testing.

Also can this be tested that this actually works correctly? Can you change the phone simulator to act as if it where from another country?

#import <UIKit/UIKit.h>


@interface AdTestViewController : UIViewController <AdWhirlDelegate> {
    AdWhirlView *adView;
}

@property (strong, nonatomic) UIWindow *window;
@property (nonatomic,retain) AdWhirlView *adView;

@end

imp file

#import "AdTestViewController.h"
#import "Constants.h"
#import "AdTestAppDelegate.h"
#import "AdWhirlView.h"

@interface AdTestViewController ()

@end

@implementation AdTestViewController

@synthesize adView;

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.adView = [AdWhirlView requestAdWhirlViewWithDelegate:self];
    self.adView.autoresizingMask =
    UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
    [self.adView setDelegate:self];
    [self.view addSubview:self.adView];
    NSLog(@"Ad View Added");
}

#pragma mark - Delegate Methods
- (NSString *)adWhirlApplicationKey {
    NSLog(@"adWhrilApplicationKey");
    return kSampleAppKey;
}

- (UIViewController *)viewControllerForPresentingModalView {
    NSLog(@"viewControllerForPresentingModalView");
    return self;

}

- (void)adWhirlDidReceiveAd:(AdWhirlView *)adWhirlView {
    NSLog(@"adWhrilDidReceiveAd");
    // Used to animate the ad from the top to bottom 
    //[UIView beginAnimations:@"AdWhirlDelegate.adWhirlDidReceiveAd:" context:nil];
    //[UIView setAnimationDuration:0];

    CGSize adSize = [adWhirlView actualAdSize];
    CGRect newFrame = adWhirlView.frame;
    newFrame.size = adSize;
    newFrame.origin.x = (self.view.bounds.size.width - adSize.width)/ 2;
    newFrame.origin.y=  self.view.frame.size.height - adSize.height;
    adWhirlView.frame = newFrame;

    [UIView commitAnimations];
}

-(void)adWhirlDidFailToReceiveAd:(AdWhirlView *)adWhirlView usingBackup:(BOOL)yesOrNo {

}

@end

AdWhril Settings
enter image description here

  • 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-16T20:47:53+00:00Added an answer on June 16, 2026 at 8:47 pm

    adWhirl is deprecated, and mediation feature is available in last adMob SDK now.
    Using it, you can switch percent of ads by ad providers to show in different countries.
    Check out documentation on adMob site.

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

Sidebar

Related Questions

I have setup a test application using Admob Mediation service. The application functions fine,
I have a testing setup which runs an Application on OS X with a
I have an rails application setup on a linux server which works fine and
I am running a sinatra app and have a testing suite setup using rspec
In a development/testing setup for a web application, when using a dvcs (bzr, git)
I'm testing a ClickOnce application deployment. I have setup a virtual directory on my
I've been using MVP pattern in my application. But I have problems with testing
I have a WCF application that normally runs in IIS (for my testing and
I'm trying to setup rspec for testing in my rails application. I have created
I have setup svnserve and for now now I am testing a repository with

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.