7 messages in com.googlegroups.adwords-apiRe: Report Service PHP| Subject: | Re: Report Service PHP![]() |
|---|---|
| From: | y2beck (Matt...@gmail.com) |
| Date: | 03/29/2008 10:45:28 AM |
| List: | com.googlegroups.adwords-api |
require_once('lib/nusoap.php');
# Provide AdWords login information. $email = 'INSERT_LOGIN_EMAIL_HERE'; $password = 'INSERT_PASSWORD_HERE'; $client_email = 'INSERT_CLIENT_LOGIN_EMAIL_HERE'; $useragent = 'INSERT_COMPANY_NAME: AdWords API PHP Sample Code'; $developer_token = 'INSERT_DEVELOPER_TOKEN_HERE'; $application_token = 'INSERT_APPLICATION_TOKEN_HERE';
# Define SOAP headers. $headers = '<email>' . $email . '</email>'. '<password>' . $password . '</password>' . '<clientEmail>' . $client_email . '</clientEmail>' . '<useragent>' . $useragent . '</useragent>' . '<developerToken>' . $developer_token . '</developerToken>' . '<applicationToken>' . $application_token . '</applicationToken>';
# Set up service connection. To view XML request/response, change value of # $debug to 1. To send requests to production environment, replace # "sandbox.google.com" with "adwords.google.com". $namespace = 'https://sandbox.google.com/api/adwords/v11'; $report_service = new soapclient($namespace . '/ReportService?wsdl', 'wsdl'); $report_service->setHeaders($headers); $debug = 0;
On Mar 29, 1:22 pm, Jan <piot...@gmail.com> wrote:
Could you paste the header of SoapClient::SoapClient(), too?




