HTTP/1.1 415 Unsupported Media Type in PHP Library adwords_api_php_4.2.5

334 views
Skip to first unread message

Alan Coleman

unread,
Jun 24, 2013, 6:26:40 PM6/24/13
to adwor...@googlegroups.com
Hello everyone,

I'm moving from php library aw_api_php_lib_3.2.2 to adwords_api_php_4.2.5 and pointing to v201209 - this is prep for migrating to v201302.

My app works fine in aw_api_php_lib_3.2.2 but when moving to adwords_api_php_4.2.5 I get the following error when trying to write an AdGroup.

Any help as to why this is happening would be appreciated.

Many thanks.

HTTP/1.1 415 Unsupported Media Type
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Date: Mon, 24 Jun 2013 22:16:59 GMT
Expires: Mon, 24 Jun 2013 22:16:59 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 131
Server: GSE

Takeshi Hagikura (AdWords API Team)

unread,
Jun 27, 2013, 3:37:38 AM6/27/13
to adwor...@googlegroups.com
Hi Alan,

What types of call did you made, soap call or AdHoc reports?
Can you please also post the soap logs (except for the sensitive information)?

Best,
- Takeshi, AdWords API Team

Alan Coleman

unread,
Jun 27, 2013, 7:05:15 AM6/27/13
to adwor...@googlegroups.com
I set the COMPRESSION Setting to 0 in the settings.ini 

This was necessary to disable SOAP Content-Encoding when using AdWords PHP Library adwords_api_php_4.2.5

Content-Encoding: deflate

[SOAP]
; Enable/disable gzip compression on SOAP requests and responses.
COMPRESSION = 0
Reply all
Reply to author
Forward
0 new messages