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 from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to