Reporting Installs and Custom Actions

Introduction

You can easily report installs and rewarded custom actions through your application. To get started, please go to our self-service platform and create an account. Then make sure you follow the integration steps correctly.

Note You’ll need to have Fyber SDK integrated into your project, but you do not need to start it to take advantage of the advertiser features we provide.

Installs

Add this snippet to your app’s initialization code:

InstallReporter.Create(appId).Report();

The appId is the application Id you’ve previoulsy configured on the “Advertiser Control Panel”.

Note: If appId is not valid, this method will throw an ArgumentException.

Rewarded Action

First define the ActionId for the actions you want to report completion on through Fyber’s “Advertiser Control Panel”. An ActionId is composed of uppercase letters, numbers and underscore ([A-Z,0-9,_]) only.

You would then use this code to reward a user after the custom action is completed:

RewardedActionReporter.Create(appId, actionId).Report();

The appId and actionId are, respectively, the application Id and the Action Id you’ve previously configured on the “Advertiser Control Panel”.

Note: If appId or actionId are not valid, this method will throw an ArgumentException.