public function getChannel($accountID, $adclientID, $channelID)
	{
		if ($this->isAuthenticated())
		{
			$url = 'https://www.googleapis.com/adsense/v1.1/accounts/' . urlencode($accountID) . '/adclients/';
			$url .= urlencode($adclientID) . '/customchannels/' . urlencode($channelID);
			$jdata = $this->query($url);

			if ($data = json_decode($jdata->body, true))
			{
				return $data;
			}
			else
			{
				throw new UnexpectedValueException("Unexpected data received from Google: `{$jdata->body}`.");
			}
		}
		else
		{
			return false;
		}
	}
public function getChannel($accountID, $adclientID, $channelID)
	{
		if ($this->isAuthenticated())
		{
			$url = 'https://www.googleapis.com/adsense/v1.1/accounts/' . urlencode($accountID) . '/adclients/';
			$url .= urlencode($adclientID) . '/customchannels/' . urlencode($channelID);
			$jdata = $this->query($url);

			if ($data = json_decode($jdata->body, true))
			{
				return $data;
			}
			else
			{
				throw new UnexpectedValueException("Unexpected data received from Google: `{$jdata->body}`.");
			}
		}
		else
		{
			return false;
		}
	}
public function getChannel ( $ accountID , $ adclientID , $ channelID ) { if ( $ this -> isAuthenticated ( ) ) { $ url = 'https://www.googleapis.com/adsense/v1.1/accounts/' . urlencode ( $ accountID ) . '/adclients/' ; $ url .= urlencode ( $ adclientID ) . '/customchannels/' . urlencode ( $ channelID ) ; $ jdata = $ this -> query ( $ url ) ; if ( $ data = json_decode ( $ jdata -> body , true ) ) { return $ data ; } else { throw new UnexpectedValueException ( "Unexpected data received from Google: `{$jdata->body}`." ) ; } } else { return false ; } }
Method to get an Adsense Channel

@param   string  $accountID   ID of account to get
@param   string  $adclientID  ID of client to get
@param   string  $channelID   ID of channel to get

@return  mixed  Data from Google

@since   1.0
@throws  UnexpectedValueException
Method to get an Adsense Channel