I m new to integrating Admob with client app which is already live on Google Play Store.
I have created a publisher ID for my account.
Now i have created a live ad unit with my account at admob (Google). Now should I link newly created add unit to the client app available in Play store , so as to receive new ads ?
Thanks
Have a look at the Android AdMob guide here. It should have all the information that you need for AdMob integration.
The best guide for adding advertising here: https://developers.google.com/admob/android/quick-start
After the creation of advertising, it can manifest itself immediately, but after some time. If you are worried that something is done wrong, ask for a test ad:
AdRequest adRequest = adRequestBuilder.addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build();
Connection applications with Google Play did not give me anything. I understand it is made for:
Beautiful icon in the console
Bans simultaneously in Google Play and admob
Related
I just released a game to the Google Plat store but my Admob Ads are not showing. Some easy answers:
My target SDK is 33, and my complileSDK is also 33
My app has been live since in the Play Store since Friday 2/3/23
Yes - The Test Ads show when I used the test units
Yes I switched to the real ad unit code for the release
Yes - I officially connected my App to my Admob Account.
In my AdMob account I don't see any warnings (besides the one about my payments are on hold - but that is because I haven't earned the minimum threshold for payment)
I made the connection to Admob Sunday morning (2/5/23) and I got this email:
We completed our app review. The following app has been approved, and
we’ve lifted the ad serving limits and restrictions put in place
during the review.
Yes - I have the latest implementation code in my build gradle (in the dependencies brackets):
implementation 'com.google.android.gms:play-services-ads:21.4.0'
Again, the Google AdMob test ads show, so in my Manifest I have (in the meta-data):
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-account_number"
In my Main_Activity file I use the Ad Unit ID.
In looking for a solution for this I came across this solution earlier, so I added this code to the Manifest as well:
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
My app creates non-personalized ads like so:
private void createNonPersonalizedAd(Animation slideOutToLeft) {
Bundle networkExtrasBundle = new Bundle();
networkExtrasBundle.putInt("rdp", 1);
AdRequest adRequest = new AdRequest.Builder()
.addNetworkExtrasBundle(AdMobAdapter.class, networkExtrasBundle)
.build();
createInterstitialAd(adRequest, slideOutToLeft);
}
In my Google Play Console I answered "YES" to the following question:
Does your app use advertising ID?
Reason:
Analytics or Marketing
I'm not sure if there is value in pasting all of the code from the Main_Activity that calls the ads, especially since the test ads display OK.
I'm not sure if I declared something wrong in the Play Console that conflicts.
About an hour ago (on 2/6/23) I connected Firebase to my app
I'm not sure if it takes more time to display ads or I have configured something wrong
Can anyone identify what I've done wrong that prevents the ads from showing?
I was able to get some outside help and thus discovered the issue was that Google had not approved my Admob account. This was not reflected in my account though, because everything there looked ready to go - and I got the email from Google saying my app was approved and ready to show ads.
I was browsing other forums where someone mentioned to check Adsense. I went to my Adsense account and saw that again I wasn't approved yet for payments. I had submitted that information before - but I resubmitted my government ID, EIN, incorporation paperwork and then my banking information. Once that was submitted, my ads began to show in my apps.
So the issue wasn't technical. It was just Adsense needing information about my company. I hope this answer helps someone else out.
My android application has some admob ads. I am testing my admob in Google Play store Alpha & Beta channel.
My question is:
Can I use REAL admob ad unit ids when I deploy my app into Google play
store Alpha & Beta channels? Does it violate google play policy? What
if i click or don't click them?
I read this in Google admob:
Do I need to use test ads? Yes. It is against AdMob policy to use live
ads during development, and doing so could cause the suspension of
your AdMob account.
BUT it seems not very clear to me.
Thank you!
Technically you can, but there is one very important point to consider - Pre-launch report. You need to either have Pre-launch reports disabled, or make sure you don't show ads to Firebase test devices, or else you will get a bunch of "clicks by bots", with all the consequences.
I just got my account suspended for a month by accidently doing this - don't repeat my mistake.
You can disable Pre-launch reports in Play Console settings (see screenshot), or use this function to somehow hide your ads from testing devices:
boolean isTestDevice() {
return Boolean.valueOf(Settings.System.getString(getContentResolver(), "firebase.test.lab"));
}
More info in this article on ubuverse.com
Firebase official documentation
Can I use REAL admob ad unit ids when I deploy my app into Google play
store Alpha & Beta channels?
Yes, you can, it does not violate the policy.
What if i click or don't click them?
You cannot/should not click on your own live ads.
(well technically you can, but you will get suspended for it)
If you can get Device ID's of testing devices. Please add them to request. That is best approach.
// Create an ad request. Check logcat output for the hashed device ID to
// get test ads on a physical device.
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("INSERT_YOUR_HASHED_DEVICE_ID_HERE")
.build();
I received an e-mail from Google Admob with this message:
This email is to alert you that one of your applications is not currently in compliance with our AdMob program policies and as a result, ad serving has been disabled to your application.
Issue ID#: #######
Ad serving has been disabled to: c########################
Action required: Check all other remaining applications in your account for compliance.
Current account status: Active
I have only 1 app published on Google Play and the package name in the message is the suspended app on Developer Console. The published app uses the same Admob ID banner that the deleted app. What should I do now? Upload an update of the current app with new ID banner? Thanks for your help.
Yes, every ad should have a different Ad Unit ID. This includes ads for different apps or ads within the same app. You should create a new ad and link it to your app in the play store, then update the app with the new Ad Unit ID.
You should also ensure you are following AdSence's guidelines AdSence Program Policies and Implementation Guidance.
What should I do now? Upload an update of the current app with new ID banner?
Yes. Create a new ad unit and use that in your published app.
You should make it a practice to use different ad units for each app from the beginning.
This will enable better tracking and also help in avoiding situations like this. Now in this case you'll miss on ad revenue from users till they update the app to the version which contains a new working as unit id.
I am using google admob and i already have banners on my app with the tokens from google add mob site. I tried them once without test device and it just loaded a random advertisment and not then one from the app of the token.
Is this wrong or my app will just load the correct ad when submitted on play store?
Thank you for the attention,
Best Regards
When I've registered as a Google Developer to publish my first app, I've registered myself also on AdMob, but then I did not use it anymore.. Now I'm thinking about adding AdMob ads' views to my app and following the Google guides they mention that you have to register as publisher on AdMob... Is this publisher subscription the one I've done at the first time or do I have to do something particular in order to become a publisher? If I implement AdMob ads and then AdMob must pay me for clicks received from my app, I'll receive funds on the AdMob account and then I'll find options to retrieve my money?
EDIT: If it is necessary to register your app in AdMob, what should I put in the required field company name since I'm not working on android for any company and I'm developing in my free time? Can I sell apps or use AdMob?
I am doing the following :
login to admob (admob.com) with my Google account
setup the admob publisher account (to get the publisher id) and declare the different apps
put an AdView in the app by following the admob implementation guides and best practices : admob best practices
The company name should be the name you are using as a developer if you dont work for any company at all. As an example if you are using the developer name "yourappsdev" you can set the company name as "yourappsdev".