AppLovin SDK reports internal error. Code = -1. IOS - ios

I'm doing everything as in the instructions.
But when I do
[ALInterstitialAd shared].adDisplayDelegate = self;
[ALInterstitialAd shared].adLoadDelegate = self;
[ALInterstitialAd showOver:[[UIApplication sharedApplication] keyWindow]];
I receive code = -1 in
-(void)adService:(ALAdService *)adService didFailToLoadAdWithError:(int)code
AppLovin SDK reports internal error.
In applovin site all ads is ON, and bundle id the same.
What could it be? Thanks

I connect with AppLovin manager and they told me that because my country is not supported

I released my game with "AppLovin SDK reports internal error" and now it's work correctly. I asked Applovin support and they told me it may be because there is no Ad for user to show at this time.

Related

Does Beta by Crashlytics Support iOS's On-Demand Resources?

I am fairly certain that the answer to this question is "No", but I am asking anyway. My evidence that Beta by Crashlytics does not support iOS's on-demand-resources is an app build that works fine when downloaded from TestFlight, but throws the following iOS error when downloaded from Beta:
Error Domain = NSCocoaErrorDomain Code = 4994 “The requested
application data doesn’t exist.” UserInfo = {
NSLocalizedFailureReason = Request code not be completed. Invalid tag in set ‘{(cardImage, cardAudio)}.’ }
I have received confirmation from Fabric that they currently "don't support apps via Beta using on-demand resources."

Integrating IMA iOS SDK

I have integrated google SDK manually without cocoapods because I'm using it inside a static library. And I have added all the frameworks (AVFoundation,..Etc) needed for IMA SDK.
My app getting crashed whenever I am trying to set IMASettings with the language.
Here is the error:
+[NSDictionary gtm_dictionaryWithHttpArgumentsString:]:
"unrecognized selector sent to"
This is my code :
- (IMASettings *)createIMASettings {
IMASettings *settings = [[IMASettings alloc] init];
settings.language = #"en";
return settings;
}
I have initialized the ads loader here :
self.adsLoader = [[IMAAdsLoader alloc] initWithSettings:[self createIMASettings]];
You miss a category with the method gtm_dictionaryWithHttpArgumentsString
now most likely, this IS part of the SDK but haven't setup the linker right
add -ObjC to your app's linker flags
if that isn't it, you're missing another framework from google - the google toolbox for mac

IDFA / ASIdentifierManager not found

if ( NSClassFromString(#"ASIdentifierManager"))
{
limitAdTracking = !ASIdentifierManager.sharedManager.advertisingTrackingEnabled;
idfa = [ASIdentifierManager.sharedManager.advertisingIdentifier UUIDString];
userDict[#"limit_ad_tracking"] = #(limitAdTracking);
}
I have SDK. This sdk uses in different apps. But sometimes My SDK doesn`t get idfa. It can happen in one version of application (one time I get, one time - nope). What can happen?
If your App was not linked against AdSupport.framework, then NSClassFromString(#"ASIdentifierManager") will return nil and you'll never get the IDFA.
Is it possible you added/removed AdSupport.framework between the versions that exhibit different behavior?

Why does not executing the following code cause it to crash?

I have an app that uses Admob. But since I am supporting versions of iOS 5 and above, I make sure that I don't call Admob code in versions below iOS 6 by doing the following:
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_5_1) {
int j = 2;
j++; //This is just some code so I can use breakpoints for testing.
NSLog(#"Google Mobile Ads SDK version: %#", [GADRequest sdkVersion]); //Commenting out the line prevents the crash
}
I am testing on iOS 5.1.1. Now if I comment out the NSLog, line, the app works without problem. But if I uncomment it the app crashes almost immediately within the main method:
int retVal = UIApplicationMain(argc, argv, nil, #"AppController");
I guess its not crashing when it is commented out because the compiler "optimises out" the code since its not used. But then what is the correct way to make sure the code isn't used, and the app doesn't crash ?
EDIT: I edited the code, the if block is not optimised out:
int j = 2;
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_5_1) {
j++; //This is just some code so I can use breakpoints for testing.
NSLog(#"Google Mobile Ads SDK version: %#", [GADRequest sdkVersion]); //Commenting out the line prevents the crash
}else{
j--;
}
NSLog(#"%d",j);
The output is "1", so the code in the else block executes. So even thought the function call [GADRequest sdkVersion] is not made, why does it crash ? Again, if I comment out the function call the app does not crash.
One possibility that is consistent with what you're describing is that linking to AdMob causes the crash. Sending a message to the GADRequest class in your code causes it to link to the GADRequest class, whereas if you didn't, it wouldn't link to it.
Why does linking to AdMob cause the crash? Most likely it's because AdMob links to several system frameworks, some of which may not exist on iOS 5 (e.g. AdSupport framework), so when it tries to dynamically link to them on app startup, the dynamic linker crashes.
I'm not sure what you can do. Maybe you can try explicitly linking to the system frameworks that AdMob use as "optional" in Xcode? (I haven't tested it.)
Otherwise, you could downgrade to a version of AdMob that supports iOS 5 (according to the release notes, any version before 7 should do).
I dont know why it crashes - but don't support iOS 5. It is pointless. The iOS market split is something like 20% iOS7, 80% iOS8. You cannot buy iOS5 phones, and you cannot install or, or even release apps for it.

Admob Interstitial exception

I have 2 apps with Admob Interstitials.
Admob Interstitial stopped to work in 1 app.
I get exception calling loadRequest method.
Exception: -[__NSCFDictionary setObject:forKey:]: attempt to insert nil key
interestial = [[GADInterstitial alloc] init];
interestial.adUnitID = PUBID;
//interestial.delegate = interestialDelegate;
GADRequest *request = [GADRequest request];
[interestial loadRequest:request];
I made many many I spent day morfing code. Also I have same working code in another app.
May be it is something in project like missing framework or else
I tried Admob 6.3.0, 6.2.1, 6.1.5
Major change to my Admob code was upgrade to 6.3.0 but second app was also upgraded.
I am logging PUBID. It is not nil.
I do not pass NSDictionary to Admob my self.
The difference between apps is that it works in app with ARC and fails in non ARC app.
The most common problem is -ObjC flag in Other Linker Flags

Resources