That's not the problem :( I am still getting the same error. Here is the code.
<?php error_reporting(E_STRICT | E_ALL); // Add the library to the include path. This is not neccessary if you've already // done so in your php.ini file. $path = dirname(__FILE__) . '/../../../src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $username = "***@gmail.com"; $password = "***"; $currencyCode = "TRY"; $developerToken = "$username++$currencyCode"; $user = new AdWordsUser(null, $username, $password, $developerToken); $user->SetDefaultServer("https://adwords-sandbox.google.com"); $user->LogAll(); $user->SetClientId(null); try { $campaignService = $user->GetService("CampaignService", 'v201109'); $page = $campaignService->get(new Selector()); } catch (Exception $e) {} $accountService = $user->GetService("ServicedAccountService", 'v201109'); $selector = new ServicedAccountSelector(); $page = $accountService->get($selector); foreach ($page->accounts as $account) { print "Customer ID: {$account->customerId}\n"; } $accountService = $user->GetService("ServicedAccountService", 'v201109'); $selector = new ServicedAccountSelector(); $page = $accountService->get($selector); $customerId = $page->accounts[0]->customerId; $user->SetClientId($customerId); $campaignService = $user->GetService("CampaignService", 'v201109'); $campaign = new Campaign(); $campaign->name = "Test Sandbox Account"; $campaign->status = "ACTIVE"; $campaign->biddingStrategy = new ManualCPC(); $budget = new Budget(); $budget->period = 'DAILY'; $budget->amount = new Money((float) 10000000); $budget->deliveryMethod = 'STANDARD'; $campaign->budget = $budget; $networkSetting = new NetworkSetting(); $networkSetting->targetGoogleSearch = TRUE; $campaign->networkSetting = $networkSetting; $operation = new CampaignOperation(); $operation->operand = $campaign; $operation->operator = 'ADD'; $operations = array($operation); $result = $campaignService->mutate($operations); print_r($result); ?> On Tuesday, March 6, 2012 5:34:13 AM UTC+2, Ewan Heming wrote: > > You've got the AdWords API server set as > http://adwords-sandbox.google.com/<http://adwords-sandbox.google.com//api/adwords/mcm/v201109/ServicedAccountService?wsdl>, > > but it should use https; try changing it to > https://adwords-sandbox.google.com/<http://adwords-sandbox.google.com//api/adwords/mcm/v201109/ServicedAccountService?wsdl> > and > see if that works.... -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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