admob

Why do we need adsense to sign up for admob [closed]

雨燕双飞 提交于 2019-12-13 13:45:15
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I want to use admob in an android app I built. I dont have any websites for the app and therefore I can't signup with adsense because they ask for a website url. What options do I have? 回答1: Create a Google site, by going here (having first logged into your Google account): https://sites.google.com/ There's some

AdMob banner ad not showing

∥☆過路亽.° 提交于 2019-12-13 12:25:16
问题 I am using admob in my app, it was working fine but suddenly it stopped showing ads at all. Bellow is my codes i used: mainActivity.xml: <com.google.android.gms.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_alignParentBottom="true" ads:adSize="BANNER" ads:adUnitId="@string/banner_ad_unit_id"> </com.google.android.gms.ads.AdView> MainActivity.java AdView mAdView = (AdView)

Adding Admob to Android App : AdView

萝らか妹 提交于 2019-12-13 12:15:43
问题 I am a hair away (i think) from finally getting ads into my app. but am getting crashes at 1 line. See code: public class ... extends ListActivity { /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); String[] rmenu = getResources().getStringArray(R.array.root_menu); if (rmenu != null) { setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item, rmenu)); } setContentView

Do I need support library v4 for google play services (ads)

≯℡__Kan透↙ 提交于 2019-12-13 06:50:54
问题 I want to use the ads system by google play services (Admob). I know I need to bundle the game services library. But do I need to bundle the support libraryV4 if I am targeting Appi 8 and above? Thank you 回答1: It used to be the case that the support library wasn't necessary, but according to this question the situation has changed with the release of Play Services 6.5. As of Google Play Services 6.5, the play-services-base library (a dependency for all Google Play Services) depends on the

How to use Admob Phonegap plugin with iOS

邮差的信 提交于 2019-12-13 06:18:13
问题 I'm using this Admob plugin for Phonegap running on iOS like this: window.plugins.AdMob.createBanner({"siteId":"my-site-id"}); window.plugins.AdMob.loadBanner(); // move banner to make it appear window.plugins.AdMob.moveBanner({"positionX":0,"positionY":410}); And it's actually working. The problem is that this is causing my app to consume a lot memory, and the app to crush when on a device according to the Apple crash report I got from iTunesConnect. Can you help me in understanding how to

How do I fix AdMob crashing my Android app?

非 Y 不嫁゛ 提交于 2019-12-13 05:52:28
问题 AdMob has been working in my Android app for a while now until recently when I tried to update. I tried to update the app itself but I saw that it kept crashing. I tried debugging what happened. The app seems to work once I removed the ads. I've now published the app without any ads and it works fine. Any reasons why it may have all of a sudden stopped working? I haven't changed any of the code before. The only code I changed were additional tips in my Relationship tips app. 回答1: Make sure

Admob Ads is not showing up

*爱你&永不变心* 提交于 2019-12-13 05:36:46
问题 Okay I made a lot of research before I came here (sorry for my english). My problem is : I made an application and I implement Admob 4.3.1 (my application is developped on Android 3.2 (with eclipse). First time I was having the error "You must have INTERNET and ACCESS_NETWORK_STATE permission, I put them on my AndroidManifest.xml, now all is okay but when I start my application, my ads are not showing up. I hope you can help me soon... thank you very much. Here is my AndroidManifest.xml: <

adMob not working on real device (iPhone)

浪尽此生 提交于 2019-12-13 04:33:57
问题 I tested adMob with iOS simulator. It shows ads at the bottom of the screen. But when I change it to real device the ads not showing. enter image description here AppDelegate.m [GADMobileAds configureWithApplicationID:@"ca-app-pub-7067850045620785~8479598780"]; ViewController.m self.bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeSmartBannerPortrait]; self.bannerView.adUnitID = @"ca-app-pub-7067850045620785/6404933932"; self.bannerView.rootViewController = self; [self.bannerView

AdMob Legacy Publisher ID not showing ads

江枫思渺然 提交于 2019-12-13 04:31:57
问题 My iOS "AdMob Legacy Publisher ID" not showing ads, started yesterday and not getting any ads today. I tried using the new "Ad unit ID" and it works. This sucks because now all my apps in the app store are not showing ads. Error Domain=com.google.ads Code=1 "Request Error: No ad to show." UserInfo=0xa28ff90 {NSLocalizedDescription=Request Error: No ad to show., NSLocalizedFailureReason=Request Error: No ad to show.} Anyone else having this issue? 回答1: I got this response from Google AdMob

android admob size on dimensions error: A 'type' attribute is required for <item>

守給你的承諾、 提交于 2019-12-13 04:27:11
问题 I have a layout and the attribute: ads:adSize="LARGE_BANNER" I want to put it with ads:adSize="@dim... dim name" but it gives me error for example: FULL_BANNER it says something like full banner doesn't exist and it doesn't compile. I tried it now on styles but it doesn't work too: <item name="ads:adSize">LEADERBOARD</item> it says error: A 'type' attribute is required for any idea? 回答1: You can dynamically load the ad's size based on screen resolution, programatically. In your activity's