sandbox

210 views
Skip to first unread message

newbie_boxers

unread,
Apr 16, 2012, 4:26:58 AM4/16/12
to adwor...@googlegroups.com
can you provide a link for step by step tutorial about sandbox guys?
Thanks! :)

Pete Lavetsky (AdWords API Guru)

unread,
Apr 16, 2012, 9:16:53 AM4/16/12
to adwor...@googlegroups.com

newbie_boxers

unread,
Apr 16, 2012, 10:31:52 PM4/16/12
to adwor...@googlegroups.com
Thanks for that Pete but It is my first time using Google APIs. I don't know where to begin with your given url. :)


On Monday, April 16, 2012 9:16:53 PM UTC+8, Pete Lavetsky (AdWords API Guru) wrote:
http://code.google.com/apis/adwords/docs/sandbox.html

Pete

Ewan Heming

unread,
Apr 17, 2012, 5:05:35 PM4/17/12
to adwor...@googlegroups.com
I wrote a post about using the sandbox with the PHP AdWords API Client Library, not sure if you've found it already because I got some comments from someone with a similar nick to yours. Anyway, if you're using PHP then hopefully the code examples will get you started.

newbie_boxers

unread,
Apr 17, 2012, 9:50:49 PM4/17/12
to adwor...@googlegroups.com
I was able to read this blog and got it all figure out on how to connect just now. I have tried to comment in your blog too but can't seem to post, I don't know why. :) 

I got another question Ewan, I have already created five accounts with the help of your code:
Question no. 1: I already printed out the result for the first customer ID, How can you retrieve the data again? Or you cannot retrieve it anymore?

Thanks!

Ewan Heming

unread,
Apr 18, 2012, 2:07:26 PM4/18/12
to adwor...@googlegroups.com, ew...@envisionppc.com
Yes, I think that the caching on my site is a bit too aggressive: I'm only using an Amazon Micro instance, so I mostly rely on CloudFlair to deliver my content fast, but it does mean I sometimes need to clear the cache before comments show up.

After the script displays your customer ids, it then has some arbitrary sample code that create a campaign in the first account; if you run the code again, you'll get an error message because it will try and create another campaign with the same name. I'll modify it to work like the official sample code to add a timestamp so the name will always be unique.

After getting a sandbox account set up, you should check out the PHP sample code that comes with the client library because it should have examples of most of the operations you're likely to want to perform. 

newbie_boxers

unread,
Apr 18, 2012, 9:31:42 PM4/18/12
to adwor...@googlegroups.com, ew...@envisionppc.com
Thanks for that man! Your code helps me a lot!

newbie_boxers

unread,
Apr 20, 2012, 1:20:50 AM4/20/12
to adwor...@googlegroups.com, ew...@envisionppc.com
Hi Ewan,

what is uniqid() in your code man? Do you still need this if you are in the production site of google?or just in sandbox?

-js

Ewan Heming

unread,
Apr 20, 2012, 8:40:24 AM4/20/12
to adwor...@googlegroups.com, ew...@envisionppc.com
Hi JS,

The sandbox code isn't using uniqid(), are you referring to a different bit of code?

Regards,

Ewan

newbie_boxers

unread,
Apr 22, 2012, 9:15:14 PM4/22/12
to adwor...@googlegroups.com, ew...@envisionppc.com
My bad Ewan, it is in the example code of the API.

Thanks!
Reply all
Reply to author
Forward
0 new messages