@Override public View getContentInfoView() { View result = null; if (mNativeAd != null) { LinearLayout adChoicesContainer = new LinearLayout(mContext); adChoicesContainer.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); adChoicesContainer.setGravity(Gravity.CENTER); adChoicesContainer.setOrientation(LinearLayout.VERTICAL); adChoicesContainer.addView(new AdChoicesView(mContext, mNativeAd, true)); return adChoicesContainer; } return result; }