Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ad_impression event needs to be removed from reserved events list #6307

Closed
1 of 10 tasks
alexpovkolas opened this issue Jun 13, 2022 · 3 comments · Fixed by #6314
Closed
1 of 10 tasks

ad_impression event needs to be removed from reserved events list #6307

alexpovkolas opened this issue Jun 13, 2022 · 3 comments · Fixed by #6314
Labels
plugin: analytics Google Analytics for Firebase type: bug New bug report Workflow: Needs Review Pending feedback or review from a maintainer.

Comments

@alexpovkolas
Copy link

Issue

Currently ad_impression event is reserved so when an app tries to log it RNFirebase throws an exception.

But according to Google docs it is possible to track impression level manually for non-google monetization platforms

The following line needs to be removed


Project Files

Javascript

Click To Expand

package.json:

# N/A

firebase.json for react-native-firebase v6:

# N/A

iOS

Click To Expand

ios/Podfile:

  • I'm not using Pods
  • I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.4.3
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION


@alexpovkolas alexpovkolas added help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report labels Jun 13, 2022
@mikehardy
Copy link
Collaborator

Interesting! We have a couple other carve-outs (items from the reserved list https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event) that we pass and despite being reserved, they do work for various reasons.

Can you verify for me that when you reach into node_modules and comment that line out, you are able to log things as you need according to the link you included? https://firebase.google.com/docs/analytics/measure-ad-revenue#unity_1

@mikehardy mikehardy added Workflow: Waiting for User Response Blocked waiting for user response. plugin: analytics Google Analytics for Firebase labels Jun 13, 2022
@alexpovkolas
Copy link
Author

Yip It works. I have ad_impression events in a firebase console and "Publisher ad impressions
by Ad unit" report. It looks the same as automatically tracked events from AdMob

@mikehardy
Copy link
Collaborator

Fantastic - thanks for verifying - looks like we have another carve-out then :-)

I have quite a few react-native-firebase environments but each of them has a separate sizable chunk of work unpacked in them and in progress so it might be a little bit before I get to this.

If you want to cut that time down and get this changed+released now, you could do a PR that comments that out with a comment next to it saying "manual tracking on this reserved word is allowed #6307" as a helper for any curious future code explorers.

Otherwise I'll make the change it just might take a bit. Thanks!

@mikehardy mikehardy added Workflow: Needs Review Pending feedback or review from a maintainer. Type: In Progress and removed Workflow: Waiting for User Response Blocked waiting for user response. help: needs-triage Issue needs additional investigation/triaging. labels Jun 14, 2022
mikehardy added a commit that referenced this issue Jun 17, 2022
mikehardy added a commit that referenced this issue Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: analytics Google Analytics for Firebase type: bug New bug report Workflow: Needs Review Pending feedback or review from a maintainer.
Projects
None yet
2 participants