AppLovin Integration Problem>??:

Discussion in 'iOS Programming' started by nichlaspro, Feb 20, 2015.

  1. nichlaspro, Feb 20, 2015
    Last edited by a moderator: Feb 20, 2015

    nichlaspro macrumors member

    Joined:
    Jan 21, 2015
    #1
    Hi ALL!!

    So, i want to integrate AppLovin in my app and i've done all what they have written in their tutorial. But when my app should show the AppLovin ad, nothing happens!??

    here's what i got in my app:

    1. Frameworks: http://s28.postimg.org/n3ladjaz1/Screen_Shot_2015_02_20_at_19_42_29.png

    2. The header folder: http://s21.postimg.org/93knp9gs7/Screen_Shot_2015_02_20_at_19_43_56.png

    3. In AppDelegate.h:
    Code:
    #import "ALSdk.h"
    #import "ALInterstitialAd.h"
    4. In AppDelegate.m:
    Code:
    [ALSdk initializeSdk];
    5. Added the SdkKey: http://s18.postimg.org/ag8loe5yx/Screen_Shot_2015_02_20_at_19_43_25.png

    6. In the function i'm using:
    Code:
    if([ALInterstitialAd isReadyForDisplay]){
            [ALInterstitialAd show];
        }
        else{
            // Perform fallback logic
        }
    7. Added -ObjC and -all_load in other linker...

    --------------------------------------------

    So, i did it all...

    No errors occurs during this, but nothing happens, just nothing...??

    And AppLovin does not load my app, they say: Add The Sdk Into Your App.

    Like if i haven't already done that!

    Do u have any ideas why this happens to me?

    Thanks and remember that i really appreciate help!!!!!
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    "Nothing" is awfully vague. What do you mean by "nothing"? What do you expect to happen? What happens instead? What debugging, if any, have you done? What have you discovered from it?
     
  3. kage207 macrumors 6502a

    Joined:
    Jul 23, 2008
    #3
    I agree with dejo here. Did you put a NSLog in the else function that says "fallback logic here"? This could tell you if that's where it is failing to serve content or if that ifelse block is not even being called.

    Also, you really shouldn't show us your SDK key.
     
  4. nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #4
    I cant:-((

    Just nothing happens, nothing in the log or no interstials ads that I wanted:-((

    It's a mysterious.......
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    "I can't" isn't really a great answer.

    Try this: answer each one of my questions individually.
     
  6. nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #6
    :-(

    I'all try in some hours...

    Thanks!
     
  7. nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #7
    1. I expect an interstitial ad to pop up.......

    2. Nothing happens, just like if I haven't created any functions?

    3. Can't really understand ur other questions xD

    ????

    Thanks!
     
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
    Do you know what debugging is? Have you put any NSLogs in your code? If so, where (show the code)? What output from these NSLogs do you get? Or have you set any breakpoints and stepped through the code? If so, what does that prove?
     
  9. nichlaspro, Feb 21, 2015
    Last edited by a moderator: Feb 21, 2015

    nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #9

    okay, can this help:

    I've used this code -

    Code:
    if([ALInterstitialAd isReadyForDisplay]){
            [ALInterstitialAd show];
        }
        else{
            NSLog(@"Can't show ads!");
        }
    And in the console, it said "Can't show ads!":((

    ?

    btw, i don't know how to use that code tag thing;-)
     
  10. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #10
    You sure you want interstitial ads and not banner ads? Is this the same app as you were asking about in this thread? The one where you show this image, with space for a banner ad?
     
  11. nichlaspro, Feb 22, 2015
    Last edited: Feb 22, 2015

    nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #11

    100%, Apple told me that i could do this to avoid 7.1 from their guideline..

    ? I just wanna fix this..

    And i think it's telling me that the ads isn't ready? Because of that command....
    What do u think and what do to??

    Please!
     
  12. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #12
    Let me address the second part first:

    Where (within what function) did you put the code you supplied above? The snippet lacks context, so we have no idea when/where it is being run. Also, please explain why you chose to put it where you did?

    Do you understand the difference between an interstitial ad and a banner ad? Besides, I think if the purpose of your app is to get people to click on ads, which is what it seems to me, no format of ad is going to avoid that 7.1 rule. Apple will reject it, almost certainly.
     
  13. nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #13

    Ok, i know this is a little bit late reply but i did have to work....

    I've mailed a person named Mark and he's said that the only thing he could see as something which could solve this could be turning on verbose mode, so i did that and i got this in my output:
    Code:
    2015-02-23 21:26:14.522 Money Maker[3582:7806442] -[__NSCFString isEqualToStringIgnoringCase:]: unrecognized selector sent to instance 0x79e8acc0
    2015-02-23 21:26:14.525 Money Maker[3582:7806442] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString isEqualToStringIgnoringCase:]: unrecognized selector sent to instance 0x79e8acc0'
    *** First throw call stack:
    (
    	0   CoreFoundation                      0x03665946 __exceptionPreprocess + 182
    	1   libobjc.A.dylib                     0x032eea97 objc_exception_throw + 44
    	2   CoreFoundation                      0x0366d5c5 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277
    	3   CoreFoundation                      0x035b63e7 ___forwarding___ + 1047
    	4   CoreFoundation                      0x035b5fae _CF_forwarding_prep_0 + 14
    	5   Money Maker                         0x000ff51b +[ALUtils verboseLoggingOn] + 203
    	6   Money Maker                         0x000f7e02 +[ALSdk shared] + 306
    	7   Money Maker                         0x000f7c94 +[ALSdk initializeSdk] + 52
    	8   Money Maker                         0x000e7031 -[AppDelegate application:didFinishLaunchingWithOptions:] + 337
    	9   UIKit                               0x01a7d97c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 291
    	10  UIKit                               0x01a7e687 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2869
    	11  UIKit                               0x01a81c0d -[UIApplication _runWithMainScene:transitionContext:completion:] + 1639
    	12  UIKit                               0x01a9a7d0 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
    	13  UIKit                               0x01a8081f -[UIApplication workspaceDidEndTransaction:] + 155
    	14  FrontBoardServices                  0x064b49de __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
    	15  FrontBoardServices                  0x064b446f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
    	16  FrontBoardServices                  0x064c6425 __31-[FBSSerialQueue performAsync:]_block_invoke + 26
    	17  CoreFoundation                      0x035891c0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    	18  CoreFoundation                      0x0357ead3 __CFRunLoopDoBlocks + 195
    	19  CoreFoundation                      0x0357e238 __CFRunLoopRun + 936
    	20  CoreFoundation                      0x0357dbcb CFRunLoopRunSpecific + 443
    	21  CoreFoundation                      0x0357d9fb CFRunLoopRunInMode + 123
    	22  UIKit                               0x01a801e4 -[UIApplication _run] + 571
    	23  UIKit                               0x01a838b6 UIApplicationMain + 1526
    	24  Money Maker                         0x000e73fd main + 141
    	25  libdyld.dylib                       0x03ed4ac9 start + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException
    (lldb) 
    
    
    Dejo or someone else, could this help u to help me.....?????

    Please, Thanks!!!

    Best,

    Nichlas
     
  14. JohnsonK macrumors regular

    Joined:
    Mar 6, 2014
  15. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #15
    Nichlas, since you didn't answer my questions and because I find the communication between us to be confusing, I don't think I can be of any further help. Sorry.
     
  16. nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #16
    Np, this is also top Strange, not even the employees from applovin could solve this..
     
  17. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #17
    The problem that caused the app to crash is related to a message called isEqualToStringIgnoringCase: that is being sent to a NSString object. Now it's easy to imagine that such a method might exist but in fact there is no such method. Undoubtedly this method was added in the library you're using as a category on NSString. So I'm sure this category is in the library that contains the logging code.

    Having said that why would you get a crash for a method that almost certainly is available? There is some annoying linker business that you need to set in order for categories in libraries to work, and you probably didn't do that step when setting up this thing.

    You need the -ObjC and maybe the the -all_load flags added to the other linker flags. Once you do that it might be that the other problems you're having also go away. I would expect that this requirement would be listed in the instructions and sample code for the library that you're using.

    See

    https://developer.apple.com/library/ios/qa/qa1490/_index.html

    https://www.google.com/search?hl=en...mages&tbs=&as_filetype=&as_rights=&gws_rd=ssl
     

Share This Page