Migrate a GCM Client App for Android to Firebase Cloud Messaging

As of April 10, 2018, Google has deprecated GCM. The GCM server and client APIs are deprecated and will be removed as soon as April 11, 2019. Migrate GCM apps to Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure, plus many new features. See the migration guide to learn more.

https://android.googleapis.com/gcm/send -> https://fcm.googleapis.com/fcm/send

Read more

How to create Responsive AdSense Ads


<script src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js” async></script><ins class=”adsbygoogle” style=”display: block;” data-ad-client=”ca-pub-xxx” data-ad-slot=”xxx” data-ad-format=”auto”></ins><script>// <![CDATA[
(adsbygoogle = window.adsbygoogle || []).push({});
// ]]></script>

GA:PI() – Google Analytics PHP Interface and OAuth2

Go to Google Console

Enable Google Analytics API

Create new project


Go to APIs & auth > Credentials
Click on Create new Client ID, and select Service account and P12 key. Then click on Create Client ID to download it.


Go to Google Analytics Admin and give permissions for read & analyze to the new email that looks something like 381198546241-kwuf1jrlpqbpq1523sx1k0h37tidybhe@developer.gserviceaccount.com

Download gapi-google-analytics-php-interface

And finally some php code:

$ga = new gapi("381198546241-kwuf1jrlpqbpq1523sx1k0h37tidybhe@developer.gserviceaccount.com","PATH_TO_YOUR_P12_KEY.p12");
$ga->requestReportData(ga_profile_id, $dimensions, $metrics, $sort_metric, $filter, $start_date, $end_date, $start_index=1, $maxResults=30);

This are the basic steps

Google quietly announces the official name for Android 6.0 – M is for Marshmallow


A statue of Google’s Android Marshmallow operating system sits on the Google campus in Mountain View on August 17, 2015.

Credit: Martyn Williams


A marshmallow is a sugar based candy that, in its modern form, typically consists of sugar, whipped to a spongy consistency, molded into small cylindrical pieces, and coated with corn starch. Some marshmallow recipes call for eggs. This confection is the modern version of a medicinal confection made from Althaea officinalis, the marshmallow plant.

1 2 3