Android (Solved) Admob personalised ads

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Tony M, Jul 2, 2019.

  1. Tony M

    Tony M Member

    Joined:
    Apr 24, 2019
    Posts:
    15
    Hi all,

    I am trying to understand how Android Google Consent and the Admob personalised ads work, in particular the
    GoogleMobileAds_ConsentSetAllowPersonalizedAds function that is part of the Google play extension.

    I would have expected it to work this way.

    GoogleMobileAds_ConsentSetAllowPersonalizedAds(true); // shows the user Personalised ads
    GoogleMobileAds_ConsentSetAllowPersonalizedAds(false); // shows the user Non-Personalised ads

    In the Yoyo help pages, there is a script sample that shows as setting it to true for PERSONALISED and NON_PERSONALISED.

    if async_load[? "status"] == "PERSONALISED"
    {
    GoogleMobileAds_ConsentSetAllowPersonalizedAds(true);
    }
    else if async_load[? "status"] == "NON_PERSONALISED"
    {
    GoogleMobileAds_ConsentSetAllowPersonalizedAds(true);
    }

    Link:
    https://help.yoyogames.com/hc/en-us/articles/360019956652-iOS-and-Android-Google-Consent-SDK

    I am guessing that this is a typo and the second should be set to false?

    I also found another thread that described it the opposite to how I interpreted it.

    GoogleMobileAds_ConsentSetAllowPersonalizedAd(true/false);
    Setting it;
    TRUE = Gets you NON-personalized ad.
    FALSE = Gets you personalized ad.
    Link:
    https://forum.yoyogames.com/index.php?threads/admob-implementation.58500/

    Is there any official documentation where I can check or can someone confirm the correct method for using the function?

    Thanks.
     
  2. Tony M

    Tony M Member

    Joined:
    Apr 24, 2019
    Posts:
    15
    Help document has now been updated:

    if async_load[? "status"] == "PERSONALISED"
    {
    GoogleMobileAds_ConsentSetAllowPersonalizedAds(true);
    }
    else if async_load[? "status"] == "NON_PERSONALISED"
    {
    GoogleMobileAds_ConsentSetAllowPersonalizedAds(false);
    }
     
  3. Christopher A. Orestis

    Christopher A. Orestis Member

    Joined:
    Jun 19, 2019
    Posts:
    10
    Hi Tony M. Would you be able to send me a example project of this?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice