blob: 1612acbdad1938b065e4aa6ab8cf4efe15d363ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package com.mapswithme.maps.ads;
import android.support.annotation.NonNull;
import com.mapswithme.maps.Framework;
public class GoogleSearchAd
{
@NonNull
private String mAdUnitId = "";
public GoogleSearchAd()
{
Banner[] banners = Framework.nativeGetSearchBanners();
if (banners == null)
return;
for (Banner b : banners)
{
if (b.getProvider().equals(Providers.GOOGLE))
{
mAdUnitId = b.getId();
break;
}
}
}
@NonNull
public String getAdUnitId() { return mAdUnitId; }
}
|