Welcome to WebmasterWorld Guest from 54.157.225.99

Forum Moderators: open

Message Too Old, No Replies

google api testing

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

New User

10+ Year Member

joined:Apr 2, 2004
posts:27
votes: 0


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

I NEED HELP !

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.
DID ANYONE ELSE INCOUNTERD THIS?

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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 27, 2003
posts: 1642
votes: 0


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)

Full Member

5+ Year Member

joined:Jan 29, 2008
posts:243
votes: 0


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)

New User

10+ Year Member

joined:Apr 2, 2004
posts:27
votes: 0


leadegroot, Can you post your curl cod?

Thaks!

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 27, 2003
posts: 1642
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members