Hi I have been trying to load Google Admob ads by following this tutorial in my Swift 3 app. I did all the steps and my project is running successfully. Here is how I am doing this
GoogleBannerView.adUnitID = "XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
GoogleBannerView.rootViewController = self
GoogleBannerView.load(GADRequest())
While running the app on simulator, I see nothing. App log is here
Related
I am trying to implement Facebook native ads on my device. Test ads are working fine. However, production ads are not showing. It does displays an error showing
DiskCookieStorage changing policy from 2 to 0,cookie file: file:///private/var/mobile/Containers/Data/Application/9B89E486-EDF8-4E20-A7CE-CB60747C3E8B/Library/Cookies/Cookies.binarycookies
and
DiskCookieStorage changing policy from 0 to 2, cookie file: file:///private/var/mobile/Containers/Data/Application/9B89E486-EDF8-4E20-A7CE-CB60747C3E8B/Library/Cookies/Cookies.binarycookies
What I did is loading the ads in viewdidLoad
func setupFacebookNativeAds()
{
let nativeAd = FBNativeAd(placementID: Constants.adMob.FB_NATIVE_ID)
nativeAd.delegate = self
nativeAd.loadAd()
}
What will be the issue here?
I found a solution by adding new test devices in the Monetisation Manager. Get the IDFA for the ios devices and add new test devices. Now the Native Ads view is working.
Actually, I have created a custom framework. I am using Google Analytics in the main project and in the custom framework (That I have created) as well. When I am trying to get GAI(Google AnalyticsInstance) object in my custom framework the app is crashing. Although It is working fine with iOS 11 but crashed on iOS 10.
Exact line where I am getting crash: GAI.sharedInstance().
Please help. Thanks in advance.
I have integrated paypal's payment gate way in my app and I have added all the neccessary sdks and libraries. When I enable acceptCreditCards option in paypal configuration, app crashes as soon as user tries to tap on PaywithCard option.
Crash Log:
'Application tried to present a nil modal view controller on target <PayPalPaymentViewController: 0x7fce3029f200
Environment: sandbox
languageOrLocale: en-US
>
I even tried enabling PaywithCard in paypal's sample app and observed the same behaviour.I'm using Xcode 8, swift 3 and
I have added card.io SDK and cleaned the app before running.Now app works as expected.
I have developed native adMob in my application by coping code from Sample Application given by google from below URL https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Objective-C/admob/NativeExample
I am getting: Error by using my AdUnitID: failed with error: Request Error: No ad to show.
But when i use test key given in Google sample app than my application native ads are working fine.
So What is the problem with my native Ad unitId ?
Google Native AdUnitID : ca-app-pub-3940256099942544/3986624511 My App Native AdUnitID : ca-app-pub-3415315092173981/2210049154
Update: When i put "testDevices" with my application UnitID than my application native ads are working fine. but when i remove "testDevices" than getting same error.
Try with the ad unit ID for testing: ca-app-pub-3940256099942544/2562852117
Also, if the height is too small, then there will be no ads too. For a "small" ad, I have to set to 140 height for it to show up.
Usually if there are no ads it will give error that no ads are available.
I have downloaded the demo app from the Gracenote Developer website but its crashing for me and gives Exe_Bad_access on below line in ViewDidLoad method of GNViewController.m.
self.sdkManager = [[GnSdkManager alloc] initWithLicense:LICENSE_INFO error:nil];
What's going wrong?
This is the demo applicaiton I am referring to. I am using xcode 5 and testing in iPhone 4S with iOS 7.0.3.