I'm adding V4VC ads from AdColony into my game and trying to change the default popup window.
Right now, it says:
"Watch a sponsored video to earn 1 Coin?"
I need it to say:
"Watch a sponsored video to earn 25 Diamonds?"
I looked on their support page and followed their instructions for setting up the app and currency on my account. However, the required code was in Objective-C. I need to convert this or find the correct code for V4VC ads in Swift:
NSString*currencyName=[AdColonygetVirtualCurrencyNameForZone:/*zoneID*/]; intcurrencyAmount=[AdColonygetVirtualCurrencyRewardAmountForZone:/*zoneID*/]; intremaining=[AdColonyPublicgetVideosPerReward:currencyName]‐[AdColonyPublicgetVideoCreditBalance:currencyName];
I am also using Sprite Kit. Help is greatly appreciated!
When you log into our dashboard at https://clients.adcolony.com/ you can update the settings for your zone to show the name of your in game currency and the proper amount to award.
If you do have questions on this set up, email support#adcolony.com for more help on this process.
Related
I've just added UnityAds to my app and whilst testing production I noticed instead of an ad, it popped up a request to place cookies on the users device.
The SDK integration was fine but is an absolute deal breaker for me. Is there any way to turn on a setting where it doesn't do this? I turned off the seek personalised ads request in the iOS app, I don't want my users interrupted like this. I'd like to reject all on their behalf before they see it.
Yes, you can do that. Use my following code to pass the consent flag to Unity Ads SDK. And make the Unity Ads SDK not request cookie permissions for your users by setting this flag to false
MetaData gdprMetaData = new MetaData("gdpr");
gdprMetaData.Set("consent", "false");
Advertisement.SetMetaData(gdprMetaData);
// then Setup Unity ads
For people who is using Ironsource Mediation and have Unity Ads in waterfall but having the same problem.
IronSource.Agent.setConsent(false);
Warrning: but if you do that, all ads will not be personalized. The best way I recommend to you is:
On first opening, You need to show ATT (Application Tracking Transparency) popup. Then if the user clicks Allow then you set the consent to true if the user clicks Don't allow (Require apps not to track) then you set the consent false.
by the way:
If you don't want to show ATT in the first time. You need to set consent as false until ATT shows
*** Edit *** Ok found it in Swift, posting the code for posterity - Magoo
let meta = UADSMetaData()
meta.setRaw("gdpr.consent", value: false)
meta.commit()
I was following the tutorial for facebook sdk for ios, specially using open graph to attach an image and tag friends (which social framework can't do directly).
So I was following this tutorial and this sample app, FBOGSampleSD. https://developers.facebook.com/docs/ios/open-graph#sharedialog
However my post button in the share dialog is always disabled. (grey out)
Has anyone encountered this before?
I am working with Xcode 5 and testing on ios7 device.
Regards,
Jin
I think I figure this out.
Your share button might be disabled because you didn't finish the Facebook app configuration, or it doesn't match what you are sharing through xcode/ios app.
- on Facebook Developer
In the settings of your app, you need to have iOS AND website added as platforms.
in the website platform you need to declare the website url or mobile site url: this is going to be used when someone click on your post from a computer. It needs to be a real site you can access, possibly the website of your app or a webpage about your app included on a website. For this example I'll be using
http://www.yourappwebsite.com
Once you do this, in the "Add Domains" field (in the section where you set namespace Display name and such), you need to put the SAME domain you declare as a website.
This will be the only domain(s) allowed to host links and image of your OGStory.
In this example is
yourappwebsite.com
- Back to Xcode
You should have some code that define the object you are posting an the action, something like:
[FBGraphObject openGraphObjectForPostWithType:#"yourapp:yourobject"
title:#"Roasted pumpkin seeds"
image:#"http://www.yourappwebsite.com/yourpic.png"
url:#"http://www.yourappwebsite.com"
description:#"Crunchy pumpkin seeds roasted in butter and lightly salted."];
As you can notice, the domain used for both the link AND the image is the one previously specified.
Now your share button should appear enabled.
I hope it helps,
ciao.
I was struggling with the disabled POST button myself and it turned out that my App's plist information was not set correctly for Facebook integration. Specially the FacebookDisplayName must match the name you entered in your Fcb App settings.
This SO answer pointed me to right direction, hope it helps!
[FBGraphObject openGraphObjectForPostWithType:#"namespace:yourobject"
title:#"Roasted pumpkin seeds"
image:#"http://www.yourappwebsite.com/yourpic.png"
url:#"http://www.yourappwebsite.com"
description:#"Crunchy pumpkin seeds roasted in butter and lightly salted."]
namespace is the one you have to set it in your setting->basic->namespace
I successfully integrate nextpeer into my cocos 2d game.
Now i want to show other people playing online using nextpeer.
The problem is i dont know how to do that.The documentation for it is not opening and i even mail nextpeer and they have not respond more than 24 hrs have gone.Can someone give me some advice the steps involve in it.
Here is the link of an app showing it
https://itunes.apple.com/us/app/chasing-yello/id508314901?mt=8
The nextpeer link which is not opening -
http://developers.nextpeer.com/documentation/docs?page=iOS+Guide#PlayertoPlayerCommunication
Nextpeer document is moved to : https://developers.nextpeer.com/docs/view/ios
Scroll down for PlayertoPlayerCommunication.
These are the two active links for player to player communication now.
https://developers.nextpeer.com/docs/view/ios#PlayertoPlayerCommunication and https://developers.nextpeer.com/docs/view/bestpractice#PlayertoPlayercommunication(P2P).
If you have anymore specific question, feel free to email me directly at alexander#nextpeer.com.
Sorry for the confusion.
i have a website where there is a radio ad being played - and a FB "like" box - if someone clicks on a video within the FB stream it goes to FB and the website with the radio ad keeps playing. I NEED to figure out how to make the website close.
I am a graphic designer, not a web expert - but i try, please don't bash me for not knowing the correct lingo. I use adobe dreamweaver and am aware of the "target" preference but that only applies to something that is linked.. OH I'm using IFrame when asking for the code in FB for the like box. please please help me!
I am integrating OpenFeint for the first time. I initialized Openfeint also added achievements in openfeint developer dash board.
But whenever I call launchDashBoard achievement icon is not getting displayed.
Even 'launchDashboardWithAchievementsPage' does not bring the achievement page.
Help me,
Shakthi