AdWords API on App Engine PHp

63 views
Skip to first unread message

sha...@ibariocorp.com

unread,
Jun 18, 2014, 6:58:34 AM6/18/14
to adwor...@googlegroups.com

Hi,

I'm trying to get the AdWords API working on App Engine (PHP Version).

On my local machine everything is working as needed, but as soon as i upload it to App Engine i'm getting a SoapFault error "Could not connect to host".

When i dump the request itself and try it manually its working both from my local machine and both from the App Engine platform.

Have any one had any usage with the AdWords API in App Engine? Or any other suggestions why it doesn't work ?



Ray Tsang (AdWords API Team)

unread,
Jun 18, 2014, 11:13:05 AM6/18/14
to adwor...@googlegroups.com
Hi,

Are you using the AdWords API client library for PHP?  The client library does not support App Engine at the moment.

Thanks,

Ray

sha...@ibariocorp.com

unread,
Jun 18, 2014, 4:14:48 PM6/18/14
to adwor...@googlegroups.com
Hi,

Yes i am trying to use the AdWords API Client Library for PHP.

Any idea how i can make it work? Or any idea what is the reason that its not working so i can fix it?

Also, any estimate on when it will work?

Thanks

Ray Tsang (AdWords API Team)

unread,
Jun 19, 2014, 1:40:54 PM6/19/14
to adwor...@googlegroups.com
Hi,

Primarily it's because of the use of curl in the code (and maybe other things as well).  Using this client library in the App Engine is not yet supported.

Thanks,

Ray

Mauricio Oliveira

unread,
Oct 10, 2016, 10:25:07 PM10/10/16
to AdWords API Forum
Hi,

Isn't AdWords API PHP SDK supported by App Engine yet? On dev environment it works fine, but I'm getting several errors on App Engine Standard Environment, like: 

SimpleOAuth2Handler :: GetAccessToken

Severity: Warning

Message: array_merge(): Argument #2 is not an array

Filename: Util/SimpleOAuth2Handler.php

Line Number: 73


Any thoughts? Will I need to create a instance on Compute Engine only to host AdWords API integrations? 

Thank you,

Mauricio

Shwetha Vastrad (AdWords API Team)

unread,
Oct 27, 2016, 2:48:48 PM10/27/16
to AdWords API Forum
Hi Mauricio, 

I'm afraid AdWords API PHP client library is not supported in App Engine yet. You can try using AdWords API Python client library on App Engine. This guide provides step-by-step instructions to use AdWords API on App Engine.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages