lib/site.wordads.earnings.js
function SiteWordAdsEarnings( sid, wpcom ) {
	if ( ! ( this instanceof SiteWordAdsEarnings ) ) {
		return new SiteWordAdsEarnings( sid, wpcom );
	}

	this._sid = sid;
	this.wpcom = wpcom;
}
function SiteWordAdsEarnings( sid, wpcom ) {
	if ( ! ( this instanceof SiteWordAdsEarnings ) ) {
		return new SiteWordAdsEarnings( sid, wpcom );
	}

	this._sid = sid;
	this.wpcom = wpcom;
}
function SiteWordAdsEarnings ( sid , wpcom ) { if ( ! ( this instanceof SiteWordAdsEarnings ) ) { return new SiteWordAdsEarnings ( sid , wpcom ) ; } this . _sid = sid ; this . wpcom = wpcom ; }
`SiteWordAdsEarnings` constructor.

*Example:*
// Require `wpcom-unpublished` library
var wpcomUnpublished = require( 'wpcom-unpublished' );

// Create a `wpcomUnpublished` instance
var wpcom = wpcomUnpublished();

// Create a `SiteWordAdsEarnings` instance
var wordAds = wpcom
.site( 'my-blog.wordpress.com' )
.wordAds()
.earnings();

@constructor
@param {wpcomUnpublished} wpcom
@public
SiteWordAdsEarnings constructor .