So, I currently have an AdView in my layout, for example:
<com.google.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" ads:adUnitId="XXXXXXXXXXXXXX" ads:adSize="BANNER" ads:loadAdOnCreate="false"/>
and it works great. However, I have to get AdView in the source code in order to send him a request for the emulator, and my personal phone is TestingDevices and not receive real ads. Is there a way that I can list in XML? or even get AdView to display ONLY test ads, so I donβt need to have this piece of code and can you configure AdView to load AdOnCreate?
Thanks.
source share