Hi, You shouldn't construct the factory to create a service object, instead you should use the getXService method of AdWordsUser to create service X. For instance,
$user = new AdWordsUser(); $campaignService = $user->GetCampaignService('v201003', 'https:// adwords-sandbox.google.com'); creates a campaign service object which can then be used to make calls to the AdWords API sandbox. See http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201003/AddCampaign.php for a working example on how to use the library. Cheers, Anash P. Oommen, AdWords API Advisor. On Aug 28, 8:15 pm, wnc <webdenegociosonl...@gmail.com> wrote: > Hey , I know this is a newbie question but I really need help. > > My problem is that I have tried a lot of suggestions that I saw here > in the groups, but I'm still unable to use the sandbox. > > When i try to use the sandbox i get this error: > _________________________________________________ > Message: require_once(C:\wamp\www\apiadw\system\application\controllers > \aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib/../v200909/wsdl/https://adwords-sandbox.google.com/api/adwords/cm/v200909//AccountSer...) > [function.require-once]: failed to open stream: No error > > Filename: Lib/AdWordsSoapClientFactory.php > > _________________________________________________ > I know it must be a simple thing, but I'm stuck on this and it's > making me crazy. > Here is my auth data > $email = 'myem...@gmail.com'; > $password = 'mydata'; > $useragent = 'My company'; > $developer_token = 'myem...@gmail.com++usd'; > > I'm trying to connect to the sandbox with this code: > > $user = new AdWordsUser(); > > $namespace = 'https://adwords-sandbox.google.com/api/ > adwords/cm/v200909/'; > $fact = new AdWordsSoapClientFactory($user, 'v200909', > 'https://adwords-sandbox.google.com', false); //here is where it fails > > I hope someone could help me. I would really appreciate an example of > how to connect and use some sandbox functions, if someone here has > something like that with the sandbox i would love to get some code > examples, really. I have read guides and I'm still lost. I know it > sounds stupid but I asked two other programmers and they cannot help > me either, since one of them is my husband we have been looking for a > solutions for two days , changed the code a lot of times and right now > we just don't know how to do it well. > > Thanks in advance. > WNC -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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