Skip to content

Commit

Permalink
ad unit ids set
Browse files Browse the repository at this point in the history
  • Loading branch information
goody-h committed May 4, 2018
1 parent 1081cbc commit de9d218
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class TemplateViewerActivity : AppCompatActivity(), DetailsDialog.DetailsDialogI
adView.loadAd(AdRequest.Builder().build())
BannerAd.setListener(adView)
mInterstitialAd = InterstitialAd(this)
mInterstitialAd.adUnitId = "ca-app-pub-3940256099942544/1033173712"
mInterstitialAd.adUnitId = resources.getString(R.string.task_ad)
mInterstitialAd.loadAd(AdRequest.Builder().build())


Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_download.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
android:layout_weight="1"
android:visibility="gone"
app:adSize="BANNER"
app:adUnitId="ca-app-pub-3940256099942544/6300978111" />
app:adUnitId="@string/template_ad" />

</android.support.design.widget.AppBarLayout>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_grading.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
android:layout_gravity="center_horizontal"
android:visibility="gone"
app:adSize="BANNER"
app:adUnitId="ca-app-pub-3940256099942544/6300978111" />
app:adUnitId="@string/result_ad" />

<View
android:id="@+id/view2"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_new_event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
android:layout_gravity="center_horizontal"
android:visibility="gone"
app:adSize="BANNER"
app:adUnitId="ca-app-pub-3940256099942544/6300978111" />
app:adUnitId="@string/event_ad" />

<View
android:id="@+id/view2"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_profile_edit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
android:layout_gravity="center_horizontal"
android:visibility="gone"
app:adSize="BANNER"
app:adUnitId="ca-app-pub-3940256099942544/6300978111" />
app:adUnitId="@string/profile_ad" />

<View
android:id="@+id/view2"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_template_browser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
android:layout_gravity="center_horizontal"
android:visibility="gone"
app:adSize="BANNER"
app:adUnitId="ca-app-pub-3940256099942544/6300978111" />
app:adUnitId="@string/template_ad" />

</LinearLayout>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_template_viewer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
android:layout_gravity="center_horizontal"
android:visibility="gone"
app:adSize="BANNER"
app:adUnitId="ca-app-pub-3940256099942544/6300978111"/>
app:adUnitId="@string/template_ad"/>

</android.support.design.widget.AppBarLayout>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
android:layout_gravity="center_horizontal"
android:visibility="gone"
app:adSize="BANNER"
app:adUnitId="ca-app-pub-3940256099942544/6300978111"/>
app:adUnitId="@string/profile_ad"/>

<TextView
android:id="@+id/textView32"
Expand Down
Binary file added app/src/main/res/mipmap-xhdpi/splash_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xxxhdpi/splash_back.png
Binary file not shown.
6 changes: 6 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

<string name="admob_app_id">ca-app-pub-2224977611625866~6153956063</string>

<string name="task_ad">ca-app-pub-2224977611625866/3175195663</string>
<string name="profile_ad">ca-app-pub-2224977611625866/3513272864</string>
<string name="result_ad">ca-app-pub-2224977611625866/9397946949</string>
<string name="template_ad">ca-app-pub-2224977611625866/4337191956</string>
<string name="event_ad">ca-app-pub-2224977611625866/9997794310</string>

<string name="hello_blank_fragment">Hello blank fragment</string>

<string name="help">Help</string>
Expand Down

0 comments on commit de9d218

Please sign in to comment.