A. Try to mute the game sound in the settings before starting the game. This way, when ads play, they won't interrupt your music. You can adjust the sound settings back after the ads are done.
B. Use a music player that allows you to play music in the background while using other apps. This can help maintain your music playback even when ads appear.