Welcome to AdInMo’s SDK docume...
...
SDK Walkthrough
Requirements
GDPR & User Consent
22min
why is it required from january 16, 2024, google requires publishers and developers to use a consent management platform (cmp) that has been certified by google and has integrated with the iab’s transparency and consent framework https //iabeurope eu/transparency consent framework/ (tcf) when serving ads to users in the european economic area or the uk using a cmp enables you to pass the required tcf2 2 to monetize your traffic in europe adinmo’s sdk supports any cmp please see further information below on how to pass the tcf2 2 string using\ admob umpusercentrics accessing the advertising id in android api33 and above in version 33 of the android sdk it is no longer possible to access the advertising id without adding an additional permission to the android manifest in this case there will be an warning in logcat like this package \<your app id> failed ad id permission check apps that target android sdk 33 or higher should declare com google android gms permission ad id in the app manifest to access ad id and result in adinmo not being sent the correct advertising id during the bidding process, which could result in reduced income for android devices of course, you could fix this by compiling against an earlier version of the android sdk, but this is not recommended the preferred fix is to add the missing permission to the android manifest adding missing permission if you already have a custom androidmanifest xml file continue to step 6, otherwise continue go to file/build settings select android select player settings find the custom main manifest option in publishing settings/build and tick the box unity will create a file and tell you where it is edit the file indicated and add \<uses permission android\ name="com google android gms permission ad id"/> tag just above the closing tag ‘\</manifest>’ as indicated below alternatively you can dowgrade your android sdk downgrading android sdk go to file/build settings select android 9 select player settings 10 find target api level in the other settings section 11 change to an earlier version than api level 33 in both cases the warning should no longer appear in logcat, and adinmo will now receive the correct advertising id using admob’s ump plugin to validate gdpr consent setup admob these instructions only work if you have a working admob account via https //apps admob com/ https //apps admob com/ for the game that you want to use it may be possible to create an admob account and register your game without actually having integrated admob into your project, but at the bear minimum this will require your game to be live on the app store note that you may need to temporarily disable any adblocker before using the site once you have a working admob account, use the following instructions to setup gdpr verification from your apps find your game, and make a note of the app id (starts with ca app pub ), you will need this further down the process where it’s mentioned as admob app id from privacy & messaging click gdpr click continue click “create a gdpr message” click select apps select your app that you want to apply this too, you will need to set a privacy policy url, and confirm set up you language preferences setup your user consent options, you will need the first option, ‘consent’ or ‘manage options’, and the check the close (do not consent) targeting should be for countries subject to gdpr in the review your account settings section tick both boxes click review your ad partners find adinmo ltd in the list and add it click confirm click add purposes configure the usages as per your own preferences, but we recommend the following settings will maximise potential earnings press confirm press continue and you should be presented with a preview of what your consent dialog will look like give your message a name and press publish android specific setup instructions admob application id get admob application id for your android app and add it to adinmomanager object like this add the required dependencies add the required dependencies for ump to an android build install external dependency manager after installing the unitypackage, it will ask you if you want to auto resolve, if you click ‘yes’, that is all you need to do if you click ‘no’, you can do the resolve by using assets > external dependency manager > android resolver > resolve after a while when it copies all the missing dependencies to the plugins/android folder, it will complete and you can run the build ios specific setup instructions admob application id get admob application id for your ios app and add it to adinmomanager object like this add the required dependencies add the required dependencies for ump to an ios build make sure you have cocoapods installed on your development machine install external dependency manager build your app as usual note, this setup will not support bitcode using ump after adinmomanager has been initiated, there are 2 functions you can use to trigger ump events static void adinmomanager checkconsent(\[optional]umpcallback resultcallback) call this at a convenient time during startup if consent is required, and hasn’t been determined yet, this will launch a popup asking for consent options, otherwise it will notify adinmo about previously selected options saved in the prefs static void adinmomanager resetconsent(\[optional]umpcallback resultcallback) this will reset the consent received state and bring up a fresh popup this is designed to be used in the game menus to allow the user to change their mind about their previously selected consent options where umpcallback is an optional delegate of the format void umpcallback(bool consentwasrequired, bool canshowads, bool canshowpersonalisedads, string tcf string); you can use it to receive the results of the dialog box for your own purposes