Search Unity

Resolved AdMob: how to change sorting order for AdMob ads canvas?

Discussion in 'Scripting' started by blablaalb, Feb 19, 2023.

  1. blablaalb

    blablaalb

    Joined:
    Oct 28, 2015
    Posts:
    53
    I integrated rewarded ads as per official AdMob guidance, but the rewarded ad is hidden behind other canvases.

    This is the screenshot of a canvas generated by AdMob after I call
    Code (CSharp):
    1.  rewardedAd.Show()
    It always has sortingOrder of 0. My other canvases have higher sorting order, thus are rendered on top of the reward ad.
     
  2. blablaalb

    blablaalb

    Joined:
    Oct 28, 2015
    Posts:
    53
    NVM, I just found ads prefabs under `Assets > GoogleMobileAds > Editor > PlaceholderAds` direcotry.
     
    DucaDiMonteSberna likes this.
  3. yashubhati

    yashubhati

    Joined:
    Mar 28, 2017
    Posts:
    8
    If, you are using the latest google mobile sdk find the canvas prefab in
    Assets > GoogleMobileAds > Editor > Resources > PlaceholderAds > AppOpen > 1024x768.prefab
    These are the canvases and set there sorting order to the highest in your project.
     
    DucaDiMonteSberna likes this.