AdWords API Re: Sandbox Over Quota

2009-10-28 Thread daniel.pl...@gmail.com

this is only a guess, but based on my error, it looks like your
submitting too many queries per second (QPS).

I put a 200 millisecond delay between calls, and that fixed my
problem.


Dan

On Oct 27, 9:20 pm, showroomlogic patr...@showroomlogic.com wrote:
 Can someone please provide a place where we know what the actual quota
 limit exceptions mean, as well as how long we have to wait until we
 can start submitting again? Here is my current limit exceeded:

 You have exceeded the quota in the following
 categories:bulk_light_api_type,bulk_light_qps

 I have no idea what that means to solve for future problems, and no
 telling when I can start submitting again.

 Thanks.
 pat

 On Oct 27, 9:38 am, AdWords API Advisor adwordsapiadvi...@google.com
 wrote:

  Hi Dan,

  Unfortunately the exact limits are not made public, and they are
  subject to change over time.  We recommend that developers catch these
  types of exceptions and handle them appropriately, usually by pausing
  and re-trying the request.

  Best,
  - Eric

  On Oct 27, 11:03 am, daniel.pl...@gmail.com daniel.pl...@gmail.com
  wrote:

   cool,

   thanks.

   Is there a list some where the explains all the limits for v200909?

   How many requests per second are allowed?

   Thanks

   Dan

   On Oct 27, 2:54 pm, AdWords API Advisor adwordsapiadvi...@google.com
   wrote:

Hi Daniel,

The error message indicates you are running into another type of quota
limit, which is requests per second.  The likely cause is that you are
sending requests too quickly, and perhaps from multiple threads.  To
avoid this error put a delay between your requests or limit the usage
of concurrent threads.

Best,
- Eric Koleda, AdWords API Team

On Oct 27, 8:06 am, daniel.pl...@gmail.com daniel.pl...@gmail.com
wrote:

 I'm getting the same error on a campaign level.

 All my script does is grab a list of campaigns, and then deletes them.

 So far none of the campaigns have been delete (not sure if my code
 works).

 Then I started getting 'You have exceeded the quota in the following
 categories:QPS'.

 Dan

 On Oct 6, 6:56 pm, AdWords API Advisor adwordsapiadvi...@google.com
 wrote:

  Hi,

  To answer Andy's question, this limitation is also present on the
  production environment.

  As for your question Steven, the limitation is on the number of
  objects updated (campaigns, ad groups, etc) per day, and should not 
  be
  triggered by get requests.  Can you reliably replicate this error?
  After how many requests do you start to see it?

  Best,
  - Eric

  On Oct 5, 5:22 pm, Stephen stephen.po...@gmail.com wrote:

   I was receiving this error on mysandboxafter only a few requests
   last week.  Being frustrated with wasting my time last week, 
   today I
   started working on my real account, eating the cost.  But even 
   working
   from my paying account I'm still getting the same error after only
   trying to retrieve all campaigns, then all ad groups for these
   campaigns.  I have plenty of paid for API requests left in my
   account.

   So what causes this error? And is there something we can do to 
   prevent
   it?

   On Oct 2, 2:48 pm, Andy stur...@gmail.com wrote:

Is this limitation connected only to asandbox?


--~--~-~--~~~---~--~~
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 Re: The request failed with HTTP status 405: Method Not Allowed

2009-10-28 Thread DanielB

Hi Eric,

Unfortunately I am not able to obtain them since my current
development environment has no debug option. Is there an other way to
obtain them?

Your help is gratefully appriciated,

Regards,

Daniel

On Oct 26, 5:20 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Daniel,

 Do you have the SOAP XML logs from such a request?  This may provide
 more information about the source of the issue.

 Best,
 - Eric Koleda, AdWords API Team

 On Oct 26, 11:51 am, DanielB d...@coolblue.nl wrote:



  I was trying the enclosed (.Net) code example, which gave me the exact
  same error. So maybe it is a problem in the .Net api.

          public void Run(AdWordsUser user)
          {
              InfoService infoService = (InfoService)user.GetService
  (AdWordsService.v200909.InfoService);

              // Since we are requesting the total API usage, clear out
              // the clientEmail field.
              infoService.RequestHeader.clientEmail = null;
              InfoSelector selector = new InfoSelector();
              selector.apiUsageTypeSpecified = true;
              selector.apiUsageType = ApiUsageType.UNIT_COUNT;

              // Request for API usage from 1st to 30th Sep 2009.
              DateTime startDate = new DateTime(2009, 9,
  1).ToUniversalTime();
              DateTime endDate = new DateTime(2009, 9,
  30).ToUniversalTime();

              selector.dateRange = new DateRange();
              selector.dateRange.min = startDate.ToString(MMdd);
              selector.dateRange.max = endDate.ToString(MMdd);

              try
              {
                  ApiUsageInfo usageInfo = infoService.get(selector);
                  MessageBox.Show(The total Api usage between '{0}' and
  '{1}' is {2} units. + usageInfo.cost);
              }
              catch (Exception ex)
              {
                  MessageBox.Show(Failed to retrieve total Api usage in
  the given date range.  +
                      Exception says \{0}\ + ex.Message);
              }
          }

  On Oct 26, 4:02 pm, DanielB d...@coolblue.nl wrote:

   Hi all,

   Now I am trying to make a connection to the v200909 version instead of
   the v13 version. The connection works but when I request data I get an
   error The request failed with HTTP status 405: Method Not Allowed At
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse
   (SoapClientMessage message, WebResponse response, Stream
   responseStream, Boolean asyncCall) At
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
   methodName, Object[] parameters)
   At com.google.api.adwords.v200909.AdGroupService.get(AdGroupSelector
   selector) at ScriptMain.CreateNewOutputRows()

   What I am doing here is making the connection,

   The code for which I am testing the connection and (assume) to get a
   single row, which doesn't work:

       public override void CreateNewOutputRows()
       {
           try
           {
               AdWordsUser user = new AdWordsUser();
               AdGroupService service = (AdGroupService)user.GetService
   (AdWordsService.v200909.AdGroupService);
               int adgroupid = %SOME ADGROUPID%;
               int campaignid = %SOME CAMPAIGNID%;
               long[] adgroupids = { adgroupid };

               DateTime datum = DateTime.Parse(2009-09-01);

                   // Haal dan de stats op per datum
                   try
                   {
                       // Set up service connection.
                       AdGroupSelector selector = new AdGroupSelector();
                       selector.campaignId = campaignid;
                       selector.adGroupIds = adgroupids;
                       StatsSelector statselector = new StatsSelector();
                       DateRange range = new DateRange();

                       range.min = datum.ToString(MMdd);
                       range.max = datum.ToString(MMdd);

                       statselector.dateRange = range;
                       selector.statsSelector = statselector;
                       AdGroupPage page = new AdGroupPage();
                       //page = service.get(selector);
                       MessageBox.Show(service.get(selector).ToString());
                   }
                   catch (Exception e)
                   {
                       MessageBox.Show(e.ToString());
                   }

           }
           catch (Exception e)
           {
               MessageBox.Show(e.ToString());
           }
       }

   Does anybody have an idea how I can solve this problem?

   Regards,

   Daniel
--~--~-~--~~~---~--~~
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 

AdWords API Re: Mapping between Metro and Cities in US

2009-10-28 Thread AdWords API Advisor

Hi Parvendra,

Unfortunately there is no available mapping between metros and the
cities they contain.  We are aware this presents a problem when
assigning geo targeting information, and our recommendation is to
ensure that you have proper exception handling in place to catch
errors raised by overlapping targets.  There are plans to include
greater validation capabilities in the API, but I can't say if or when
that will be available.

Best,
- Eric Koleda, AdWords API Team

On Oct 27, 1:42 pm, Parvendra Rana pkumar.api@gmail.com wrote:
 Hi All,

 Can someone please forward me the mapping between metros and cities as
 Google adwords interface shows cities inside metros and you can not
 target cities (say from metro XYZ and metro (say XYZ).

 Any help will be highly appreciated.

 Thanks
 Parvendra Rana
 API Team.
--~--~-~--~~~---~--~~
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 Re: Sandbox Over Quota

2009-10-28 Thread AdWords API Advisor

Hi Pat,

Unfortunately these categories aren't yet documented, and I've raised
the issue with the AdWords API team.  Dan's assumption is correct,
that you've exceeded the allowed number of requests per second.
Adding a small delay between requests, or batching small requests into
larger ones, can be an effective way to avoid these types of errors.
When you get an error like this it's best to wait for a minute or two
before resuming requests, after which the lock should be removed from
your account.

Best,
- Eric

On Oct 28, 5:51 am, daniel.pl...@gmail.com daniel.pl...@gmail.com
wrote:
 this is only a guess, but based on my error, it looks like your
 submitting too many queries per second (QPS).

 I put a 200 millisecond delay between calls, and that fixed my
 problem.

 Dan

 On Oct 27, 9:20 pm, showroomlogic patr...@showroomlogic.com wrote:



  Can someone please provide a place where we know what the actual quota
  limit exceptions mean, as well as how long we have to wait until we
  can start submitting again? Here is my current limit exceeded:

  You have exceeded the quota in the following
  categories:bulk_light_api_type,bulk_light_qps

  I have no idea what that means to solve for future problems, and no
  telling when I can start submitting again.

  Thanks.
  pat

  On Oct 27, 9:38 am, AdWords API Advisor adwordsapiadvi...@google.com
  wrote:

   Hi Dan,

   Unfortunately the exact limits are not made public, and they are
   subject to change over time.  We recommend that developers catch these
   types of exceptions and handle them appropriately, usually by pausing
   and re-trying the request.

   Best,
   - Eric

   On Oct 27, 11:03 am, daniel.pl...@gmail.com daniel.pl...@gmail.com
   wrote:

cool,

thanks.

Is there a list some where the explains all the limits for v200909?

How many requests per second are allowed?

Thanks

Dan

On Oct 27, 2:54 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:

 Hi Daniel,

 The error message indicates you are running into another type of quota
 limit, which is requests per second.  The likely cause is that you are
 sending requests too quickly, and perhaps from multiple threads.  To
 avoid this error put a delay between your requests or limit the usage
 of concurrent threads.

 Best,
 - Eric Koleda, AdWords API Team

 On Oct 27, 8:06 am, daniel.pl...@gmail.com daniel.pl...@gmail.com
 wrote:

  I'm getting the same error on a campaign level.

  All my script does is grab a list of campaigns, and then deletes 
  them.

  So far none of the campaigns have been delete (not sure if my code
  works).

  Then I started getting 'You have exceeded the quota in the following
  categories:QPS'.

  Dan

  On Oct 6, 6:56 pm, AdWords API Advisor 
  adwordsapiadvi...@google.com
  wrote:

   Hi,

   To answer Andy's question, this limitation is also present on the
   production environment.

   As for your question Steven, the limitation is on the number of
   objects updated (campaigns, ad groups, etc) per day, and should 
   not be
   triggered by get requests.  Can you reliably replicate this error?
   After how many requests do you start to see it?

   Best,
   - Eric

   On Oct 5, 5:22 pm, Stephen stephen.po...@gmail.com wrote:

I was receiving this error on mysandboxafter only a few requests
last week.  Being frustrated with wasting my time last week, 
today I
started working on my real account, eating the cost.  But even 
working
from my paying account I'm still getting the same error after 
only
trying to retrieve all campaigns, then all ad groups for these
campaigns.  I have plenty of paid for API requests left in my
account.

So what causes this error? And is there something we can do to 
prevent
it?

On Oct 2, 2:48 pm, Andy stur...@gmail.com wrote:

 Is this limitation connected only to asandbox?
--~--~-~--~~~---~--~~
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 Re: Is there a place that lists all of the quota exception errors and what they mean?

2009-10-28 Thread AdWords API Advisor

Hi Pat,

I've addressed your question in a previous thread:
http://groups.google.com/group/adwords-api/browse_thread/thread/96e1970f7b356b57/.

Best,
- Eric Koleda, AdWords API Team

On Oct 27, 5:26 pm, showroomlogic patr...@showroomlogic.com wrote:
 I am receiving some quota errors, and I don't know what they mean so
 that I can fix the issue, and I don't know how long I have to wait
 until I can start using the API again.

 Here is my current exception:
 You have exceeded the quota in the following
 categories:bulk_light_api_type,bulk_light_qps

 I am using the new v200909 API.

 Thanks.
 Pat
--~--~-~--~~~---~--~~
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 Re: To many connection failures

2009-10-28 Thread AdWords API Advisor

Hi Santhosh,

502 errors are usually returned when a timeout has occurred between
internal Google servers.  Are you noticing that there certain services
or method that are triggering this error?  Is the error consistent or
reproducible?

Best,
- Eric

On Oct 27, 8:22 pm, Santhosh Nair snai...@gmail.com wrote:
 Hello Eric,
    Thank you for you response. We do not experience any network issues
 and in fact  API access to all other accounts (to other seach engines
 too) works with out errors.
 Here is the stack trace from last exception. Please let's know whether
 some particular  accounts may experience connection issues at this
 moment.

 org.jboss.remoting.CannotConnectException: Can not connect http client
 invoker. Invalid HTTP server response
 [502] - Bad Gateway. Response: Bad Gateway/502.
 at
 org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection
 (HTTPClientInvoker.java:368)
 at org.jboss.remoting.transport.http.HTTPClientInvoker.transport
 (HTTPClientInvoker.java:148)
 at org.jboss.remoting.MicroRemoteClientInvoker.invoke
 (MicroRemoteClientInvoker.java:141)
 at org.jboss.remoting.Client.invoke(Client.java:1858)
 at org.jboss.remoting.Client.invoke(Client.java:718)
 at org.jboss.ws.core.client.RemotingConnectionImpl.invoke
 (RemotingConnectionImpl.java:190)
 ... 94 more
 Caused by: org.jboss.ws.WSException: Invalid HTTP server response
 [502] - Bad Gateway
 at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read
 (SOAPMessageUnMarshaller.java:77)
 at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse
 (HTTPClientInvoker.java:548)
 at
 org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection
 (HTTPClientInvoker.java:322)
 ... 99 more

 thanks,
 Santhosh
--~--~-~--~~~---~--~~
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 Error EstimateKeyword.java using sandbox

2009-10-28 Thread i...@larseggert.de

I Just tried the example from EstimateKeyword.java, set the
properties:
email,passwort,clientEmail,useragent,developerToken and
applicationToken
But still get an error. For namespace i choose:
  private static final String namespace =
  https://sandbox.google.com/api/adwords/v13;;

I am using the current adwords-api 6.0.0.

The error is:

log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
Server.userException
 faultSubcode:
 faultString: The request did not contain a header named 'email'.
 faultActor:
 faultNode:
 faultDetail:
{https://adwords.google.com/api/adwords/v13}fault:
 ns1:code1/ns1:code
 ns1:messageThe request did not contain a header named 'email'./
ns1:message


The request did not contain a header named 'email'.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.axis.encoding.ser.BeanDeserializer.init
(BeanDeserializer.java:104)
at org.apache.axis.encoding.ser.BeanDeserializer.init
(BeanDeserializer.java:90)
at com.google.api.adwords.v13.ApiException.getDeserializer
(ApiException.java:267)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized
(BaseDeserializerFactory.java:154)
at
org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs
(BaseDeserializerFactory.java:84)
at org.apache.axis.encoding.DeserializationContext.getDeserializer
(DeserializationContext.java:464)
at
org.apache.axis.encoding.DeserializationContext.getDeserializerForType
(DeserializationContext.java:547)
at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild
(SOAPFaultDetailsBuilder.java:157)
at org.apache.axis.encoding.DeserializationContext.startElement
(DeserializationContext.java:1035)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement
(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse
(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke
(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
com.google.api.adwords.v13.TrafficEstimatorServiceSoapBindingStub.estimateKeywordList
(TrafficEstimatorServiceSoapBindingStub.java:563)
at EstimateKeyword.main(EstimateKeyword.java:52)

--~--~-~--~~~---~--~~
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 Re: Is there a place that lists all of the quota exception errors and what they mean?

2009-10-28 Thread AdWords API Advisor

Hi Pat,

The CONCURRENT_MODIFICATION error is returned when the same AdWords
object is being modified by two processes at once.  This can happen
when you have multiple threads making requests to the API, or if a
user is making a change in the web interface at the same time.  We
recommend that you set up your application to prevent these types of
concurrency issues and add error handling with a retry for the rare
concurrency conflict with the web interface.

As for the quota errors, what methods and services are you using?

Best,
- Eric

On Oct 28, 12:11 pm, showroomlogic patr...@showroomlogic.com wrote:
 Thanks Eric.

 Here is another one for you: CONCURRENT_MODIFICATION @ ;
 trigger:'Customer [] was changed in the database

 This is starting to happen quite a bit and have no idea what it means.

 Also, I have spaced out all of my calls by 1 second, and I am still
 getting that same error I mentioned above after 100 calls or so.

 Pat

 On Oct 28, 7:59 am, AdWords API Advisor adwordsapiadvi...@google.com
 wrote:



  Hi Pat,

  I've addressed your question in a previous 
  thread:http://groups.google.com/group/adwords-api/browse_thread/thread/96e19

  Best,
  - Eric Koleda, AdWords API Team

  On Oct 27, 5:26 pm, showroomlogic patr...@showroomlogic.com wrote:

   I am receiving some quota errors, and I don't know what they mean so
   that I can fix the issue, and I don't know how long I have to wait
   until I can start using the API again.

   Here is my current exception:
   You have exceeded the quota in the following
   categories:bulk_light_api_type,bulk_light_qps

   I am using the new v200909 API.

   Thanks.
   Pat
--~--~-~--~~~---~--~~
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 Re: Is there a place that lists all of the quota exception errors and what they mean?

2009-10-28 Thread showroomlogic

I am getting that error with only one thread running, and not being
logged into the interface. Most of my woes are coming when I create a
new adword group and submit keywords. I am using the
AdGroupCriterionService to add individual keywords to the new group
created. I am adding on average 72 keywords per new adgroup. And then
I get the concurrent error, or the others I mentioned above.

I don't know how to setup my application to prevent these types of
errors, when I don't even know what the errors mean or what the
possible errors are.

Thanks for your help.
pat

On Oct 28, 10:42 am, AdWords API Advisor
adwordsapiadvi...@google.com wrote:
 Hi Pat,

 The CONCURRENT_MODIFICATION error is returned when the same AdWords
 object is being modified by two processes at once.  This can happen
 when you have multiple threads making requests to the API, or if a
 user is making a change in the web interface at the same time.  We
 recommend that you set up your application to prevent these types of
 concurrency issues and add error handling with a retry for the rare
 concurrency conflict with the web interface.

 As for the quota errors, what methods and services are you using?

 Best,
 - Eric

 On Oct 28, 12:11 pm, showroomlogic patr...@showroomlogic.com wrote:



  Thanks Eric.

  Here is another one for you: CONCURRENT_MODIFICATION @ ;
  trigger:'Customer [] was changed in the database

  This is starting to happen quite a bit and have no idea what it means.

  Also, I have spaced out all of my calls by 1 second, and I am still
  getting that same error I mentioned above after 100 calls or so.

  Pat

  On Oct 28, 7:59 am, AdWords API Advisor adwordsapiadvi...@google.com
  wrote:

   Hi Pat,

   I've addressed your question in a previous 
   thread:http://groups.google.com/group/adwords-api/browse_thread/thread/96e19

   Best,
   - Eric Koleda, AdWords API Team

   On Oct 27, 5:26 pm, showroomlogic patr...@showroomlogic.com wrote:

I am receiving some quota errors, and I don't know what they mean so
that I can fix the issue, and I don't know how long I have to wait
until I can start using the API again.

Here is my current exception:
You have exceeded the quota in the following
categories:bulk_light_api_type,bulk_light_qps

I am using the new v200909 API.

Thanks.
Pat
--~--~-~--~~~---~--~~
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 issues on ad group deletion

2009-10-28 Thread harroot

Hi all

I'm currently using .net api v13, and have some question about ad
group deletion.
I know that the ad group names are unique per parent campaign, so what
about the deleted ad groups, are they in count?, I mean if can I have
2 adgroups with the same name, but with different statuses?

Best regards
Harout.
--~--~-~--~~~---~--~~
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 Re: getKeywordVariations method doesn't return all seeds keword

2009-10-28 Thread damian.irigaray

I tried the question in the other forum and I get this answer:

Hello dirigaray,

I will admit to not being an expert on the AdWords API, and in the
absence of other responses I'd like to send you to the AdWords API
Forum, which you will find at the link below.

The forum is similar to this one, but focuses entirely on API related
questions. You'll note that it is on a different 'platform' than the
AdWords forum, so navigation will be a bit different.

AdWords API Forum:
http://groups.google.com/group/adwords-api;

So? Where I can get a better answer??

Thanks!

Damian

On Oct 26, 12:46 pm, damian.irigaray damian.iriga...@gmail.com
wrote:
 Thanks Eric, I will try me question in that forum. :)

 On Oct 26, 10:40 am, AdWords API Advisor

 adwordsapiadvi...@google.com wrote:
  Hi Damian,

  There have been reports of this problem in the past, and in my
  experience the results from the AdWords API always match those of the
  Keyword Tool web 
  interface:https://adwords.google.com/select/KeywordToolExternal.
  At this time it isn't clear why certain seed keywords are omitted by
  the tool, and you may want to try your question on the general AdWords
  Forum:http://www.google.com/support/forum/p/AdWords.

  Best,
  - Eric Koleda, AdWords API Team

  On Oct 23, 11:51 am, damian.irigaray damian.iriga...@gmail.com
  wrote:

   I'm using the adwords API V13.

   I have a problem with getKeywordVariations methos in the Tool service.
   I have a group of 10 keywords and when I retrieve the data from the
   call I haven't got the data of some of the seed Keywords. Is this a
   common behavior?? Or I have to put another parameter to retrieve the
   complete list?

   Thanks

   Damian
--~--~-~--~~~---~--~~
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 Re: Is there a place that lists all of the quota exception errors and what they mean?

2009-10-28 Thread AdWords API Advisor

Hi Pat,

Another cause of the concurrency error may be updates done by the
internal AdWords system.  For example, new keywords added to an ad
group must be checked for violations by the AdWords system.  This
process usually takes a couple of seconds, after which the system will
update the keywords with their approval status.  It could be that you
are trying to modify the ad group at the same time that the approval
status is being updated.  You can avoid this be ensuring that you
leave a sufficient gap between adding keywords and making further
modifications to an ad group (or sub objects).  Also, it may be worth
adding error handling to catch this type of exception and retrying the
request after a given amount of time.

I'd like to investigate the quota issue a little further.  Are you
using the BulkMutateJobService?  Are you making requests about
production or the sandbox?

Best,
- Eric

On Oct 28, 1:00 pm, showroomlogic patr...@showroomlogic.com wrote:
 I am getting that error with only one thread running, and not being
 logged into the interface. Most of my woes are coming when I create a
 new adword group and submit keywords. I am using the
 AdGroupCriterionService to add individual keywords to the new group
 created. I am adding on average 72 keywords per new adgroup. And then
 I get the concurrent error, or the others I mentioned above.

 I don't know how to setup my application to prevent these types of
 errors, when I don't even know what the errors mean or what the
 possible errors are.

 Thanks for your help.
 pat

 On Oct 28, 10:42 am, AdWords API Advisor



 adwordsapiadvi...@google.com wrote:
  Hi Pat,

  The CONCURRENT_MODIFICATION error is returned when the same AdWords
  object is being modified by two processes at once.  This can happen
  when you have multiple threads making requests to the API, or if a
  user is making a change in the web interface at the same time.  We
  recommend that you set up your application to prevent these types of
  concurrency issues and add error handling with a retry for the rare
  concurrency conflict with the web interface.

  As for the quota errors, what methods and services are you using?

  Best,
  - Eric

  On Oct 28, 12:11 pm, showroomlogic patr...@showroomlogic.com wrote:

   Thanks Eric.

   Here is another one for you: CONCURRENT_MODIFICATION @ ;
   trigger:'Customer [] was changed in the database

   This is starting to happen quite a bit and have no idea what it means.

   Also, I have spaced out all of my calls by 1 second, and I am still
   getting that same error I mentioned above after 100 calls or so.

   Pat

   On Oct 28, 7:59 am, AdWords API Advisor adwordsapiadvi...@google.com
   wrote:

Hi Pat,

I've addressed your question in a previous 
thread:http://groups.google.com/group/adwords-api/browse_thread/thread/96e19

Best,
- Eric Koleda, AdWords API Team

On Oct 27, 5:26 pm, showroomlogic patr...@showroomlogic.com wrote:

 I am receiving some quota errors, and I don't know what they mean so
 that I can fix the issue, and I don't know how long I have to wait
 until I can start using the API again.

 Here is my current exception:
 You have exceeded the quota in the following
 categories:bulk_light_api_type,bulk_light_qps

 I am using the new v200909 API.

 Thanks.
 Pat
--~--~-~--~~~---~--~~
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 Re: issues on ad group deletion

2009-10-28 Thread AdWords API Advisor

Hi Harout,

No, ad group names must be unique, even for deleted ad groups.  It can
be useful to rename ad groups before deleting them to prevent
collisions.  For example, append the word DELETED to the end of the
name.

Best,
- Eric Koleda, AdWords API Team

On Oct 28, 1:08 pm, harroot harr...@gmail.com wrote:
 Hi all

 I'm currently using .net api v13, and have some question about ad
 group deletion.
 I know that the ad group names are unique per parent campaign, so what
 about the deleted ad groups, are they in count?, I mean if can I have
 2 adgroups with the same name, but with different statuses?

 Best regards
 Harout.
--~--~-~--~~~---~--~~
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 Re: Is there a place that lists all of the quota exception errors and what they mean?

2009-10-28 Thread showroomlogic

I am NOT using BulkMutateJobeService. But I am making posts to
productions.

Thanks!
Pat

On Oct 28, 11:58 am, AdWords API Advisor
adwordsapiadvi...@google.com wrote:
 Hi Pat,

 Another cause of the concurrency error may be updates done by the
 internal AdWords system.  For example, new keywords added to an ad
 group must be checked for violations by the AdWords system.  This
 process usually takes a couple of seconds, after which the system will
 update the keywords with their approval status.  It could be that you
 are trying to modify the ad group at the same time that the approval
 status is being updated.  You can avoid this be ensuring that you
 leave a sufficient gap between adding keywords and making further
 modifications to an ad group (or sub objects).  Also, it may be worth
 adding error handling to catch this type of exception and retrying the
 request after a given amount of time.

 I'd like to investigate the quota issue a little further.  Are you
 using the BulkMutateJobService?  Are you making requests about
 production or the sandbox?

 Best,
 - Eric

 On Oct 28, 1:00 pm, showroomlogic patr...@showroomlogic.com wrote:



  I am getting that error with only one thread running, and not being
  logged into the interface. Most of my woes are coming when I create a
  new adword group and submit keywords. I am using the
  AdGroupCriterionService to add individual keywords to the new group
  created. I am adding on average 72 keywords per new adgroup. And then
  I get the concurrent error, or the others I mentioned above.

  I don't know how to setup my application to prevent these types of
  errors, when I don't even know what the errors mean or what the
  possible errors are.

  Thanks for your help.
  pat

  On Oct 28, 10:42 am, AdWords API Advisor

  adwordsapiadvi...@google.com wrote:
   Hi Pat,

   The CONCURRENT_MODIFICATION error is returned when the same AdWords
   object is being modified by two processes at once.  This can happen
   when you have multiple threads making requests to the API, or if a
   user is making a change in the web interface at the same time.  We
   recommend that you set up your application to prevent these types of
   concurrency issues and add error handling with a retry for the rare
   concurrency conflict with the web interface.

   As for the quota errors, what methods and services are you using?

   Best,
   - Eric

   On Oct 28, 12:11 pm, showroomlogic patr...@showroomlogic.com wrote:

Thanks Eric.

Here is another one for you: CONCURRENT_MODIFICATION @ ;
trigger:'Customer [] was changed in the database

This is starting to happen quite a bit and have no idea what it means.

Also, I have spaced out all of my calls by 1 second, and I am still
getting that same error I mentioned above after 100 calls or so.

Pat

On Oct 28, 7:59 am, AdWords API Advisor adwordsapiadvi...@google.com
wrote:

 Hi Pat,

 I've addressed your question in a previous 
 thread:http://groups.google.com/group/adwords-api/browse_thread/thread/96e19

 Best,
 - Eric Koleda, AdWords API Team

 On Oct 27, 5:26 pm, showroomlogic patr...@showroomlogic.com wrote:

  I am receiving some quota errors, and I don't know what they mean so
  that I can fix the issue, and I don't know how long I have to wait
  until I can start using the API again.

  Here is my current exception:
  You have exceeded the quota in the following
  categories:bulk_light_api_type,bulk_light_qps

  I am using the new v200909 API.

  Thanks.
  Pat
--~--~-~--~~~---~--~~
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 API v2009 NetworkType[], GeoTarget, RegionTargets, CountryTargets, setLanguageTargeting

2009-10-28 Thread Inah from Brazil

Hi!
Im migratting from v13 to v2009 and I tryin'to addCampaign.
Until now my method looks like:

public SponsorResponse addCampaign(Campaign campaign, Boolean save) {
SponsorResponse response = null;
com.google.api.adwords.v200909.cm.Campaign campaign2009 = new
com.google.api.adwords.v200909.cm.Campaign();
CampaignServiceInterface campaignService = null;

try {
campaignService = user.getService
(AdWordsService.V200909.CAMPAIGN_SERVICE);
} catch (ServiceException e) {
response = new SponsorResponse(false, e.getMessage(), 
campaign);
}
CampaignOperation operation = new CampaignOperation();
  operation.setOperand(campaign2009);
  operation.setOperator(Operator.ADD);
try {
campaign2009.setName(campaign.getName());
campaign2009.setStartDate(campaign.getStartDate().toString());
campaign2009.setEndDate(campaign.getEndDate().toString());
campaign2009.setStatus(utils.convertGoogleCampaignStatus
(campaign.getStatus()));
if(campaign.getOptimized().equals(T)){
campaign2009.setAdServingOptimizationStatus
(AdServingOptimizationStatus.OPTIMIZE);
}else{
campaign2009.setAdServingOptimizationStatus
(AdServingOptimizationStatus.ROTATE);
}
campaignService.mutate((new CampaignOperation[]{operation}));
campaign.setCampaignCode((String.valueOf(campaign2009.getId
(;

} catch (ApiException e) {
response = new SponsorResponse(false, 
auxiliar.dumpErrors(e),
campaign);
return response;
} catch (Exception e) {
response = new SponsorResponse(false, e.getMessage(), 
campaign);
return response;
}

return response;
}

I tryin to set the NetworkTarget, GeoTarget,  RegionTargets,
CountryTargets and Language. In v13 my code looks like:

 ListNet nets = wizardCampaignDTO.getNet();
if (nets != null  nets.size()  0) {
NetworkType[] nt = new NetworkType[nets.size()];
for (int i = 0; i  nets.size(); i++) {
try {
nt[i] = NetworkType.fromString(nets.get(i).getValue
());
} catch (Exception e) {
e.printStackTrace();
}
}
c.setNetworkTargeting(nt);
}
ListTerritory territories = wizardCampaignDTO.getTerritory
();
ListRegion regions = wizardCampaignDTO.getRegion();
if (territories != null  territories.size()  0) {
GeoTarget geo = new GeoTarget();

if (regions != null  regions.size()  0) {

RegionTargets regionTargets = new RegionTargets();
String[] regionses = new String[regions.size()];
for (int i = 0; i  regions.size(); i++) {
regionses[i] = regions.get(i).getCodGoogle();
}
regionTargets.setRegions(regionses);
geo.setRegionTargets(regionTargets);

} else {

CountryTargets countryTargets = new CountryTargets();
String[] countries = new String[territories.size()];
for (int i = 0; i  territories.size(); i++) {
countries[i] = territories.get(i).getValue();
}
countryTargets.setCountries(countries);
geo.setCountryTargets(countryTargets);

}

c.setGeoTargeting(geo);
}

if (regions == null || regions.size() = 0) {
ListLanguage languages = wizardCampaignDTO.getLanguage
();
if (languages != null  languages.size()  0) {
String[] ls = new String[languages.size()];
for (int i = 0; i  languages.size(); i++) {
ls[i] = languages.get(i).getValue();
}
c.setLanguageTargeting(ls);
}
}

I've NOoooOOO idea how to upgrate this to v2009...I saw
CampaignServiceTarget but I not sure how I supoose to use that.
Sorry my bad english but..could someone please help me or any ideas?
Thanks!

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---