Hi, 

Please start with this page 
https://developers.google.com/adwords/api/docs/signingup you need to have 
an approved developer token. 
To test how the API works, you can use a test account before your token is 
approved. 
https://developers.google.com/adwords/api/docs/test-accounts

Best,
- Takeshi, AdWords API Team

On Tuesday, July 23, 2013 7:18:31 PM UTC+9, Miner Mole wrote:
>
> 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 = "my_e...@gmail.com <javascript:>";
>
>  $password = "my_password";
>
>  //Developer Token options
>
>  $developerToken_1 = "E2SGs1l7gEWWdCfeYSO4oA"; //It's not my real token..
>
>  $developerToken_2 = "my_e...@gmail.com <javascript:>++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('client_id_1+my_em...@gmail.com <javascript:>');
>
>     //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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to