Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Overlay Ad GetTemplateWidthInPixels() and GetTemplateHeightInPixels() #3706

Open
NhanLe1999 opened this issue Dec 10, 2024 · 0 comments

Comments

@NhanLe1999
Copy link

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2022.3.28f1
  • Google Mobile Ads Unity plugin version: 9.4.0
  • Plugin installation method: .unitypackage import
  • Platform: Android
  • Platform OS version: Android 10
  • Any specific devices issue occurs on: No
  • Mediation ad networks used, and their versions:None

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

Load and RenderAd NativeOverlayAd with id native test: "ca-app-pub-3940256099942544/2247696110".
Get size of NativeOverlayAd.
Debug.Log("Size : " + _nativeOverlayAd.GetTemplateWidthInPixels() + "//y: " + _nativeOverlayAd.GetTemplateHeightInPixels());
Resutl: Size : -1//y: -1

Relevant Code:

Debug.Log("Size : " + _nativeOverlayAd.GetTemplateWidthInPixels() + "//y: " + _nativeOverlayAd.GetTemplateHeightInPixels());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant