googleads-mobile-flutter icon indicating copy to clipboard operation
googleads-mobile-flutter copied to clipboard

[Feature request] Collapsible banner ads Flutter support

Open zfc0812 opened this issue 2 years ago • 16 comments

I noticed there is a new ads format called collapsible banner ads which is supported on both Android and iOS.

Is collapsible banner ads supported in Flutter?

zfc0812 avatar Oct 22 '23 08:10 zfc0812

@zfc0812 Currently collapsible banner ads does not have Flutter plugin support. It has been labeled as a feature request. Thanks.

malandr2 avatar Oct 23 '23 18:10 malandr2

any change or work about this ?

GeceGibi avatar Nov 16 '23 07:11 GeceGibi

@GeceGibi no change to report other than this is something the team is aware of. Nothing official has been time budgeted for next steps as we approach 2024.

malandr2 avatar Nov 16 '23 15:11 malandr2

Any update?

victorvhpg avatar Nov 24 '23 22:11 victorvhpg

any update?

NhaPCS avatar Dec 06 '23 15:12 NhaPCS

any update?

phantuanphong avatar Dec 07 '23 13:12 phantuanphong

+1

vavadiyahiren avatar Jan 12 '24 12:01 vavadiyahiren

any news ?

ThuyenPV avatar Feb 02 '24 07:02 ThuyenPV

+1

hungvalen avatar Feb 29 '24 04:02 hungvalen

Will flutter or native have better revenue from advertising? how to maximize revenue from flutter app?

hautvfami avatar Mar 10 '24 17:03 hautvfami

ผมคิดว่าการใช้แอปพลิเคชั่นflutterก็ไม่เลวร้ายอะไรในการหารายใด้เพิ่มหรือว่าเลือกใด้อย่างเดียวแล้วตอนนี้ที่ผมทำมันยังไม่สำเร็จหรือปล่าวถ้ายังจะมีวิธีการแก้ไขใด้หรือไม่เพราะผมก็อยากเพิ่มรายใด้จากการโฆษณานั่นแหละครับ.

Phlphat746 avatar Mar 10 '24 21:03 Phlphat746

any update ?

Hieuntdz avatar Mar 16 '24 01:03 Hieuntdz

@malandr2 any update?

alixumer avatar Mar 21 '24 12:03 alixumer

Now you can setup banner collapsible. Add AdRequest to request in BannerAd. example: BannerAd( adUnitId: key, size: size, request: AdRequest(extras: {"collapsible": "bottom"}), );

remember setup collapsible in admob

trunghaudinh avatar Mar 29 '24 03:03 trunghaudinh

@trunghaudinh can you share document say add extras: {"collapsible": "bottom"}

Hieuntdz avatar Mar 29 '24 04:03 Hieuntdz

@Hieuntdz check this link: https://developers.google.com/ad-manager/mobile-ads-sdk/android/banner/collapsible

trunghaudinh avatar Mar 29 '24 08:03 trunghaudinh

@trunghaudinh is awesome. It's not documented on flutter but you found it out. Massive kudos!

danieeelfc avatar May 25 '24 01:05 danieeelfc

I would advise to add also the following to extras: {"collapsible_request_id": generateUUID()}

Otherwise the banner will expand every 30-120 seconds, depending on your refresh rate.

danieeelfc avatar May 26 '24 18:05 danieeelfc

Hi @all,

We've just published a developer guide for Collapsible Banner in Flutter

malandr2 avatar Jun 26 '24 17:06 malandr2

Hi @ALL,

We've just published a developer guide for Collapsible Banner in Flutter

Is version google_mobile_ads ^4.0.0 supported?

hhzhangzy avatar Sep 23 '24 10:09 hhzhangzy

I implemented collapsible banner ads in my Flutter project. It is working very fine for both Android and iOS platforms. It allows the collapse button to back the banner in standard size. You can checkout examples to integrate collapsible banner adMob in Flutter.

Jigneshiosdeveloper avatar Sep 26 '24 04:09 Jigneshiosdeveloper

I would advise to add also the following to extras: {"collapsible_request_id": generateUUID()}

Otherwise the banner will expand every 30-120 seconds, depending on your refresh rate.

Can someone confirm that it's indeed needed? I have landed on couple of Android resources and it seems it (at least was) needed to omit refreshing already loaded ad as expended.

import 'package:uuid/uuid.dart';

var uuid = Uuid();

void _loadBannerAd() async {
  // ...

  var adRequest = AdRequest(extras: {
    "collapsible": "bottom",
    "collapsible_request_id": uuid.v4(),
  });
}

Xarvalus avatar Oct 04 '24 11:10 Xarvalus