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

Can this plugin be integrated into Sencha Touch 2? #23

Open
mrweix opened this issue Dec 5, 2014 · 0 comments
Open

Can this plugin be integrated into Sencha Touch 2? #23

mrweix opened this issue Dec 5, 2014 · 0 comments

Comments

@mrweix
Copy link

mrweix commented Dec 5, 2014

I am trying to integrate this Plugin into an app created with Sencha Touch 2.4, but it doesn't seem to display anything....any ideas how to get this working?

This is what I found so far. But nothing happens

                  listeners: {
                        painted: function ( me, eOpts ) {


                            setTimeout(function() {

                    var success = function() {
                        admob.requestAd({
                            'isTesting': false,
                            'extras': {
                                'color_bg': 'AAAAFF',
                                'color_bg_top': 'FFFFFF',
                                'color_border': 'FFFFFF',
                                'color_link': '000080',
                                'color_text': '808080',
                                'color_url': '008000'
                            }
                        },
                        successCallback,
                        failureCallback
                        );
                    };
                    var error = function(message) {
                        alert('Error');
                    };

                    var successCallback = function(el) {
                        alert(el);
                        alert('successCallback');
                    };

                    var failureCallback = function() {
                        alert('failureCallback');
                    };

                    var options = {
                        'publisherId': 'ca-app-pub-****************/********** ',    
                        'adSize': admob.AD_SIZE.BANNER
                    }

                    admob.createInterstitialView(options, success, error);
                    //admob.createBannerView(options, success, error);

            }, 2000);

                        }

                    }

            }
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