nisrulz / easydeviceinfo

:iphone: [Android Library] Get device information in a super easy way.
Apache License 2.0
1.77k stars 227 forks source link

Get Android Advertiser ID issue #34

Closed trafficteam7 closed 3 years ago

trafficteam7 commented 3 years ago

Hello. There is a mistake in the next code:

easyIdMod.getAndroidAdId(MainActivity.this, new EasyIdMod.AdIdentifierCallback() {
    @Override
    public void onSuccess(String adIdentifier, boolean adDonotTrack) {
        // Do something with the advertiser's ID
    }
});

you have easyIdMod here, but it doesn't have function getAndroidAdId. Maybe here should be easyAdsMod?

trafficteam7 commented 3 years ago

for me works the next code:

easyAdsMod.getAndroidAdId(new EasyAdsMod.AdIdentifierCallback() {
            @Override
            public void onSuccess(String adIdentifier, boolean adDonotTrack) {
                // Do something with the advertiser's ID
                Log.i("Your Ad Id", adIdentifier);
            }
        });
nisrulz commented 3 years ago

for me works the next code:

easyAdsMod.getAndroidAdId(new EasyAdsMod.AdIdentifierCallback() {
            @Override
            public void onSuccess(String adIdentifier, boolean adDonotTrack) {
                // Do something with the advertiser's ID
                Log.i("Your Ad Id", adIdentifier);
            }
        });

This is correct. The wiki has a mistake. I will update it.

nisrulz commented 3 years ago

Updated 🎉

Thank you for bringing this to my notice.