DiegoM's Forum Posts

  • Here is an example project showing how to load and use the SDK.

    dropbox.com/s/fv29dv17pelushl/LoadScriptFromCDN.c3p

    The only way I got it to work was by using a script tag with the url of the SDK. When the script is loaded and executed it creates the global variable Realm which you can use to do whatever it is supposed to do.

    The project uses two scripts. The first scriptLoad.js defines the function that loads a script tag with a provided URL. It has it's Purpose property set to (not set). This means C3 doesn't do anything with it that you don't explicitly tell it to.

    The other script, importForEvents.js has it's Purpose property set to Import for events. This one just imports the first script so the function to load a script tag is available in event sheets.

    Since the loading is asynchronous, the load function returns a promise that will resolve to true or false depending on wether loading was successfull or not. So make sure to always check for that before using the global Realm property.

    The example only prints to console, so press F12 to bring up dev tools for the preview window to see if it is working or not.

  • fredriksthlm

    Personally I still can't get the "spoof location" to work. I'm not sure how this DebugGeography should be implemented, I guess withing the RequestInfoUpdate call (?). But regardless if I set spoof location to "Outside the EU" in the plugin properties, the plugin still validates the condition "Is in EEA or unknown" to be true. Also the ConsentStatus is still REQUIRED. So the spoof location is not working properly in my tests at least. This is just a debug/test thing, so not needed for production apps. But if you decide to include it in your plugin I guess it should work :)

    Is this in Android or iOS? I have noticed a few things that don't work quite right in iOS. The first is that in iOS 14 or greater, DebugGeography will not work in a real device. I wrote a little bit about that on my update notes for r258 at the end of the first post in the topic.

    The other thing I noticed is that in iOS, if the device says is outside the EEA, the consent status will still be required if the ATT dialog hasn't been shown yet, and I think that is the User Messaging Platform SDK saying that, so I don't think that will be sorted any time soon.

  • Tjums

    Is it on purpose you haven't updated the Plugin Reference "Mobile Advert" since april?

    Yes.

    The manual will be updated once the feature reaches a stable release.

  • Since in some circumstancus you are not allowed by Google by any means to show it (if the app exist in a featured program for users without ads for example)

    That makes sense. You would need to make a special build of your game for that case, wouldn't you? And it would be much easier to just change a single value rather than strip the whole plugin.

    The old plugin had the options to show the consent dialog for EU only, Always and Never. EU only is what it does now, which is the smart behavior where it figures out if it needs to show it or not. I don't think Always is needed anymore though, why would you want to force the consent dialog if you don't need to?

    So I think that just a toggle to choose whether to show it on start up or not is all that is needed.

  • fredriksthlm

    I test this on the simulator and on a device. So far they behave the same.

    I just realized that the IDFA explainer message is never shown. That is ok if you are in the EEA, but I just tried to spoof the location as outside the EEA and it still didn't show it.

    Right now I don't have too many ideas as to what might be wrong, i'll have to keep looking at it.

  • boulerzzz

    DiegoM why does the ATT prompt show automatically on start? We should be able to control the timing ourselves with the "request IDFA" action.

    In the process of updating the plugin I just took a look at the documentation of Admob Plus, which is the cordova plugin we are using to handle all of this and there I saw the request for tracking authorization made before showing the EU consent form, because so many things were different, I assumed that is how it should work.

    The next update will have the RequestIDFA do the same as before, so you can control when the dialog is shown.

  • fredriksthlm

    1. When opening the app the ATT prompt shows before the Consent/IDFA explainer. This is incorrect behaviour. The Funding choice message should be shown before.

    I did this like the documentation for Admob Plus said and didn't think twice about it, seems like an ok workflow if you ask me. After looking a little bit closer at the Funding Choices documentation here... it seems like you are correct and the iOS dialog should come afterwards the EU consent form.

    As for the other issues, I can't comment on them too much really. When I try it out it remembers the settings. The only thing I can think of right now, is that the Test Mode checkbox might still be on, that would cause the consent dialog to be shown all the time.

  • This is great! Very useful for art heavy games pipeline

    Would be useful if you could set individual frame times as well

    I thought about that while I was adding the animation properties, but didn't think it would be that useful, guess I was wrong :P

    Will it be possible to export/import animations with image points and collision polygons data? Currently if we need to move an animation from one sprite to another, we have to replicate all image points and polygons manually and this can be a lot of work.

    Don't see why it shouldn't be possible, the only problem as always, is that it's just a little extra thing on top of all the stuff that is still not done.

  • piranha305

    I hadn't even thought about that. It would be a useful feature.

  • eleanorjmorel

    As of r257, you can specify animation properties in the configuration file so your tool can fill in the details for each animation.

    I updated the original post with a little information about it.

  • boulerzzz

    I was looking at the project of someone complaining that their ads were not showing and noticed that they had set that option to never show the consent form. I realized that is not an option anymore. If your application wants to show ads and is in the EEA or UK, the consent form has to be shown.

    After removing that option, it hit me that the whole property is redundant now, because the User Messaging Platform SDK tells you if you need to show the form or not.

    There are two things that are looked at when deciding when to show the form, first the consent status

    • If the consent status is REQUIRED, it will be shown
    • If the consent status is NOT_REQUIRED, it won't be shown
    • If the consent status is OBTAINED, it won't be shown on start up but will be shown if explicitly requested using the Show user consent dialog action
    • If the consent status is UNKNOWN, it will be shown

    The SDK also tells you if a form is available. Obviously, if a form is not available nothing can be shown. A form will only be available if it was set up properly in the corresponding Admob account.

    So if everything is setup correctly, the consent dialog is shown only to the people that need to see it.

    If the form is not shown to users in the EEA or UK, the most likely problem is that it hasn't been set up correctly in the Admob account.

  • Orcavan

    The consent dialog will only be shown when it is required, if it is not required it will not show up on startup and you will not be able to trigger it manually.

    It is only required in the EEA (European Economic Area) and the United Kingdom, everywhere else in the world it is not required.

    On Rewarded ads... I think you got that mixed up. The old Rewarded Video Ads where deprecated in favour of the new Rewarded Ads. You can still make sure your ads are videos, but the way of doing it is by configuring the ad unit accordingly through your Admob account.

    Rewarded Ads and Rewarded Interstitial Ads are two different types of ads and you can choose which one you want to use, they are very similar though.

    About banner ads overlapping content... I think that is bug, should be easy to fix.

  • boulerzzz

    For some reason I get consent status "XXXXX&&true" if I try to open the consent window.

    Will be fixed in the next beta.

    Also if I give consent the status does not to OBTAINED update until the app is restarted.

    Just checked it, I forgot to get the updated consent status right after the form is closed. That's why it only works on reload. Will be fixed in the next beta.

    fredriksthlm

    I can see you use fixed versions (admob1.17 and consent2.1.10 at the moment), but I saw Ratson corrected your reported bug in consent 2.2. just fyi

    Going to wait to sort out all the issues on my side before updating :P

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The next beta will have the ConsentStatus expression returning the new values according to the User Messaging Platform SDK.

    Also deprecated actions and conditions relating to User Personalization, because those concepts don't exist anymore.

    fredriksthlm

    You mentioned resetting the consent status, that is already part of what testing mode does. When the checkbox is ticked, the consent status is reset every time the application starts so you can see the consent form.

  • But do you really need it on the event sheet? Why? All you should care about is when the ads are shown. The plugin can decide internally if they will be shown or not, and it will be using that value to make the decision.

    Let's say you try to show an ad, but consent is still required, when you call an action to show an ad it will simply not be shown. On the other hand if consent was obtained or not required, the ad will be shown.

    There really is no need to expose the value, if the plugin is already making the choice of showing or not showing the ads based on it.