Posts tagged with ads

I'm need to get GCLID value inside my android app. What i found is Play Install Referrer Library, that returns me a utm tags, but i'm not sure that GCLID value will be inside val referrer = response.installReferrer

Code sample:

 fun getGCLID(){         referrerClient = InstallReferrerClient.newBuilder(this).build()         referrerClient.startConnection(object : InstallReferrerStateListener {             override fun onInstallReferrerSetupFinished(responseCode: Int) {                 when (responseCode) {                     InstallReferrerClient.InstallReferrerResponse.OK -> {                         // Connection established.                         val response: ReferrerDetails = referrerClient.installReferrer                         val referrer = response.installReferrer                         val clickTimestamp = response.referrerClickTimestampSeconds                         val installTimestamp = response.installBeginTimestampSeconds                         Log.d("TagGCLID", "onInstallReferrerSetupFinished: 1")                         if ("gclid" in referrer) {                             Log.d("TagGCLID", "GCLID is detected in referrer // is $referrer")                             //report to Firebase Analytics                         } else {                             Log.d("TagGCLID", "no GCLID is detected in referrer\n" +                                     "$referrer")                             //do something else                         }                     }                     InstallReferrerClient.InstallReferrerResponse.FEATURE_NOT_SUPPORTED -> {                         Log.d("TagGCLID", "InstallReferrerResponse: -1")                         // API not available on the current Play Store app.                     }                     InstallReferrerClient.InstallReferrerResponse.SERVICE_UNAVAILABLE -> {                         Log.d("TagGCLID", "InstallReferrerResponse: -2")                         // Connection couldn't be established.                     }                 }             }             override fun onInstallReferrerServiceDisconnected() {                 Log.d("TagGCLID", "onInstallReferrerServiceDisconnected: -3")                 // Try to restart the connection on the next request to                 // Google Play by calling the startConnection() method.             }         })     } 

What i'm suppose to do to get GCLID value?

RewardedVideoAd is deprecated. What is the new alternative?

    void loadAds(){         RewardedVideoAd mRewardedVideoAd;         mRewardedVideoAd.loadAd(rewarded_id, new AdRequest.Builder().build());         mRewardedVideoAd = MobileAds.getRewardedVideoAdInstance(this);         mRewardedVideoAd.setRewardedVideoAdListener(new RewardedVideoAdListener() {         @Override         public void onRewardedVideoAdLoaded() {             AppUtils.showLog("REWARDED", "onRewardedVideoAdLoaded");         }         .....         .....     } 

I have a problem integrating branch.io with google Adwords. Although I've made all required steps and branch.io says that integration works fine, conversions in google Adwords don't match to conversions in branch.io and don't match with conversions in Google play. On the screenshot you can see that the difference is huge. I've tried to reauthenticate, to turn on and off the conversions in Adwords, but nothing helps. The support is responding once per week and is not useful at all so I've decided to ask for help here, maybe someone has faced this issue before?

PS: In branch.io I have notification "Your Branch and Google timezone settings do not match." but, it is only because in branch.io there is no Uzbekistan timezone. In both Adwords and Branch.io the timezones are +5 GMT.

Thank you! Screenshot

I use the library 'com.google.android.gms: play-services-ads: 19.1.0' for advertising, I create a banner as follows: https://developers.google.com/admob/android/banner/adaptive so that it always turned out to be the full width of the screen and everything works well, but sometimes black lines appear enter image description here

please tell me how can I remove them? I tried transparent styles and setting the background color,

android: theme = "@ style / TranslucentTheme" android: background = "@ color / transparent"

In xml and through the code, and nothing helps.