I uploaded the entire PHP library, edited the two .ini files to look like: ---- auth.ini --- email = "m...@email.net" password = "password" userAgent = "HUZAA" applicationToken = "INSERT_APPLICATION_TOKEN_HERE" developerToken = "m...@email.net++USD"
; Uncomment to make requests against a client account. clientId = "client_1...@email.net" ; Uncomment the following to use an existing AuthToken. ; authToken = "INSERT_AUTH_TOKEN_HERE" ; Uncomment the following to use existing OAuth information. ; [OAUTH] ; oauth_consumer_key = "INSERT_OAUTH_CONSUMER_KEY_HERE" ; oauth_consumer_secret = "INSERT_OAUTH_CONSUMER_SECRET_HERE" ; oauth_token = "INSERT_OAUTH_TOKEN_HERE" ; oauth_token_secret = "INSERT_OAUTH_TOKEN_SECRET_HERE" ----settings.ini---- [LOGGING] ; Log directory is either an absolute path, or relative path to the ; AdWordsUser.php file. PATH_RELATIVE = "1" LIB_LOG_DIR_PATH = "../../../../../../logs" [SERVER] DEFAULT_VERSION = "v201101" ; Change to https://adwords-sandbox.google.com to work in the sandbox ; environment. DEFAULT_SERVER = "https://adwords-sandbox.google.com" [SOAP] ; Enable/disable gzip compression on SOAP requests and responses. COMPRESSION = 1 ; The level of gzip compression to use, from 1 to 9. The higher the level the ; greater the compression and time needed to perform the compression. The ; recommended and default value is 1. COMPRESSION_LEVEL = 1 ; The type of WSDL caching to use. The possible values are 0 (none), 1 (disk), ; 2 (memory), or 3 (disk and memory). The default value is 0. WSDL_CACHE = 0 ; Other WSDL caching settings can be set in php.ini. See the following page for ; the complete list: http://www.php.net/manual/en/soap.configuration.php [PROXY] ; Proxy settings to be used by HTTP (and therefore SOAP) requests. ; HOST = "<HOST>" ; PORT = "<PORT>" ; USER = "<USER NAME>" ; PASSWORD = "<PASSWORD>" [AUTH] ; The server to use when making ClientLogin or OAuth requests. This normally ; doesn't need to be changed from the default value "https:// www.google.com". ; AUTH_SERVER = "<SERVER>" ; The OAuthHandler class to use for OAuth flow. ; OAUTH_HANDLER_CLASS = "<CLASS NAME>" [SSL] ; Enable/disable peer verification of SSL certificates. If enabled, specify ; either CA_PATH or CA_FILE. VERIFY_PEER = 0 ; The certificate authority directory to search in when performing peer ; validation. For example: /etc/ssl/certs ; CA_PATH = "<PATH TO CERTIFICATE AUTHORITY DIRECTORY>" ; The certificate authority file to use when performing peer validation. ; CA_FILE = "<PATH TO CERTIFICATE AUTHORITY FILE>" ---- and when I run any of the example scripts, I get the error: Notice: Undefined offset: 1 in /home2/mysite/public_html/keywordvalue/ src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 285 Could not connect to host ---AdsSoapClient.php (lines 281-286)--- public function GetServer() { $hostMatches = array(); preg_match('/^.*Host:\\s(.*)Connection:.*$/s', $this->__getLastRequestHeaders(), $hostMatches); return trim($hostMatches[1]); } ---- phpinfo() says I have curl, soap, OpenSSL/0.9.8b - followed http://www.youtube.com/watch?v=Idvia4600_E Any idea whats wrong? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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