Oddy
Oddy

Reputation: 1

Admob Ad ID into variables on Android?

Can I put the Admob Ad ID into variables on Android? I want to make this app that when I input the adunit ID in my app. It will change the adunit to whatever ad ID that I input.

Thank you.

Upvotes: 0

Views: 214

Answers (1)

Abdul Waheed
Abdul Waheed

Reputation: 4678

Yes, you can. Although I have not tested, but it will work. Use below code

mAdView.setAdUnitId(AD_UNIT_ID);

Hope that helps you.

Upvotes: 1

Related Questions