Giter Club home page Giter Club logo

ti.admob's Introduction

Titanium AdMob Module

Use the Google Admob Module in Titanium.

Contributors

  • Jasper Kennis
  • Jon Alter
  • Jeff English
  • Muhammad Dadu
  • Gary Mathews
  • Dawson Toth
  • Hans Knöchel
  • Vittorio Sorbera

Interested in contributing? Fork and submit your PR :)

Issues

Report issues to TiSlack.

Legal

This module is Copyright (c) 2010-Present by Appcelerator, Inc. All Rights Reserved. Usage of this module is subject to the Terms of Service agreement with Appcelerator, Inc.

ti.admob's People

Contributors

angelkpetkov avatar astrovic avatar caspahouzer avatar cauld avatar cb1kenobi avatar cheekiatng avatar dawsontoth avatar dependabot-preview[bot] avatar dependabot[bot] avatar ewanharris avatar garymathews avatar hansemannn avatar hieupham007 avatar ingo avatar janvennemann avatar jasperkennis avatar jawa9000 avatar jeffenglish avatar jonalter avatar lokeshchdhry avatar m1ga avatar mcvendrell avatar muhammaddadu avatar pec1985 avatar sgtcoolguy avatar stephenfeather avatar tonylukasavage avatar vijaysingh-axway avatar vikas-goyal-axway avatar ypbnv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ti.admob's Issues

Android Admob Crashes in Nexus 5 Marshmallow

Iam using mac titanium 5.3sdk

My App is in live and its crashing in Nexus 5 .

I found the issue is because of the admob.

java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.myapp.app-1/lib/arm/libti.admob.so: has text relocations

Is there anybody have latest module compiled . please help me to solve this issue.

full example for Interstitial android

hi

have you a full sample for supporting android Interstitial???

this one doesn't work

var adMobInterstitial = admob.createView({
publisherId:"ca-app-pub-924XXXXXXXXXXXXXXXXXXXXXXXXXX2",
testing:false, // default is false
//top: 10, //optional
//left: 0, // optional
//right: 0, // optional
bottom: 2, // optional
adBackgroundColor:"#eff0f0", // optional
backgroundColorTop: "#eff0f0", //optional - Gradient background color at top
borderColor: "#000000", // optional - Border color
textColor: "#000000", // optional - Text color
urlColor: "#00FF00", // optional - URL color
linkColor: "#0000FF", //optional -  Link text color
adUnitId : 'ca-app-pub-924XXXXXXXXXXXXXXXXXXXXXXXXXX2', // You can get your own at http: //www.admob.com/
isInterstitial : true
//primaryTextColor: "blue", // deprecated -- now maps to textColor
//secondaryTextColor: "green" // deprecated -- now maps to linkColor
});

//listener for adReceived
adMobInterstitial.addEventListener(admob.AD_RECEIVED,function(){
// alert("ad received");
Ti.API.info("adMobInterstitial - ad received");
});

//listener for adNotReceived
adMobInterstitial.addEventListener(admob.AD_NOT_RECEIVED,function(){
//alert("ad not received");
 Ti.API.info("adMobInterstitial - ad not received");
});

$.windowRoot.add(adMobInterstitial);

$.windowRoot.open();

and the result is :

Ads: Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
Ads: CsiReporterFactory: CSI is not enabled. No CSI reporter created.
Ads: No fill from ad server.
dalvikvm: Could not find method android.webkit.WebSettings.setMixedContentMode, referenced from method com.google.android.gms.ads.internal.s.g.<init>
dalvikvm: VFY: unable to resolve virtual method 3153: Landroid/webkit/WebSettings;.setMixedContentMode (I)V
Ads: Failed to load ad: 3

Native Ads?

Admob has recently made Native Ads available.
It would be awesome if any mobile native ninja could integrate that for us!

Can't build app project with ti.admob 2.1.0 and Titanium 5.2.0

Hi,

I've been trying to use the ti.admob module with the current version of Titanium 5.2.0. My app project fails to build with the following error:
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/x86_64/GearTube normal x86_64

I've also tried to build ti.admob from source using titanium 5.2.0. It builds, but the resulting module gives me the same error as your build.

Any ideas why this might be happening?

Thanks,
James

Crashed on Android 6.0 using sdk 2.1.6.

I am using admob sdk 2.1.6, titanium sdk 5.1.2 and building for Android 6.0. App crashed straight away with following crash log when using admob.

[ERROR] : TiApplication: (main) [12,2164] Sending event: exception on thread: main msg:java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzan;; Titanium 5.1.2,2015/12/16 19:00,ca822b2
[ERROR] : TiApplication: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzan;
[ERROR] : TiApplication: at com.google.android.gms.ads.internal.zzp.(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.ads.internal.zzp.(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.ads.internal.zzb.(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.ads.internal.zzc.(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.ads.internal.zze.(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.ads.internal.client.zze.zza(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.ads.internal.client.zzy.zzcO(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.ads.internal.client.zzy.zza(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.ads.AdView.loadAd(Unknown Source)
[ERROR] : TiApplication: at ti.admob.View$2.run(View.java:81)
[ERROR] : TiApplication: at android.app.Activity.runOnUiThread(Activity.java:5511)
[ERROR] : TiApplication: at ti.admob.View.loadAd(View.java:69)
[ERROR] : TiApplication: at ti.admob.View.createAdView(View.java:64)
[ERROR] : TiApplication: at ti.admob.View.processProperties(View.java:135)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1209)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:505)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:512)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:512)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474)
[ERROR] : TiApplication: at dk.napp.drawer.Drawer.processProperties(Drawer.java:365)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1209)
[ERROR] : TiApplication: at dk.napp.drawer.DrawerProxy.windowCreated(DrawerProxy.java:146)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:508)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:601)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] : TiApplication: at android.app.Activity.performCreate(Activity.java:6237)
[ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
[ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
[ERROR] : TiApplication: at android.app.ActivityThread.-wrap11(ActivityThread.java)
[ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:148)
[INFO] : Application: at android.app.ActivityThread.main(ActivityThread.java:5417)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
[ERROR] : TiApplication: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzan" on path: DexPathList[[zip file "/data/app/com.adaminoor.RotoBaller2014-1/base.apk"],nativeLibraryDirectories=[/data/app/com.adaminoor.RotoBaller2014-1/lib/x86, /data/app/com.adaminoor.RotoBaller2014-1/base.apk!/lib/x86, /vendor/lib, /system/lib]]
[ERROR] : TiApplication: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
[ERROR] : TiApplication: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
[ERROR] : TiApplication: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
[ERROR] : TiApplication: ... 43 more
[ERROR] : TiApplication: Suppressed: java.lang.ClassNotFoundException: com.google.android.gms.internal.zzan
[ERROR] : TiApplication: at java.lang.Class.classForName(Native Method)
[ERROR] : TiApplication: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
[ERROR] : TiApplication: at java.lang.BootClassL
[WARN] : TiVerify: (Timer-0) [2835,4999] Verifying module licenses...

I also tried to build for android 5.1.0 but same result. Someone look into this.

iOS ads not shown on my app

Hello,
When I test my app on ios simulator I can see test admob banner.
After published my app on iTunes, banner not shown on real device.

Do you have any idea where is my problem?

My ti.admob release version is 2.1.0 which I implement my project.

var $Admob = require('ti.admob');

if (OS_IOS) {
    Alloy.Globals.AdmobPubliserId = "ca-app-pub-2223887693172102/xxxxxxxx";
} 

if (OS_IOS) {

            var $AdmobIOS = $Admob.createView({
                height: 50,
                top: 0,
                debugEnabled: true,
                adBackgroundColor: 'black',
                adType: $Admob.AD_TYPE_BANNER,
                adUnitId : Alloy.Globals.AdmobPubliserId,
                testDevices : [$Admob.SIMULATOR_ID]
            });

            $AdmobIOS.addEventListener('didFailToReceiveAd', function() {
                $FncTiApiInfo("Admob not received!");
                $.resetClass($.Admob, "hide");
            });

            $.Admob.add($AdmobIOS);
        }

Serious Google demands

Hi folks,

Thank you for working on this module for us. It has been very helpful and easy to use.
Unfortunately I have just received an email from Google saying my app is violating Admob/Adsense policies.

The problem is that we can present Interstitial ads only during screen transitions in order to avoid having our accounts blocked. But, this module does not yet offer a way to do this properly.
We need more control over the Admob View, like this:

New methods:
Admob.prepareAd() //Request the ads but DOES NOT show it just yet
Admob.presentAd() //Shows the adView
Admob.canPresentAd() //Do we have a ad to display?

New events:
Admob.AD_RECEIVED //We received the ad, so we can display when needed
Admob.AD_NOT_RECEIVED //We did not received the ad. :-(
Admob.AD_WILL_PRESENT //Right before presenting the ad.
Admob.AD_PRESENTED //OHH LORD THAT IS AMAZING!
Admob.AD_NOT_PRESENTED //Houston, we have a problem!
Admob.AD_WILL_DISMISS //Right before the ad is closed and dismissed
Admob.AD_WILL_DISMISSED //All done

All these modifications are in order to provide a better user experience when displaying ads. Without load times between screens, due to ads. We would be able te prepare them beforehand and avoid accidental clicks.

I really hope you guys can accomplish this, otherwise Google will not let us use it anymore. :-(
Which is a shame because this module is awesome...

Thank you very much for your attention!

Ps.: My native skills are close to 0, otherwise I would help.

Smart Banner Ads

Is there a parameter available to request "smart banner" ads that use the whole device width? right now I have only been able to produce a banner ads that is approx. 320 width on a tablet this is very small and not very useful.

Catching click event

Hi developers, firstly thank you for great job. I have an app and that is free. That is not commercial. I do not want to add ads to my app but I need money to continue my project. I would like to when a user click any ads in a day I would like to remove all ads from my app during one day. Is there any event for catching ads click event? If there is not, somebody can add this function for both platform.

Thank you in advance
Best Regards,
Mahmut

AdMob Interstitials

Hi-
I would like to thank all of the contributors to this module, it has been important to us and your hard work is truly appreciated.

I wanted to find out, as I have tried to do my diligence in research, does this module support AdMob Interstitial and if show can you point me to some documentation on how to execute for iOS?

Thanks!

Support for Interests?

I have a client that needs to target ads based on name value pairs, e.g. "app"="first-load". from the admob documentation, it looks like there is a propery called "Interests" that supports this functionality - are there any plans to expose this? It looks like older versions of this module had a property called "extras" that would provide this functionality but that doesn't seem to be supported in this version. Please let me know if this is possible via another property or if we can get this feature added.

Thanks,

Brian Caufield

ad not received

Tried with android sample code with banner and interstitial, but I can't see ad both of them.
It returns below message.

[INFO] : ad not received

Any idea?

SDK 5.2.2
Tested Galaxy S2 (v4.1.2)
Module version : 2.1.6

ListView using?

Does anybody know to use ti.admob as ListView section or adding different approach on Android and iOS platforms?

No interstitial ad displayed

I'm trying to display an interstitial ad, but nothing happens. On console log I had:

[ERROR] : GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
[INFO] : Ads: Starting ad request.
[INFO] : Ads: Use AdRequest.Builder.addTestDevice("***") to get test ads on this device.
[INFO] : Ads: No fill from ad server.
[INFO] : Ads: Scheduling ad refresh 60000 milliseconds from now.

It seems that I've to install Google Play Services, but I've it installed yet on my phone. It was tested on two Android phones, one with Android 4.2 and other with Kit Kat. My app.js:

var win = Titanium.UI.createWindow({
backgroundColor:'#000'
});

var Admob = require('ti.admob');

setTimeout(function(){
show_interstitial();
},5000);

win.open({animated: true});

function show_interstitial(){
var adMobInterstitial = Admob.createView({
publisherId:"ca-app-pub-3192763241213853/**********",
testing: false , // default is false
top: 0,
width: Ti.UI.FILL,
height: Ti.UI.FILL,
});
win.add( adMobInterstitial );
}

[Update] If instead an Interstitlal ad, I change the publisherId by a normal ad, ads are displayed. So, It seems to be an issue with interstitials.

Why I have to addTestDevice if testing is false? And why any ad is shown? Thanks in advance.

The form in admob.com is so simple:

captura de pantalla 2014-09-29 a la s 12 35 48

Ti.Admob crashes on launch of the application.

I tried 2.5.1 and 3.0.0 for IOS using titanium sdk 10.1.1.GA. The app launches and then crashes at start screen. After debugging I found this error

pthread_exit() called from a thread not created by pthread_create()

Please help!

Blank Adview

Hi,
Thank you for this module but i have a blank Adview in iOS i have configured admob account settings
it works for android but not in iOS
i have jut a log message : AdMob module loaded
and any event fired.
any solutions ?
Thanks.

adMob SDK needs to be updated to 7.0

<Google:HTML> You are currently using version 6.12.0 of the SDK, which doesn't officially support iOS 8. Please consider updating your SDK to the most recent sdk version, 7.0.0, to get iOS 8 support, including a fix for smart banner rendering in landscape mode. The latest SDK can be downloaded from http://goo.gl/iGzfsP. A full list of release notes is available at https://developers.google.com/mobile-ads-sdk/docs/admob/ios/rel-notes.

Release Notes: https://developers.google.com/mobile-ads-sdk/docs/admob/ios/rel-notes
Download Page: https://developers.google.com/mobile-ads-sdk/docs/admob/ios/download

Using this module with ListView

I worked this module as below codes on iOS with ListView

alloy.js

var $Admob = require('ti.admob');

template.js

exports.$ListViewiOSAdmobSection = {
    childTemplates : [{
        type : 'TiAdmobView',
        properties : {
            height : 50,
            top : 0,
            debugEnabled : false, //> If enabled, a dummy value for `adUnitId` will be used to test
            adBackgroundColor : 'black',
            adType : $Admob.AD_TYPE_BANNER,
            adUnitId : Alloy.Globals.AdmobPubliserId,
            testDevices : [$Admob.SIMULATOR_ID]
        }

    }],
    properties : {
        accessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE,     
        backgroundColor : "red",
        height : 50,
        selectedBackgroundColor : "red",
        selectionStyle : OS_IOS ? Ti.UI.iPhone.ListViewCellSelectionStyle.NONE : "transparent",
        title : ""
    }
};

When I trying similar approach for Android I didn't get success result. I am getting errors.

exports.$ListViewAndroidAdmobSection = {
    childTemplates : [{
        type : 'AdMobViewProxy,
        properties : {
                publisherId : Alloy.Globals.AdmobPubliserId,
                testing : false
        }

    }],
    properties : {
        accessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE,     
        backgroundColor : "red",
        selectedBackgroundColor : "red",
        selectionStyle : OS_IOS ? Ti.UI.iPhone.ListViewCellSelectionStyle.NONE : "transparent",
        title : ""
    }
};

Where is my fault? Any idea @stephenfeather @muhammaddadu @hansemannn @jasperkennis @tonylukasavage @jonalter @garymathews @ingo @cauld @pec1985 Thank in advance for your helps.

Release zip missing for ti.admob iOS 7.0.0 version

Hi
Great work.
I cannot find the release ti.admob-iphone-7.0.0.zip in the directory

It seems it is missing in ti.admob iOS 7.0.0 version

May be we can compile but I don't know how to create it.

Thanks

bitfabrikken intersitital issue on ios 8

ad is received but I get no visible ad. A transparent layer appears preventing the phone from receiving events.
Works fine in ios 7 though.

*** WebKit discarded an uncaught exception in the webView:didFinishLoadForFrame: delegate: -[UIWindow presentViewController:animated:completion:]: unrecognized selector sent to instance 0x7bf77d80

Crash when adunit is invalid and banner view is added to a listView

We use listViews instead of tableViews because of better performance, so we needed to add the bannerView to a listView. Because of the different structure of listViews we couldn't add it after the listView was generated, and I had to solve it with a definition of the bannerView in a listView template.

This seemed to be working, until I forgot to define a valid adUnitId: it caused a very ugly crash:

[WARN] :   2016-02-20 20:01:29.254 Skoften[94744:9830716] <Google> To get test ads on this device, call: request.testDevices = @[ kGADSimulatorID ];
[WARN] :   2016-02-20 20:01:29.394 Skoften[94744:9830816] <Google> Invalid Request: {
[WARN] :       "activation_overlay_url" = "http://googleads.g.doubleclick.net/mads/static/activation_overlay.html?hl=en-us";
[WARN] :       "base_uri" = "https:";
[WARN] :       "drt_include" = 0;
[WARN] :       "enable_auto_click_protection" = 1;
[WARN] :       errors = "Cannot determine request type. Is your ad unit id correct?";
[WARN] :       "google.afma.Notify_dt" = 1455994889393;
[WARN] :       "pan_include" = 0;
[WARN] :       "request_id" = 1;
[WARN] :       "request_scenario" = "online_request";
[WARN] :       type = unknown;
[WARN] :       "use_webview_loadurl" = 0;
[WARN] :   }
[ERROR] :  The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
[ERROR] :  Reason:
[ERROR] :  *** setObjectForKey: object cannot be nil (key: section)
[ERROR] :  Stack trace:
[ERROR] :  
[ERROR] :  0   CoreFoundation                      0x0000000108541e4d __exceptionPreprocess + 141
[ERROR] :  1   libobjc.A.dylib                     0x0000000107f13deb objc_exception_throw + 48
[ERROR] :  2   CoreFoundation                      0x000000010843f6e2 -[__NSDictionaryM setObject:forKey:] + 1042
[ERROR] :  3   Skoften                             0x0000000101c1898a -[TiUIListItemProxy overrideEventObject:forEvent:fromViewProxy:] + 362
[ERROR] :  4   Skoften                             0x00000001019ea7bf -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 303
[ERROR] :  5   Skoften                             0x0000000101a82e9b -[TiProxy fireEvent:withObject:] + 139
[ERROR] :  6   Skoften                             0x00000001022d48dd -[TiAdmobView adView:didFailToReceiveAdWithError:] + 134
[ERROR] :  7   Skoften                             0x0000000101c9fa14 __54-[GADBannerView slot:didFailToLoadAdContentWithError:]_block_invoke + 83
[ERROR] :  8   Skoften                             0x0000000101cd8feb GADDispatchAsyncSafeMainQueue + 45
[ERROR] :  9   Skoften                             0x0000000101c9f99e -[GADBannerView slot:didFailToLoadAdContentWithError:] + 111
[ERROR] :  10  Skoften                             0x0000000101cc3cd4 -[GADSlot(AdEvents) adFailedToReceiveContentWithError:] + 82
[ERROR] :  11  Skoften                             0x0000000101ce6b58 -[GADSlot(State) didFailToReceiveAdWithError:shouldCancelPendingActions:] + 135
[ERROR] :  12  Skoften                             0x0000000101cb5569 -[GADSlot(GADSDKCoreControllerDelegate) invalidJavaScriptRequest] + 112
[ERROR] :  13  Skoften                             0x0000000101c83375 __87-[GADSDKCoreController SDKCoreGMSGHandler:didReceiveInvalidAdWithRequestID:parameters:]_block_invoke736 + 34
[ERROR] :  14  libdispatch.dylib                   0x000000010bf74d59 _dispatch_call_block_and_release + 12
[ERROR] :  15  libdispatch.dylib                   0x000000010bf904a7 _dispatch_client_callout + 8
[ERROR] :  16  libdispatch.dylib                   0x000000010bf7af2d _dispatch_main_queue_callback_4CF + 714
[ERROR] :  17  CoreFoundation                      0x00000001084a1d09 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
[ERROR] :  18  CoreFoundation                      0x00000001084632c9 __CFRunLoopRun + 2073
[ERROR] :  19  CoreFoundation                      0x0000000108462828 CFRunLoopRunSpecific + 488
[ERROR] :  20  GraphicsServices                    0x000000010993bad2 GSEventRunModal + 161
[ERROR] :  21  UIKit                               0x0000000103542610 UIApplicationMain + 171
[ERROR] :  22  Skoften                             0x00000001019a59f6 main + 310
[ERROR] :  23  libdyld.dylib                       0x000000010bfbf92d start + 1
[ERROR] :  
[ERROR] :  2016-02-20 20:01:29.405 Skoften[94744:9826279] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: section)'
[ERROR] :  *** First throw call stack:
[ERROR] :  (
[ERROR] :   0   CoreFoundation                      0x0000000108541e65 __exceptionPreprocess + 165
[ERROR] :   1   libobjc.A.dylib                     0x0000000107f13deb objc_exception_throw + 48
[ERROR] :   2   CoreFoundation                      0x000000010843f6e2 -[__NSDictionaryM setObject:forKey:] + 1042
[ERROR] :   3   Skoften                             0x0000000101c1898a -[TiUIListItemProxy overrideEventObject:forEvent:fromViewProxy:] + 362
[ERROR] :   4   Skoften                             0x00000001019ea7bf -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 303
[ERROR] :   5   Skoften                             0x0000000101a82e9b -[TiProxy fireEvent:withObject:] + 139
[ERROR] :   6   Skoften                             0x00000001022d48dd -[TiAdmobView adView:didFailToReceiveAdWithError:] + 134
[ERROR] :   7   Skoften                             0x0000000101c9fa14 __54-[GADBannerView slot:didFailToLoadAdContentWithError:]_block_invoke + 83
[ERROR] :   8   Skoften                             0x0000000101cd8feb GADDispatchAsyncSafeMainQueue + 45
[ERROR] :   9   Skoften                             0x0000000101c9f99e -[GADBannerView slot:didFailToLoadAdContentWithError:] + 111
[ERROR] :   10  Skoften                             0x0000000101cc3cd4 -[GADSlot(AdEvents) adFailedToReceiveContentWithError:] + 82
[ERROR] :   11  Skoften                             0x0000000101ce6b58 -[GADSlot(State) didFailToReceiveAdWithError:shouldCancelPendingActions:] + 135
[ERROR] :   12  Skoften                             0x0000000101cb5569 -[GADSlot(GADSDKCoreControllerDelegate) invalidJavaScriptRequest] + 112
[ERROR] :   13  Skoften                             0x0000000101c83375 __87-[GADSDKCoreController SDKCoreGMSGHandler:didReceiveInvalidAdWithRequestID:parameters:]_block_invoke736 + 34
[ERROR] :   14  libdispatch.dylib                   0x000000010bf74d59 _dispatch_call_block_and_release + 12
[ERROR] :   15  libdispatch.dylib                   0x000000010bf904a7 _dispatch_client_callout + 8
[ERROR] :   16  libdispatch.dylib                   0x000000010bf7af2d _dispatch_main_queue_callback_4CF + 714
[ERROR] :   17  CoreFoundation                      0x00000001084a1d09 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
[ERROR] :   18  CoreFoundation                      0x00000001084632c9 __CFRunLoopRun + 2073
[ERROR] :   19  CoreFoundation                      0x0000000108462828 CFRunLoopRunSpecific + 488
[ERROR] :   20  GraphicsServices                    0x000000010993bad2 GSEventRunModal + 161
[ERROR] :   21  UIKit                               0x0000000103542610 UIApplicationMain + 171
[ERROR] :   22  Skoften                             0x00000001019a59f6 main + 310
[ERROR] :   23  libdyld.dylib                       0x000000010bfbf92d start + 1
[ERROR] :  )
[ERROR] :  libc++abi.dylib: terminating with uncaught exception of type NSException

My listView template:

exports.dfpTemplate = {

    properties : {
        selectionStyle:Titanium.UI.iPhone.ListViewCellSelectionStyle.NONE,
        height : Ti.UI.SIZE,
        backgroundColor : 'transparent',
        className: 'dfpRow',
        name: 'dfpRow'
    },  

    childTemplates : [
        {
            type : 'Ti.UI.View', 
            bindId : 'container',
            properties : {
                width: '100%',
                height: 1,
                backgroundColor: 'transparent'
            },       
            childTemplates : [  
                {
                      type : 'TiAdmob.View',
                      bindId : 'adDetail',
                      properties : {
                          adBackgroundColor : "#FF8800",
                          width: Ti.UI.SIZE,
                          height: Ti.UI.SIZE,
                          adUnitId : "ca-app-pub-xxxx/xxxxx",
                          autoResize : 1,
                          backgroundColorTop : "#738000",
                          borderColor : 'red',
                          linkColor : "#0000FF",
                          textColor : "#000000",
                          urlColor : "#00FF00"
                      }
                }
            ]
        }
    ]               
};

Update SDK for Android Version

I have been getting a message in Admob when logging into my account that says: "On August 1, 2014, Google Play will stop accepting new or updated apps that use the old standalone Google Mobile Ads SDK v6.4.1 or lower." The current module is using 6.2.1. The iOS version was already updated to a more recent version. Can someone update the Android version?

Click event?

is there any click event handler for admob banner such as in this link

Google Cookie Law EU?

Last month, Google sent a mail to those who use AdMob, AdSense, Analytics for the new Google Cookie Law EU.
Some of you are adopting these new changes on your applications? What to do? Display a pop-up? Or what? Still I did not see any app that displays this message.

This is the mail:

Dear Publisher,

We want to let you know about a new policy about obtaining EU end-users' consent that reflects regulatory and best practice guidance. It clarifies your duty to obtain end-user consent when you use products like Google AdSense, DoubleClick for Publishers, and DoubleClick Ad Exchange.

Please review our new EU user consent policyas soon as possible (https://www.google.com/about/company/user-consent-policy.html). This requires that you obtain EU end users' consent to the storing and accessing of cookies and other information, and to the data collection, sharing, and usage that takes place when youuse Google products. It does not affect any provisions on data ownership in your contract.

Please ensure that you comply with this policy as soon as possible, and not later than 30th September 2015.

If your site or app does not have a compliant consent mechanism, you should implement one now. To make this process easier for you, we have compiled some helpful resources at http://www.cookiechoices.org/ .

This policy change is being made in response to best practice and regulatory requirements issued by the European data protection authorities. These requirements are reflected in changes recently made
on Google's own websites.

Thank you in advance for your understanding and cooperation.

Regards,
The Google Policy Team

1.8.0: Ad's now opening in safari

It looks like the default behavior for opening ads has changes as of 1.8.0 - previously the ad would default to opening in an app-hosted overlay window but now ads are opening in safari on iOS. I looked for a parameter to control this behavior but I can't find anything. In admob documentation, there is a reference to admob.opener.openOverlay() function that accepts a boolean - is this currently exposed and if not how hard would it be to do that?

Module is not supported By Titanium SDK 3.4.1GA

When I look at the TiApp Editor for tiapp.xml, I see that this module is greyed out and has a warning sign. On hover it prints outs 'The "ti.admob' module is not supported By Titanium SDK 3.4.1GA".

If I try to run the app I get the following error:
[ERROR] : Could not find all required Titanium Modules:
[ERROR] : id: ti.admob version: latest platform: iphone deploy-type: development

What am I missing?

And yes I did pull down the latest from master as a zip and installed it successfully as a module (at least it said it did, I can't find it when I try to add a mobile module).

Also I installed SDK 3.3.0RC (Couldn't find a 3.3.0GA download anywhere) and still had the issues above.

Version 3.0.0 not working in Titanium SDK 5.3.1 GA

Hello, I have tried version 2.1.6, but it does ot seem working with Android 6 so I have downloaded version 3.0.0, but it does not seem to be working with Titanium SDK 5.3.1 GA that Im using. In manifest it says min sdk is 6.0.0, but when I contacted appcelerator they said its not released yet, so how did you guys get Titanium SDK 6.0.0? Thnaks for any help, I cannot finish my app without admob.

Unable to submit app on itunes with ti.admob 2.0.0 ios?

I am unable to submit app on itunes with ti.admob latest 2.0.0 module. Interstitial ads are working great but when validating archive for my app during submission process it has couple of issues. 1) Always receive itunes Authentication failed. The request timeout. Error After taking too long to validate. Same app with ti.admob 1.9.0 validates in 5-8 minutes successfully. 2) I able to validate archive successfully with 2.0.0 ti.admob version only once. But then this error shows app when submitting ipa through Application Loader "myAppName.app/GoogleMobileAds.framework/GoogleMobileAds is not permitted. Your app can't contain standalone executables libraries, or other than CFBundleExecutable of supported bundles " . Is someone else has submitted app with ti.admob 2.0.0 successfully? I am building app with xCode 7.2, Ti.sdk 5.1.2, iOS v9.2

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.