// In the Activity that will launch the native ad, // implement the AdListener interface and add the following: import com.facebook.ads.*; private NativeAd nativeAd; private void showNativeAd(){ nativeAd = new NativeAd(this, "473076559477025_1561996123918391"); nativeAd.setAdListener(new AdListener() { @Override public void onError(Ad ad, AdError error) { ... } @Override public void onAdLoaded(Ad ad) { ... } @Override public void onAdClicked(Ad ad) { ... } }); nativeAd.loadAd(); } // The next step is to extract the ad metadata and use its properties // to build your customized native UI. Modify the onAdLoaded function // above to retrieve the ad properties. For example: @Override public void onAdLoaded(Ad ad) { if (ad != nativeAd) { return; } String titleForAd = nativeAd.getAdTitle(); Image coverImage = nativeAd.getAdCoverImage(); Image iconForAd = nativeAd.getAdIcon(); String socialContextForAd = nativeAd.getAdSocialContext(); String titleForAdButton = nativeAd.getAdCallToAction(); String textForAdBody = nativeAd.getAdBody(); Rating appRatingForAd = nativeAd.getAdStarRating(); // Add code here to create a custom view that uses the ad properties // For example: LinearLayout nativeAdContainer = new LinearLayout(this); TextView titleLabel = new TextView(this); titleLabel.setText(titleForAd); nativeAdContainer.addView(titleLabel); ... // Add the ad to your layout LinearLayout mainContainer = (LinearLayout)findViewById(R.id.MainContainer); mainContainer.addView(nativeAdContainer); // Register the native ad view with the native ad instance nativeAd.registerViewForInteraction(nativeAdContainer); }

President Muhammadu Buhari on Wednesday said the sharp drop in the price of oil globally had put Nigeria in a volatile situation, couple with massive looting of Billions by the immediate past government.

Mr President said the country made what he called a terrible mistake by relying solely on oil.

According to a statement by his Special Adviser on Media and Publicity,
Femi Adesina, the President spoke while receiving the Iranian Ambassador to Nigeria, Saeed Koozechi, at the Presidential Villa, Abuja.

He reaffirmed that his administration is fully committed and determined to do all within its power to achieve the rapid diversification of Nigeria’s economy in the shortest possible time.

Buhari said he was convinced that with diligence, hard work and determination to achieve self-sufficiency, Nigeria could produce most of the items currently on its import list.

Mr President added, “We made a terrible mistake by becoming a mono-product economy, hinged on oil and we are now in a volatile situation due to the crash in oil prices.

“We have seen the benefits of diversification, which helped Iran to survive many years of sanctions and still come out strong.

“We are now fully committed to economic diversification. Most of the things on our import bills can be produced here; and we are determined to achieve that self-dependency.”

LEAVE A REPLY

Please enter your comment!
Please enter your name here