Sign In with another google account for firebase and adsense - firebase

I am using another google account for google adsense and it's verified. Is it possible to integrate that account for admob with this one?
I am using firebase in -> abc#gmail.com
My adsense account is -> xyz#gmail.com

I have the same issue with two different accounts for firebase and admob.
What I've found is this post in google groups - https://groups.google.com/forum/#!topic/firebase-talk/Woe_vOdAsS4.
So it seems like it is possible to do that, but with some additional steps described in this reply - https://groups.google.com/d/msg/firebase-talk/Woe_vOdAsS4/urnc38SAAwAJ
Summary:
Admob/adsense account should be added as other owner into the Firebase account:
Sign in to Firebase.
Click the Settings icon and select Permissions.
On the Permissions page, click Add member.
In the dialog, enter the user, domain, group, or service account you wish to add.
Select a role("owner") for the new member, and click Add.
Now you should be able to link your AdMob app to a new project as normal.

I did what #kodlan suggested after which I started seeing the firebase project from my firebase account. - Great so far!
However after selecting the project and typing the right package info, when I pressed LINK,
I got an error:
"Can't link to Firebase. To continue, you’ll need the Edit role or Manage users role for this property in Google Analytics. Update permissions in Google Analytics"
To resolve this:
Go to the Firebase account by login as (original owner)
load the url: https://analytics.google.com/
In the left nav bar of analytics page, click on the "gear/settings" icon which has label "ADMIN"
In the resulting screen - on ADMIN tab, click on "Account User Management"
Click on the + icon to add another user (user of admob account)
Check all checkboxes (or at least Edit, Read, Analyse). I didnt select "manage user" it was still ok without this.
Save.
Now, go to the Admob login and link your App with the firebase project, it should go through ok!

Related

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: , null)

when i create my first project on firebase to use google signin authentication. my app successfully run and completer google signin.
But when i develop my second project on the firebase i do the same thing like add SHA1 and add support email, but when i tried to google signin from my app , it shows
sign_in_failed, com.google.android.gms.common.api.ApiException: 12500
I don't know why this error come.
Is there any condition that
1) we can't use a same SHA1 key to a different apps.
2) we can't user the same email id for 'support email' inside the google sign for the two projects
or please tell me there is any other condition regarding the using of multiple project on a same account of firebase.
Input both SHA-1 and SHA256.
Make sure you have added a Support Email.
Update Google Play Services.
If all of these fail, delete your keystore and generate a new one.
These are the issues that cause that error.
I had this error ApiException: 12500 for a long time. I have tried everything:
remove my debugkeystore, recreate one
add a support email on the firebase console
change plugin versions
update google on my device
Nothing worked but looking for a solution I found:
I went to this page (https://console.developers.google.com/apis/credentials) Select your project from the list (top left). Then go to "Oauth consent screen"
I filled out the app's logo and link on the app's homepage and application's privacy policy link (with the project.firebaseapp.com), and then saved.
enter image description here
After that it was good. I believe the official documentation should be updated.
For more information visit this link
enter link description here

Firebase Rules: Allow only Specific URL?

I have a firebase realtime database.
And i have a "like" button app for my website.
But my database is not safe, because everyone can write to my database.
I want is: "allow only incoming data from my website. And block incoming from other sites"
For example:
{
"rules": {
".read": true,
".write": allow only incoming data from "www.example.com" and block incoming from other sites
}
}
How can I do this? Or how can I set this rule on Firebase console?
If I understand correctly what you are trying to do, I believe you can do it with the service account linked with your Firebase account. You can manually create a whitelist of
URL's allowed to use your API key. The trick is that it is found in the Google Cloud Platform, not the Firebase Console. However, there is a nifty link in Firebase Console that will take you to where you need to be.
(Also, the direct link of where to go is https://console.cloud.google.com/apis/credentials but make sure you are logged into an "Owner" or "Editor" account listed on the "Users and permissions" tab found at step two below.)
Here are the steps:
Log into your Firebase Console and go to the gear icon next to "project overview" in the top left of the Firebase console.
Then navigate to the "Users and permissions" tab
Then click the small blue link underneath the main table on the screen that says "Advanced permission settings".
It should take you to Google Cloud Console. (Make sure you are logged into an "Owner" or "Editor" account listed on the "Users and permissions" tab you were just looking at from the Firebase Console.) Click the menu in the top left of the Google Cloud Console, and go to "APIs & Services"
Then the click sub-menu item "credentials"
Click the desired API key you want to restrict.
And set the websites you want to allow access by clicking the radio button "HTTP Referers" under "Application Restrictions", adding an item, entering the web address, and hitting done to save the changes.

Assigning roles to members in Firebase project

I am adding members in my Firebase project through console with the role of "Project Editor" which have all view permissions acc to docs. But by login as a member I am not able to see the Analytics. I tried changing role to "Project Owner" but still Analytics are not visible.
I am working with Firebase for the first time and new with the roles concept. Please help if anyone have solution to this.
Thanks in advance.
What do you mean by the term "not visible", are you seeing a plain blank screen or the dashboards are there but no data yet?
I'd suggest you to try the following workarounds:
If you have multiple Google accounts logged in at the same time, please logged them out and use only the account for Firebase. Also, use Google Chrome incognito mode.
Turn off Ad blockers or check if the Analytics domain is disabled by your Network administrator.
Open the Google Chrome developer mode, then check if there's any error logs or stack trace on the console. Reach out to the Firebase Support team by creating a ticket here.
Hope this helps.
Got the solution
I tried other gmail id that is with "gmail.com" domain rather than my "company_name.com" domain and the analytics is now visible that is previously only blank white screen.
It is because in company domain there are some restriction on user access.

How to add collaborators to a Firebase app?

On the latest version of Firebase (Announced during Google I/O 2016), how do I add other people to my project or app whom I want to collaborate with? I came across IAM roles through Settings > Permissions. Is this the right way? If I add person there and assign a role, say Editor, will he/she be notified about it through email? Will a request be sent or will they be added directly to that role?
To give people access to your Firebase project, take these steps:
Select your project in the new Firebase Console
In the top left, next to the project name, click the settings/cog wheel icon
Click Users and Permissions
Click Add member
Enter the email address of the user to add and select the appropriate role as per your requirement
Click the second Add member button
The newly added users will get an email with the subject [Firebase] Invitation to join project and an option to Accept Invite in the body. Be certain to let them know that you added them so that they can accept the invite.
UPDATE 6/18/2018 - changes to Cloud Console and Google's functionality, the original solution may no longer work as shared in comments. For a recent project, I was able to add other users and permissions via Firebase console as indicated below.
Old Solution
Originally you had to choose Editor but you do not have to any more. There are new roles added to Google Cloud IAM in the other section, namely the Firebase Rules System role.
If you add a user to a Google Cloud project using IAM and assign them this role, they can access Firebase project by visiting:
https://console.firebase.google.com
The authorized project(s) should appear and they can access, without access to the rest of the Google Cloud project.
In latest version of the console adding is in a bit different.
Go To Your Project -> Project Overview -> Users and Permissions . This will open up new Pop Up.
Now click on the +Add to add the Members.
Now Add Email Id of the member. Now below that choose from the dropdown Project -> Collaborator as shown below and Save. Thats all! You are done.
If you're adding a Project owner, an invite will be sent to the new user. However, no email invites are sent for the Project Editor/Viewer roles.
From Users and Permissions tab, now, at I/O 2019, it was announced a new option to give permissions.
You can now assign to a specific collaborator, access to Analytics, Develop, Quality and Grow, each one with Admin privileges or View privileges.

Managing multiple google analytics account under the same root account?

We are trying to enable google analytics for an android project but running into an issue with account setup. We have a single gmail account and wanted to set up separate analytics "accounts" underneath that, each with multiple properties.
Our analytics account setup: http://www.screencast.com/t/sWj7YKX4hG
The issue we are having is that the first analytics account is pre-selected (red arrow indicated here http://screencast.com/t/mILTGO4LZ) with a dropdown of that account's properties ... but we cannot select the second analytics account or any of its properties which are obviously available under the same gmail account.
Has anyone else had this problem? Did we miss a step in the config somewhere?
Log in into Google Analytics, go to Admin tab.
Click the Account drop-down.
The last option in the drop-down is "Create new account"
enter image description here

Resources