Automating Native app with images

Our Android Native app is integrated with back to back Ads between the functional flow.
All these video ads and static ads has only class value like android.widget.Image and no other unique identifiers shown when tried to identify with Appium inspector.
Can you suggest if there is a way if i can make my script to wait until ad is complete playing and tap on next step as reference property of the ad screen is just the class value?
Appreciate any code suggestions.