GithubHelp home page GithubHelp logo

marcojak / testmtadmob Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 2.0 483 KB

Test project for the MTAdmob plugin

Home Page: http://www.xamarinexpert.it

C# 100.00%
admob google ios mtadmob xamarin xamarinexpert

testmtadmob's People

Contributors

gsgou avatar marcojak avatar marcotroncone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bricefriha gsgou

testmtadmob's Issues

Support for Interstial VIDEO?

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?

Documentation should suggest setting banner height.

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.

Toggling BannerAd Visibility sets Banner Ad Height to 1

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

  • Xamarin Forms 4.8.0.1269
  • MarcTron.Admob 1.5.7

UWP support

Because Microsoft shutting down the Ad Monetization platform I need an alternative.
Please add UWP support.

Latest Xamarin 4.6

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.

Ad failed to load : 0

hi . this project work fine with google tests adunits but has "Ad failed to load : 0" error when i use my adunit code.

Compiling errors everywhere!!!

  1. Downloading the solution, open it and compile it: namespace missing. I had to add manually this:

using MarcTron.Plugin.CustomEventArgs;

  1. Cannot compile for iOS:

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'.

  1. If I update all the nugets (this project uses Xamarin Forms 4.6), I get another errors:
    An error occurred: 'Object reference not set to an instance of an object.'. Callstack: ' at TestMTAdmob.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00007] in C:\Users\PC\Desktop\TestMTAdmob-master\TestMTAdmob\TestMTAdmob.iOS\AppDelegate.cs:23

Xamarin.PreBuilt.iOS[288:11646] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Xaml' (culture: '')

  1. I read about another requirement, the Xamarin.Google.iOS.SignIn package. I've installed it but it doesn't work neither.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.