Skip to content

Commit

Permalink
Update native styles examples in the apps #563 (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinPostindustria authored Jan 27, 2023
1 parent b72cf8e commit 824351a
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Example/PrebidDemoJava/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
android:name=".activities.ads.gam.original.GamOriginalApiNativeInApp"
android:exported="true" />
<activity
android:name=".activities.ads.gam.original.GamOriginalApiNativeInBanner"
android:name=".activities.ads.gam.original.GamOriginalApiNativeStyles"
android:exported="true" />
<activity
android:name=".activities.ads.gam.original.GamOriginalApiVideoInStream"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

import java.util.ArrayList;

public class GamOriginalApiNativeInBanner extends BaseAdActivity {
public class GamOriginalApiNativeStyles extends BaseAdActivity {

private static final String AD_UNIT_ID = "/21808260008/unified_native_ad_unit";
private static final String AD_UNIT_ID = "/21808260008/prebid-demo-original-native-styles";
private static final String CONFIG_ID = "imp-prebid-banner-native-styles";
private static final String STORED_RESPONSE = "response-prebid-banner-native-styles";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.prebid.mobile.javademo.activities.ads.gam.original.GamOriginalApiDisplayBanner320x50;
import org.prebid.mobile.javademo.activities.ads.gam.original.GamOriginalApiDisplayInterstitial;
import org.prebid.mobile.javademo.activities.ads.gam.original.GamOriginalApiNativeInApp;
import org.prebid.mobile.javademo.activities.ads.gam.original.GamOriginalApiNativeInBanner;
import org.prebid.mobile.javademo.activities.ads.gam.original.GamOriginalApiNativeStyles;
import org.prebid.mobile.javademo.activities.ads.gam.original.GamOriginalApiVideoBanner;
import org.prebid.mobile.javademo.activities.ads.gam.original.GamOriginalApiVideoInStream;
import org.prebid.mobile.javademo.activities.ads.gam.original.GamOriginalApiVideoInterstitial;
Expand Down Expand Up @@ -64,10 +64,10 @@ public static ArrayList<TestCase> getList() {
GamOriginalApiNativeInApp.class
),
new TestCase(
R.string.gam_original_native_in_banner,
R.string.gam_original_native_styles,
AdFormat.NATIVE,
IntegrationKind.GAM_ORIGINAL,
GamOriginalApiNativeInBanner.class
GamOriginalApiNativeStyles.class
),
new TestCase(
R.string.gam_original_in_stream,
Expand Down
2 changes: 1 addition & 1 deletion Example/PrebidDemoJava/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<string name="gam_original_video_interstitial">GAM (Original API) Video Interstitial</string>
<string name="gam_original_video_rewarded">GAM (Original API) Video Rewarded</string>
<string name="gam_original_native_in_app">GAM (Original API) Native In-App</string>
<string name="gam_original_native_in_banner">GAM (Original API) Native In-Banner</string>
<string name="gam_original_native_styles">GAM (Original API) Native Styles</string>
<string name="gam_original_in_stream">GAM (Original API) In-Stream (Rubicon)</string>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class NativeAdsTest(
@JvmStatic
@Parameterized.Parameters(name = "{1}")
fun arguments() = listOf(
arrayOf(R.string.gam_original_native_in_banner, "GAM Original API Native"),
arrayOf(R.string.gam_original_native_styles, "GAM Original API Native"),
arrayOf(R.string.gam_rendering_native, "GAM Rendering API Native"),
arrayOf(R.string.in_app_native, "In-App Native"),
arrayOf(R.string.ad_mob_native, "AdMob Native"),
Expand Down
2 changes: 1 addition & 1 deletion Example/PrebidDemoKotlin/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
android:name=".activities.ads.gam.original.GamOriginalApiVideoRewardedActivity"
android:exported="true" />
<activity
android:name=".activities.ads.gam.original.GamOriginalApiNativeInBannerActivity"
android:name=".activities.ads.gam.original.GamOriginalApiNativeStylesActivity"
android:exported="true" />
<activity
android:name=".activities.ads.gam.original.GamOriginalApiNativeInAppActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import com.google.android.gms.ads.admanager.AdManagerAdView
import org.prebid.mobile.*
import org.prebid.mobile.prebidkotlindemo.activities.BaseAdActivity

class GamOriginalApiNativeInBannerActivity : BaseAdActivity() {
class GamOriginalApiNativeStylesActivity : BaseAdActivity() {

companion object {
const val AD_UNIT_ID = "/21808260008/unified_native_ad_unit"
const val AD_UNIT_ID = "/21808260008/prebid-demo-original-native-styles"
const val CONFIG_ID = "imp-prebid-banner-native-styles"
const val STORED_RESPONSE = "response-prebid-banner-native-styles"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ object TestCaseRepository {
GamOriginalApiNativeInAppActivity::class.java,
),
TestCase(
R.string.gam_original_native_in_banner,
R.string.gam_original_native_styles,
AdFormat.NATIVE,
IntegrationKind.GAM_ORIGINAL,
GamOriginalApiNativeInBannerActivity::class.java,
GamOriginalApiNativeStylesActivity::class.java,
),

/* GAM Rendering API */
Expand Down
2 changes: 1 addition & 1 deletion Example/PrebidDemoKotlin/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<string name="gam_original_video_rewarded">GAM (Original API) Video Rewarded</string>
<string name="gam_original_video_in_stream">GAM (Original API) Video In-Stream</string>
<string name="gam_original_native_in_app">GAM (Original API) Native In-App</string>
<string name="gam_original_native_in_banner">GAM (Original API) Native In-Banner</string>
<string name="gam_original_native_styles">GAM (Original API) Native Styles</string>

<string name="gam_rendering_display_banner_320x50">GAM (Rendering API) Display Banner 320x50</string>
<string name="gam_rendering_display_interstitial">GAM (Rendering API) Display Interstitial</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class DemoItemProvider private constructor() {
createBannerBundle(
R.string.imp_prebid_id_native_styles,
storedResponse = R.string.response_prebid_native_styles,
adUnitIdRes = R.string.adunit_gam_native_unified
adUnitIdRes = R.string.adunit_gam_native_styles
)
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@
<string name="adunit_gam_native_mrect">/21808260008/prebid_native_fixed</string>
<string name="adunit_gam_native_fluid">/21808260008/prebid_native</string>
<string name="adunit_gam_native_custom_template">/21808260008/apollo_custom_template_native_ad_unit</string>
<string name="adunit_gam_native_styles">/21808260008/prebid-demo-original-native-styles</string>
<string name="adunit_gam_native_unified">/21808260008/unified_native_ad_unit</string>
<string name="adunit_gam_native_unified_static">/21808260008/unified_native_ad_unit_static</string>

Expand Down

0 comments on commit 824351a

Please sign in to comment.