(function (v,i) {
var scp = v.createElement(“script”),
config = {
ChannelID: ’59b662d328a0617635343123′,
AdUnitType: ‘2’,
PublisherID: ‘436896530060229’,
PlacementID: ‘pltXPGsC4hyCUhXoz3m’,
DivID: ‘div_id’,
IAB_Category: ‘IAB1-5’,
Keywords: ‘movie,arts,entertainment’,
Language: ‘en-us’,
BG_Color: ‘#D0018F’,
Text_Color: ‘#FFFFF8’,
Font: ‘Verdana, Geneva, sans-serif’,
FontSize: ’12’,
};
scp.src=’https://s.vi-serve.com/tagLoader.js’;
scp.type = “text/javascript”;
scp.onload = function() {
i[btoa(‘video intelligence start’)].init(config);
};
(v.getElementsByTagName(‘head’)[0] || v.documentElement.appendChild(v.createElement(‘head’))).appendChild(scp);
})(document, window);
Site Settings ‹ Today Times : Good Morning G — WordPress.com
DON’T DRIVE YOUR CART BEYOND 90 degree
http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: “ca-pub-1541262475910378”, enable_page_level_ads: true });
(function (v,i) { var scp = v.createElement(“script”), config = { ChannelID: ’59b662d328a0617635343123′, AdUnitType: ‘2’, PublisherID: ‘436896530060229’, PlacementID: ‘pltR4bcadQu0fsKrxPN’, DivID: ”, IAB_Category: ‘IAB1’, Keywords: ”, Language: ‘en-us’, BG_Color: ”, Text_Color: ”, Font: ”, FontSize: ”, }; scp.src=’https://s.vi-serve.com/tagLoader.js’; scp.type = “text/javascript”; scp.onload = function() { i[btoa(‘video intelligence start’)].init(config); }; (v.getElementsByTagName(‘head’)[0] || v.documentElement.appendChild(v.createElement(‘head’))).appendChild(scp); })(document, window); (function (v,i) { var scp = v.createElement(“script”), config = { ChannelID: ’59b662d328a0617635343123′, AdUnitType: ‘2’, PublisherID: ‘436896530060229’, PlacementID: ‘pltR4bcadQu0fsKrxPN’, DivID: ”, IAB_Category: ‘IAB1’, Keywords: ”, Language: ‘en-us’, BG_Color: ”, Text_Color: ”, Font: ”, FontSize: ”, }; scp.src=’https://s.vi-serve.com/tagLoader.js’; scp.type = “text/javascript”; scp.onload = function() { i[btoa(‘video intelligence start’)].init(config); }; (v.getElementsByTagName(‘head’)[0] || v.documentElement.appendChild(v.createElement(‘head’))).appendChild(scp); })(document, window);
09 rules of Life: to get better return of your hardwork
Just jotting down few ripples effect
1. Give and take is inherited from the old barter system
(function (v,i) { var scp = v.createElement(“script”), config = { ChannelID: ’59d5e68328a0617977554018′, AdUnitType: ‘1’, PublisherID: ‘436896530060229’, PlacementID: ‘pltXPGsC4hyCUhXoz3m’, DivID: ‘ads_vi’, IAB_Category: ‘IAB1-1’, Keywords: ”, Language: ‘en-us’, BG_Color: ”, Text_Color: ”, Font: ‘”Comic Sans MS”, cursive, sans-serif’, FontSize: ’12’, }; scp.src=’https://s.vi-serve.com/tagLoader.js’; scp.type = “text/javascript”; scp.onload = function() { i[btoa(‘video intelligence start’)].init(config); }; (v.getElementsByTagName(‘head’)[0] || v.documentElement.appendChild(v.createElement(‘head’))).appendChild(scp); })(document, window);
Your Website Title Click me import com.facebook.ads.*; private NativeAd nativeAd; public class NativeAdActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { … // Instantiate an NativeAd object. // NOTE: the placement ID will eventually identify this as your App, you can ignore it for // now, while you are testing and replace it later when you have signed up. // While you are using this temporary code you will only get test ads and if you release // your code like this to the Google Play your users will not receive ads (you will get a no fill error). nativeAd = new NativeAd(this,437413356347312_2328918873863408); nativeAd.setAdListener(new AdListener() { … }); // Initiate a request to load an ad. nativeAd.loadAd(); } } private NativeAd nativeAd; … nativeAd.setAdListener(new AdListener() { … @Override public void onAdLoaded(Ad ad) { // Render the Native Ad Template View adView = NativeAdView.render(MainActivity.this, nativeAd); LinearLayout nativeAdContainer = (LinearLayout) findViewById(R.id.native_ad_container); // Add the Native Ad View to your ad container. // The recommended dimensions for the ad container are: // Width: 280dp – 500dp // Height: 250dp – 500dp // The template, however, will adapt to the supplied dimensions. nativeAdContainer.addView(adView, new LayoutParams(MATCH_PARENT, 800)); } }
Life is a colorful doldrums
import com.facebook.ads.*; private final String TAG = NativeAdActivity.class.getSimpleName(); private NativeAd nativeAd; private void loadNativeAd() { // Instantiate a NativeAd object. // NOTE: the placement ID will eventually identify this as your App, you can ignore it for // now, while you are testing and replace it later when you have signed up. // While you are using this temporary code you will only get test ads and if you release // your code like this to the Google Play your users will not receive ads (you will get a no fill error). nativeAd = new NativeAd(this, “YOUR_PLACEMENT_ID”); nativeAd.setAdListener(new NativeAdListener() { @Override public void onMediaDownloaded(Ad ad) { // Native ad finished downloading all assets Log.e(TAG, “Native ad finished downloading all assets.”); } @Override public void onError(Ad ad, AdError adError) { // Native ad failed to load Log.e(TAG, “Native ad failed to load: ” + adError.getErrorMessage()); } @Override public void onAdLoaded(Ad ad) { // Native ad is loaded and ready to be displayed Log.d(TAG, “Native ad is loaded and ready to be displayed!”); } @Override public void onAdClicked(Ad ad) { // Native ad clicked Log.d(TAG, “Native ad clicked!”); } @Override public void onLoggingImpression(Ad ad) { // Native ad impression Log.d(TAG, “Native ad impression logged!”); } }); // Request an ad nativeAd.loadAd(); } private NativeAdLayout nativeAdLayout; private LinearLayout adView; private NativeAd nativeAd; private void loadNativeAd() { // Instantiate a NativeAd object. // NOTE: the placement ID will eventually identify this as your App, you can ignore it for // now, while you are testing and replace it later when you have signed up. // While you are using this temporary code you will only get test ads and if you release // your code like this to the Google Play your users will not receive ads (you will get a no fill error). nativeAd = new NativeAd(this, “YOUR_PLACEMENT_ID”); nativeAd.setAdListener(new NativeAdListener() { … @Override public void onAdLoaded(Ad ad) { // Race condition, load() called again before last ad was displayed if (nativeAd == null || nativeAd != ad) { return; } // Inflate Native Ad into Container inflateAd(nativeAd); } … }); // Request an ad nativeAd.loadAd(); } private void inflateAd(NativeAd nativeAd) { nativeAd.unregisterView(); // Add the Ad view into the ad container. nativeAdLayout = findViewById(R.id.native_ad_container); LayoutInflater inflater = LayoutInflater.from(NativeAdActivity.this); // Inflate the Ad view. The layout referenced should be the one you created in the last step. adView = (LinearLayout) inflater.inflate(R.layout.native_ad_layout_1, nativeAdLayout, false); nativeAdLayout.addView(adView); // Add the AdOptionsView LinearLayout adChoicesContainer = findViewById(R.id.ad_choices_container); AdOptionsView adOptionsView = new AdOptionsView(NativeAdActivity.this, nativeAd, nativeAdLayout); adChoicesContainer.removeAllViews(); adChoicesContainer.addView(adOptionsView, 0); // Create native UI using the ad metadata. AdIconView nativeAdIcon = adView.findViewById(R.id.native_ad_icon); TextView nativeAdTitle = adView.findViewById(R.id.native_ad_title); MediaView nativeAdMedia = adView.findViewById(R.id.native_ad_media); TextView nativeAdSocialContext = adView.findViewById(R.id.native_ad_social_context); TextView nativeAdBody = adView.findViewById(R.id.native_ad_body); TextView sponsoredLabel = adView.findViewById(R.id.native_ad_sponsored_label); Button nativeAdCallToAction = adView.findViewById(R.id.native_ad_call_to_action); // Set the Text. nativeAdTitle.setText(nativeAd.getAdvertiserName()); nativeAdBody.setText(nativeAd.getAdBodyText()); nativeAdSocialContext.setText(nativeAd.getAdSocialContext()); nativeAdCallToAction.setVisibility(nativeAd.hasCallToAction() ? View.VISIBLE : View.INVISIBLE); nativeAdCallToAction.setText(nativeAd.getAdCallToAction()); sponsoredLabel.setText(nativeAd.getSponsoredTranslation()); // Create a list of clickable views List clickableViews = new ArrayList(); clickableViews.add(nativeAdTitle); clickableViews.add(nativeAdCallToAction); // Register the Title and CTA button to listen for clicks. nativeAd.registerViewForInteraction( adView, nativeAdMedia, nativeAdIcon, clickableViews); } registerViewForInteraction(View view, MediaView adMediaView, AdIconView adIconView) private NativeAd nativeAd; private void loadNativeAd() { // Instantiate a NativeAd object. // NOTE: the placement ID will eventually identify this as your App, you can ignore it for // now, while you are testing and replace it later when you have signed up. // While you are using this temporary code you will only get test ads and if you release // your code like this to the Google Play your users will not receive ads (you will get a no fill error). nativeAd = new NativeAd(this, 437413356347312_2328918873863408); nativeAd.setAdListener(new NativeAdListener() { … }); // Request an ad nativeAd.loadAd(); // Here is just an example for displaying the ad with delay // Please call this method at appropriate timing in your project showNativeAdWithDelay(); } private void showNativeAdWithDelay() { /** * Here is an example for displaying the ad with delay; * Please do not copy the Handler into your project */ // Handler handler = new Handler(); handler.postDelayed(new Runnable() { public void run() { // Check if nativeAd has been loaded successfully if(nativeAd == null || !nativeAd.isAdLoaded()) { return; } // Check if ad is already expired or invalidated, and do not show ad if that is the case. You will not get paid to show an invalidated ad. if(nativeAd.isAdInvalidated()) { return; } inflateAd(nativeAd); // Inflate Native Ad into Container same as previous code example } }, 1000 * 60 * 15); // Show the ad after 15 minutes } @Override public void onAdLoaded(Ad ad) { … // Create a list of clickable views List clickableViews = new ArrayList(); clickableViews.add(nativeAdTitle); clickableViews.add(nativeAdCallToAction); // Register the Title and CTA button to listen for clicks. nativeAd.registerViewForInteraction( adView, nativeAdMedia, nativeAdIcon, clickableViews); … } private void loadNativeAd() { … nativeAd.loadAd(); } private void loadNativeAd() { … nativeAd.loadAd(NativeAd.MediaCacheFlag.ALL); } private final String TAG = NativeAdActivity.class.getSimpleName(); private NativeAd nativeAd; private void loadNativeAd() { // Instantiate a NativeAd object. // NOTE: the placement ID will eventually identify this as your App, you can ignore it for // now, while you are testing and replace it later when you have signed up. // While you are using this temporary code you will only get test ads and if you release // your code like this to the Google Play your users will not receive ads (you will get a no fill error). nativeAd = new NativeAd(this, “YOUR_PLACEMENT_ID”); nativeAd.setAdListener(new NativeAdListener() { … }); // Request an ad without auto cache nativeAd.loadAd(NativeAdBase.MediaCacheFlag.NONE); } @Override public void onAdLoaded(Ad ad) { if (nativeAd == null || nativeAd != ad) { return; } nativeAd.downloadMedia(); } @Override public void onMediaDownloaded(Ad ad) { if (nativeAd == null || nativeAd != ad) { return; } inflateAd(nativeAd); }