Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Using AdMob for iPad and show Ad at bottom
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mikezang  
View profile  
 More options Jan 14 2012, 8:13 am
From: mikezang <mikezang2...@gmail.com>
Date: Sat, 14 Jan 2012 05:13:05 -0800 (PST)
Local: Sat, Jan 14 2012 8:13 am
Subject: Using AdMob for iPad and show Ad at bottom
I modified source to show Ad at the bottom of screen, then use AdMob
to suite iPad screen as below:

// AdWhirlAdapterGoogleAdMobAds.m
// Show AdMob in iPad
- (void)getAd {
     ....

    CGRect frame;
    CGSize bannerSize;

    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
        bannerSize = GAD_SIZE_728x90;
    }
    else {
        bannerSize = GAD_SIZE_320x50;
    }

    frame.size = CGSizeMake(bannerSize.width, bannerSize.height);

    GADBannerView *view = [[GADBannerView alloc] initWithFrame:frame];

    // Set the frame for this view to match the bounds of the parent
adWhirlView.
   //GADBannerView *view = [[GADBannerView alloc]
initWithFrame:adWhirlView.bounds];

    ....

}

// Show Ads at bottom of screen
// YourViewController.m
- (void)adWhirlDidReceiveAd:(AdWhirlView *)adWhirlView {
    [UIView beginAnimations:@"AdWhirlDelegate.adWhirlDidReceiveAd:"
context:nil];

    [UIView setAnimationDuration:0.7];

    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.bounds.size.height - adSize.height;

    adWhirlView.frame = newFrame;

    [UIView commitAnimations];


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
88  
View profile  
 More options May 31 2012, 3:52 am
From: 88 <dmitrijs.lv...@gmail.com>
Date: Thu, 31 May 2012 00:52:48 -0700 (PDT)
Local: Thurs, May 31 2012 3:52 am
Subject: Re: Using AdMob for iPad and show Ad at bottom

Hi, thanks for this, just be careful not to display at the bottom of the
maps, otherwise it would not make it to appstore because of hidden G logo.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »