Hello All,
I'm Logging in to AdWords Sandbox API for the first time and having
trouble. When I enable error reporting I get this error:
HTTP method POST is not supported by this URL, Error 405
The URL it appears to be requesting is:
sandbox.google.com
I've downloaded the APIlity library from this tutorial:
http://awapiday.googlepages.com/index.html#before_you_start
APIlity.php and lib are in the same directory as my test script. I
have an MCC account and both tokens are valid; authentication.ini and
settings.ini have both been updated with the correct information.
Here is my script:
<?PHP
require_once("apility.php");
//Create the header variables for logging in to the sandbox
$headers = array();
$headers["Email"] = "
my@mcc_email.com";
$headers["Client_Email"] = "
my@adwords_client_email.com";
$headers["Password"] = "XXXXXX";
$headers["User_Agent"] = "PHP Demo Application";
$headers["Developer_Token"] = "XXXXXXXX";
$headers["Application_Token"] = "XXXXXXXXX";
$user = new APIlityUser();
$user->setContext($headers);
$clientAccounts = getManagersClientAccounts();
foreach($clientAccounts as $clientAccount) {
print("Client account: $clientAccount\n");
}
//Print out SOAP conversation
print_r($user->getLastSoapRequests());
print_r($user->getLastSoapResponses());
?>
---
Your help is greatly appreciated.
rwhite35