I'm developing a web in php with codeigniter that needs to connect to 
Adwords, and I have a lot of questions...

First of all, I have a test account and I don't know if i'm connecting 
properly, because I don't know what I have to put as developerToken, 
clientId and defaultServer. Which is the correct one?

$username = "[email protected]";

 $password = "my_password";

 //Developer Token options

 $developerToken_1 = "E2SGs1l7gEWWdCfeYSO4oA"; //It's not my real token..

 $developerToken_2 = "[email protected]++USD";

 $user = new AdWordsUser(null, $username, $password, $developerToken);

 //Default Servers

    //Option 1

      $user->SetDefaultServer("https://adwords.google.com/";);

    //Option 2

      $user->SetDefaultServer("https://adwords-sandbox.google.com";);            
              
    
    //Option 3

      $user->SetDefaultServer("https://sandbox.google.com";); 

    //Client ID

    //Option 1

      $user->SetClientId('[email protected]');

    //Option 2 

      $user->SetClientId('1234567890');

I think that I have to use the adwords version v201306

$campaignService = $user->GetService('CampaignService', 'v201306');

If I use "https://adwords.google.com/"; as Server, I recieve:

Uncaught exception 'OAuth2Exception' with message '{
 "error" : "invalid_client"
}'

 "error" : "invalid_client"

}'

With the others servers, I recieve:

A PHP Error was encountered

Severity: Warning

Message:

   
SoapClient::SoapClient(https://sandbox.google.com/api/adwords/cm/v201306/CampaignService?wsdl):
 failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Filename: Lib/AdsSoapClient.php

or

A PHP Error was encountered

Severity: Warning

Message:

   
SoapClient::SoapClient(https://adwords-sandbox.google.com/api/adwords/cm/v201306/CampaignService?wsdl):
 failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Filename: Lib/AdsSoapClient.php

What should I do? I've read a lot in too many webs and I don't know how can 
I solve it
Thanks a lot!! 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to