how to display ads at the bottom

Ok, some questions…

  1. Does the y position of the ad need to be display.contentHeight plus 10,000 ?
  2. Should the code above work as is?
  3. You mentioned the problem was for landscape apps - is there a similar issue with portrait, as that is where I’m seeing a problem?
  4. Do I need to update to XCode latest and/or Yosemite?
  5. Which daily build did the fix go into (aka, is it available yet?)
  6. I’m using inneractive, which does not appear to have a load() function: http://docs.coronalabs.com/daily/plugin/ads-inneractive/index.html Am I doing something wrong?
  7. Do ads need to be preloaded before they can be shown?

This is all very odd because I was seeing ads recently, while using daily 2467 I think (not sure), but now they are gone again, in build 2468.

Thanks,

Matt

1.  No, it just needs to be off screen

2.  Yes.  It was working yesterday morning.  Of course you have to have AdMob setup properly.  I see I left my values in there.  Since you’re not building with my bundle ID you probably won’t get ads if you used those AdMob values.

  1. I didn’t try portrait, but my understanding it was impacting landscape apps only.

  2. No

  3. The fix was in the AdMob plugin, so it should be available to everyone.

  4. This is likely your problem.  This is an AdMob and iAds hack.  I don’t know if other Ad providers will use this.  The problem with AdMob and iAds is variable height ads making it difficult to position things at the bottom.  If you’re using inneractive, their ads should be a predictable fixed height and you shouldn’t need this trick.

  5. No, but for AdMob interstitials, they can take a while to download, so preloading them is a good thing.

I also don’t know if AdMob works in the simulator, I don’t think it does.  I know iAds doesn’t.

Rob

Yea. It works on my iPad. Setting the y-position to 10000 will cause the adMob to appear at the bottom of the screen nicely.

I tried to run this code on my device and it showed the banner Ad on my iPhone 5. But when I change to my Unit ID. The Xcode simulator 

gave me this error. 

Feb  2 01:31:00 iPhone-1 syncdefaultsd[993] <Notice>: (Warn ) received memory warning

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>: table: 0x15d9b740 {

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>:   [provider] => “AdMobProvider”

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>:   [isError] => true

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>:   [name] => “adsRequest”

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>:   [response] => “Request Error: No ad to show.”

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>: }

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>: Message received from the ads library: Request Error: No ad to show.

What do I need to do.

The message is rather clear.  There is no ad to show… If you’re not using test ads, they may not have any ad inventory for you.  This is a normal circumstance.  It could also indicated that your ID may have an error in it.

Rob

I tried to run this code on my device and it showed the banner Ad on my iPhone 5. But when I change to my Unit ID. The Xcode simulator 

gave me this error. 

Feb  2 01:31:00 iPhone-1 syncdefaultsd[993] <Notice>: (Warn ) received memory warning

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>: table: 0x15d9b740 {

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>:   [provider] => “AdMobProvider”

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>:   [isError] => true

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>:   [name] => “adsRequest”

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>:   [response] => “Request Error: No ad to show.”

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>: }

Feb  2 01:31:02 iPhone-1 AdmobV2 Test 5 Mt ID[1006] <Warning>: Message received from the ads library: Request Error: No ad to show.

What do I need to do.

The message is rather clear.  There is no ad to show… If you’re not using test ads, they may not have any ad inventory for you.  This is a normal circumstance.  It could also indicated that your ID may have an error in it.

Rob