Hi,

As you can see in the responseTime header in the response XML, the
processing time on the server was only 532 milliseconds, of half a
second.  The extra delay in time must be happening client side.  Are
you using of the AdWords API client libraries?

Best,
- Eric Koleda, AdWords API Team

On Mar 29, 11:50 am, SW <[email protected]> wrote:
> If it helps, here is the soap request and response headers:
>
> -----------------BEGIN API CALL---------------------
>
> Request
> -------
>
> POST /api/adwords/cm/v200909/CampaignService
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
> Protocol 2.0.50727.3053)
> VsDebuggerCausalityData: uIDPoyoPJr0mHXtBltctmPFCRJYAAAAAurce2yxQ3kCUa
> +vhd5N6/IunI7sKheRAsiC2b2XepawACAAA
> Content-Type: text/xml; charset=utf-8
> SOAPAction: ""
> Host: adwords.google.com
> Content-Length: 824
> Expect: 100-continue
> Accept-Encoding: gzip
> Connection: Keep-Alive
>
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/
> XMLSchema"><soap:Header><RequestHeader xmlns="https://
> adwords.google.com/api/adwords/cm/v200909"><authToken>********</
> authToken><clientCustomerId>some number</
> clientCustomerId><developerToken>some number</developerToken></
> RequestHeader></soap:Header><soap:Body><get xmlns="https://
> adwords.google.com/api/adwords/cm/v200909"><selector><ids>some number</
> ids></selector></get></soap:Body></soap:Envelope>
>
> Response
> --------
>
> SOAPAction: ""
> Content-Encoding:
> Transfer-Encoding: chunked
> X-Content-Type-Options: nosniff
> X-Frame-Options: SAMEORIGIN
> X-XSS-Protection: 0
> Cache-Control: private, max-age=0
> Content-Type: text/xml; charset=UTF-8
> Date: Mon, 29 Mar 2010 15:45:30 GMT
> Expires: Mon, 29 Mar 2010 15:45:30 GMT
> Server: GSE
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Header><ResponseHeader xmlns="https://
> adwords.google.com/api/adwords/cm/
> v200909"><requestId>045576a8dbfb8418cacaec6bc942a264</
> requestId><operations>1</operations><responseTime>532</
> responseTime><units>1</units></ResponseHeader></
> soap:Header><soap:Body><getResponse xmlns="https://adwords.google.com/
> api/adwords/cm/v200909"><rval><totalNumEntries>1</
> totalNumEntries><Page.Type>CampaignPage</
> Page.Type><totalBudget><period>DAILY</
> period><amount><ComparableValue.Type>Money</
> ComparableValue.Type><microAmount>10000000</microAmount></
> amount><deliveryMethod>STANDARD</deliveryMethod></
> totalBudget><entries><id>somenumber</id><name>Networking</
> name><status>ACTIVE</status><servingStatus>SERVING</
> servingStatus><startDate>20100324</startDate><endDate>20371231</
> endDate><budget><period>DAILY</
> period><amount><ComparableValue.Type>Money</
> ComparableValue.Type><microAmount>10000000</microAmount></
> amount><deliveryMethod>STANDARD</deliveryMethod></
> budget><biddingStrategy xmlns:xsi="http://www.w3.org/2001/XMLSchema-
> instance" xsi:type="ManualCPC"><BiddingStrategy.Type>ManualCPC</
> BiddingStrategy.Type></
> biddingStrategy><autoKeywordMatchingStatus>OPT_OUT</
> autoKeywordMatchingStatus><stats><network>ALL</
> network><Stats.Type>Stats</Stats.Type></
> stats><adServingOptimizationStatus>OPTIMIZE</
> adServingOptimizationStatus><frequencyCap><impressions>0</
> impressions></frequencyCap></entries></rval></getResponse></
> soap:Body></soap:Envelope>
>
> -----------------END API CALL-----------------------
>
> On Mar 29, 11:36 am, SW <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I am trying to get the adwords campaign by campaignId.   When I try to
> > call the campaign service for the first time, it takes somewhere
> > between 10 to 15 seconds to get the campaign by id.  Any subsequent
> > attempt to call this method works faster.
>
> > Would you please help me understand the difference in time it takes to
> > execute the request first time or sub-sequent time?
>
> >  FYI: I am setting the authtoken to pregenerated token before making
> > this request.
>
> > Here is my code:
>
> > public Campaign GetCampaign(long campaignId)
> >         {
> >             Campaign  gaCampaign = null;
> >             try
> >             {
> >                 CampaignSelector cs = new CampaignSelector();
> >                 cs.ids = new long[] { campaignId };
> >                 CampaignPage campaignPage = service.get(cs);
> > <<------- takes 10 seconds when calling first time.
> >                 if ((campaignPage.entries != null) &&
> > (campaignPage.entries.Length > 0))
> >                 {
> >                     gaCampaign = campaignPage.entries[0];
> >                 }
> >             }
> >             catch (Exception ex)
> >             {
> >                 log.Error("Exception occured in GetAllCampaigns: " +
> > ex);
> >                 throw;
> >             }
> >             return gaCampaign;
> >         }

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to