AdMob Android tutorial – Placing Rewarded Video Ads In HINDI/URDU

What is Google Admob ? How to generate Ads for Android apps !
How to monetize your android application using AdMob.
AdMob is a mobile ad network from google.
In this video i am explaining that how to add rewarded video ads in your android application and get reward coins by watching video IN Hindi/URDU.
Connect on Social:-

Facebook: – https://www.facebook.com/javabysuryasir/
Twitter: – https://www.twitter.com/suryasirjava
Google Plus: –
https://plus.google.com/u/0/109580621108566125935
LinkedIn: – https://www.linkedin.com/in/surya-prakash-346a1390/.

Program:-

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.MobileAds;
import com.google.android.gms.ads.reward.RewardItem;
import com.google.android.gms.ads.reward.RewardedVideoAd;
import com.google.android.gms.ads.reward.RewardedVideoAdListener;

public class MyRewardedAdd extends AppCompatActivity implements RewardedVideoAdListener
{

private RewardedVideoAd mAd;
private TextView textView;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my_rewarded_add);
textView=(TextView)findViewById(R.id.textView);

mAd = MobileAds.getRewardedVideoAdInstance(this);
mAd.setRewardedVideoAdListener(this);
loadRewardedVideoAd();

}

private void loadRewardedVideoAd() {
if(!mAd.isLoaded())
{
mAd.loadAd(“ca-app-pub-3940256099942544/5224354917”, new AdRequest.Builder().build());
}}

public void startVideoAdd(View view) {
if(mAd.isLoaded())
{
mAd.show();
}

}

@Override
public void onRewardedVideoAdLoaded() {

}

@Override
public void onRewardedVideoAdOpened() {

}

@Override
public void onRewardedVideoStarted() {

}

@Override
public void onRewardedVideoAdClosed() {
loadRewardedVideoAd();
}

@Override
public void onRewarded(RewardItem rewardItem) {
textView.setText(“Available Coins:20”);

}

@Override
public void onRewardedVideoAdLeftApplication() {

}

@Override
public void onRewardedVideoAdFailedToLoad(int i) {

}

@Override
public void onResume() {
mAd.resume(this);
super.onResume();
}

@Override
public void onPause() {
mAd.pause(this);
super.onPause();
}

@Override
public void onDestroy() {
mAd.destroy(this);
super.onDestroy();
}
}

AdMob Android tutorial – Placing Banner Ads In HINDI/URDU

What is Google Admob ? How to generate Ads for Android apps !
How to monetize your android application using AdMob.
AdMob is a mobile ad network from google. In this video i will show you how to place AdMob simple banner ad in your android application.
Connect on Social:-

Facebook: – https://www.facebook.com/javabysuryasir/
Twitter: – https://www.twitter.com/suryasirjava
Google Plus: –
https://plus.google.com/u/0/109580621108566125935
LinkedIn: – https://www.linkedin.com/in/surya-prakash-346a1390/.

Program:

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Toast;

import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;

import java.util.Timer;
import java.util.TimerTask;
public class MainActivity extends AppCompatActivity
{
AdView adView;
private boolean exit=false;
private WebView webView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// MobileAds.initialize(this, “ca-app-pub-3940256099942544~3347511713”);

getSupportActionBar().hide();
setContentView(R.layout.activity_main);
webView=(WebView)findViewById(R.id.webview);
webView.loadUrl(“https://www.youtube.com/channel/UCr_JF45WJY5DIcXon2a2qlg”);
WebSettings webSettings=webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient());
adView=(AdView)findViewById(R.id.adView);
AdRequest adRequest=new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build();
adView.loadAd(adRequest);

}

@Override
public void onBackPressed() {
if(webView.canGoBack()) {
webView.goBack();
}
else
{
//super.onBackPressed();
if(exit)
{
finish();
}
else
{
Toast.makeText(MainActivity.this, “Press again to exit..”, Toast.LENGTH_SHORT).show();

}
Timer timer=new Timer();
timer.schedule(new TimerTask() {
@Override
public void run() {
exit=false;
}
},2000);

exit=true;
}
}}

addUnit:ca-app-pub-3940256099942544/6300978111

Channel: AndroJava Tech4U
Published: 2017-08-26 03:01:39
Duration: 23M32S
Views: 605
Likes: 36
Favorites: 0

AdMob Android tutorial – Placing Interstitial Ads In HINDI/URDU

what is admob, admob vs adsense, AdMob (Organization), gdl, product: apps, fullname: other, Location: other, Team: Other, Type: DevByte, GDS: Post Production, Other: NoGreenScreen, admob sdk android, how to use admob in android, apps admob, admob ads, admob integration, google mobile ads sdk android, android ads, add ads to android app, how to add ads in android app example, android mobile ads, android AdMob, addmob in hindi, add mob api, admob interstitial add in hindi

What is Google Admob ? How to generate Ads for Android apps !
How to monetize your android application using AdMob.
AdMob is a mobile ad network from google. In this video i will show you how to place AdMob simple Interstitial ad in your android application.

Java Code:

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Toast;

import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.InterstitialAd;

import java.util.Timer;
import java.util.TimerTask;
public class MainActivity extends AppCompatActivity
{
AdView adView;
private boolean exit=false;
private WebView webView;
private InterstitialAd interstitialAd;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// MobileAds.initialize(this, “ca-app-pub-3940256099942544~3347511713”);

getSupportActionBar().hide();
setContentView(R.layout.activity_main);
webView=(WebView)findViewById(R.id.webview);
webView.loadUrl(“https://www.youtube.com/channel/UCr_JF45WJY5DIcXon2a2qlg”);
WebSettings webSettings=webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient());
adView=(AdView)findViewById(R.id.adView);
AdRequest adRequest=new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build();
adView.loadAd(adRequest);
interstitialAd=new InterstitialAd(this);
interstitialAd.setAdUnitId(“ca-app-pub-3940256099942544/1033173712”);
interstitialAd.loadAd(new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build());
interstitialAd.setAdListener(new AdListener() {
@Override
public void onAdClosed() {
startActivity(new Intent(MainActivity.this,Next.class));
interstitialAd.loadAd(new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build());
}
});

}

public void next(View view)
{
if(interstitialAd.isLoaded())
{
interstitialAd.show();
}
else
{
startActivity(new Intent(MainActivity.this,Next.class));
}}

@Override
public void onBackPressed() {
if(webView.canGoBack()) {
webView.goBack();
}
else
{
//super.onBackPressed();
if(exit)
{
finish();
}
else
{
Toast.makeText(MainActivity.this, “Press again to exit..”, Toast.LENGTH_SHORT).show();

}
Timer timer=new Timer();
timer.schedule(new TimerTask() {
@Override
public void run() {
exit=false;
}
},2000);

exit=true;
}
}}

Connect on Social:-

Facebook: – https://www.facebook.com/javabysuryasir/
Twitter: – https://www.twitter.com/suryasirjava
Google Plus: –
https://plus.google.com/u/0/109580621108566125935
LinkedIn: – https://www.linkedin.com/in/surya-prakash-346a1390/.

Channel: AndroJava Tech4U
Published: 2017-08-27 01:46:21
Duration: 15M26S
Views: 342
Likes: 9
Favorites: 0

AdMob Android tutorial – Placing Native Express Ads In HINDI/URDU

In this video we are going to learn about how to integrate AdMob Native Express ad unit in your android application.
Channel: AndroJava Tech4U
Published: 2017-09-01 16:24:24
Duration: 14M31S
Views: 223
Likes: 13
Favorites: 0

AdMob Android tutorial – Placing Banner Ads

How to monetize your android application using AdMob.
AdMob is a mobile ad network from google. In this video i will show you how to place AdMob simple banner ad in your android application.
Like my Facebook page : https://www.facebook.com/codeglympse
Subscribe My YouTube channel : http://www.youtube.com/ticoontechnologies
Channel: PRABEESH R K
Published: 2017-07-21 18:54:31
Duration: 15M
Views: 5161
Likes: 95
Favorites: 0

How to move from one activity(screen) to another in android

This is a simple video tutorial on how to move from one activity(screen) to another activity in android using INTENT class. For people who have doubts on how to create an android application , please refer to my first tutorial. The link is
https://www.youtube.com/watch?v=fhzHmg39Gu8
Channel: Arivarasan Karmegam
Published: 2015-12-07 07:47:44
Duration: 14M5S
Views: 19862
Likes: 124
Favorites: 0

Leave a Reply

Your email address will not be published. Required fields are marked *