Google Compliant Activity
(Optional)
As a HostApplication integrating the Ads, Google suggests that the monetisation Ads be displayed with Host Application in background. To enable this feature set, we have included HostComplianceActivity.java
and activity_host_compliance.xml
file to the zip file along with the aar file. This file can be customised by the App developer with image / Color or any other design as required.
HostComplianceActivity can be placed along with other Activity classes of the HostApplication and layout file can be placed in res\layout
folder.
Alternatively, developer can create any activity class by extending the DRComplianceActivity.java
.
This activity will be utilised only if the Host Application is killed and user taps on the Monetisation Ads. In case the user is in Foreground or App is in Background we display the the page where the user had left.
Post creation or updation of the HostComplianceActivity, developer would need to pass the class reference of the activity when we initialise the IU SDK as the second parameter.
public class MyApp extends Application {
@Override
public void onCreate() {
super.onCreate();
...
IUApp.init(getApplicationContext(), HostComplianceActivity.class);
}
}
Reach out to us incase you need any further assistance on this.
Updated almost 3 years ago