Multiple API Keys

2011-05-04 Thread phpguy
Just a quick question for you all.  I'm starting our big project and
was hoping it'd be possible to get multiple API keys for one client
center.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: API usage info per client id

2010-09-13 Thread phpguy
Thanks a bunch!

On Sep 10, 5:01 pm, AdWords API Advisor 
wrote:
> Hi,
>
> The InfoService has an option in the selector "UNIT_COUNT_FOR_CLIENTS"
> that will return a breakdown of how many API units were used be each
> of the directly linked client accounts.
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/InfoService
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Sep 10, 9:54 am, phpguy  wrote:
>
>
>
> > Is it possible to get the usage info by client id?  Right now it's
> > giving it to me for the entire client center.
>
> > Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


API usage info per client id

2010-09-10 Thread phpguy
Is it possible to get the usage info by client id?  Right now it's
giving it to me for the entire client center.

Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: If you're script just stops running or won't run

2010-09-08 Thread phpguy
Anash,

Thanks for your response.  I created a feature request as recommended
and turned off logging on my script.

Thanks again,
Chris

On Sep 8, 1:55 am, AdWords API Advisor 
wrote:
> Hi,
>
> Looks like this is a known issue, 
> seehttp://code.google.com/p/google-api-adwords-php/issues/detail?id=13.
>
> For now, you can go for one of the following workarounds:
>
> - The logging is turned on by calling $user->LogDefaults();, so you
> could turn off logging on your production server.
>
> - If you can modify the library code at your end, then another thing
> you can do is to add a flag to log only when exceptions happen. The
> place to look for 
> ishttp://code.google.com/p/google-api-adwords-php/source/browse/trunk/s
> You can add a check like:
>
> if ($logOnlyErrors) {    // your flag for controlling logging
> behaviour.
>     if (isset($e)) {
>       $this->LogSoapXml();
>       $this->LogRequestInfo();
>     }} else {
>
>    $this->LogSoapXml();
>    $this->LogRequestInfo();
>
> }
>
> Could you please open a bug 
> athttp://code.google.com/p/google-api-adwords-php/issues/list
> requesting the ability to restrict logs only for errors?
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Sep 8, 1:01 am, phpguy  wrote:
>
>
>
> > It seems like I've encountered this a few times now but I wanted to
> > post this message for either development purposes, FAQ or just a heads
> > up for anyone having similar problems.
>
> > My script has been tested and works great.  Every now and then it
> > stops running.  I try to start back up but no dice.  It gets to trying
> > to connect to the API and completely stops or it'll be executing the
> > script perfectly and stop in the middle.
>
> > I then have to delete the API client library (PHP, in my case) and re-
> > upload it.  Then it runs fine.
>
> > I just figured out the problem today.  I decided to delete the log
> > files and sure enough that was the block.  Not sure if this is
> > personal server settings or a problem elsewhere but if my log file
> > gets to big it stops the entire script and won't let me start it back
> > up.
>
> > So the resolution is either make some server-based changes (maybe) or
> > delete the log file or stop the script from writing to it once you're
> > script executes properly.  The problem is it's harder to diagnose
> > issues but that's the point I'm at now.
>
> > Let me know if anyone knows where a server setting/preference for this
> > would be or if it's something on the AdWords API-side.
>
> > Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


If you're script just stops running or won't run

2010-09-07 Thread phpguy
It seems like I've encountered this a few times now but I wanted to
post this message for either development purposes, FAQ or just a heads
up for anyone having similar problems.

My script has been tested and works great.  Every now and then it
stops running.  I try to start back up but no dice.  It gets to trying
to connect to the API and completely stops or it'll be executing the
script perfectly and stop in the middle.

I then have to delete the API client library (PHP, in my case) and re-
upload it.  Then it runs fine.

I just figured out the problem today.  I decided to delete the log
files and sure enough that was the block.  Not sure if this is
personal server settings or a problem elsewhere but if my log file
gets to big it stops the entire script and won't let me start it back
up.

So the resolution is either make some server-based changes (maybe) or
delete the log file or stop the script from writing to it once you're
script executes properly.  The problem is it's harder to diagnose
issues but that's the point I'm at now.

Let me know if anyone knows where a server setting/preference for this
would be or if it's something on the AdWords API-side.

Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Server speed

2010-08-30 Thread phpguy
Hi Anash - Yes it was the PHP server but I found the problem at hand
and am working to resolve it.  Thanks for the comment back.
Appreciate it!

On Aug 30, 5:54 am, AdWords API Advisor 
wrote:
> Hi,
>
> Are you using the PHP client library? Also, which is the text file you
> are referring to?
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Aug 27, 6:30 pm, phpguy  wrote:
>
>
>
> > So for the past 3 days my script runs great for the first 12 hours.
> > It writes to a text file which gets very large but by the next day
> > it's running at a slow crawl.  I'm trying to diagnose if this is on my
> > server (slowing down), Google's server getting overloaded or if I need
> > to make some changes to my script to somehow make it refresh the
> > connection.  All my service calls are at the beginning of the script
> > and I estimate the entire script to take approximately 24-36 hours to
> > run.  Any recommendations/advice?
>
> > Prior to this my script ran fine for 36 hours with no slow down and
> > everything worked perfect.
>
> > Thanks again!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Server speed

2010-08-27 Thread phpguy
So for the past 3 days my script runs great for the first 12 hours.
It writes to a text file which gets very large but by the next day
it's running at a slow crawl.  I'm trying to diagnose if this is on my
server (slowing down), Google's server getting overloaded or if I need
to make some changes to my script to somehow make it refresh the
connection.  All my service calls are at the beginning of the script
and I estimate the entire script to take approximately 24-36 hours to
run.  Any recommendations/advice?

Prior to this my script ran fine for 36 hours with no slow down and
everything worked perfect.

Thanks again!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Running several scripts simultaneously

2010-08-26 Thread phpguy
Anash,

Thanks so much for your help!  I really appreciate it.

One last question, I know there is a cost decrease with the
BulkMutateJob but is there a speed increase with populating keywords,
ads, ad groups quicker?

Thanks again,
Chris

On Aug 26, 8:16 am, AdWords API Advisor 
wrote:
> Hi,
>
> Running multiple script instances in parallel may not be the best way
> to upload millions of keywords. Chances are that you will run into
> RateExceededErrors. 
> Seehttp://adwordsapi.blogspot.com/2010/06/better-know-error-rateexceeded...
> for more details. The recommended way to do this is to create a
> BulkMutateJob. 
> Seehttp://code.google.com/apis/adwords/v2009/docs/reference/BulkMutateJo...
> for details.
>
> The AdWords API PHP library has an example that shows how to use
> BulkMutateJobService. 
> Seehttp://code.google.com/p/google-api-adwords-php/source/browse/trunk/e...
> for details.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Aug 26, 12:45 am, phpguy  wrote:
>
>
>
> > I need to post several million keywords in AdWords as fast as
> > possible.  Can I run multiple scripts with 1 developer token and API
> > key?  Is there a limit to how many can run simultaneously?
>
> > Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Running several scripts simultaneously

2010-08-25 Thread phpguy
I need to post several million keywords in AdWords as fast as
possible.  Can I run multiple scripts with 1 developer token and API
key?  Is there a limit to how many can run simultaneously?

Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: AdWords API

2010-08-23 Thread phpguy
Solved it!  I moved my AW-SRC folder from the working script over to
the new script and updated client id and that seemed to fix it.

Thanks though!

On Aug 23, 9:25 am, phpguy  wrote:
> I tried running another test script and it worked fine.  It seems to
> be just the one script that won't run anymore.  I'm testing out every
> option I can think of but let me know if you have any suggestions.
>
> On Aug 23, 9:03 am, phpguy  wrote:
>
>
>
> > Are there any issues with the AdWords API this morning?
>
> > Mine started running and then stopped on Sunday around 2:30 PM EST.  I
> > knew there were scheduled fixes over the weekend but I've been trying
> > to get my script running since last night which had been working fine
> > but now it can't even get all campaign selectors and isn't throwing
> > any errors...it's just stopping.
>
> > Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: AdWords API

2010-08-23 Thread phpguy
I tried running another test script and it worked fine.  It seems to
be just the one script that won't run anymore.  I'm testing out every
option I can think of but let me know if you have any suggestions.

On Aug 23, 9:03 am, phpguy  wrote:
> Are there any issues with the AdWords API this morning?
>
> Mine started running and then stopped on Sunday around 2:30 PM EST.  I
> knew there were scheduled fixes over the weekend but I've been trying
> to get my script running since last night which had been working fine
> but now it can't even get all campaign selectors and isn't throwing
> any errors...it's just stopping.
>
> Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


AdWords API

2010-08-23 Thread phpguy
Are there any issues with the AdWords API this morning?

Mine started running and then stopped on Sunday around 2:30 PM EST.  I
knew there were scheduled fixes over the weekend but I've been trying
to get my script running since last night which had been working fine
but now it can't even get all campaign selectors and isn't throwing
any errors...it's just stopping.

Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Internal API Error

2010-08-17 Thread phpguy
Does this happen (server timeouts on the backend) for the other
programming languages or just PHP?

On Aug 16, 10:01 am, phpguy  wrote:
> Eric,
>
> Thanks so much!  I'll work on building that in today and give it a
> run.
>
> On Aug 12, 6:47 pm, AdWords API Advisor 
> wrote:
>
>
>
> > Hi,
>
> > It looks like these are occasional timeouts in the backend, which may
> > happen from time to time.  When you get this error you should pause
> > your application for about 30 seconds and then try the request again.
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Aug 12, 1:01 pm,phpguy wrote:
>
> > > One more bit of info:
>
> > > SoapFault exception: [soap:Server]
> > > InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @  in /var/www/vhosts/
> > > searchmojo.com/adwords/bookcircus/aw_api_php_lib_2.2.0/src/Google/Api/
> > > Ads/Common/Lib/AdsSoapClient.php:179
> > > Stack trace:
> > > #0 /var/www/vhosts/searchmojo.com/adwords/bookcircus/
> > > aw_api_php_lib_2.2.0/src/Google/Api/Ads/Common/Lib/
> > > AdsSoapClient.php(179): SoapClient->__soapCall('get', Array, NULL,
> > > Array, Array)
> > > #1 /var/www/vhosts/searchmojo.com/adwords/bookcircus/
> > > aw_api_php_lib_2.2.0/src/Google/Api/Ads/AdWords/v200909/cm/
> > > AdGroupAdService.php(6318): AdsSoapClient->__soapCall('get', Array)
> > > #2 /var/www/vhosts/searchmojo.com/adwords/bookcircus/
> > > bookcircus_script.php(440): 
> > > AdGroupAdService->get(Object(AdGroupAdSelector))
>
> > > #3 {main}
>
> > > On Aug 12, 12:49 pm,phpguy wrote:
>
> > > > Here's an error report I just got:
>
> > > > SoapFault Object
> > > > (
> > > >     [message:protected] =>
> > > > InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> > > >     [string:Exception:private] =>
> > > >     [code:protected] => 0
> > > >     [file:protected] => /var/www/vhosts/searchmojo.com/adwords/
> > > > bookcircus/aw_api_php_lib_2.2.0/src/Google/Api/Ads/Common/Lib/
> > > > AdsSoapClient.php
> > > >     [line:protected] => 179
> > > >     [trace:Exception:private] => Array
> > > >         (
> > > >             [0] => Array
> > > >                 (
> > > >                     [file] => /var/www/vhosts/searchmojo.com/adwords/
> > > > bookcircus/aw_api_php_lib_2.2.0/src/Google/Api/Ads/Common/Lib/
> > > > AdsSoapClient.php
> > > >                     [line] => 179
> > > >                     [function] => __soapCall
> > > >                     [class] => SoapClient
> > > >                     [type] => ->
> > > >                     [args] => Array
> > > >                         (
> > > >                             [0] => get
> > > >                             [1] => Array
> > > >                                 (
> > > >                                     [0] => AdGroupAdServiceGet Object
> > > >                                         (
> > > >                                             [selector] =>
> > > > AdGroupAdSelector Object
> > > >                                                 (
> > > >                                                     [campaignIds] =>
> > > >                                                     [adGroupIds] =>
> > > > Array
> > > >                                                         (
> > > >                                                             [0] =>
> > > > 2196937423
> > > >                                                         )
>
> > > >                                                     [adIds] =>
> > > >                                                     [statsSelector]
> > > > =>
> > > >                                                     [paging] =>
> > > >                                                     [statuses] =>
> > > > Array
> > > >                                                         (
> > > >                                                             [0] =>
> > > > ENABLED
> > > >                                                             [1] =>
> > > > PAUSED
> > > >                                                             [2] =>
> >

Re: Internal API Error

2010-08-16 Thread phpguy
Eric,

Thanks so much!  I'll work on building that in today and give it a
run.

On Aug 12, 6:47 pm, AdWords API Advisor 
wrote:
> Hi,
>
> It looks like these are occasional timeouts in the backend, which may
> happen from time to time.  When you get this error you should pause
> your application for about 30 seconds and then try the request again.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Aug 12, 1:01 pm,phpguy wrote:
>
>
>
> > One more bit of info:
>
> > SoapFault exception: [soap:Server]
> > InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @  in /var/www/vhosts/
> > searchmojo.com/adwords/bookcircus/aw_api_php_lib_2.2.0/src/Google/Api/
> > Ads/Common/Lib/AdsSoapClient.php:179
> > Stack trace:
> > #0 /var/www/vhosts/searchmojo.com/adwords/bookcircus/
> > aw_api_php_lib_2.2.0/src/Google/Api/Ads/Common/Lib/
> > AdsSoapClient.php(179): SoapClient->__soapCall('get', Array, NULL,
> > Array, Array)
> > #1 /var/www/vhosts/searchmojo.com/adwords/bookcircus/
> > aw_api_php_lib_2.2.0/src/Google/Api/Ads/AdWords/v200909/cm/
> > AdGroupAdService.php(6318): AdsSoapClient->__soapCall('get', Array)
> > #2 /var/www/vhosts/searchmojo.com/adwords/bookcircus/
> > bookcircus_script.php(440): AdGroupAdService->get(Object(AdGroupAdSelector))
>
> > #3 {main}
>
> > On Aug 12, 12:49 pm,phpguy wrote:
>
> > > Here's an error report I just got:
>
> > > SoapFault Object
> > > (
> > >     [message:protected] =>
> > > InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> > >     [string:Exception:private] =>
> > >     [code:protected] => 0
> > >     [file:protected] => /var/www/vhosts/searchmojo.com/adwords/
> > > bookcircus/aw_api_php_lib_2.2.0/src/Google/Api/Ads/Common/Lib/
> > > AdsSoapClient.php
> > >     [line:protected] => 179
> > >     [trace:Exception:private] => Array
> > >         (
> > >             [0] => Array
> > >                 (
> > >                     [file] => /var/www/vhosts/searchmojo.com/adwords/
> > > bookcircus/aw_api_php_lib_2.2.0/src/Google/Api/Ads/Common/Lib/
> > > AdsSoapClient.php
> > >                     [line] => 179
> > >                     [function] => __soapCall
> > >                     [class] => SoapClient
> > >                     [type] => ->
> > >                     [args] => Array
> > >                         (
> > >                             [0] => get
> > >                             [1] => Array
> > >                                 (
> > >                                     [0] => AdGroupAdServiceGet Object
> > >                                         (
> > >                                             [selector] =>
> > > AdGroupAdSelector Object
> > >                                                 (
> > >                                                     [campaignIds] =>
> > >                                                     [adGroupIds] =>
> > > Array
> > >                                                         (
> > >                                                             [0] =>
> > > 2196937423
> > >                                                         )
>
> > >                                                     [adIds] =>
> > >                                                     [statsSelector]
> > > =>
> > >                                                     [paging] =>
> > >                                                     [statuses] =>
> > > Array
> > >                                                         (
> > >                                                             [0] =>
> > > ENABLED
> > >                                                             [1] =>
> > > PAUSED
> > >                                                             [2] =>
> > > DISABLED
> > >                                                         )
>
> > >                                                 )
>
> > >                                         )
>
> > >                                 )
>
> > >                             [2] =>
> > >                             [3] => Array
> > >                                 (
> > >                                     [0] => SoapHead

Re: Ruby vs PHP vs Other Programming Language

2010-08-16 Thread phpguy
Thank you both for all your help.  I'll start looking into all these
options...really, really appreciate it!

On Aug 12, 11:37 pm, AdWords API Advisor
 wrote:
> Hi,
>
> The programming language may have an effect on it, but as Joshua
> mentioned, the major wait time is going to be internet and the Google
> server response time. Since you are uploading such a large amount of
> keywords, I suggest you take a look at BulkMutateJobService. You could
> create the adgroups first and then create batch jobs to add keywords.
> Note that the batch job will also take time to complete, but your
> script will be free to do other jobs once you submit the batch job.
>
> Seehttp://code.google.com/apis/adwords/v2009/docs/bulkjobs.htmlandhttp://code.google.com/apis/adwords/v2009/docs/reference/BulkMutateJo...
> for details.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Aug 13, 3:07 am, "Joshua J. Kugler"  wrote:
>
>
>
> > On Thursday 12 August 2010, phpguy elucidated thus:
>
> > > So I've been building out the API with PHP but I'm having to do a
> > > massive upload (200,000,000 keywords broken into adgroups).  It's
> > > currently taking too long using PHP and I wanted to see if there was
> > > either:
>
> > > 1.  A quicker way other than using SOAP (if that's the hold up)
>
> > The public API you see is it.
>
> > > 2.  A quicker programming language and which is rated to be the
> > > fastest for the Google API (any data comparison is appreciated [e.g.
> > > I could only add 1,000/hr adgroups with keywords in PHP but in Ruby I
> > > could add 1,500 in an hour])
>
> > You're major wait time is going to be the internet connection and the
> > response time of the Google servers.
>
> > If you're looking at speeding up your dev time, I'd recommend
> > Python...but I'm a bit biased. :)
>
> > If you want to speed things up, I'd look at threading and/or multiple
> > processes.
>
> > j
>
> > --
> > Joshua Kugler
> > Part-Time System Admin/Programmerhttp://www.eeinternet.com
> > PGP Key:http://pgp.mit.edu/ID0x73B13B6A

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Ruby vs PHP vs Other Programming Language

2010-08-12 Thread phpguy
So I've been building out the API with PHP but I'm having to do a
massive upload (200,000,000 keywords broken into adgroups).  It's
currently taking too long using PHP and I wanted to see if there was
either:

1.  A quicker way other than using SOAP (if that's the hold up)
2.  A quicker programming language and which is rated to be the
fastest for the Google API (any data comparison is appreciated [e.g. I
could only add 1,000/hr adgroups with keywords in PHP but in Ruby I
could add 1,500 in an hour])

Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Internal API Error

2010-08-12 Thread phpguy
One more bit of info:

SoapFault exception: [soap:Server]
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @  in /var/www/vhosts/
searchmojo.com/adwords/bookcircus/aw_api_php_lib_2.2.0/src/Google/Api/
Ads/Common/Lib/AdsSoapClient.php:179
Stack trace:
#0 /var/www/vhosts/searchmojo.com/adwords/bookcircus/
aw_api_php_lib_2.2.0/src/Google/Api/Ads/Common/Lib/
AdsSoapClient.php(179): SoapClient->__soapCall('get', Array, NULL,
Array, Array)
#1 /var/www/vhosts/searchmojo.com/adwords/bookcircus/
aw_api_php_lib_2.2.0/src/Google/Api/Ads/AdWords/v200909/cm/
AdGroupAdService.php(6318): AdsSoapClient->__soapCall('get', Array)
#2 /var/www/vhosts/searchmojo.com/adwords/bookcircus/
bookcircus_script.php(440): AdGroupAdService-
>get(Object(AdGroupAdSelector))
#3 {main}

On Aug 12, 12:49 pm, phpguy  wrote:
> Here's an error report I just got:
>
> SoapFault Object
> (
>     [message:protected] =>
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
>     [string:Exception:private] =>
>     [code:protected] => 0
>     [file:protected] => /var/www/vhosts/searchmojo.com/adwords/
> bookcircus/aw_api_php_lib_2.2.0/src/Google/Api/Ads/Common/Lib/
> AdsSoapClient.php
>     [line:protected] => 179
>     [trace:Exception:private] => Array
>         (
>             [0] => Array
>                 (
>                     [file] => /var/www/vhosts/searchmojo.com/adwords/
> bookcircus/aw_api_php_lib_2.2.0/src/Google/Api/Ads/Common/Lib/
> AdsSoapClient.php
>                     [line] => 179
>                     [function] => __soapCall
>                     [class] => SoapClient
>                     [type] => ->
>                     [args] => Array
>                         (
>                             [0] => get
>                             [1] => Array
>                                 (
>                                     [0] => AdGroupAdServiceGet Object
>                                         (
>                                             [selector] =>
> AdGroupAdSelector Object
>                                                 (
>                                                     [campaignIds] =>
>                                                     [adGroupIds] =>
> Array
>                                                         (
>                                                             [0] =>
> 2196937423
>                                                         )
>
>                                                     [adIds] =>
>                                                     [statsSelector]
> =>
>                                                     [paging] =>
>                                                     [statuses] =>
> Array
>                                                         (
>                                                             [0] =>
> ENABLED
>                                                             [1] =>
> PAUSED
>                                                             [2] =>
> DISABLED
>                                                         )
>
>                                                 )
>
>                                         )
>
>                                 )
>
>                             [2] =>
>                             [3] => Array
>                                 (
>                                     [0] => SoapHeader Object
>                                         (
>                                             [namespace] 
> =>https://adwords.google.com/api/adwords/cm/v200909
>                                             [name] => RequestHeader
>                                             [data] => SoapVar Object
>                                                 (
>                                                     [enc_type] => 301
>                                                     [enc_value] =>
> SoapRequestHeader Object
>                                                         (
>
> [applicationToken] => ignored
>
> [authToken] => DQAAAKECiT9OrjL-
> UAFqdcQzMSKxlC4LOD9vgrZp95GaZ4vWogpmh2bml-6aoNCFkY0juj2U62Iaphpqcekxp0ftCy9 
> 0Ayr_5B3WIdbYQihc1PwsQQRpG7hQK_FDu8Ukq9iw5P6-
> NiZcDSC2fc4urlDoKUyASsHKuZfuCQ5WtMfTnbNMe_tJ1TBXy9WNrvLWcSz0qefp7D1rj_neW2s 
> SIANZ3CJ1an1ke7fa4sr7DlnjKUaO8w
>
> [clientCustomerId] => 991-138-0021
>
> [clientEmail] =>
>
> [developerToken] => ADoKH49d6nPpzG33cgpylA
>
> [userAgent] => AwApi-PHP-2.2.0-ISBN
>
> [validateOnly] =>
>                                                         )
>

Re: Internal API Error

2010-08-12 Thread phpguy
  (
[campaignIds] =>
[adGroupIds] =>
Array
(
[0] =>
2196937423
)

[adIds] =>
[statsSelector]
=>
[paging] =>
[statuses] =>
Array
(
[0] =>
ENABLED
[1] =>
PAUSED
[2] =>
DISABLED
)

)

)

)

)

)

[2] => Array
(
[file] => /var/www/vhosts/searchmojo.com/adwords/
bookcircus/bookcircus_script.php
[line] => 440
[function] => get
[class] => AdGroupAdService
[type] => ->
[args] => Array
(
[0] => AdGroupAdSelector Object
(
[campaignIds] =>
[adGroupIds] => Array
(
[0] => 2196937423
)

[adIds] =>
[statsSelector] =>
[paging] =>
[statuses] => Array
(
[0] => ENABLED
[1] => PAUSED
[2] => DISABLED
)

)

)

)

)

[previous:Exception:private] =>
[faultstring] => InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
[faultcode] => soap:Server
[detail] => stdClass Object
(
[ApiExceptionFault] => stdClass Object
(
[message] =>
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
[ApplicationException.Type] => ApiException
[errors] => SoapVar Object
(
[enc_type] => 0
[enc_value] => InternalApiError Object
(
[reason] =>
UNEXPECTED_INTERNAL_API_ERROR
[fieldPath] =>
[trigger] =>
[ApiErrorType] => InternalApiError
[_parameterMap:ApiError:private]
=> Array
(
[ApiError.Type] =>
ApiErrorType
)

)

[enc_stype] => InternalApiError
[enc_ns] => 
https://adwords.google.com/api/adwords/cm/v200909
)

)

)

)


On Aug 12, 9:04 am, phpguy  wrote:
> I'm adding several adgroups (around 70,000) and 6 keywords and 4 text
> ads per each ad group.  Occasionally I'm hitting unexpected internal
> api errors.  They are random.  Sometimes it'll last over 24 hours and
> sometimes it'll hit within 8 hours.
>
> One instance was between request ID's eeddc47cfc70bfb01d3f26b525edf3fb
> and 9b33354e829a278b08a58e81fb0714f3.  I'll continue to track future
> occurrences.
>
> Are there any timeouts associated on the back-end (allowing for only a
> certain period of time until the script fails)?  Any other limitations
> that could be causing this.  Upon the first script run it may take 2-3
> days to populate all the information necessary.  We have several
> checks that have to work with these creations.
>
> Another instance of the internal error was between request ID's
> c7efe5f08d2f43172cd550f8866f08fe and c10dc88adfa03ccf2c3007bae5287902
>
> Thanks for any help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Internal API Error

2010-08-12 Thread phpguy
I'm adding several adgroups (around 70,000) and 6 keywords and 4 text
ads per each ad group.  Occasionally I'm hitting unexpected internal
api errors.  They are random.  Sometimes it'll last over 24 hours and
sometimes it'll hit within 8 hours.

One instance was between request ID's eeddc47cfc70bfb01d3f26b525edf3fb
and 9b33354e829a278b08a58e81fb0714f3.  I'll continue to track future
occurrences.

Are there any timeouts associated on the back-end (allowing for only a
certain period of time until the script fails)?  Any other limitations
that could be causing this.  Upon the first script run it may take 2-3
days to populate all the information necessary.  We have several
checks that have to work with these creations.

Another instance of the internal error was between request ID's
c7efe5f08d2f43172cd550f8866f08fe and c10dc88adfa03ccf2c3007bae5287902

Thanks for any help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Formatting calls

2010-08-07 Thread phpguy
I have just a couple remaining questions.

1.  Is there a best practice (advantages to disadvantages) between
enabling WSDL caching vs placing the service outside of the loop?

2.  I have a loop embedded within another loop, can I place all the
service calls above the top-level loop?  Or can I even place them at
the top of the code (similar to declaring variables at the very
beginning)?

Thanks again!

On Aug 6, 5:25 pm, AdWords API Advisor 
wrote:
> Hi,
>
> The following line is the one that creates the service and should be
> outside of the loop:
>
>   $adGroupAdService = $user->GetAdGroupAdService('v200909');
>
> Alternatively you can enable WSDL caching to store the WSDL locally:
>
>  http://code.google.com/p/google-api-adwords-php/source/browse/trunk/s...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Aug 6, 10:28 am, phpguy  wrote:
>
>
>
> > In reference to this 
> > post:http://groups.google.com/group/adwords-api/browse_thread/thread/8db67...
>
> > I received the same error but am including the service inside of the
> > loop.  The error occurs occasionally but when you said
> > "We recommend that you create the service only once outside of the
> > loop and reuse it for every request."
>
> > Given this code:
>
> > [start of loop]
> > $adGroupAdService = $user->GetAdGroupAdService('v200909');
> > $adGroupId = (float) $adGroup->id;
> > $selector = new AdGroupAdSelector();
> > ...
> > [end of loop]
>
> > - which parts need to be outside the loop (above the [start of loop])?
> > - does this apply for all types of operations?  (e.g.
> > campaignselector, adgroupselector, adgroupoperation,
> > getcampaignservice, etc)
> > - can i just clarify them all at the very top like a variable?
>
> > Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Formatting calls

2010-08-06 Thread phpguy
Thanks again!  Really, really appreciate the assistance you all have
given thus far

On Aug 6, 5:25 pm, AdWords API Advisor 
wrote:
> Hi,
>
> The following line is the one that creates the service and should be
> outside of the loop:
>
>   $adGroupAdService = $user->GetAdGroupAdService('v200909');
>
> Alternatively you can enable WSDL caching to store the WSDL locally:
>
>  http://code.google.com/p/google-api-adwords-php/source/browse/trunk/s...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Aug 6, 10:28 am, phpguy  wrote:
>
>
>
> > In reference to this 
> > post:http://groups.google.com/group/adwords-api/browse_thread/thread/8db67...
>
> > I received the same error but am including the service inside of the
> > loop.  The error occurs occasionally but when you said
> > "We recommend that you create the service only once outside of the
> > loop and reuse it for every request."
>
> > Given this code:
>
> > [start of loop]
> > $adGroupAdService = $user->GetAdGroupAdService('v200909');
> > $adGroupId = (float) $adGroup->id;
> > $selector = new AdGroupAdSelector();
> > ...
> > [end of loop]
>
> > - which parts need to be outside the loop (above the [start of loop])?
> > - does this apply for all types of operations?  (e.g.
> > campaignselector, adgroupselector, adgroupoperation,
> > getcampaignservice, etc)
> > - can i just clarify them all at the very top like a variable?
>
> > Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Only paused and enabled ad groups

2010-08-06 Thread phpguy
Thanks Eric!  Sounds great.  Looking forward to it!

On Aug 5, 4:14 pm, AdWords API Advisor 
wrote:
> Hi,
>
> Unfortunately the AdGroupSelector doesn't support filtering by status:
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupServi...
>
> This would be a nice feature though, and I'll work with the core
> engineering team to enable it.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Aug 4, 10:22 am,phpguy wrote:
>
>
>
> > Is it possible to select all adgroups in all campaigns that are
> > enabled or paused?  I don't want any of the disabled/deleted ad groups
> > returned.
>
> > Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Formatting calls

2010-08-06 Thread phpguy
In reference to this post:
http://groups.google.com/group/adwords-api/browse_thread/thread/8db67387b91b9053/79813ba7f65f4d6d?lnk=gst&q=Parsing+WSDL#79813ba7f65f4d6d

I received the same error but am including the service inside of the
loop.  The error occurs occasionally but when you said
"We recommend that you create the service only once outside of the
loop and reuse it for every request."

Given this code:

[start of loop]
$adGroupAdService = $user->GetAdGroupAdService('v200909');
$adGroupId = (float) $adGroup->id;
$selector = new AdGroupAdSelector();
...
[end of loop]

- which parts need to be outside the loop (above the [start of loop])?
- does this apply for all types of operations?  (e.g.
campaignselector, adgroupselector, adgroupoperation,
getcampaignservice, etc)
- can i just clarify them all at the very top like a variable?

Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Only paused and enabled ad groups

2010-08-04 Thread phpguy
Is it possible to select all adgroups in all campaigns that are
enabled or paused?  I don't want any of the disabled/deleted ad groups
returned.

Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Concurrent Modification

2010-07-30 Thread phpguy
Here is my try/catch for a concurrent modification error...does anyone
know the error code or where I can find it?

try {
retry:
   // Perform text ad operation
   $operations = array($textAdGroupAdOperation1,
$textAdGroupAdOperation2, $textAdGroupAdOperation3,
$textAdGroupAdOperation4);
   $result = $adGroupAdService->mutate($operations);
}

catch (Exception $e)
{
   sleep(10);
   goto retry;
}

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Response Size Limit Exceeded -> Paging

2010-07-30 Thread phpguy
So I've read that I need to use "paging".  I'm returning a lot of
adgroups.  Here's my current code:

// Create selector.
$selectorAG = new AdGroupSelector();
//$selectorAG->campaignId = 
$campaignId; //commented out because
we need total ad group count since we have multiple campaigns due to
adwords limits

// Get all ad groups.
$pageAG = 
$adGroupService->get($selectorAG);

My questions are:
- How do I add the paging element to this and get it to look through
all pages for the specific adgroup?
- Do I have to use paging and then loop through each page or is that
automatically done?
- Does paging require extra API units?
- What parameters do I put into the paging elements (startIndex and
numberResults) to get all adgroups?

Thanks a lot for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Catch

2010-07-29 Thread phpguy
Yesterday I began running a script that adds 75,000 adgroups.  It
created 860 successfully and then had an "Internal API Server" error.
I restarted the script and it has now created 10,000 roughly and is
still running.

My question:  Is there a way to create a catch that when an internal
server api error occurs, it pauses for 10 minutes and then starts back
up at the last point where it failed in the code?  I don't want to
restart all the code because it burns API units but if I can't do the
first option then I'd be interested in making the whole script start
automatically (prefer starting where it last encountered the error).

Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Changing client id on fly

2010-07-28 Thread phpguy
Hi,

I wanted to see if it was possible to create a script to run through a
certain number of adgroups/campaigns and then switch client ids while
in the script and continue?  We have an MCC account but just wanted to
know if this was possible.

Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Dynamic Keyword Insertion

2010-07-27 Thread phpguy
After talking with my boss, here's the answer.

You have to use "{keyword:[default text]}" - replace the default text
(including brackets) with your keyword.  You will have a policy
violation if you do {keyword} or {keyword:default...}.  So if you
include default after the ":" it will also throw a policy violation
error.

Just posting for those who find this post.

Thanks!

On Jul 26, 9:33 am, phpguy  wrote:
> I want to add the dynamic keyword insertion to the headline and
> description.  So when someone searches for the keyword I'd like to
> place that keyword in the ad.
>
> So far I have this:
> $textAd1 = new TextAd();
> $textAd1->headline = '[keywordtext] In Stock';
> $textAd1->description1 = 'Buy [keywordtext]';
>
> I'm using PHP and want to add the keyword into the [keywordtext]
> location.  Any help?
>
> Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Dynamic Keyword Insertion

2010-07-26 Thread phpguy
I want to add the dynamic keyword insertion to the headline and
description.  So when someone searches for the keyword I'd like to
place that keyword in the ad.

So far I have this:
$textAd1 = new TextAd();
$textAd1->headline = '[keywordtext] In Stock';
$textAd1->description1 = 'Buy [keywordtext]';

I'm using PHP and want to add the keyword into the [keywordtext]
location.  Any help?

Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Sandbox Issue

2010-07-23 Thread phpguy
It added about 10 adgroups to a campaign then this showed up.  Any
ideas?



SoapFault Object
(
[message:protected] =>
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
com.google.gks.dpl.GksSqlConnectionException: ads (10.96.156.20):
INSERT  /
*buildtime=1279156144,shard=0,name=AdGroupCriterion.bulkInsert,stacktrace=B84181B92E70133F,requestop=/
AdGroupCriterionService.mutate,why=write*/ INTO AdGroupCriteria
(AdGroupId, CriteriaId, IsNegative, ApprovalStatus, ApprovalEventId,
Status, CriterionMaxCpc, CriterionMaxCpm, MinCpc, FirstPageCpc,
QualityScore, PredictedCtr, IsRarelyServed, CreationTime) VALUES
(3000457289, 10552901, 'False', 'Unchecked', 0, 'Active', 0, 0, 0, 0,
5, -1.0, 'False', '2010-07-22'), (3000457289, 10552903, 'False',
'Unchecked', 0, 'Active', 0, 0, 0, 0, 5, -1.0, 'False', '2010-07-22'),
(3000457289, 10552902, 'False', 'Unchecked', 0, 'Active', 0, 0, 0, 0,
5, -1.0, 'False', '2010-07-22'), (3000457289, 10552900, 'False',
'Unchecked', 0, 'Active', 0, 0, 0, 0, 5, -1.0, 'False', '2010-07-22'),
(3000457289, 10552905, 'False', 'Unchecked', 0, 'Active', 0, 0, 0, 0,
5, -1.0, 'False', '2010-07-22'), (3000457289, 10552904, 'False',
'Unchecked', 0, 'Active', 0, 0, 0, 0, 5, -1.0, 'False', '2010-07-22');
(errcode=0, sqlState=08S01): Communications link failure due to
underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketTimeoutException
MESSAGE: Read timed out

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Filter adgroups by campaign

2010-07-13 Thread phpguy
Hi Eric,

I'm not sure if I'm doing something wrong or now but I had used the
code from the example with the 201003 version and it wouldn't filter
but instead displayed all campaigns (deleted, paused and enabled).
Right when I changed it to v200909 it worked.  Just wanted to give you
the update in case it was a bug or not.  I'll be glad to submit my
code if you need it.

Thanks!

On Jul 12, 5:31 pm, AdWords API Advisor 
wrote:
> Hi,
>
> Yes, this is possible using the campaignIds field of the selector:
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupServi...
>
> A PHP example is available here:
>
>  http://code.google.com/p/google-api-adwords-php/source/browse/trunk/e...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Jul 9, 2:15 pm,phpguy wrote:
>
>
>
> > I'm looking to retrieve ad groups from specific campaigns.  Is there
> > anyway to do this?  I've seen the selector field by date but was
> > hoping to do it by campaign.
>
> > Thanks for any help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Ad Groups & Campaigns Limit

2010-07-09 Thread phpguy
So I'm about to program a large list of ad groups and I'd prefer to
keep them all in one campaign.  I wanted to know what the maximum
limit to how many ad groups can be in a campaign and how many
campaigns is the max?  Are there anyways around that limit for
agencies, etc?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Filter adgroups by campaign

2010-07-09 Thread phpguy
I'm looking to retrieve ad groups from specific campaigns.  Is there
anyway to do this?  I've seen the selector field by date but was
hoping to do it by campaign.

Thanks for any help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


AdGroup Response with ID

2010-07-09 Thread phpguy
I have added an adgroup but wanted to see how I can capture the
response to obtain the ID of that adgroup.  Any help in PHP code would
be much appreciated!  Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: PHP - adding ad group and keywords

2010-07-08 Thread phpguy
Eric,

Thanks a bunch.  As far as grabbing the response and Ad Group id, what
is the appropriate command for that?  I've created the Ad Group
already but just wasn't sure how to catch the ID on the response.

You sure are helpful on this board...we appreciate it!

On Jul 7, 3:22 pm, AdWords API Advisor 
wrote:
> Hi,
>
> When you make an AdGroupService.mutate(ADD) request, the response will
> include the created ad group with the ID filled out.  You can grab
> this ID and use it in your AdGroupCriterionService requests.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Jul 6, 3:11 pm,phpguy wrote:
>
>
>
> > So I'm trying to add a new ad group with 2 associated keywords.  I
> > have the ad group adding correctly but am trying to add the keywords
> > without making an additional "get" call to grab the new ad group
> > "id".  Is this possible?
>
> > Or is it possible to add an ad group and 2 keywords to that ad group
> > at one time?
>
> > Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


PHP - adding ad group and keywords

2010-07-06 Thread phpguy
So I'm trying to add a new ad group with 2 associated keywords.  I
have the ad group adding correctly but am trying to add the keywords
without making an additional "get" call to grab the new ad group
"id".  Is this possible?

Or is it possible to add an ad group and 2 keywords to that ad group
at one time?

Thanks for your help!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en