I am integrated Apple iAd framework and I am getting this Error.Please Help me on this.
Error Domain=ADErrorDomain Code=2 "The operation couldn\u2019t be completed. Loading throttled" UserInfo=0x6b57cf0 {ADInternalErrorCode=2, NSLocalizedFailureReason=Loading throttled}
You've created too many banner ads simultaneously or have asked for a lot of ads in rapid succession. Reduce the number of ads you're trying to display and/or slow down your requests for new ones.
Is this the only error you get, or do you get other ones? Does it work sometime and not others?
The iAd test server tends to return a lot of errors, so that you can test your code for hiding and unhiding the banners and so on. If it works sometime and not others, then it should be fine - but like #myztikjenz says, you should check the rate/number that you are issuing requests and re-read the documentation to make sure you are issuing your requests correctly.
Related
I just integrated AdMob into my project and I get a whole bunch of these error messages in the Xcode output.
The app does not communicate w/ the internet and does not open up WKView (all I found n SO was references to WKWebView like this https://stackoverflow.com/a/44623268/14414215 but doesn't seem to be related to me since I don't use WKWebView). All I did was integrate Google-Mobile-Ads using cocoa pods and followed the Admob support pages.
Some SO Pages talk about ATS, but google support pages don't have the same error message (https://developers.google.com/admob/ios/app-transport-security)
App Transport Security has blocked a cleartext HTTP (http://) resource
load since it is insecure. Temporary exceptions can be configured via
your app's Info.plist file.
Its happening both on simulator and real device. Is this a real issue or something I can ignore?
Also, there's a ton of messages coming out from the Admob SDK, it's frankly a bit annoying to filter through.
The Messages in the console remains and does not seem to affect the app performance (AFAICT) and while it is excessive, I have silenced them some-what using environment variable ( https://stackoverflow.com/a/64471106/14414215) in my scheme. (per below pictures)
Take note however, if you do have issues w/ Google-Mobile-Ads, please be reminded to remove this such that you will be able to see the console messages.
I have created a buyer test account in the PayPal sandbox and have used it to attempt to make a purchase via PayPal both in their Simple Demo App and in my own project. Running the app gives back a variety of errors such as Error ID 520002 or Network Timeout or Session TimeOut.
It has never successfully run a purchase.
I've read that these errors are due to bugs in the Sandbox. Anybody hear or know anything else?
Also, is there anything that I am possibly doing that is causing these errors? In other words, how do I get this to work!
I have just integrated the simple Demo App in my own app, I run into the same problem: Make sure you added not only the Paypal.h and so but the frameworks too.(there are three to guarantee the connection).
I got rid of the complicated buttons and methods, only stayed with the simple payment function, one button, and the adjustTaxes function. Works fine.
Maybe you are doing something more complicated, if you explained further.
Let me know if you want to take a look at same code.
Ok so I implemented iAds into my current app.
Problem is how do I know its working as intended or not?
Debugging on local device or simulator shows the Test Advertisement, but also often shows nothing and the
"The operation couldn’t be completed. Ad inventory unavailable"
exception is thrown on FailedToReceiveAd.
So I set the iAd banner to hide if exception is thrown. And show if ad was succesfully loaded.
Anyway i did setup all the settings required in IC and sent the app to appstore(update).
Now in my iAd module i can see the following data.. *se pic
It does look right but when i ask some friends to check if the app is displaying ads ok they say the never see any ads.. I have seen some questions regarding this but only answers saying fill rating isnt up to quota or something equal to that.. What percentage do i have to reach for my ap to start displaying ads properly??
And is there a way for the app get out of that annoying exception that comes up way to often?
I think you misunderstand what the fill rate is. It isn't a quota that you need to reach. The fill rate is the percentage of requests for ads that result in an ad actually being served.
iAd's fill rates, as you've already heard, are pretty low, often less than 20%. What that means is that only one time out of five -- and probably less -- are you likely to see an ad. Worse, most countries don't have any inventory at all.
What can you do to increase the fill rate? Not a lot. Make sure you actually show the ad. Make sure it's visible for at least a few seconds.
You can increase the chance of actually displaying an ad by using something like AdWhirl, but chances are it won't be served by Apple in the case.
So I show my iAd banners when I get a callback to:
'bannerViewDidLoadAd'
But I've noticed that sometimes this doesn't get called. I have a constant high-speed
internet connection but if I run my app 10 times. 4 of out 10 times it won't show the iAds (i.e., bannerViewDidLoadAd does not get called).
Has anyone else experienced this (and what have you done about this)?
This is by design (I'm assuming you're still running in a dev environment) so that you can test your application when an iAd is available and when an iAd isn't available.
While you are developing your
application, iAd Network sends test
advertisements to your application. To
assist you in validating your
implementation, the iAd Network
occasionally returns errors to test
your error handling code. You can also
test your error handling support by
turning your device’s wireless
capability off.
per Apple's documentation
I'm seeing in the console:
"Unhandled error (no delegate or
delegate does not implement
didFailToReceiveAdWithError:):"
Although didFailToReceiveAdWithError is being invoked (I can see that with check points and in the console log)
Does someone has any reasonable explanation? It's like it's working and not working all in the same time. I'm not using IB for the adview, and have added it programmatically and have set the adview.delegate = self. I'm also using three20 in this project if that changes anything.
It's like sometimes he knows who's his delegate and sometime not...
The Apple documentation says:
While you are developing your application, iAd Network sends test advertisements to your application. To assist you in validating your implementation, the iAd Network occasionally returns errors to test your error handling code.
In my app iAd also returns a mix of correct banners, error 3, error 5, ... and so on. Maybe this problem will disappear after the release of the app when iAd changes from
iAd Network serves test ads
to
iAd Network serves live ads if you signed the iAd Network Agreement and enabled advertising for your application