I have set the right permissions, and the ID is correct. Layout isn't the cause of the problem, as i can display any other view(TextView, CheckBox), and it fits in the right place.
No errors or warnings are shown in logcat, only line, that indicates, that something is wrong is
Sum of ration weights is 0 - no ads to be shown
I was previously using AdMob, but it at least showed black space, when no ads were available.
Here is the code to instantiate adWhirl:
LinearLayout layout = (LinearLayout) findViewById(R.id.layout_ad);
AdWhirlLayout adWhirlLayout = new AdWhirlLayout(this, "ID");
RelativeLayout.LayoutParams adWhirlLayoutParams =
new RelativeLayout.LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT
);
adWhirlLayout.setBackgroundColor(Color.BLACK);
adWhirlLayout.setLayoutParams(adWhirlLayoutParams);
AdWhirlTargeting.setTestMode(true);
layout.addView(adWhirlLayout, lparams);
layout.invalidate();