xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

Google Ad Manager not working #453

Open ira41186 opened 4 years ago

ira41186 commented 4 years ago

I followed all the instructions, I added all the lines need it in the info.plist, I use Google.MobileAds.DoubleClick but when I use a google Ad Manager ad unit id the code doesn't work I always got the same message "No ad to show" only works when I use an Ad Mob ad unit Id. I really need to use Ad Manager

There is any working example for Google Ad Manager? (https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start)

ira41186 commented 4 years ago

This is a screenshot of the error that I got, one thing that I noticed is the domain Why com.google.admob if I'm using a DFPBanner and a DFPRequest?

Captura de Pantalla 2020-11-09 a la(s) 10 41 59 a  m

I'm also using this in my info.plist

GADIsAdManagerApp true
Karmageddonium commented 3 years ago

Can only link you to this my issue https://github.com/marcojak/MTAdmob/issues/37

xamiell commented 3 years ago

I'm having the same problem!

tienbrown commented 3 years ago

Having the same issue. Works perfectly well with Google AdMob but is not working with Google Ad Manager.

Karmageddonium commented 3 years ago

Having the same issue. Works perfectly well with Google AdMob but is not working with Google Ad Manager.

Try not to use direct iOS launching by hot reload or anyhow it’s named, the point is that if you run ur app on device via Mac connected (virtual too), the issue does not exists. It exists only if you run your app directly from visual studio to iOS device with developer key

tienbrown commented 3 years ago

I generated an ad hoc archive and deployed it via Microsoft App Center and the ad still doesn't display. As far the code, I'm basically calling a var request =Google.MobileAds.DoubleClick.Request.GetDefaultRequest() and then using a BannerView adView.LoadRequest(request). I put some debugging and got a adView.ReceiveAdFailed. The ad does pull from a native Swift app using GoogleMobileAdsSdkiOS-8.9.0 so perhaps the difference in sdk level might be an issue? Thanks for the reply and suggestion, though.

Karmageddonium commented 3 years ago

I generated an ad hoc archive and deployed it via Microsoft App Center and the ad still doesn't display. As far the code, I'm basically calling a var request =Google.MobileAds.DoubleClick.Request.GetDefaultRequest() and then using a BannerView adView.LoadRequest(request). I put some debugging and got a adView.ReceiveAdFailed. The ad does pull from a native Swift app using GoogleMobileAdsSdkiOS-8.9.0 so perhaps the difference in sdk level might be an issue? Thanks for the reply and suggestion, though.

try to look into this issue https://github.com/marcojak/MTAdmob/issues/37 i have the different situation but maybe in sources of this solution you will find the right way to use this feature

xamiell commented 3 years ago

Any update about this?

tienbrown commented 3 years ago

Finally got it working via the MarcTron.Admob plugin which I had attempted to use before. The issue on iOS apparently had to do with the xaml container (currently a stacklayout) setup that I was using. The previous layout oddly broke it for iOS, but not Android.

From: Elias Pujols @.> Reply-To: xamarin/GoogleApisForiOSComponents @.> Date: Thursday, November 4, 2021 at 12:22 PM To: xamarin/GoogleApisForiOSComponents @.> Cc: Tien Brown @.>, Comment @.***> Subject: Re: [xamarin/GoogleApisForiOSComponents] Google Ad Manager not working (#453)

ALERT: This email came from an external source. Do not open attachments or click on links in unknown or unexpected emails.

Any update about this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fxamarin%2FGoogleApisForiOSComponents%2Fissues%2F453%23issuecomment-961256636&data=04%7C01%7Ctien.brown%40tpwd.texas.gov%7C89c539b57273438966a108d99fb79d20%7C7864fda762ad47ec81ec323266e3a35f%7C0%7C0%7C637716433243659296%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=kRZbVmorvXpdB3c8YIky9CTMDm%2FDfEwNVPJJ8wlT3wQ%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAVHZAP66FGRCWMLQ3JCIUSLUKK6LRANCNFSM4TO4K25Q&data=04%7C01%7Ctien.brown%40tpwd.texas.gov%7C89c539b57273438966a108d99fb79d20%7C7864fda762ad47ec81ec323266e3a35f%7C0%7C0%7C637716433243669255%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=PN5qvqjbZFHyEbG4aaVoJ%2B1OxXZ0RUbyPEGK0d3h8mg%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Ctien.brown%40tpwd.texas.gov%7C89c539b57273438966a108d99fb79d20%7C7864fda762ad47ec81ec323266e3a35f%7C0%7C0%7C637716433243679209%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=cRvBLjCOzDemcSI3dXUP0SSEwDATD6fQ3leF3RZFMIE%3D&reserved=0 or Androidhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Ctien.brown%40tpwd.texas.gov%7C89c539b57273438966a108d99fb79d20%7C7864fda762ad47ec81ec323266e3a35f%7C0%7C0%7C637716433243679209%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=G0W9gC%2Fm3s%2Fn9IjcWiB8fPK0mKSj7456J1Ou19kkLrQ%3D&reserved=0.

xamiell commented 3 years ago

Hi, @tienbrown, the weird thing is that even test without any StackLayout just ContentPage.Content and still not rendering any ad but with AdMob Test Ads works.