Error Monetization Google AD

I have this problem, I have seen that others also have this problem. Has it been solved?

The error is when using the Google AD monetization blocks, this is the error message, I have filled the Google AD ID fields and put the necessary blocks still appears.

I have tried even in test mode and the result is the same.

Attempt to invoke virtual method 'java.lang.String' on a null object reference
Note: You will not see another error reported for 5 seconds.



Set eCPM Floor with blocks before loading the Ad if you have selected Optimize in the Designer.

1 Like

I appreciate your answer and the truth solves the error.

But what would be the reason that it does not work with the “optimized” option since this option is the best, it is known that the higher the CPM, the less bidders and therefore the less profit.

Hi, Actually it does work with Optimised option.

All you need to do is set the eCPM Floor from the Blocks to Optimised.

In simple words the eCPM property in Designer does not work properly so if you set Optimised in Designer then it won’t set it. So you would have to just manually set it from your Blocks before loading Ad.

Like Set eCPM Floor = FloorAmount “Optimized”

You would find the FloorAmount block in all the Ad Manager component’s block section.