EddyVerbruggen / nativescript-admob

NativeScript plugin to earn some precious :moneybag::moneybag: with ads by Google AdMob
MIT License
69 stars 26 forks source link

set: request.testDevices = @[ @"6a08b8cca00a33ad944a728ea4114fc5" ] #81

Closed alexisconsuegra closed 4 years ago

alexisconsuegra commented 4 years ago

Hi, I getting error To get test ads on this device, set: request.testDevices = @[ @"6a08b8cca00a33ad944a728ea4114fc5" ]; calling the createBanner function of nativescript-admob plugin (version 4.0.1). I don't see a way to set the resquest.testDevices in this version, I do have the ads created and real ids used. Any help appreciated.

const admobModule = require("nativescript-admob");
function createBanner() {
admobModule.r
admobModule.createBanner({
    testing: true,
    size: admobModule.AD_SIZE.SMART_BANNER,
    iosBannerId: "ca-app-pub-xxxxxxxx/47xxxxxxxx",
    androidBannerId: "ca-app-pub-xxxxxxxx/15xxxxxxxx",
    iosTestDeviceIds: ["myid"],
    margins: {
        bottom: 0
    }
}).then(function () {
    console.log("admob createBanner done");
}, function (error) {
    console.log("admob createBanner error: " + error);
});

}

EddyVerbruggen commented 4 years ago

Hi, is this on iOS? Did you add 6a08b8cca00a33ad944a728ea4114fc5 to iosTestDeviceIds?

alexisconsuegra commented 4 years ago

Hi, Yes, this is iOS. I set the id of the device connected. Question should I add id "6a08b8cca00a33ad944a728ea4114fc5" in addition to my device id or just have only id "6a08b8cca00a33ad944a728ea4114fc5"? Thanks for the fast response.

EddyVerbruggen commented 4 years ago

Just add it for all devices connected. So iosTestDeviceIds: ["6a08b8cca00a33ad944a728ea4114fc5", "any other ids"].

alexisconsuegra commented 4 years ago

Ok. I did. Thanks. Sorry I keep bothering but ad still does not show even when the promise returns success. I get another message:

EddyVerbruggen commented 4 years ago

Did a test-ad on a simulator work? There's not too much usefulness in that stacktrace unfortunately.

alexisconsuegra commented 4 years ago

Hi What does this error means? [I-ACS013003] User property name must start with a letter: _ap and a long trace of activity but nothing showing yet. Any idea?

EddyVerbruggen commented 4 years ago

You'd better Google that because it's not a message generated by this plugin..

alexisconsuegra commented 4 years ago

I did, but found nothing related to this case. I thought you would know. Thanks any ways.

alexisconsuegra commented 4 years ago

Without a resolution?