What are they?
Tagged wrappers are normal android views with two requirements:
-
Has the XML attribute
android:tagdefined or added with thesetTagmethod. This is used to find the views in the Single tag where you want us to add the monetization inventory. -
It is a
ViewGroupor a Subtype, likeFrameLayout,LinearLayout,ConstraintLayout,Relativelayout,etc.
Where to add the wrappers?
While it is true that overload your app with ads is not the best user experience, we recommend you add the wrappers everywhere where is a blank space in the screen. -se bile you do not want to fill them in, that is acceptable. We can manage which ones are and are not filled the our dashboard.
Best Practices when adding a wrapper
Creating views, you need to ensure the wrapper view:
-
Do not overlap other wrappers on the app content.
-
Her boş alan, (kullanmayı planlamasanız bile) bir ambalajcı için iyi bir alandır.
-
Do not use only one tag for all of your wrappers, it will be hard to configure your monetization and change it according to your needs. So use as many different id’s as possible
-
Kullan
Framelayoutas the wrapper view (if possible), because it is the cheapestViewGroupinheritor.
Sınırlamalar
-
We can fill either all of the wrappers with a tag or just the first one we find with that tag: if you want to differentiate any wrappers you need to assign a different tag to those. Örn.: Eğer ekranda daha aşağıda bir paketi doldurmak istiyorsanız, etiketine sahip etiket
reklam_sarmalayıcıBunu doldurabiliriz. Ancak, aynı etikete sahip birden fazla sarmalayıcınız varsa ve hepsini doldurup aynı etikete sahip olanlardan bazılarını hariç tutmak istiyorsanız, bu mümkün değildir. Sarmalayıcıları gruplandırma konusunda teknik destek ekibimizden tavsiye almanızı öneririz.
Örnek
# activity_main.xml
...
<!-- this would be your layout -->
<ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp">
...
<!-- this is the wrapper -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="single_tag_infinite_scroll_ad_wrapper_tag"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="parent"
app:layout_constraintVertical_bias="0.0">
</LinearLayout>
</ConstraintLayout>
...