Publisher id and adUnit Id Mapping

106 views
Skip to first unread message

Praveena Kumara

unread,
Dec 25, 2013, 1:16:26 AM12/25/13
to google-adm...@googlegroups.com
Hi

I am creating a new Application and now I am trying to add Ads into using Admob.

I followed the docs ggiven by google and went ahead to try the integration using google playservices.
However, at this point I was asked to provide the adUnitId but all i could have in the website was just publisherId.

Later I realized that Admob Site UI being presented to me is of the old version.

Can you help me to get upgraded to new UI or let me know how to manage with publisher id.



Kunal Verma

unread,
Dec 25, 2013, 1:25:12 AM12/25/13
to Google AdMob Ads Developers
See your another post in the same forums. That will help.

Thanks
Kunal


--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Praveena Kumara

unread,
Dec 25, 2013, 1:32:49 AM12/25/13
to google-adm...@googlegroups.com
Unfortunately the earlier post was deleted.

Would be great if you can provide me some pointers here also.

Thanks for the help.

Regards
Praveena

Kunal Verma

unread,
Dec 25, 2013, 1:37:38 AM12/25/13
to Google AdMob Ads Developers
Hi Praveena

I suppose there shouldn't be any issue if you are using the Ad unit id from the Old AdMob UI. This needs some explanation. In the old UI, each app had its own publisher ID ( which is the Ad Unit ID now). But in the New UI, there is a single publisher ID for whole of your account.
I have integrated Google Play services based AdMob SDK into my app with the old per app publisher ID and it shows Ads.

So I would suggest you see in your logcat, what specific error is causing the non-display of Ads. Please post it here.

Best,
Kunal


Praveena Kumara

unread,
Dec 25, 2013, 2:01:26 AM12/25/13
to google-adm...@googlegroups.com
i Kunal

I just had a look at the code and I could see a setContentView after intiating the addView.
I have changed it and now I can see the add in Landscape mode.
Here is the logcat details below.

12-25 12:43:51.781: D/--id1 is--(5495): 2130837554
12-25 12:43:51.796: D/--id2 is--(5495): 2130837553
12-25 12:43:51.804: D/--id1 is--(5495): 2130837552
12-25 12:43:51.812: D/--id2 is--(5495): 2130837551
12-25 12:43:51.820: I/Ads(5495): Ad finished loading.
12-25 12:43:51.820: D/Ad(5495): Add got loaded
12-25 12:43:51.828: W/Ads(5495): Not enough space to show ad. Needs 480x75, but only has 450x800
12-25 12:43:51.828: W/Ads(5495): Not enough space to show ad. Needs 480x75, but only has 450x713
12-25 12:43:52.093: D/dalvikvm(5495): GC_EXTERNAL_ALLOC freed 1412K, 43% free 5126K/8967K, external 16933K/19363K, paused 61ms
12-25 12:43:52.101: D/webviewglue(5495): nativeDestroy view: 0x459dc8
12-25 12:43:52.468: I/Ads(5495): Use AdRequest.Builder.addTestDevice("F6366591C809F150002871928755FF8D") to get test ads on this device.
12-25 12:43:52.468: I/Ads(5495): Starting ad request.
12-25 12:43:52.476: I/webclipboard(5495): clipservice: android.sec.clipboard.ClipboardExManager@408a4340
12-25 12:43:52.578: D/WML_SISO(5495): InitPasteboardJni
12-25 12:43:52.578: E/ActivityThread(5495): Activity com.cumulations.android.logoquiz.MenuActivity has leaked ServiceConnection ano@408b1a90 that was originally bound here
12-25 12:43:52.578: E/ActivityThread(5495): android.app.ServiceConnectionLeaked: Activity com.cumulations.android.logoquiz.MenuActivity has leaked ServiceConnection ano@408b1a90 that was originally bound here
12-25 12:43:52.578: E/ActivityThread(5495):     at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:938)
12-25 12:43:52.578: E/ActivityThread(5495):     at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:833)
12-25 12:43:52.578: E/ActivityThread(5495):     at android.app.ContextImpl.bindService(ContextImpl.java:973)
12-25 12:43:52.578: E/ActivityThread(5495):     at android.content.ContextWrapper.bindService(ContextWrapper.java:347)

Praveena Kumara

unread,
Dec 25, 2013, 2:19:27 AM12/25/13
to google-adm...@googlegroups.com
As I said,

Adds are getting displayed now but I am not sure why I am i getting below errors still.

12-25 13:04:05.781: I/Ads(6140): Use AdRequest.Builder.addTestDevice("F6366591C809F150002871928755FF8D") to get test ads on this device.
12-25 13:04:05.781: I/Ads(6140): Starting ad request.
12-25 13:04:05.789: I/webclipboard(6140): clipservice: android.sec.clipboard.ClipboardExManager@409b9c50
12-25 13:04:05.828: E/GooglePlayServicesUtil(6140): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.


My Code snippet clearly has the test device
   AdRequest adRequest = new AdRequest.Builder()
        .addTestDevice("F6366591C809F150002871928755FF8D") // My  test phone
        .build();
       

       
        adView.setAdListener(new AdListener() {
              public void onAdLoaded() {
                 
                  Log.d("Ad","Add got loaded");
                 
              }
              public void onAdFailedToLoad(int errorcode) {
                  Log.d("Ad",""+errorcode);
              }
             
              public void onAdOpened() {
                  Log.d("Ad","Ad got opened");
              }
              public void onAdClosed() {
                  Log.d("Ad","Ad closed");
              }
              public void onAdLeftApplication() {
                  Log.d("Ad","left applicaton");
              }

              // Only implement methods you need.
            });
       
        adView.loadAd(adRequest);

Thanks


On Wednesday, December 25, 2013 11:46:26 AM UTC+5:30, Praveena Kumara wrote:

Kunal Verma

unread,
Dec 25, 2013, 2:25:23 AM12/25/13
to Google AdMob Ads Developers
12-25 12:43:51.828: W/Ads(5495): Not enough space to show ad. Needs 480x75, but only has 450x800

You don't see Ad in Portrait View? This can be due to layout not giving it the area to show. Check your XML or the code where you have implemented the layout.
And for the Google play resources not found log, it may relate here.



Praveena Kumara

unread,
Dec 25, 2013, 3:09:12 AM12/25/13
to google-adm...@googlegroups.com

Now it is working in the Portrait mode after providing the Space in the layout by removing the padding.
Thanks a lot for the help.



On Wednesday, December 25, 2013 11:46:26 AM UTC+5:30, Praveena Kumara wrote:
Reply all
Reply to author
Forward
0 new messages