public function build(array $data = [])
    {
        if(!$this->oAuth2Credential)
            $this->oAuth();

        $data = $this->mergeData($data);

        $adwordsSession = new AdWordsSessionBuilder();

        return $adwordsSession->withDeveloperToken($data['developerToken'])
                ->withClientCustomerId($data['clientCustomerId'])
                ->withOAuth2Credential($this->oAuth2Credential)
                ->build();
    }
public function build(array $data = [])
    {
        if(!$this->oAuth2Credential)
            $this->oAuth();

        $data = $this->mergeData($data);

        $adwordsSession = new AdWordsSessionBuilder();

        return $adwordsSession->withDeveloperToken($data['developerToken'])
                ->withClientCustomerId($data['clientCustomerId'])
                ->withOAuth2Credential($this->oAuth2Credential)
                ->build();
    }
public function build ( array $ data = [ ] ) { if ( ! $ this -> oAuth2Credential ) $ this -> oAuth ( ) ; $ data = $ this -> mergeData ( $ data ) ; $ adwordsSession = new AdWordsSessionBuilder ( ) ; return $ adwordsSession -> withDeveloperToken ( $ data [ 'developerToken' ] ) -> withClientCustomerId ( $ data [ 'clientCustomerId' ] ) -> withOAuth2Credential ( $ this -> oAuth2Credential ) -> build ( ) ; }
Construct an API session configured from global config data file or passed data

@param array $data
@return mixed
Construct an API session configured from global config data file or passed data