How to create Responsive AdSense Ads

responsive-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

google-console

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.

ga-admin

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:


define('ga_profile_id','YOUR_PROFILE_ID');
$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

google-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