David73
Aspiring developer
Profile
Posts: 66
Reg: Jan 12, 2013
Texas
660
12/22/13 08:51 PM (11 years ago)

Link to External Code

I want to set my apps up to link to an external file to call the interstitial ad code. I know it can be done, but I don't know what code to use. What I want to do is create an external file that has the code to all an interstitial from Revmob, Chartboost, or whatever. That way, I can change interstitials without having to upload a new version to the app store. My plan is to load both (or all) ad SDK's then just call the one I want. Thanks, Dave
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
12/23/13 01:34 AM (11 years ago)
This seems accomplishable. What you may want to do is create a class which initializes all of the other SDKs, and has one method named "initSDK" which calls all of the SDK helper methods. Depending on the SDK, you may need to pass in the View Controller. Is this for Android or iOS? Is this using BT2.0 or BT3.0? Jake
 
David73
Aspiring developer
Profile
Posts: 66
Reg: Jan 12, 2013
Texas
660
like
12/23/13 02:39 PM (11 years ago)
I know it is possible because I have had people tell me they have done it, but when I ask for the exact code, they always forget to send it to me. I am working on iOS apps and here is exactly what I want to do. It should be simple. The code to call a Revmob Interstitial is: [[RevMobAds session] showFullscreen]; What I want to do is put it in an external file, lets call it interstitial.json (One of the people that has told me he has done it says he uses an external json file). Instead of placing the exact code for the interstitial in the app, I want to call the external file. Something like this: src=interstitial.json The goal is to be able to change to other ads remotely. For example, if I wanted to show a Chartboost ad, I simply change the external interstitial.json file to: [cb showInterstitial]; To make things easy, I would just load both SDK's and basic app information, but I could incorporate all of that into the external file if I wanted to. Dave
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/23/13 03:14 PM (11 years ago)
The Member badge would look good under your grin! :-)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.