Search Results

Search found 78 results on 4 pages for 'admob'.

Page 1/4 | 1 2 3 4  | Next Page >

  • Admob banner not getting remove from superview

    - by Anil gupta
    I am developing one 2d game using cocos2d framework, in this game i am using admob for advertising, in some classes not in all classes but admob banner is visible in every class and after some time game getting crash also. I am not getting how admob banner is comes in every class in fact i have not declare in Rootviewcontroller class. can any one suggest me how to integrate Admob in cocos2d game, i want Admob banner in particular classes not in every class, I am using latest google admob sdk, my code is below: Thanks in advance ` -(void)AdMob{ NSLog(@"ADMOB"); CGSize winSize = [[CCDirector sharedDirector]winSize]; // Create a view of the standard size at the bottom of the screen. if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){ bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(size.width/2-364, size.height - GAD_SIZE_728x90.height, GAD_SIZE_728x90.width, GAD_SIZE_728x90.height)]; } else { // It's an iPhone bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(size.width/2-160, size.height - GAD_SIZE_320x50.height, GAD_SIZE_320x50.width, GAD_SIZE_320x50.height)]; } if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { bannerView_.adUnitID =@"a15062384653c9e"; } else { bannerView_.adUnitID =@"a15062392a0aa0a"; } bannerView_.rootViewController = self; [[[CCDirector sharedDirector]openGLView]addSubview:bannerView_]; [bannerView_ loadRequest:[GADRequest request]]; GADRequest *request = [[GADRequest alloc] init]; request.testing = [NSArray arrayWithObjects: GAD_SIMULATOR_ID, nil]; // Simulator [bannerView_ loadRequest:request]; } //best practice for removing the barnnerView_ -(void)removeSubviews{ NSArray* subviews = [[CCDirector sharedDirector]openGLView].subviews; for (id SUB in subviews){ [(UIView*)SUB removeFromSuperview]; [SUB release]; } NSLog(@"remove from view"); } //this makes the refreshTimer count -(void)targetMethod:(NSTimer *)theTimer{ //INCREASE OF THE TIMER AND SECONDS elapsedTime++; seconds++; //INCREASE OF THE MINUTOS EACH 60 SECONDS if (seconds>=60) { seconds=0; minutes++; [self removeSubviews]; [self AdMob]; } NSLog(@"TIME: %02d:%02d", minutes, seconds); } `

    Read the article

  • Can a ViewController (AdMob AdViewController) control a view that is a subview of the controlled vie

    - by RexOnRoids
    I am trying to use the IB AdMob ad in my app. I followed the instructions provided but I am getting an EXC_BAD_ACCESS from the AdMob class. I am trying to figure out what the problem is. Anyway, my question is Can a ViewController (AdMob AdViewController) control a view that is a subview of the controlled view of another UIViewController? Here is how I set it up: I start off with a UIViewController in IB. Step 1) I add a UIView sized 320 x 48 to the UIView controlled by the UIViewController. Step 2) I add an Object to the hierarchy (not under any other object). Step 3) I set the class of the Object to AdViewController (AdViewController.h of AdMob SDK) Step 4) I set connect the view outlet of the Object to the UIView of Step 1

    Read the article

  • AdMob SDK for iPad?

    - by pix0r
    Trying to get my Universal app released and I rely on AdMob ads for revenue in this particular app. I'm having an issue getting AdMob support working, though I keep finding references to people actually running AdMob on their iPad Simulators. Terminating app due to uncaught exception 'AdMobInvalidLibaryVersionException', reason: 'This version of AdMob SDK is incompatible with the iPhone 3.2 SDK or above. Make sure your Active SDK is set to 3.1.X . If you need to build with 3.2, use the 3.2 preview library.' I have not been able to find this "3.2 preview library" anywhere. Any ideas?

    Read the article

  • AdMob Android integration - what permissions to ask for?

    - by AngryHacker
    In the various videos on the AdMob integration, I've seen that only permission to access the internet is asked for: <uses-permission android:name="android.permission.INTERNET" /> Not that I am an expert in advertising, but wouldn't AdMob need the user's geographic location as well, so that they can serve location specific ads? Or avoid serving certain ads based on a location, like maybe not offering me a Big Mac if I am in India or not adverting a ham sandwich if I am in an Arab country? If AdMob needs those permissions, how do I ask for them?

    Read the article

  • Admob integration for blackberry

    - by tek3
    I am developing an application which requires Admob integration.I have googled much about it but could not find any help about it except for one question in blackberry forums and that too with no answers to it. If anyone has been successful in integrating Admob with blackberry , then please help me also in doing this.. Thanx

    Read the article

  • admob orientation problem in android

    - by Aswan
    Hi folks my application integrated with admob ads.when i change the orientation it should fit the screen depends on orientation.portrait mode it is working fine when i changed to landscape mode what ad size i am getting in portrait mode same size of ad displayed in landscape mode the following i am adding in layout page <com.admob.android.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" myapp:backgroundColor="#000000" myapp:primaryTextColor="#FFFFFF" myapp:secondaryTextColor="#CCCCCC" />

    Read the article

  • Android Admob is not Showing Up

    - by Brandon
    Admob is not showing up on my emulator or on the device it self. I tried with testing mode on and off. Relevant Manifest data: permissions: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" /> meta data: <meta-data android:value="true" android:name="AD_REQUEST" /> The x's are actually my ID. My whole main.xml: <com.admob.android.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" android:visibility="visible" android:layout_alignParentTop="true"/> Hopefully I can get this solved soon...

    Read the article

  • adding admob widget

    - by zaid
    i cant seem to figure out how to add the admob widget into my application. i want to add the widget to a linearlayout that is the child of a relative layout. the linerlayout was created just for the ad. and have it update/refresh the ad each time a button is pressed. i have already imported the JAR,edited my manifest to include the permissions and publisher id. but i cant seem to exactly figure out how to add integrate the admob code.

    Read the article

  • Admob in xml not showing in Linear

    - by NoobMe
    i am implementing admob on my app it appears when the parent is in relative layout but i must not use the alignparentbottom so i am changing it to linear but it doesnt show when i change it to linear.. any tips? help? thanks in advance here it is in xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <RelativeLayout android:id="@+id/banner_holder" android:layout_width="match_parent" android:layout_height="wrap_content" > <ImageView android:id="@+id/offline_banner" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" android:background="@color/black" android:src="@drawable/offline_banner" /> <com.google.ads.AdView xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" ads:adSize="SMART_BANNER" ads:adUnitId="@string/unit_id" ads:loadAdOnCreate="true" /> </RelativeLayout> <FrameLayout android:id="@+id/fragmentContainer" android:layout_width="match_parent" android:layout_height="wrap_content" /> </LinearLayout> i want the admob to be at the bottom part of the screen without using the alignparentbottom of relative layout thanks~

    Read the article

  • AdMob and UINavigationControllers

    - by Ward
    I'm playing around with AdMob and I"m trying to get something going with an auto-rotating view inside a uinavigationcontroller. I have the ad at the top of the screen. Not sure if this is the right approach, but in my LoadView method I have: self.navigationController.view.frame = CGRectMake(0,48,320,432); The navbar appears below the ad. When I rotate the phone to landscape is there a way to get the navbar (which is now across the top) to be 432px wide so it doesn't get cut off under the ad? I tried writing a method that is called when the device orientation changes, but it seems like manipulating the view on the navigationcontroller screws things up for every orientation except portrait. The view keeps getting shorter until it disappears. Thanks, Howie

    Read the article

  • iPhone + AdMob + remove the Ad view

    - by pratik
    Hello, I have integrated AdMob in my iPhone application. I am adding an Ad view in of my UIViewController as follows: ProgrammaticAdViewController *temp = [[ProgrammaticAdViewController alloc] init]; temp = [[ProgrammaticAdViewController alloc] initWithNibName:nil bundle:nil]; [self.view addSubview:temp.view]; So, I will be able to see an Ad view on top of my UIViewController. Now I have two problems: I am not able to tap on certain buttons of my UIViewController on which I have added the Ad View. So, for temporary purpose I adding the Ad view as: [self.view insertSubView:temp.view atIndex:1]; I want to remove the Ad view after sometime so I am using: [temp.view removeFromSuperView]; But my Ad view is not being removed. Please help me. Regards, Pratik

    Read the article

  • Admob ads will not display when placed inside a tabview

    - by smith324
    I've been trying to get my ads to display in this type of layout. Tabs - LinearLayout - ListView - header. The header is set via addHeaderView and is displaying normally. If I were to move the ads anywhere else they display normally (so its not a setup issue). Using ads in the header of a listview works fine in my other projects. So this seems to be a very specific problem, the ads simply refuse to display when placed in the header of a listview inside a tabhost. My logs show no activity from admob at all. There is either a bug here or limitation of the sdk. Does anyone have any experience or insight into this issue? EDIT I found the solution. It actually had to do with padding that was in the root of my Tabview. For more checkout my answer here

    Read the article

  • AdMob ad is showing in iOS simulator, but not on iDevice

    - by Ben Toscano
    As the heading states, I can get my AdMob Ad to show in the iOS 5.1 and 6.0 simulator just fine, however, when running my application on my iOS 5.1.1 or 6.0 devices, there is just a blank space where the ad should be served. The code in my .m file is as follows: bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(0.0, 411.0 - GAD_SIZE_320x50.height, GAD_SIZE_320x50.width, GAD_SIZE_320x50.height)]; bannerView_.adUnitID = @"**myID**"; bannerView_.rootViewController = self; [self.view addSubview:bannerView_]; [bannerView_ loadRequest:[GADRequest request]]; //GADRequest *r = [[GADRequest alloc] init]; //r.testing = YES; //[bannerView_ loadRequest:r]; Furthermore, if I initiate testing of ads (see commented-out section), the test ad shows on both the simulator AND my iDevices, which is baffling me! What am I missing? Thanks for your help.

    Read the article

  • Cannot get admob working: configChanges error

    - by Jack Commonw
    I know there are some topics about it, but the reason I start this one is I appear not to be able to solve it with solutions given. I want to add admob to my project. I downloaded GoogleAdMobAdsSdk-6.2.1 and added it to my project. When I startup it says You must have AdActivity declared in AndroidManifest with configChanges. So solution found, set it to: android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" and <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="15" /> Clean it, try again. But now I get an error saying following although my targetSdkVersion is set to be min 12, I really don't know why I am still getting this error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation| screenLayout|uiMode|screenSize|smallestScreenSize') Any ideas on this? There might be another setting wrong which I looked over?

    Read the article

  • Iphone Admob Interstitials

    - by beryllium
    Hi there! Can you please tell how to be properly displayed interstitial ads in iphone applications. I implemented this is exactly the same way as in Interstitials example (SDK Admob), but this always showing videos with zombies - so it should be, really? If I understand correctly, I should specify my own video url and it will be advertising? Perhaps, in addition, there is a way to not display video, but instead one large banner with advertising on the whole page? Thanks.

    Read the article

  • Android admob questions

    - by semajhan
    Nothing about how to implement ads via admob into an application or anything. I'm just new to ads and it's pretty confusing to get a good grasp on how it works. I've been wanting to put out an app with ads in it but have been reading you need to initially pay at least $50 to get started? I thought it was free to ad whatever ads to display on YOUR app. Or is the $ for adding your own advertising on OTHER people's apps? I'm so confused. Someone please enlighten me, thanks!

    Read the article

  • Admob in iPhone with Tabbar and TableView

    - by satyam
    I'm having tab bar with 5 buttons. Out of 5 tabs, 2 are table views which uses navigation controller for showing sub views on click of cell. Above the tab bar, in each view I left some space for ads using "Admob". I'm adding ads using IB. But its giving EXC_BAD_ACCESS when its reaching "adMobAd = [AdMobView requestAdWithDelegate:self];" in AdViewController.m I'm using following lines of code to add views to tab bar view. In my code, I just added ads to LatestNews only. Can some one help me out of this problem. UINavigationController *localNavigationController; // create tab bar controller and array to hold the view controllers tabBarController = [[UITabBarController alloc] init]; NSMutableArray *localControllersArray = [[NSMutableArray alloc] initWithCapacity:5]; // setup the first view controller (Root view controller) LatestNews* latestNewsController; latestNewsController = [[LatestNews alloc] initWithTabBar]; // create the nav controller and add the root view controller as its first view localNavigationController = [[UINavigationController alloc] initWithRootViewController:latestNewsController]; // add the new nav controller (with the root view controller inside it) // to the array of controllers [localControllersArray addObject:localNavigationController]; // release since we are done with this for now [localNavigationController release]; [latestNewsController release]; // setup the second view controller just like the first Forums* forumsController; forumsController = [[Forums alloc] initWithTabBar]; localNavigationController = [[UINavigationController alloc] initWithRootViewController:forumsController]; [localControllersArray addObject:localNavigationController]; [localNavigationController release]; [forumsController release]; RecipeList* recipesController = [[RecipeList alloc] initWithTabBar]; localNavigationController = [[UINavigationController alloc] initWithRootViewController:recipesController]; [localControllersArray addObject:localNavigationController]; [localNavigationController release]; [recipesController release]; //Setup Connect view Connect* cnt = [[Connect alloc] initWithTabBar]; [localControllersArray addObject:cnt]; [cnt release]; //Setup Subscribe View Subscribe* scribe = [[Subscribe alloc] initWithTabBar]; [localControllersArray addObject:scribe]; [scribe release]; // load up our tab bar controller with the view controllers tabBarController.viewControllers = localControllersArray; [localControllersArray release]; [window addSubview:tabBarController.view]; [window makeKeyAndVisible];

    Read the article

  • Upgraded to new Google Admob, now cannot resubmit Google Adsense application

    - by GPS
    I tried to apply for a google adsense account some time ago, but it was rejected due to some policy issues. Then I started using Legacy Admob account for the same email id. It was working fine. But now Google has deprecated the Legacy Admob so I upgraded to the new Google Admob. But now I want to resubmit my application for Adsense but whenever I go to the link https://www.google.com/adsense/ it takes to my homepage, where it shows older message that My account was not approved. It does not show the option to resubmit the application. Second way it shows to go to My Ads tab and then Under “Add AdSense for content", click Apply now. Complete the AdSense application form, then click Submit my application." But I cannot see Submit My Application or Add Adsense for content option in my My Ads Tab. Please can anybody tell me what should I do? Thanks.

    Read the article

  • GDD-BR 2010 [2H] Earn Money from your Mobile App with AdMob

    GDD-BR 2010 [2H] Earn Money from your Mobile App with AdMob Speakers: Peter Fernandez Track: Google APIs Time slot: H [17:20 - 18:05] Room: 2 Level: 101 We'll show you different strategies for monetizing your app with AdMob ads and help you figure out how much you can earn. We'll also share enlightening data on the growth of the Android, iPhone and iPad platforms. From: GoogleDevelopers Views: 0 0 ratings Time: 20:43 More in Science & Technology

    Read the article

  • Le trafic internet d'Android dépasse celui de l'iPhone aux Etats-Unis d'après AdMob, une première

    Mise à jour du 28/04/10 NB : Les commentaires sur cette mise à jour commencent ici dans le topic Le trafic internet d'Android dépasse celui de l'iPhone Aux Etats-Unis d'après AdMob, une première Les plus suspicieux diront qu'AdMob, société de mesure d'audience Internet, est très liée à Google. Quoi qu'il en soit, d'après ses chiffres, le trafic web généré par l'OS de Google a pour la première fois dépassé celui de l'iPhone aux États-Unis. [IMG]http://ftp-develo...

    Read the article

  • AdMob ads on Android app are not rotating / refreshing

    - by Ben Mc
    Has anyone else had this problem? I have a game, and the Ads show at the top of the phone above my game view. When I'm tapping away on the game, the ads just stay the same. BUT, if I don't touch anything and wait the 15 seconds, as is set in my Interval, THEN the ad changes (usually). I don't get any error reports. There's nothing to indicate that this shouldn't be working just fine, but I have no idea why my ads aren't refreshing or rotating while I'm interacting with the other View in my application. Any direction or thoughts would be helpful, thank you!

    Read the article

  • Admob Android help!

    - by zaid
    can someone give me an example code of how to use public void requestFreshAd() so when a button is pressed a new ad is displayed. and/or how to use getRequestInterval setRequestInterval so i can set it to refresh the ad each 5-10 sec.

    Read the article

1 2 3 4  | Next Page >