Android Custom Search Ads Size Question

101 views
Skip to first unread message

ez

unread,
Dec 12, 2016, 3:49:54 PM12/12/16
to Google Mobile Ads SDK Developers
We tried to implement the new Android custom search ads. The ads are too big for our application. Is it possible to customize the ad close to banner size? We tried all existing parameters. All ads have height bigger than 80dp. We want to have the search ads with three lines. Description should be one line.  Please see the attached screen shot. Any advice on reducing the height to banner height is much appreciated. Thanks.


DynamicHeightSearchAdRequest.Builder builder = new DynamicHeightSearchAdRequest.Builder();
builder.setQuery(query);

// Customization options (set using setters on
// DynamicHeightSearchAdRequest.Builder)
builder.setNumber(1);
//builder.setCssWidth(320); // Equivalent to "width" CSA parameter
builder.setIsSellerRatingsEnabled(false);
builder.setIsTitleBold(true);
builder.setIsSiteLinksEnabled(false);
builder.setFontSizeDescription(10);
builder.setFontSizeTitle(13);
builder.setAdjustableLineHeight(8);
builder.setDetailedAttribution(false);
builder.setIsPlusOnesEnabled(false);
builder.setIsLocationEnabled(false);
builder.setIsClickToCallEnabled(false);

builder.setAdvancedOptionValue("csa_domainLinkAboveDescription", "false");
builder.setAdvancedOptionValue("csa_location", "false");
builder.setAdvancedOptionValue("csa_siteLinks", "false");
builder.setAdvancedOptionValue("csa_sellerRatings", "false");

mSearchAdView.loadAd(builder.build());
Screenshot_20161212-144518.png

Chris Feldman (Mobile Ads SDK Team)

unread,
Dec 12, 2016, 5:24:01 PM12/12/16
to Google Mobile Ads SDK Developers
Hi, 

This is not currently supported by the Mobile Ads SDK. A DynamicHeightSeachAdRequest is designed to support multiple ads, it cannot be used to show one ad with a custom height. 

Regards,
Chris Feldman
Mobile Ads SDK Team

Eric Z

unread,
Dec 12, 2016, 5:34:46 PM12/12/16
to google-adm...@googlegroups.com
Thanks for the reply. 
 
SearchAdRequest doesn't work any more. DynamicHeightSeachAdRequest doesn't provide good user experience. Do you have any other suggestion?

--

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



--

Chris Feldman (Mobile Ads SDK Team)

unread,
Dec 13, 2016, 9:48:13 AM12/13/16
to Google Mobile Ads SDK Developers
Hi,

If you need something that is banner sized, I would suggest considering Banner Ads, which are available in a few different heights and can be targeted similarly to your search ads. You can also take a look at Native Ads and Native Ads Express, which have ads with heights as low as 80dp and offer greater control over the ad content.

Regards,
Chris Feldman
Mobile Ads SDK Team

On Monday, December 12, 2016 at 5:34:46 PM UTC-5, ez wrote:
Thanks for the reply. 
 
SearchAdRequest doesn't work any more. DynamicHeightSeachAdRequest doesn't provide good user experience. Do you have any other suggestion?

Eric Z

unread,
Dec 13, 2016, 10:01:43 AM12/13/16
to google-adm...@googlegroups.com
Thanks for the reply. 

We used to use SearchAdRequest, but this object stops serving Ad last week. We are looking for something to replace the current placement. DynamiceHeightSearchAdRequest doesn't suitable for phone since it took too much real estate. Here we are talking about search Ad only since one of the Admob program manager advised us to try it when use enters search key word. Unfortunately she is on maternity leave. Do you know why SearchAdRequest doesn't work any more?

Thanks

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--

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

Chris Feldman (Mobile Ads SDK Team)

unread,
Dec 13, 2016, 10:45:25 AM12/13/16
to Google Mobile Ads SDK Developers
Hi,

DynamiceHeightSearchAdRequest is the preferred option, but it is still possible to see ads using SearchAdRequest. Would you mind sharing some of the code you're using, or a zip file containing your app? I would be happy to take a look.

Regards,
Chris Feldman
Mobile Ads SDK Team

On Tuesday, December 13, 2016 at 10:01:43 AM UTC-5, ez wrote:
Thanks for the reply. 

We used to use SearchAdRequest, but this object stops serving Ad last week. We are looking for something to replace the current placement. DynamiceHeightSearchAdRequest doesn't suitable for phone since it took too much real estate. Here we are talking about search Ad only since one of the Admob program manager advised us to try it when use enters search key word. Unfortunately she is on maternity leave. Do you know why SearchAdRequest doesn't work any more?

Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--

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

Eric Z

unread,
Dec 13, 2016, 11:09:38 AM12/13/16
to google-adm...@googlegroups.com
Thanks for looking into it.
LinearLayout adViewLayout = (LinearLayout) myApp.findViewById(R.id.adViewLayout);
adViewLayout.setVisibility(View.VISIBLE);
SearchAdView mSearchAdView = new SearchAdView(myApp);
mSearchAdView.setAdSize(AdSize.SMART_BANNER);
mSearchAdView.setAdUnitId("ms-app-pub-xxxxxxxxxxxxxxxx");

if (adViewLayout != null && adViewLayout.getChildCount() > 0)
adViewLayout.removeAllViews();
adViewLayout.addView(mSearchAdView);

SearchAdRequest.Builder builder = new SearchAdRequest.Builder();
builder.setQuery(query);
mSearchAdView.loadAd(builder.build());
Here is the log. We tried many search words. None of them return ad. This issue started on Dec 9, 2016 for production apps. If it's my Ad_Unit Id issue, I will send you the ID. This ID works with DynamiceHeightSearchAdRequest.

12-13 10:00:10.144 8484-8679/ I/Ads: No fill from ad server.
12-13 10:00:10.144 8484-8504/ I/Ads: No fill from ad server.
12-13 10:00:10.144 8484-8484/ W/Ads: Failed to load ad: 3
12-13 10:00:10.144 8484-8484/ W/Ads: Failed to load ad: 3
12-13 10:00:10.984 8484-8484/ I/Ads: Ad is not visible. Not refreshing ad.
12-13 10:00:10.984 8484-8484/ I/Ads: Scheduling ad refresh 60000 milliseconds from now.

Many thanks



To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--

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

Chris Feldman (Mobile Ads SDK Team)

unread,
Dec 13, 2016, 3:54:03 PM12/13/16
to Google Mobile Ads SDK Developers
Hi Eric,

If you change AdSize from SMART_BANNER to SEARCH, you should start seeing ads again. If the SEARCH size is still too big for your implementation, I would suggest looking into other ad types (Banner, Native, Native Advanced) that will better suit your size requirements. You can find more information about these ad types with the links that I posted in my previous message. 

Regards,
Chris Feldman
Mobile Ads SDK Team

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--

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



--

--

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

Eric Z

unread,
Dec 13, 2016, 5:36:23 PM12/13/16
to google-adm...@googlegroups.com
Hi Chris 

Thanks for the information. Changing AdSize to SEARCH works. But the ad takes half the screen. Users don't like the Ads in general. If the app takes half screen for Ads, it's not acceptable by users. I don't understand the rationale why Google depreciates the old style and favors the current one. 

I looked the banner Ads with targeting. The targeting bases on gender, location and birthday only. 

Please bring back the search ad in banner size. The current search ad is not suitable for phone devices.

Many thanks for listening. Thanks for your support. If you need the developers for testing the new search ad in banner size, please let us know.

Eric

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages