I integrate doubleclick to my android app by follow link
val adView = PublisherAdView(this)
adView.adSize = AdSize.BANNER
adView.adUnitId = "/6499/example/banner"
But I faced error val cannot be reassigned
as below, please help me how to fix it
Share for someone face same problem
After researching, I saw adsize
only delegate for getAdSize
so I use this code instead
adView!!.setAdSizes(AdSize.BANNER)