Hello!
I downloaded the sample app and I'm able to modify the layout so that it would be like in the pictures in my first post. But before I do so I ran into two issues:
1) I was unable to correctly setup Charles and the proxy on an emulator
2) I was unable to come across any banner ad that has a small video embedded, like the one I posted in my first post
Charles and proxy:
1) I use an emulator from Android Studio running SDK 29 (higher than Android N)
2) Google Play Services - Yes. Update them - Yes
3)
Enabling Network Tracing on the mobile device - Yes
4) Installed Charles on Windows 10 - Yes
5) Help - SSL Proxying - Install Charles Root Cert on a Mobile Device - No. There's no dialog asking me to use the certificate. I tried Chrome browser, Google app, Firefox. Also tried setting the website to "Desktop".No luck. Testing the website on my desktop worked instantly.
6) Set IP to 127.0.0.1 or to the IP address which the dialogs shows, i.e. 192.168.xxx.yyy did not help
7) Ads were never loaded. Logcat always printed: Ads: Ad failed to load : 0
8) This line of code was added to the manifest:
<application
android:networkSecurityConfig="@xml/network_security_config"
The file itself had the correct config already. So no changes in network_security_config.xml
9) No ads ever showed up
10) Running the sample app without the proxy shows banner ads
No small embedded video ads in banners
As I mentioned before I was unable to come across any such ad anymore. If I can remember correctly I saw these ads from Facebook, Ebay, Instagram. Only those ads caused the issue I reported. All other ads don't. Is there a way to get a test ad with an embedded video?
Looking forward to hearing from you and how to proceed from here!
Thanks!