Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

google api testing



4:09 pm on Mar 21, 2008 (gmt 0)

10+ Year Member

I am simply overwhelmed by the amount of info in the google api website.


1. I submitted the developer form request and received a temp e-mail and password.

2. I wanted to test the soap interaction with the sand box server and got stuck.

- I used the php sample cod and received a server error: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set

I believe that the open_basedir is set in the web host server.

3. Do I need a pub_id for making the soap requests? If Yes, How do
I get one?

4. is it possible to check association withe live account while testing? or should I open am account by sending the appropriate soap request?

5. How do I get live? do I need to contact the adsense api team by email?

Comments will be very much appreciated!


5:50 am on Mar 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

I haven't worked with the Google API, but I have worked with CURL.
The problem is the config of your box - when open_basedir is set (or safe mode is on) the CURLOPT_FOLLOWLOCATION option WILL NOT WORK - period.
It is unlikely that you can get your host to change the setting - its a security issue. (I can get CURLOPT_FOLLOWLOCATION to work here on my development box, but not on any of my live servers)
The follow-location allows the CURL call to follow 301s (etc) to the next page, so you only have to do one call and get the final destination.
My work around has been to loop until you have a 200 (or 404 etc) result - while you get a 301, 302, etc, you loop and call the next page.

But I can't help with the API itself, sorry - this post is probably in the wrong forum for your question


5:55 am on Mar 22, 2008 (gmt 0)

5+ Year Member

This is not google problem. You need to configure /etc/php.ini. safe_mode and open_basedir defined to control php. Look at php.net for more help regarding these directives.


3:11 pm on Mar 25, 2008 (gmt 0)

10+ Year Member

leadegroot, Can you post your curl cod?



9:31 pm on Mar 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

It wouldn't help - its embedded in some other stuff, and I don't have time to extract it :( Sorry.

Featured Threads

Hot Threads This Week

Hot Threads This Month