简体   繁体   中英

Changing manifest meta-data from code

I have a app that uses ads. The ad id is set in the manifest id with a meta-data tag.

I want to change this tag when i start the app in some cases (diferent id for some localisations)

Can i do this in code?

The manifest meta-data can't be changed at runtime.

You should look to see if your ad library allows direct setting of the advertiser id (eg AdMobs SDK has an AdManager class which allows the setting of things that can be defined in the metadata).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM