Witam,
Próbuję ugryźć adMoba wraz z Google Play Services, tak żeby być kompatybilnym do przodu, ale coś mi nie idzie.
Robiłem wszystko wg:
https://developer.android.com/google/play-services/setup.html
https://developer.android.com/google/play-services/ads.html
https://developers.google.com/mobile-ads-sdk/docs/admob/intermediate#play
Dostałem na logcacie:
02-27 15:26:14.749: I/Ads(880): Use AdRequest.Builder.addTestDevice("X3EEABB8EE11C2BE770B684D95219ECB") to get test ads on this device.
Więc wydedytowałem strings.xml:
<resources>
<string name="app_name">Google Ads SDK Sample</string>
<string name="ad_unit_id">X3EEABB8EE11C2BE770B684D95219ECB</string>
<string name="load_interstitial">Load Interstitial</string>
<string name="interstitial_not_ready">Interstitial Not Ready</string>
<string name="banner_in_xml">Banner in XML</string>
<string name="banner_in_code">Banner in Code</string>
<string name="interstitial">Interstitial</string>
</resources>
Po odpaleniu emulatora dostaje Toasta z Invalid request a na logcacie:
02-27 15:59:32.040: W/Ads(866): Invalid unknown request error: Cannot determine request type. Is your ad unit id correct?
02-27 15:59:32.050: W/Ads(866): There was a problem getting an ad response. ErrorCode: 1
02-27 15:59:32.050: W/Ads(866): Failed to load ad: 1
Gdzie tkwi problem? Wygląda jakby był zły ID, ale skoro podałem ID testowe, więc niby czemu wykrzacza się?