Skip to content

Commit f59bbd6

Browse files
author
Martin Bella
committed
readme improvements
1 parent 03d42b0 commit f59bbd6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,20 @@ DDNASmartAds.instance().getEngageFactory().requestInterstitialAd(
123123
});
124124
```
125125

126-
Alternatively, if more control is needed, ads can also be created by performing an Engage request and creating an `InterstitialAd` or `RewardedAd` instance from the returned `Engagement`.
126+
Alternatively, if more control over the possible Engage responses is needed, Engage checked ads can be created by performing an Engage request and then creating an `InterstitialAd` or `RewardedAd` instance from the returned `Engagement`. The following example shows how to handle Engage returning an ad or an image message.
127127
```java
128128
DDNA.instance().requestEngagement(
129-
new Engagement("myDecisionPoint"),
129+
new Engagement("showAdOrImageMessage"),
130130
new EngageListener<Engagement>() {
131131
@Override
132132
public void onCompleted(Engagement engagement) {
133-
RewardedAd reward = RewardedAd.create(engagement);
133+
RewardedAd ad = RewardedAd.create(engagement);
134134
ImageMessage image = ImageMessage.create(engagement);
135135

136136
if (image != null) {
137137
// code for showing Image Message
138-
} else if (reward != null) {
139-
reward.show();
138+
} else if (ad != null) {
139+
ad.show();
140140
}
141141
}
142142

0 commit comments

Comments
 (0)