0 Favourites

How do I update my ads in constrcut 2

  • What to tipe in constrcut 2 admob

    Or what file to edit with new EU user consent policy of traking for admob.

    I recive this mail.

    And the email is

    "

    Dear Publisher,

    We want to let you know about a new policy about obtaining EU end-users’ consent that reflects regulatory and best practice guidance. It clarifies your duty to obtain end-user consent when you use products like Google AdSense, DoubleClick for Publishers, and DoubleClick Ad Exchange.

    Please review our new EU user consent policy as soon as possible. This requires that you obtain EU end users’ consent to the storing and accessing of cookies and other information, and to the data collection, sharing, and usage that takes place when you use Google products. It does not affect any provisions on data ownership in your contract.

    Please ensure that you comply with this policy as soon as possible, and not later than 30th September 2015.

    If your site or app does not have a compliant consent mechanism, you should implement one now. To make this process easier for you, we have compiled some helpful resources at cookiechoices.org.

    This policy change is being made in response to best practice and regulatory requirements issued by the European data protection authorities. These requirements are reflected in changes recently made on Google’s own websites.

    Thank you in advance for your understanding and cooperation.

    Regards,

    The Google Policy Team"

    Code fore android

    // This code works on Android API level 1 (Android 1.0) and up.
    // Tested on the latest (at the moment) API level 19 (Android 4.4 KitKat).
    // In the main activity of your app:
    
    public class MainActivity extends Activity 
    
      (...)
    
      

    override[/p] public void onStart() {[/p] super.onStart();[/p] final SharedPreferences settings =[/p] getSharedPreferences("localPreferences", MODE_PRIVATE);[/p] if (settings.getBoolean("isFirstRun", true)) {[/p] new AlertDialog.Builder(this)[/p] .setTitle("Cookies")[/p] .setMessage("Your message for visitors here")[/p] .setNeutralButton("Close message", new OnClickListener() {[/p] override[/p] public void onClick(DialogInterface dialog, int which) [/p] settings.edit().putBoolean("isFirstRun", false).commit();[/p] }[/p] }).show();[/p] }[/p] }[/p] }[/code:21uj9zva][/p] [/p] For ios[/p] [/p] [code:21uj9zva]// This code will work in iOS 2 and up[/p] // (spoiler: you're not going to need anything below iOS 6).[/p] // Tested in iOS 7 [/p] // In your app's UIApplicationDelegate:[/p] [/p] [ul][/p] [li](BOOL)application:(UIApplication *)application[/li][/p] [/ul] didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {[/p] (...)[/p] NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];[/p] if (![defaults boolForKey:@"termsAccepted"]) [/p] NSString *message =[/p] "Your message for visitors here";[/p] UIAlertView *alert =[/p] [[UIAlertView alloc] initWithTitle:"Cookies"[/p] message:message[/p] delegate:self[/p] cancelButtonTitle:nil[/p] otherButtonTitles:"Close message", nil];[/p] [alert show];[/p] }[/p] }[/p] [/p] // Elsewhere in the file:[/p] [/p] [ul][/p] [li](void)alertView:(UIAlertView *)alertView[/li][/p] [/ul] clickedButtonAtIndex:(NSInteger)buttonIndex [/p] NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];[/p] [defaults setBool:YES forKey:@"termsAccepted"];[/p] [defaults synchronize];[/p] }[/code:21uj9zva]

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Please help me with that file that i must paste the code in it.

    Thanks.

  • wow, if that sends a message to Google, or some other place, I have no idea... Does that connect to some kind of API, or do you just need to get permission? If you just need permission you wouldn't need this. All you would have to do is have your first layout be the policy. If they accept send their username and message to the database saying they accepted the policy, then show them the game... if they click no... show them the game, without the ads, or without what they say you can't show without permission. If nothing send them to a layout that says, "sorry, can't play without permission." Then an ok button.. have the ok button go back to the permission collection layout.

    It really depends on if that code above communicates through an API to an external site...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)