marcojak / testmtadmob Goto Github PK
View Code? Open in Web Editor NEWTest project for the MTAdmob plugin
Home Page: http://www.xamarinexpert.it
Test project for the MTAdmob plugin
Home Page: http://www.xamarinexpert.it
Greetings, Thanks for this great package.
when I use the ShowInterstitial method for a regular Interstitial, it works fine, however, when I use it for an Interstitial Video (e.g. here is the ad unit ID for an android TEST interstital video) ca-app-pub-3940256099942544/8691691433 , it fails - does this mean that the interstital videos are just not supported yet (and if not, will they be soon?) or that I am missing some sort of config?
I think the documentation should state that on Android it is best to set the height of an ad banner. Before and after I moved to your ad library I had an issue where the ad would load with no height and only appear if the user happened to rotate the phone. You even suggest it yourself on StackOverflow.
In my App, a user can take out a Pro subscription then choose to turn off adverts.
I have a banner add on my page:
<controls:MTAdView PersonalizedAds="true" x:Name="AdView" Visual="None"
PropertyChanged="AdView_OnPropertyChanged"
IsVisible="{Binding ShowAdverts}" />
When the IsVisiable
property is bound to a property the height of the banner ad is set to one and never changes when an ad is loaded.
As a work around I have had to add the following code:
private void AdView_OnPropertyChanged(object sender, PropertyChangedEventArgs e)
{
Debug.WriteLine($"Property Changed {e.PropertyName}");
if (e.PropertyName == nameof(IsVisible) && sender is MTAdView adview)
{
if (adview.IsVisible && adview.Height < 5)
{
adview.HeightRequest = 50;
}
}
}
This happened when testing on iOS (both device and Simulator)
Using
Sorry,Del!!!
Because Microsoft shutting down the Ad Monetization platform I need an alternative.
Please add UWP support.
I have updated the packages as follows and the solution no longer builds:
MarcTron.Admob 1.5.5
Xamarin.Forms 4.6.0.772
Xamarin.Google.iOS.MobileAds 7.57.0
Xamarin.Google.iOS.SignIn 5.0.2.1
Has anyone tried updating to the latest versions?
EDIT:
I got this to work after reading lots of comments, if you remove Google.iOS.SignIn then it all works again.
hi . this project work fine with google tests adunits but has "Ad failed to load : 0" error when i use my adunit code.
using MarcTron.Plugin.CustomEventArgs;
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Local.targets(109,3): error : Could not find a part of the path 'C:\Users\PC\AppData\Local\XamarinBuildDownloadCache\GAppM-6.4.1\Frameworks\GoogleAppMeasurement.framework\GoogleAppMeasurement'.
Xamarin.PreBuilt.iOS[288:11646] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Xaml' (culture: '')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.