LinearLayout parent = new LinearLayout(this);
AdView child = new AdView(this);
child.setId(※);
parent.addView(child);

※適当に