Linking Admob to Firebase

2019-04-06 14:20发布

问题:

I have created a project in firebase. I have also added an app in Admob with two banner ads. When I try to link this app to Firebase project, it always gives me this error :

Unable to link app to Firebase. Please refresh the page and try again.

I tried refreshing the page and link the firebase project but no luck. It suggests me the firebase projects to choose in the dropdown, but when I try to link to a specific project, it doesn't allow me to link.

回答1:

The error you're seeing,

Unable to link app to Firebase. Please refresh the page and try again.

is the base case message, unfortunately. It means that an unusual error has occurred, one so uncommon that it doesn't have a message of its own.

One reason we have seen it come up for people is that they've linked their AdMob app to a Firebase project, then deleted that project without unlinking it. This leaves the AdMob app tied to the dead project and unable to be linked to a new one. If that might be the case for your app, try this workaround:

  1. Log into the Google Cloud Console (http://console.developers.google.com/)

  2. Restore your project from deletion by using the steps listed here: https://support.google.com/cloud/answer/6251787

  3. Unlink that project from your AdMob app using these steps: https://support.google.com/firebase/answer/6387949
  4. Link your AdMob app to a new project as normal.


回答2:

typically this happens if the project owner in Firebase is not the same user as the AdMob user trying to do the linking.