How can i display Admob banners in SFSafariViewcontroller? - swift

I am developing an app in SWIFT 2.0 to open external websites within my app by using SFSafariViewcontroller. Since im using Admob for displaying ads within my app , i want to know if there is anyway i can show the banners on top of SafariViewController webapages.

Related

mobile ad optimisation for app installs not available

I've set up a new fb app for an IOS app we've launched. When setting up a mobile ad in FB I can't choose the "optimize for app installs" option, only clicks or impressions.
It works fine for another app and can't see any difference in the fb app and ad setup.
I'm guessing the difference must be in the IOS code, but it seems strange the fb app and ad setup would detect that?
So, essentially the question is, what is the reason I can't choose the "optimize for app installs" when creating a mobile app?

AdWhril adds not displaying and even not posting to twitter when upload to app store

i have implemented AdWhirl in my app and when i create build in xcode and install on my iphone then adds are showing perfectly but when i download the app from the app store then adds not receiving.
i have another issue relate to twitter and that is when i have post to twitter using TWTweetComposerViewController and posting to twitter is perfectly fine but when i try to post from my app downloading from AppStore then it shows error Cannot send tweet
i got the answer the problem was that in adwhirl app configration there was setting for Google Admob and iAd but here was not sdk for Google Ad Mob in my app bundle. when i add ad mob sdk to my app then it works perfectly fine.
and in twitter i have dismissed twitter controller twice in my code so there might be reason for not working well but when i deleted one dismiss statement then it works fine now.

integrate app with native facebook iOS without using an iOS app

Im wondering if its possible to link my app with the native facebook iphone-app without using iOS at all.
It was pretty easy to create a mobile version and connect it with the m.facebook.com (so it appears in the broswer) through the Developer > Mobile Web URL but it doesnt work/recognize with the native app of facebook.
Is there a way to connect the native iOS FB to my app without creating an app? So it redirects automatically to the browser?
Im trying to avoid to create an iOS app.
Thanks a lot!
If the Application is linked to in news story or post then the App will open in in a browser.
For full integration you'll need a App.
(I don't have a iOS app to test, only pure web app and after posting the apps.facebook.com link to a wall, that link in App opened in the in built web browser).

AdMob plugin for phonegap like iAd for iphone?

Is there any AdMob plugin for phonegap as we have iAd for iphone...?
There isn't because it's very straightforward to add an AdMob ad to a phonegap application by just pasting the HTML you'll obtain from http://www.admob.com/my_sites/create_site (selecting Smartphone Web) into your app wherever you want the ad to appear.

how to make a phonegap app load a url in page without opening it with safari

how is it possible using html/js to make an iphone native app build with phonegap or other html based app makers to load an url in a navigation controller without leaving the app. (sort of like the fb iphone app)
You can use a Plugin in your Xcode project. This one was specifically created by the guys on the PhoneGap team to address the situation you desribe.
Chec out the code in http://github.com/purplecabbage/PhoneGap-Plugins/tree/master/ChildBrowser. This allows you 'spawn' a new controller (from your basic PhoneGap Native app) which pops up and has a browser in the controller. A button allows the user 'close' the view and you return to the native app.