Facebook Ads in InAppBrowser.

  • 1
  • Question
  • Updated 4 years ago
How to display Facebook Ads in InAppBrowser.

I tried with plugin cordova-plugin-facebookads, its not working.
Is there a way to display ads in inappbrowser?
Photo of Divya B

Divya B

  • 16 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Divya,
in review of all your prior question, please answer the following question.
- Is this your first hybrid App?
- Are you using the Phonegap Desktop App?
- Are you using CLI, SDK or Build? Please do not assume the answer, please read the link.

Thanks
Jesse
Photo of Divya B

Divya B

  • 16 Posts
  • 0 Reply Likes
1. Yes its my first app.
2. Yes Phonegap Desktop App
3. Phonegap Build (build.phonegap.com)
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Divya,
You cannot use Phonegap Desktop App for development.
Please read the third draft of this blog post:
https://unbot.wordpress.com/?p=457&shareadraft=5716d98464be5
No need to leave comments.

Jesse
Photo of Divya B

Divya B

  • 16 Posts
  • 0 Reply Likes
It's not answer to my question. I want to know how to display Facebook ad in Inappbrowser. I already deployed app in stores and have 10k installs.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Divya,
the answer is do not use Phonegap Desktop App.

Your response makes no sense. You cannot distribute an
app with Phonegap Desktop App. So your answer
makes no sense.

Jesse
Photo of Divya B

Divya B

  • 16 Posts
  • 0 Reply Likes
Your reply is nonsense. If u know answer to the question then reply. Whoever read this tread will know that u donk know the answer. So I'm not expecting ur reply.
(Edited)
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Your are right I donk.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
From the inAppBrowser plugin's docs:
The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs.

You are supposed to use the inAppBrowser window as a tool to display external web content. That external content will not be able to access Cordova API's, and thus Cordova plugins are out of the question within the context of that external content.

You will have to place ads (if you insist on showing ads at all) within that external content the same way you would include ads in a normal website. This would not be limited to Facebook ads.
Photo of Divya B

Divya B

  • 16 Posts
  • 0 Reply Likes
Thanks for your help.