From 85c4ecf0ec9443b5d8841cd15a93f19565a359f5 Mon Sep 17 00:00:00 2001 From: Valentin Petrovych Date: Wed, 3 Jan 2024 17:15:49 +0100 Subject: [PATCH 1/2] feat: update stored impressions #670 --- .../GamOriginalApiDisplayBanner300x250.java | 2 +- .../GamOriginalApiDisplayBanner320x50.java | 2 +- .../GamOriginalApiDisplayInterstitial.java | 2 +- .../GamOriginalApiMultiformatBanner.java | 4 ++-- ...lApiMultiformatBannerVideoNativeInApp.java | 6 ++--- ...ApiMultiformatBannerVideoNativeStyles.java | 6 ++--- ...GamOriginalApiMultiformatInterstitial.java | 4 ++-- .../original/GamOriginalApiNativeInApp.java | 2 +- .../original/GamOriginalApiNativeStyles.java | 2 +- .../original/GamOriginalApiVideoBanner.java | 2 +- .../GamOriginalApiVideoInterstitial.java | 2 +- .../original/GamOriginalApiVideoRewarded.java | 2 +- .../admob/AdMobDisplayBanner320x50Activity.kt | 2 +- .../admob/AdMobDisplayInterstitialActivity.kt | 2 +- .../ads/admob/AdMobNativeActivity.kt | 2 +- .../admob/AdMobVideoInterstitialActivity.kt | 2 +- .../ads/admob/AdMobVideoRewardedActivity.kt | 2 +- ...AppLovinMaxDisplayBanner300x250Activity.kt | 2 +- .../AppLovinMaxDisplayBanner320x50Activity.kt | 2 +- .../AppLovinMaxDisplayInterstitialActivity.kt | 2 +- .../ads/applovin/AppLovinMaxNativeActivity.kt | 2 +- .../AppLovinMaxVideoRewardedActivity.kt | 2 +- ...OriginalApiDisplayBanner300x250Activity.kt | 2 +- ...mOriginalApiDisplayBanner320x50Activity.kt | 2 +- ...mOriginalApiDisplayInterstitialActivity.kt | 2 +- ...GamOriginalApiMultiformatBannerActivity.kt | 4 ++-- ...ltiformatBannerVideoNativeInAppActivity.kt | 6 ++--- ...tiformatBannerVideoNativeStylesActivity.kt | 6 ++--- ...ginalApiMultiformatInterstitialActivity.kt | 4 ++-- .../GamOriginalApiNativeInAppActivity.kt | 2 +- .../GamOriginalApiNativeStylesActivity.kt | 2 +- .../GamOriginalApiVideoBannerActivity.kt | 2 +- ...GamOriginalApiVideoInterstitialActivity.kt | 2 +- .../GamOriginalApiVideoRewardedActivity.kt | 2 +- ...RenderingApiDisplayBanner320x50Activity.kt | 2 +- ...RenderingApiDisplayInterstitialActivity.kt | 2 +- .../GamRenderingApiNativeActivity.kt | 2 +- .../GamRenderingApiVideoBannerActivity.kt | 3 ++- ...amRenderingApiVideoInterstitialActivity.kt | 2 +- .../GamRenderingApiVideoRewardedActivity.kt | 2 +- .../inapp/InAppDisplayBanner320x50Activity.kt | 2 +- .../inapp/InAppDisplayInterstitialActivity.kt | 2 +- .../ads/inapp/InAppNativeActivity.kt | 2 +- .../ads/inapp/InAppVideoBannerActivity.kt | 2 +- .../inapp/InAppVideoInterstitialActivity.kt | 2 +- ...AppVideoInterstitialMultiFormatActivity.kt | 20 ++++++----------- .../ads/inapp/InAppVideoRewardedActivity.kt | 2 +- ...nalMultiformatBannerVideoNativeFragment.kt | 6 ++--- ...tiformatBannerVideoNativeStylesFragment.kt | 6 ++--- ...OriginalMultiformatInterstitialFragment.kt | 4 ++-- .../src/main/res/values/strings.xml | 22 +++++++++---------- 51 files changed, 85 insertions(+), 90 deletions(-) diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayBanner300x250.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayBanner300x250.java index b22e92e35..a5c146962 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayBanner300x250.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayBanner300x250.java @@ -22,7 +22,7 @@ public class GamOriginalApiDisplayBanner300x250 extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid_demo_app_original_api_banner_300x250_order"; - private static final String CONFIG_ID = "prebid-ita-banner-300-250"; + private static final String CONFIG_ID = "prebid-demo-banner-300-250"; private static final int WIDTH = 300; private static final int HEIGHT = 250; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayBanner320x50.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayBanner320x50.java index 4863f8b6b..fe0927f5b 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayBanner320x50.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayBanner320x50.java @@ -22,7 +22,7 @@ public class GamOriginalApiDisplayBanner320x50 extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid_demo_app_original_api_banner"; - private static final String CONFIG_ID = "prebid-ita-banner-320-50"; + private static final String CONFIG_ID = "prebid-demo-banner-320-50"; private static final int WIDTH = 320; private static final int HEIGHT = 50; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayInterstitial.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayInterstitial.java index dd6213d20..cb66ff468 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayInterstitial.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiDisplayInterstitial.java @@ -18,7 +18,7 @@ public class GamOriginalApiDisplayInterstitial extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid-demo-app-original-api-display-interstitial"; - private static final String CONFIG_ID = "prebid-ita-display-interstitial-320-480"; + private static final String CONFIG_ID = "prebid-demo-display-interstitial-320-480"; private AdUnit adUnit; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBanner.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBanner.java index 44e660428..f45e3f479 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBanner.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBanner.java @@ -26,8 +26,8 @@ public class GamOriginalApiMultiformatBanner extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid-demo-original-banner-multiformat"; - private static final String CONFIG_ID_BANNER = "prebid-ita-banner-300-250"; - private static final String CONFIG_ID_VIDEO = "prebid-ita-video-outstream-original-api"; + private static final String CONFIG_ID_BANNER = "prebid-demo-banner-300-250"; + private static final String CONFIG_ID_VIDEO = "prebid-demo-video-outstream-original-api"; private static final int WIDTH = 300; private static final int HEIGHT = 250; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeInApp.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeInApp.java index 4b9a79d0e..97c208702 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeInApp.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeInApp.java @@ -52,9 +52,9 @@ public class GamOriginalApiMultiformatBannerVideoNativeInApp extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid-demo-multiformat"; - private static final String CONFIG_ID_BANNER = "prebid-ita-banner-300-250"; - private static final String CONFIG_ID_VIDEO = "prebid-ita-video-outstream-original-api"; - private static final String CONFIG_ID_NATIVE = "prebid-ita-banner-native-styles"; + private static final String CONFIG_ID_BANNER = "prebid-demo-banner-300-250"; + private static final String CONFIG_ID_VIDEO = "prebid-demo-video-outstream-original-api"; + private static final String CONFIG_ID_NATIVE = "prebid-demo-banner-native-styles"; private static final String CUSTOM_FORMAT_ID = "12304464"; private PrebidAdUnit prebidAdUnit; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeStyles.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeStyles.java index a531556e8..7b6cc525e 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeStyles.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeStyles.java @@ -34,9 +34,9 @@ public class GamOriginalApiMultiformatBannerVideoNativeStyles extends BaseAdActivity { private final String AD_UNIT_ID = "/21808260008/prebid-demo-multiformat-native-styles"; - private final String CONFIG_ID_BANNER = "prebid-ita-banner-300-250"; - private final String CONFIG_ID_NATIVE = "prebid-ita-banner-native-styles"; - private final String CONFIG_ID_VIDEO = "prebid-ita-video-outstream-original-api"; + private final String CONFIG_ID_BANNER = "prebid-demo-banner-300-250"; + private final String CONFIG_ID_NATIVE = "prebid-demo-banner-native-styles"; + private final String CONFIG_ID_VIDEO = "prebid-demo-video-outstream-original-api"; private PrebidAdUnit prebidAdUnit; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatInterstitial.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatInterstitial.java index 0be60f3bf..43e61a5c2 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatInterstitial.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiMultiformatInterstitial.java @@ -23,8 +23,8 @@ public class GamOriginalApiMultiformatInterstitial extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid-demo-intestitial-multiformat"; - private static final String CONFIG_ID_BANNER = "prebid-ita-display-interstitial-320-480"; - private static final String CONFIG_ID_VIDEO = "prebid-ita-video-interstitial-320-480-original-api"; + private static final String CONFIG_ID_BANNER = "prebid-demo-display-interstitial-320-480"; + private static final String CONFIG_ID_VIDEO = "prebid-demo-video-interstitial-320-480-original-api"; private InterstitialAdUnit adUnit; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiNativeInApp.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiNativeInApp.java index b181d6b39..2c8332c06 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiNativeInApp.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiNativeInApp.java @@ -40,7 +40,7 @@ public class GamOriginalApiNativeInApp extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/apollo_custom_template_native_ad_unit"; - private static final String CONFIG_ID = "prebid-ita-banner-native-styles"; + private static final String CONFIG_ID = "prebid-demo-banner-native-styles"; private static final String CUSTOM_FORMAT_ID = "11934135"; private static final String TAG = "GamOriginalNative"; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiNativeStyles.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiNativeStyles.java index 5722aad51..566ffba46 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiNativeStyles.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiNativeStyles.java @@ -20,7 +20,7 @@ public class GamOriginalApiNativeStyles extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid-demo-original-native-styles"; - private static final String CONFIG_ID = "prebid-ita-banner-native-styles"; + private static final String CONFIG_ID = "prebid-demo-banner-native-styles"; private static NativeAdUnit nativeAdUnit; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoBanner.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoBanner.java index 3d629c4ff..9ab1798d2 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoBanner.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoBanner.java @@ -24,7 +24,7 @@ public class GamOriginalApiVideoBanner extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid-demo-original-api-video-banner"; - private static final String CONFIG_ID = "prebid-ita-video-outstream-original-api"; + private static final String CONFIG_ID = "prebid-demo-video-outstream-original-api"; private static final int WIDTH = 300; private static final int HEIGHT = 250; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoInterstitial.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoInterstitial.java index 953bdc434..c7064e6f3 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoInterstitial.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoInterstitial.java @@ -24,7 +24,7 @@ public class GamOriginalApiVideoInterstitial extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid-demo-app-original-api-video-interstitial"; - private static final String CONFIG_ID = "prebid-ita-video-interstitial-320-480-original-api"; + private static final String CONFIG_ID = "prebid-demo-video-interstitial-320-480-original-api"; private InterstitialAdUnit adUnit; diff --git a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoRewarded.java b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoRewarded.java index 042dd34c0..ce2814afe 100644 --- a/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoRewarded.java +++ b/Example/PrebidDemoJava/src/main/java/org/prebid/mobile/javademo/activities/ads/gam/original/GamOriginalApiVideoRewarded.java @@ -21,7 +21,7 @@ public class GamOriginalApiVideoRewarded extends BaseAdActivity { private static final String AD_UNIT_ID = "/21808260008/prebid-demo-app-original-api-video-interstitial"; - private static final String CONFIG_ID = "prebid-ita-video-rewarded-320-480-original-api"; + private static final String CONFIG_ID = "prebid-demo-video-rewarded-320-480-original-api"; private RewardedVideoAdUnit adUnit; diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobDisplayBanner320x50Activity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobDisplayBanner320x50Activity.kt index 932d05be4..a8d112774 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobDisplayBanner320x50Activity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobDisplayBanner320x50Activity.kt @@ -31,7 +31,7 @@ class AdMobDisplayBanner320x50Activity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "ca-app-pub-1875909575462531/3793078260" - const val CONFIG_ID = "prebid-ita-banner-320-50" + const val CONFIG_ID = "prebid-demo-banner-320-50" const val WIDTH = 320 const val HEIGHT = 50 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobDisplayInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobDisplayInterstitialActivity.kt index 8e259869a..555a4966e 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobDisplayInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobDisplayInterstitialActivity.kt @@ -32,7 +32,7 @@ class AdMobDisplayInterstitialActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "ca-app-pub-1875909575462531/6393291067" - const val CONFIG_ID = "prebid-ita-display-interstitial-320-480" + const val CONFIG_ID = "prebid-demo-display-interstitial-320-480" } private var adUnit: MediationInterstitialAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobNativeActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobNativeActivity.kt index e336839d5..6f8fe2d46 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobNativeActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobNativeActivity.kt @@ -34,7 +34,7 @@ class AdMobNativeActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "ca-app-pub-1875909575462531/9720985924" - const val CONFIG_ID = "prebid-ita-banner-native-styles" + const val CONFIG_ID = "prebid-demo-banner-native-styles" } private var nativeAd: NativeAd? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobVideoInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobVideoInterstitialActivity.kt index e25e96301..51fd9bfd0 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobVideoInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobVideoInterstitialActivity.kt @@ -32,7 +32,7 @@ class AdMobVideoInterstitialActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "ca-app-pub-1875909575462531/6393291067" - const val CONFIG_ID = "prebid-ita-video-interstitial-320-480" + const val CONFIG_ID = "prebid-demo-video-interstitial-320-480" } private var adUnit: MediationInterstitialAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobVideoRewardedActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobVideoRewardedActivity.kt index 2f6d27e10..73f4c8348 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobVideoRewardedActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/admob/AdMobVideoRewardedActivity.kt @@ -30,7 +30,7 @@ class AdMobVideoRewardedActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "ca-app-pub-1875909575462531/1908212572" - const val CONFIG_ID = "prebid-ita-video-rewarded-320-480" + const val CONFIG_ID = "prebid-demo-video-rewarded-320-480" } private var rewardedAd: RewardedAd? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayBanner300x250Activity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayBanner300x250Activity.kt index a5126a7fa..0d09a504a 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayBanner300x250Activity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayBanner300x250Activity.kt @@ -34,7 +34,7 @@ class AppLovinMaxDisplayBanner300x250Activity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "550e6c2fe979a641" - const val CONFIG_ID = "prebid-ita-banner-300-250" + const val CONFIG_ID = "prebid-demo-banner-300-250" const val WIDTH = 300 const val HEIGHT = 250 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayBanner320x50Activity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayBanner320x50Activity.kt index d9ae82f98..246ac8fa1 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayBanner320x50Activity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayBanner320x50Activity.kt @@ -33,7 +33,7 @@ class AppLovinMaxDisplayBanner320x50Activity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "3d8a0bcbb6d571d5" - const val CONFIG_ID = "prebid-ita-banner-320-50" + const val CONFIG_ID = "prebid-demo-banner-320-50" const val WIDTH = 320 const val HEIGHT = 50 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayInterstitialActivity.kt index 1d430c76e..377f8e82f 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxDisplayInterstitialActivity.kt @@ -30,7 +30,7 @@ class AppLovinMaxDisplayInterstitialActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "393697e649678807" - const val CONFIG_ID = "prebid-ita-display-interstitial-320-480" + const val CONFIG_ID = "prebid-demo-display-interstitial-320-480" } private var maxInterstitialAd: MaxInterstitialAd? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxNativeActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxNativeActivity.kt index 6e7d96c92..4ad639584 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxNativeActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxNativeActivity.kt @@ -31,7 +31,7 @@ class AppLovinMaxNativeActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "f3bdfa9dd8da1c4d" - const val CONFIG_ID = "prebid-ita-banner-native-styles" + const val CONFIG_ID = "prebid-demo-banner-native-styles" } private var nativeAdLoader: MaxNativeAdLoader? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxVideoRewardedActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxVideoRewardedActivity.kt index fdb31dd3e..6c7f5d132 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxVideoRewardedActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/applovin/AppLovinMaxVideoRewardedActivity.kt @@ -29,7 +29,7 @@ class AppLovinMaxVideoRewardedActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "897f2fc59d617715" - const val CONFIG_ID = "prebid-ita-video-rewarded-320-480" + const val CONFIG_ID = "prebid-demo-video-rewarded-320-480" } private var maxRewardedAd: MaxRewardedAd? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayBanner300x250Activity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayBanner300x250Activity.kt index 41a0e799c..971b45987 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayBanner300x250Activity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayBanner300x250Activity.kt @@ -32,7 +32,7 @@ class GamOriginalApiDisplayBanner300x250Activity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid_demo_app_original_api_banner_300x250_order" - const val CONFIG_ID = "prebid-ita-banner-300-250" + const val CONFIG_ID = "prebid-demo-banner-300-250" const val WIDTH = 300 const val HEIGHT = 250 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayBanner320x50Activity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayBanner320x50Activity.kt index ebd65ca81..e1f03d5d1 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayBanner320x50Activity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayBanner320x50Activity.kt @@ -31,7 +31,7 @@ class GamOriginalApiDisplayBanner320x50Activity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid_demo_app_original_api_banner" - const val CONFIG_ID = "prebid-ita-banner-320-50" + const val CONFIG_ID = "prebid-demo-banner-320-50" const val WIDTH = 320 const val HEIGHT = 50 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayInterstitialActivity.kt index 0336e556c..c5374e451 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiDisplayInterstitialActivity.kt @@ -29,7 +29,7 @@ class GamOriginalApiDisplayInterstitialActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-app-original-api-display-interstitial" - const val CONFIG_ID = "prebid-ita-display-interstitial-320-480" + const val CONFIG_ID = "prebid-demo-display-interstitial-320-480" } private var adUnit: AdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerActivity.kt index cf339dc73..9443a9da6 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerActivity.kt @@ -35,8 +35,8 @@ class GamOriginalApiMultiformatBannerActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-original-banner-multiformat" - const val CONFIG_ID_BANNER = "prebid-ita-banner-300-250" - const val CONFIG_ID_VIDEO = "prebid-ita-video-outstream-original-api" + const val CONFIG_ID_BANNER = "prebid-demo-banner-300-250" + const val CONFIG_ID_VIDEO = "prebid-demo-video-outstream-original-api" const val WIDTH = 300 const val HEIGHT = 250 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeInAppActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeInAppActivity.kt index 4d5156d1a..fd5e09faa 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeInAppActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeInAppActivity.kt @@ -35,9 +35,9 @@ class GamOriginalApiMultiformatBannerVideoNativeInAppActivity : BaseAdActivity() companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-multiformat" - const val CONFIG_ID_BANNER = "prebid-ita-banner-300-250" - const val CONFIG_ID_NATIVE = "prebid-ita-banner-native-styles" - const val CONFIG_ID_VIDEO = "prebid-ita-video-outstream-original-api" + const val CONFIG_ID_BANNER = "prebid-demo-banner-300-250" + const val CONFIG_ID_NATIVE = "prebid-demo-banner-native-styles" + const val CONFIG_ID_VIDEO = "prebid-demo-video-outstream-original-api" const val CUSTOM_FORMAT_ID = "12304464" } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeStylesActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeStylesActivity.kt index 8e299aedb..f5f89dfa2 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeStylesActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatBannerVideoNativeStylesActivity.kt @@ -17,9 +17,9 @@ class GamOriginalApiMultiformatBannerVideoNativeStylesActivity : BaseAdActivity( companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-multiformat-native-styles" - const val CONFIG_ID_BANNER = "prebid-ita-banner-300-250" - const val CONFIG_ID_NATIVE = "prebid-ita-banner-native-styles" - const val CONFIG_ID_VIDEO = "prebid-ita-video-outstream-original-api" + const val CONFIG_ID_BANNER = "prebid-demo-banner-300-250" + const val CONFIG_ID_NATIVE = "prebid-demo-banner-native-styles" + const val CONFIG_ID_VIDEO = "prebid-demo-video-outstream-original-api" } private var prebidAdUnit: PrebidAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatInterstitialActivity.kt index 8de2a7ed3..265327de9 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiMultiformatInterstitialActivity.kt @@ -31,8 +31,8 @@ class GamOriginalApiMultiformatInterstitialActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-intestitial-multiformat" - const val CONFIG_ID_BANNER = "prebid-ita-display-interstitial-320-480" - const val CONFIG_ID_VIDEO = "prebid-ita-video-interstitial-320-480-original-api"; + const val CONFIG_ID_BANNER = "prebid-demo-display-interstitial-320-480" + const val CONFIG_ID_VIDEO = "prebid-demo-video-interstitial-320-480-original-api"; } private var adUnit: InterstitialAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiNativeInAppActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiNativeInAppActivity.kt index 6fd610af7..607981d8a 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiNativeInAppActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiNativeInAppActivity.kt @@ -45,7 +45,7 @@ class GamOriginalApiNativeInAppActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/apollo_custom_template_native_ad_unit" - const val CONFIG_ID = "prebid-ita-banner-native-styles" + const val CONFIG_ID = "prebid-demo-banner-native-styles" const val CUSTOM_FORMAT_ID = "11934135" const val TAG = "GamOriginalNativeInApp" } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiNativeStylesActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiNativeStylesActivity.kt index b4bae1df3..ce5bede0b 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiNativeStylesActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiNativeStylesActivity.kt @@ -11,7 +11,7 @@ class GamOriginalApiNativeStylesActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-original-native-styles" - const val CONFIG_ID = "prebid-ita-banner-native-styles" + const val CONFIG_ID = "prebid-demo-banner-native-styles" } private var nativeAdUnit: NativeAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoBannerActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoBannerActivity.kt index cb5d99b80..57fcc25f2 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoBannerActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoBannerActivity.kt @@ -19,7 +19,7 @@ class GamOriginalApiVideoBannerActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-original-api-video-banner" - const val CONFIG_ID = "prebid-ita-video-outstream-original-api" + const val CONFIG_ID = "prebid-demo-video-outstream-original-api" const val WIDTH = 300 const val HEIGHT = 250 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoInterstitialActivity.kt index 687a5788c..b20a9bdd1 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoInterstitialActivity.kt @@ -17,7 +17,7 @@ class GamOriginalApiVideoInterstitialActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-app-original-api-video-interstitial" - const val CONFIG_ID = "prebid-ita-video-interstitial-320-480-original-api" + const val CONFIG_ID = "prebid-demo-video-interstitial-320-480-original-api" } private var adUnit: InterstitialAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoRewardedActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoRewardedActivity.kt index 3266c0415..af01ad518 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoRewardedActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/original/GamOriginalApiVideoRewardedActivity.kt @@ -15,7 +15,7 @@ class GamOriginalApiVideoRewardedActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-app-original-api-video-interstitial" - const val CONFIG_ID = "prebid-ita-video-rewarded-320-480-original-api" + const val CONFIG_ID = "prebid-demo-video-rewarded-320-480-original-api" } private var adUnit: RewardedVideoAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiDisplayBanner320x50Activity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiDisplayBanner320x50Activity.kt index eed6e9a39..a98da61a9 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiDisplayBanner320x50Activity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiDisplayBanner320x50Activity.kt @@ -25,7 +25,7 @@ class GamRenderingApiDisplayBanner320x50Activity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid_oxb_320x50_banner" - const val CONFIG_ID = "prebid-ita-banner-320-50" + const val CONFIG_ID = "prebid-demo-banner-320-50" const val WIDTH = 320 const val HEIGHT = 50 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiDisplayInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiDisplayInterstitialActivity.kt index 31b66fb05..fa0241f89 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiDisplayInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiDisplayInterstitialActivity.kt @@ -26,7 +26,7 @@ class GamRenderingApiDisplayInterstitialActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid_oxb_html_interstitial" - const val CONFIG_ID = "prebid-ita-display-interstitial-320-480" + const val CONFIG_ID = "prebid-demo-display-interstitial-320-480" } private var adUnit: InterstitialAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiNativeActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiNativeActivity.kt index 1fb6598ed..78746c34b 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiNativeActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiNativeActivity.kt @@ -43,7 +43,7 @@ class GamRenderingApiNativeActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/apollo_custom_template_native_ad_unit" - const val CONFIG_ID = "prebid-ita-banner-native-styles" + const val CONFIG_ID = "prebid-demo-banner-native-styles" const val CUSTOM_FORMAT_ID = "11934135" } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoBannerActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoBannerActivity.kt index ad96964bf..baa63bf4c 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoBannerActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoBannerActivity.kt @@ -22,11 +22,12 @@ import org.prebid.mobile.api.rendering.BannerView import org.prebid.mobile.eventhandlers.GamBannerEventHandler import org.prebid.mobile.prebidkotlindemo.activities.BaseAdActivity + class GamRenderingApiVideoBannerActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid_oxb_300x250_banner" - const val CONFIG_ID = "prebid-ita-video-outstream" + const val CONFIG_ID = "prebid-demo-video-outstream" const val WIDTH = 300 const val HEIGHT = 250 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoInterstitialActivity.kt index f1a502a72..ca2f3527a 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoInterstitialActivity.kt @@ -28,7 +28,7 @@ class GamRenderingApiVideoInterstitialActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-app-original-api-video-interstitial" - const val CONFIG_ID = "prebid-ita-video-interstitial-320-480" + const val CONFIG_ID = "prebid-demo-video-interstitial-320-480" } private var adUnit: InterstitialAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoRewardedActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoRewardedActivity.kt index 59fc16594..7e69f8ff7 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoRewardedActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/gam/rendering/GamRenderingApiVideoRewardedActivity.kt @@ -26,7 +26,7 @@ class GamRenderingApiVideoRewardedActivity : BaseAdActivity() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-app-original-api-video-interstitial" - const val CONFIG_ID = "prebid-ita-video-rewarded-320-480" + const val CONFIG_ID = "prebid-demo-video-rewarded-320-480" } private var adUnit: RewardedAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppDisplayBanner320x50Activity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppDisplayBanner320x50Activity.kt index d4044518a..fb27b9bde 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppDisplayBanner320x50Activity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppDisplayBanner320x50Activity.kt @@ -23,7 +23,7 @@ import org.prebid.mobile.prebidkotlindemo.activities.BaseAdActivity class InAppDisplayBanner320x50Activity : BaseAdActivity() { companion object { - const val CONFIG_ID = "prebid-ita-banner-320-50" + const val CONFIG_ID = "prebid-demo-banner-320-50" const val WIDTH = 320 const val HEIGHT = 50 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppDisplayInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppDisplayInterstitialActivity.kt index cbf1a3092..d3e487f14 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppDisplayInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppDisplayInterstitialActivity.kt @@ -26,7 +26,7 @@ import java.util.* class InAppDisplayInterstitialActivity : BaseAdActivity() { companion object { - const val CONFIG_ID = "prebid-ita-display-interstitial-320-480" + const val CONFIG_ID = "prebid-demo-display-interstitial-320-480" } private var adUnit: InterstitialAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppNativeActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppNativeActivity.kt index 7fe923207..e7e4044d0 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppNativeActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppNativeActivity.kt @@ -29,7 +29,7 @@ import org.prebid.mobile.rendering.utils.ntv.NativeAdProvider class InAppNativeActivity : BaseAdActivity() { companion object { - const val CONFIG_ID = "prebid-ita-banner-native-styles" + const val CONFIG_ID = "prebid-demo-banner-native-styles" } private var nativeAdUnit: NativeAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoBannerActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoBannerActivity.kt index 35eac3dac..cc462efff 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoBannerActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoBannerActivity.kt @@ -27,7 +27,7 @@ import org.prebid.mobile.prebidkotlindemo.activities.BaseAdActivity class InAppVideoBannerActivity : BaseAdActivity() { companion object { - const val CONFIG_ID = "prebid-ita-video-outstream" + const val CONFIG_ID = "prebid-demo-video-outstream" const val WIDTH = 300 const val HEIGHT = 250 } diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoInterstitialActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoInterstitialActivity.kt index 74c82643a..773071741 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoInterstitialActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoInterstitialActivity.kt @@ -26,7 +26,7 @@ import java.util.* class InAppVideoInterstitialActivity : BaseAdActivity() { companion object { - const val CONFIG_ID = "prebid-ita-video-interstitial-320-480" + const val CONFIG_ID = "prebid-demo-video-interstitial-320-480" } private var adUnit: InterstitialAdUnit? = null diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoInterstitialMultiFormatActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoInterstitialMultiFormatActivity.kt index f9e18923f..d8bd17cbe 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoInterstitialMultiFormatActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoInterstitialMultiFormatActivity.kt @@ -16,7 +16,6 @@ package org.prebid.mobile.prebidkotlindemo.activities.ads.inapp import android.os.Bundle -import org.prebid.mobile.PrebidMobile import org.prebid.mobile.api.data.AdUnitFormat import org.prebid.mobile.api.exceptions.AdException import org.prebid.mobile.api.rendering.InterstitialAdUnit @@ -26,28 +25,23 @@ import java.util.* class InAppVideoInterstitialMultiFormatActivity : BaseAdActivity() { - companion object { - const val CONFIG_ID = "prebid-demo-display-interstitial-320-480-random" - } - private var adUnit: InterstitialAdUnit? = null override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - // The ID of Mocked Bid Response on PBS. Only for test cases. - val storedAuctionResponses = listOf( - "response-prebid-video-interstitial-320-480", - "response-prebid-display-interstitial-320-480" - ) - PrebidMobile.setStoredAuctionResponse(storedAuctionResponses.shuffled().first()) - createAd() } private fun createAd() { - adUnit = InterstitialAdUnit(this, CONFIG_ID, EnumSet.of(AdUnitFormat.VIDEO, AdUnitFormat.BANNER)) + // Random for test cases + val configId = mutableListOf( + "prebid-demo-display-interstitial-320-480", + "prebid-demo-video-interstitial-320-480" + ).shuffled().first() + + adUnit = InterstitialAdUnit(this, configId, EnumSet.of(AdUnitFormat.VIDEO, AdUnitFormat.BANNER)) adUnit?.setInterstitialAdUnitListener(object : InterstitialAdUnitListener { override fun onAdLoaded(interstitialAdUnit: InterstitialAdUnit?) { adUnit?.show() diff --git a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoRewardedActivity.kt b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoRewardedActivity.kt index 7fa9b6cd7..c0c53dfbb 100644 --- a/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoRewardedActivity.kt +++ b/Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/activities/ads/inapp/InAppVideoRewardedActivity.kt @@ -24,7 +24,7 @@ import org.prebid.mobile.prebidkotlindemo.activities.BaseAdActivity class InAppVideoRewardedActivity : BaseAdActivity() { companion object { - const val CONFIG_ID = "prebid-ita-video-rewarded-320-480" + const val CONFIG_ID = "prebid-demo-video-rewarded-320-480" } private var adUnit: RewardedAdUnit? = null diff --git a/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatBannerVideoNativeFragment.kt b/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatBannerVideoNativeFragment.kt index c84933bc0..63880f907 100644 --- a/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatBannerVideoNativeFragment.kt +++ b/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatBannerVideoNativeFragment.kt @@ -52,9 +52,9 @@ open class GamOriginalMultiformatBannerVideoNativeFragment : AdFragment() { companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-multiformat" - const val CONFIG_ID_BANNER = "prebid-ita-banner-320-50" - const val CONFIG_ID_NATIVE = "prebid-ita-banner-native-styles" - const val CONFIG_ID_VIDEO = "prebid-ita-video-outstream-original-api" + const val CONFIG_ID_BANNER = "prebid-demo-banner-320-50" + const val CONFIG_ID_NATIVE = "prebid-demo-banner-native-styles" + const val CONFIG_ID_VIDEO = "prebid-demo-video-outstream-original-api" const val CUSTOM_FORMAT_ID = "12304464" } diff --git a/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatBannerVideoNativeStylesFragment.kt b/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatBannerVideoNativeStylesFragment.kt index 5f61714c4..06e3a28d9 100644 --- a/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatBannerVideoNativeStylesFragment.kt +++ b/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatBannerVideoNativeStylesFragment.kt @@ -39,9 +39,9 @@ open class GamOriginalMultiformatBannerVideoNativeStylesFragment : AdFragment() companion object { const val AD_UNIT_ID = "/21808260008/prebid-demo-multiformat-native-styles" - const val CONFIG_ID_BANNER = "prebid-ita-banner-320-50" - const val CONFIG_ID_NATIVE = "prebid-ita-banner-native-styles" - const val CONFIG_ID_VIDEO = "prebid-ita-video-outstream-original-api" + const val CONFIG_ID_BANNER = "prebid-demo-banner-320-50" + const val CONFIG_ID_NATIVE = "prebid-demo-banner-native-styles" + const val CONFIG_ID_VIDEO = "prebid-demo-video-outstream-original-api" } override val layoutRes = R.layout.fragment_bidding_multiformat diff --git a/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatInterstitialFragment.kt b/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatInterstitialFragment.kt index 7e96916cf..7f1d72d22 100644 --- a/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatInterstitialFragment.kt +++ b/Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/gam/original/GamOriginalMultiformatInterstitialFragment.kt @@ -34,8 +34,8 @@ import org.prebid.mobile.renderingtestapp.plugplay.bidding.base.BaseBidInterstit open class GamOriginalMultiformatInterstitialFragment : BaseBidInterstitialFragment() { companion object { - private const val CONFIG_ID_BANNER = "prebid-ita-display-interstitial-320-480" - private const val CONFIG_ID_VIDEO = "prebid-ita-video-interstitial-320-480-original-api" + private const val CONFIG_ID_BANNER = "prebid-demo-display-interstitial-320-480" + private const val CONFIG_ID_VIDEO = "prebid-demo-video-interstitial-320-480-original-api" } private var prebidAdUnit: PrebidAdUnit? = null diff --git a/Example/PrebidInternalTestApp/src/main/res/values/strings.xml b/Example/PrebidInternalTestApp/src/main/res/values/strings.xml index 3c752b367..c38886eec 100755 --- a/Example/PrebidInternalTestApp/src/main/res/values/strings.xml +++ b/Example/PrebidInternalTestApp/src/main/res/values/strings.xml @@ -349,34 +349,34 @@ 28259226-68de-49f8-88d6-f0f2fab846e3 51fe68ba-aff2-401e-9e15-f3ed89d5c036 - prebid-ita-banner-320-50 + prebid-demo-banner-320-50 prebid-demo-banner-deeplink prebid-demo-banner-incorrect-vast - prebid-ita-banner-300-250 - prebid-ita-banner-300-250 + prebid-demo-banner-300-250 + prebid-demo-banner-300-250 prebid-ita-banner-320-50-meta-custom-renderer prebid-demo-banner-728-90 prebid-demo-banner-multisize - prebid-ita-display-interstitial-320-480 + prebid-demo-display-interstitial-320-480 prebid-ita-display-interstitial-320-480-meta-custom-renderer Imp id is set in another place - prebid-ita-video-outstream - prebid-ita-video-outstream-original-api + prebid-demo-video-outstream + prebid-demo-video-outstream-original-api 1001-1 prebid-demo-video-outstream-with-end-card - prebid-ita-video-interstitial-320-480 + prebid-demo-video-interstitial-320-480 prebid-demo-video-interstitial-320-480-with-ad-configuration - prebid-ita-video-interstitial-320-480-original-api + prebid-demo-video-interstitial-320-480-original-api prebid-demo-video-interstitial-320-480-with-end-card prebid-demo-video-interstitial-320-480-with-end-card-with-ad-configuration prebid-demo-video-interstitial-320-480-deeplink prebid-demo-video-interstitial-320-480-skip-offset prebid-demo-video-interstitial-mraid-end-card prebid-demo-video-interstitial-vertical-with-end-card - prebid-ita-video-rewarded-320-480 + prebid-demo-video-rewarded-320-480 prebid-demo-video-rewarded-320-480-with-end-card-with-ad-configuration - prebid-ita-video-rewarded-320-480-original-api + prebid-demo-video-rewarded-320-480-original-api prebid-demo-video-rewarded-320-480-without-end-card prebid-demo-video-rewarded-320-480-with-ad-configuration prebid-demo-mraid-resize @@ -391,7 +391,7 @@ prebid-demo-mraid-test-properties-3 prebid-demo-mraid-test-methods-3 prebid-demo-mraid-resize-expandable - prebid-ita-banner-native-styles + prebid-demo-banner-native-styles prebid-demo-native-links prebid-demo-no-bids From c1f782e2f922f4e64a1a5c1e8a890ce8bb2e8552 Mon Sep 17 00:00:00 2001 From: Valentin Petrovych Date: Wed, 3 Jan 2024 17:18:38 +0100 Subject: [PATCH 2/2] fix: handled exception when no trackers in rendering API --- .../parser/AdResponseParserVast.java | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/PrebidMobile/PrebidMobile-core/src/main/java/org/prebid/mobile/rendering/parser/AdResponseParserVast.java b/PrebidMobile/PrebidMobile-core/src/main/java/org/prebid/mobile/rendering/parser/AdResponseParserVast.java index 692f0aa28..fc82f8f5b 100644 --- a/PrebidMobile/PrebidMobile-core/src/main/java/org/prebid/mobile/rendering/parser/AdResponseParserVast.java +++ b/PrebidMobile/PrebidMobile-core/src/main/java/org/prebid/mobile/rendering/parser/AdResponseParserVast.java @@ -18,15 +18,26 @@ import android.text.TextUtils; import android.util.Xml; + import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; + import org.prebid.mobile.LogUtil; import org.prebid.mobile.rendering.errors.VastParseError; import org.prebid.mobile.rendering.networking.parameters.BasicParameterBuilder; import org.prebid.mobile.rendering.utils.helpers.Utils; import org.prebid.mobile.rendering.video.VideoAdEvent; -import org.prebid.mobile.rendering.video.vast.*; +import org.prebid.mobile.rendering.video.vast.Ad; +import org.prebid.mobile.rendering.video.vast.AdVerifications; +import org.prebid.mobile.rendering.video.vast.ClickTracking; +import org.prebid.mobile.rendering.video.vast.Companion; +import org.prebid.mobile.rendering.video.vast.Creative; +import org.prebid.mobile.rendering.video.vast.Extension; +import org.prebid.mobile.rendering.video.vast.Impression; +import org.prebid.mobile.rendering.video.vast.InLine; +import org.prebid.mobile.rendering.video.vast.MediaFile; +import org.prebid.mobile.rendering.video.vast.VAST; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; @@ -668,9 +679,11 @@ else if (companion.getStaticResource() != null) { * Searches through ArrayList of Tracking for a specific event */ public static org.prebid.mobile.rendering.video.vast.Tracking findTracking(ArrayList trackingEvents) { - for (org.prebid.mobile.rendering.video.vast.Tracking tracking : trackingEvents) { - if (tracking.getEvent().equals("creativeView")) { - return tracking; + if (trackingEvents != null) { + for (org.prebid.mobile.rendering.video.vast.Tracking tracking : trackingEvents) { + if (tracking.getEvent().equals("creativeView")) { + return tracking; + } } }