Third-party consent manager
Ogury requires an explicit consent from the user to use their personal data. We collect this consent through Ogury Choice Manager. This is the easiest way to collect consent for Ogury and other vendors.
If you already have your own consent notice to collect user consent, we provide a procedure to transmit the consent to us.

Requirements

You have a registered application on your Ogury dashboard. If not, you can refer to the Getting started.

Step 1: Pass consent to Ogury

To pass consent status to Ogury, call the following method after the consent has been collected:
1
Integer[] nonIabVendorsAccepted = new Integer[0];
2
OguryChoiceManagerExternal.TcfV2.setConsent(context, "OGY-XXXXXXXXXXXX", iabString, nonIabVendorsAccepted);
Copied!
The setConsent method takes the following parameters:
The IAB-specified Consent String must be valid and be generated by a whitelisted CMP. Otherwise the call to the setConsent method will be ignored.
If, at any point, user consent is changed, call this method again with updated values.

Integration example

1
public class MyActivity extends Activity {
2
3
@Override protected void onCreate(Bundle savedInstanceState) {
4
super.onCreate(savedInstanceState);
5
6
OguryConfiguration.Builder oguryConfigurationBuilder = new OguryConfiguration.Builder(this, "OGY-XXXXXXXXXXXX");
7
Ogury.start(oguryConfigurationBuilder.build());
8
9
YourCMP.getConsent(this, YourCMPConsentListener);
10
}
11
12
private final YourCMPConsentListener yourConsentListener = new YourCMPConsentListener() {
13
@Override public void onComplete(OguryChoiceManager.Answer answer) {
14
// Transmit the user consent to Ogury
15
Integer[] nonIabVendorsAccepted = new Integer[0];
16
OguryChoiceManagerExternal.TcfV2.setConsent(context, "OGY-XXXXXXXXXXXX", YourCMP.getIabString(), nonIabVendorsAccepted);
17
18
}
19
@Override public void onError(OguryError error) {
20
// handle error
21
}
22
};
23
24
}
Copied!

Step 2: Finish your integration

You can go back to the getting started to finish your integration.