Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Foose · Aug 11, 2014 at 10:16 AM · canvasfacebookads

How to monetize my facebook canvas game?

Hey guys, as the title says, I am looking for a good tutorial on how to implement ads in my unity webplayer game on facebook. I've seen lots of stuff for mobile apps but none for canvas. I'd like to use ad4games as the adprovider because its facebook aprooved and I saw many other facebook games using it. The main problem is, that I am using the Facebook SDK and have no option to edit the html file because only the unit3d.build will be loaded by facebook. Does anyone have any experience with this?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image shopguy · Oct 08, 2014 at 03:39 AM 0
Share

Looking for answers too, I think it will require http://docs.unity3d.com/ScriptReference/Application.ExternalEval.html

avatar image Dave1 · Oct 11, 2014 at 04:02 AM 0
Share

Hi,

We signed up with Lifestreet which has an ad implementation using Application.ExternalEval specifically for Unity3d. We are able to created new div's and place ads above, below or to the sides of our app. We are having an issue though, when even one of their ads is in it hurts our framerate. They are running some Flash code but we find it strange that it would have any effect since they are just simple animated ads. Let me know if find another solutions. We are looking to alternatives in case we can't sort out our framerate issue.

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Kiwasi · Oct 08, 2014 at 04:08 AM

I've been looking for this for a while. Using the Facebook-Unity integration it is difficult if not impossible. Most ad severs require HTML with the script tag to be on the webpage. For security reasons modern browsers will not run scripts that are injected in. So Application.ExternalEval is a dead end.

You best bet is to forgo the Facebook-Unity integration and build your own HTML with the ads and the webplayer embedded. Then direct your Facebook app to the HTML code.

I'm personally just about fed up with trying to get Facebook to play nice. There whole set up is not very developer friendly. For instance there will be Facebook ads placed next to your game, but you don't get a cent of their revenue. They also don't allow you to use google ads, which is pretty much industry standard. Then there are the various rounds of permission to get anything posted on Facebook. The SDK is poorly documented. It won't run unless you are on canvas (effectively locking your game in). The data from the open graph is relatively difficult to interpret.

For the moment I'm looking into game portals as a better option. I can always go back to Facebook if the game has any level of success.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image shopguy · Oct 10, 2014 at 03:55 PM 0
Share

Good to know. I'm still a bit earlier along in the process and was trying to decide if I wanted to use ads or in-app purchases (or both). I think this is one more reason to try to design without ads, for this game anyway.

avatar image
0

Answer by Mitralone · Oct 16, 2014 at 02:21 AM

Hi there,

I just managed to inject an ad from appnext below unity game in facebook canvas. I am using unity integration. It is working. Just first test the javascript in a simple web page and once you are sure the javascript is able to inject the ad into the web page then do it in unity with Application.ExternalEval.

Now I need to find a way to get reward ads in unity :)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Amerging Staar · Aug 28, 2015 at 07:34 AM 0
Share

Appreciate your effort. I hope you successfully got reward ad, please help me out with appnext code, i don't know why it dont show me ad in browser. Sample Please look at code the Sample page link or give me URL of sample page you made to test. Thanks in advance

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Finding the “Android class name” in “AndroidManifest.xml” generated by Unity3D 0 Answers

A node in a childnode? 1 Answer

Unity and Facebook chat? 1 Answer

Google banner Ads display problem 0 Answers

How to Upload/integrate Unity web player game to facebook app? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges