Enable test mode in RevMob - android

How to enable test mode in RevMob Android? I'm trying to find code snippet but not able to find.
revmob.setTestingMode(RevMobTestingMode.WITH_ADS);
The above code is not working.
My app is not in live. Its just in testing purpose. The following pic is showing what they are saying to implement.
See here

The setTestingMode isn't used anymore and will soon be removed. To get test ads just use your media ID that has "Testing" as status.

Related

Amazon IAP Android onProductDataResponse always fails

I am trying to implement a simple subscription IAP on Android using the Amazon SDK. I adjusted their subscription sample app. The code is really simple.
Set <String>productSkus = new HashSet<String>();
productSkus.add("TLS_SKU_MONTHLY" );
productSkus.add( "TLS_SKU" );
PurchasingService.getProductData(productSkus);
But the response from onProductDataResponse() is always fail. I'm not sure why, I cannot find any examples etc to even know if my SKUs are right, in the sample app they looked more like package names than this, but these strings are what I entered on the 'in-app items' on the apps page on Amazon. The app has not been submitted yet, but I need to test and implement IAP before that. Any ideas? I cannot even find a simple tutorial walking through this, and as usual their docs are poor.
edit, noticed im getting these errors that dont even come up on google
Kiwi: DataAuthenticationKeyLoaderV3: Unable to load authentication Key
java.io.FileNotFoundException: AppstoreAuthenticationKey.pem
DATA_AUTH_KEY_LOAD_FAILURE: CERT_NOT_FOUND: null
com.amazon.a.a.o.b.a.a: DATA_AUTH_KEY_LOAD_FAILURE: CERT_NOT_FOUND: null
I'm wondering, is this because I am running on real Android and not an Amazon device like a fire tablet or tv stick?
You should add your own AppstoreAuthenticationKey.pem to the project assets folder. It is not (and should not be) delivered together with the sample.
Basically, you must do a few things:
Login to the Amazon developer console and create your application.
Go to the “Apk Files" tab to download AppstoreAuthenticationKey.pem.
Add this file to the project’s assets folder.
You can get the full instructions from Amazon.
As for devices, yes, you must use an Amazon device. But this should not be the reason why you are getting this exception.

android Admob and startApp

I have an app on playstore https://play.google.com/store/apps/details?id=com.advocosoftwares.colorbook. I have used startApp in first release version. Now for next version I am trying to add AdMob rewarded video ad in the same app. I am getting the issue while implementing it. I have followed the complete procedure from https://www.youtube.com/watch?v=_frcK8lYnX8 but onRewardedVideoAdFailedToLoad() method is called showing error code 3, I tried with both the sample id as well as created new Id for project but same error code as a result. I did the same procedure in other app where it works fine. Just having the issue in this app. Please help me out.
Error Code 3 means no fills from the mediated ad network.
Try again by enabling only test ads from startApp and see if that works.
You can also use this sample app to test you ad unit id.

How to test if my new event is working in Google TagManager before publishing it?

I am using Google TagManager in my android project. It was used and maintained before by someone and I am new to Google TagManager stuffs. I want to measure one of the button click events in my app. So, I have added this on button click:
dataLayer.push("myid", "mybutton-btn-click");
In Google Tag Manager also, I have added this variable and generated the new container binary which I have put in my app.
Now before publishing the container, I want to make sure that this new button click event works. But I cannot find a way to test it.
I enabled "tagManager" verbose logging but do not see any log when I click the button.
I also tried looking in GTM console and could not find a place to see it. I am also trying to look in GA console and could not see it.
I could generate the preview link for the container and can test that the app gets launched with the QR code reader.
can someone help me to know how to test if the event got logged on click of the button?
Thanks for any help
For testing your events in an anroid you need follow the instruction available in GTM for anroid documentation
https://developers.google.com/tag-manager/android/v5/#preview-debug-pubish-container

Track APP Installs from Facebook

I'm following documentation as states:
https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads/#advanced
Specifically: Measure App Installs
However, I did the following code:
com.facebook.AppEventsLogger.activateApp( this, APPLICATION_ID_FACEBOOK );
However, in dashboard, it doesn't detect the install:
Any tips?
LogCat outputs the following:
FacebookException: No attribution id returned from the Facebook application
Ok. Solved.
Basically for whoever faces this:
FACEBOOK APP must be installed in device.
USER must be logged in.
Thats it.
=)
Another great but hidden hint is to enable verbose logging via
FacebookSdk.addLoggingBehavior(APP_EVENTS)
The output is actually very helpful and even contains error analysis and descriptions.

Facebook OAuth shows "you must log in first"

I want to make MyApp name show on the upper space as Facebook Samples shown.
But even the source code is the same with the sample's, the raw/layout data are the same, too. I don't know why MyApp shows only "You must log in first".
Is anything I missed?
Now I put my whole source code up to the share space: http://qfs.mobi/f689673
And I found it seems not login successful if I input the right information.
Finally, I found the problem..
I change to use the Facebook Sample And run with my app_id. And then I found there are error code when login dialog shows. "This app is in sandbox mode."
God! Isn't sandbox mode for "Developers"? Seems I misunderstand..
Since this a problem is with the webpage shown by the facebook sdk, it doesn't seem to be an issue with your android code, but rather with the way your facebook app is defined in the app center.
The SDK basically redirects you to this link: https://m.facebook.com/dialog/oauth?app_id=xxx&redirect_uri=fbconnect://success (replace xxx with your app_id). Try going to the link when you are not logged in or when you are in incognito mode, you should see the login screen as such: http://imgur.com/xeqigSu
You could check a couple of things:
That your app is live. Check this on your app basic settings page
Try changing the language on the login page and see if that helps, since your app is in a language other than English
go in android setting,then Applications,Manage applications,find your browser and clear data,it works as usual!

Categories

Resources