Hello Everyone,
I have to do an important announce regarding my ANE extension.
I did check all the previous version of the Extension and i have to admit that what state from zuktga10762 It is true.
In Version 1.7.5 and the version before there was the function as described by him.
The presence of that method in the described functionality was a mistake on my side and i do truly apologize for that.
I don't want to give you any excuse, however i wish to simply explain to all of you what happened. Then, if you want to trust me, this extension, use it or not it will be up to you.
Originally there was the ValidationId method, the purpose of this method was to replace randomly the user AdModID with an already banned AdmodId, this was supposed to happen only during test mode.
My mistake was that on the original "validateId" method there was a check for the production mode
// Skip if in Production Mode
if(mProdMode) return aId;
If the setting was in production mode the Original User AdmobId will be returned, while if in test mode, the ID will replaced randomly.
However in the actual ANE build the state check was not there.
Why i did add this function?
Well it happen to me in the past, also with the best intentions, to have, and see, accounts banned during Testing, this as you know may happen very easily if you are testing the ANE in different devices without setting properly the device ID, or even in a sinlge Device.
The damage of having the account banned are very severe, so i wanted to do something for reduce as much as possible this risk.
Having half of the request made on a already banned id was aimed to reduce by 50% the number of impression or click which may be perform during testing by the user in order to avoid as much as possible the risk to have the account banned. Keeping in the other hand the request always successful.
What happened?
Well, i guess that during my tests on checking the operation of the function (replacing the id only in test mode) i did forgot to resume the operation to work only in test mode.
When i saw the first message from zuktga10762 i honestly got in panic to see that the testmode check was not there. I check the code and i realized he was right, so the first thing i did it was fixing the problem.
I don't know why, i guess out of panic, i also obfuscated the code and updated immediately the ANE in Git.
In the Forum, i guess is a natural human instinct, i just deny everything hoping to save my self from the error i made.
However afterwards, zuktga10762 posted the new code and also the obfuscated version had the same error.
Then again i was in total panic, so i decide to simply remove the obfuscation, post the native source code in Git, and to, CAREFULLY this time, make sure that there was no error.
For be even more sure to not make the same mistake i completely remove the function which switch the ID (Even in test mode). And then i update Git with everything anew.
I did also reset the GitHub repository for not make anymore available any of the older corrupted version or builds.
Now, i don't ask you to believe me, to trust me or to trust my extension. I simply ask you to read this post because i wanted to explain to you what happened and why i did that mistake.
My intention were good, but the result was very bad.
And for that, once again, i truly apologize for what happened.
This taught me, and may also teach you, that forgetting a state check may cause devastating trouble not only on the code operation itself.
As mentioned above the new version in GitHub do not include anymore the validation method, and the older versions are no more accidentally or voluntarily available.
Why i did not explained my self before?
Well, as a human being and as a developer i get always drag by my emotions, in this case was panic and regret for the error i made.
Denying the fact and fix the error was the first natural instinct.
However in the rush, and drag by those emotion, i ended up committing the same mistake once again.
Then i did calm down, and the rational flow started to run once again, so i was able to concentrate properly and clean correctly the error, then, also thank you to advise from dear friends, i did calm my self in order to write this announce.
In conclusion i do, once again, apologize for the mistake i have made.
I will soon resume also the Github repository to include also the Demo application source code which was removed recently.
I hope on your understanding and i thank you everyone for have invest a bit of your time reading this announce.