Google play services 5.0.77

Found this solution by Mateusz Matela at https://groups.google.com/forum/#!topic/google-admob-ads-sdk/DkjtCx_Zvn8. I have tried on a Motorola DEFY+ that crashed from this bug two out of three times. It seems to work even when the warnings assositated with this bug appears in the log. It even says “AdWorker thread thrown an exception”. My ads even reappeard when continuing … Read more

How to request non-personalized AdMob ads with the new Unified Messaging Platform SDK for Android

With the new Unified Messaging Platform, Google is working as a Consent Managing Platform. These CMP’s use a TCF string to store the user consent preferences. Google checks this TCF string to see which ads can be shown; As per the Google documentation: Google will serve personalized ads when all of the following criteria are … Read more

Correctly disable AdMob ads

In your layout file (eg, main.xml) : <LinearLayout android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:id=”@+id/adsContainer”> <com.admob.android.ads.AdView android:id=”@+id/admobAds” android:layout_width=”fill_parent” android:layout_height=”fill_parent” app:backgroundColor=”#000000″ app:primaryTextColor=”#FFFFFF” app:secondaryTextColor=”#CCCCCC”> </LinearLayout> Then in your code (eg, inside a “if” block) (LinearLayout) adscontainer = (LinearLayout) findViewById(R.id.adsContainer); View admobAds = (View) findViewById(R.id.admobAds); adscontainer.removeView(admobAds); This will “permanently” (for the lifecycle of the app) remove the ads from the layou, which … Read more

The ad size and ad unit ID must be set before loadAd when set programmatically

Create it programatically View adContainer = findViewById(R.id.adMobView); AdView mAdView = new AdView(context); mAdView.setAdSize(AdSize.BANNER); mAdView.setAdUnitId(YOUR_BANNER_ID); ((RelativeLayout)adContainer).addView(mAdView); AdRequest adRequest = new AdRequest.Builder().build(); mAdView.loadAd(adRequest); And in your xml file <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent”> <RelativeLayout android:id=”@+id/adMobView” android:layout_width=”match_parent” android:layout_height=”match_parent” android:layout_alignParentBottom=”true”/> </RelativeLayout> EDIT The best practice for banners, is two show one banner per view (one unitId), if you want … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)