Hi David,

Yes, this is a known issue, could you please 
track https://groups.google.com/d/msg/adwords-api/GBv-C7mxdBg/yTC4itfJekkJ 
for updates?

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Thursday, May 16, 2013 3:23:22 AM UTC+5:30, David Apps wrote:
>
> Hi, I'm using the code below to interact with the TargetingIdeaService 
> from a developer account (client id 975-797-8136) and it's somehow 
> returning different operation counts for similar consecutive calls.  I'm 
> absolutely certain I'm only performing one get request on the service for 
> each call, so I'm wondering if the inflated operation counts being returned 
> in some cases can be disregarded and chalked up to sandbox issues on your 
> end, and not reflective of the actual API usage on mine?  Below is the call 
> log output as well since I'm assuming the RequestIds might be of some use 
> to you on your end...
>
> Date Operations Description RequestId ResponseTime
> 2013-05-15 16:05:10.917 1 TargetingIdeaService - 4 seed keywords, 100 
> ideas requested 0004DCC81C482A400ADA015217C76017 173
> 2013-05-15 16:04:07.707 1 TargetingIdeaService - 4 seed keywords, 50 
> ideas requested 0004DCC8188440880ADA20D40654B8EC 155
> 2013-05-15 16:03:42.473 50 TargetingIdeaService - 4 seed keywords, 50 
> ideas requested 0004DCC81703E9E80ADA20D40654B8EC 110
> 2013-05-15 16:03:34.640 50 TargetingIdeaService - 1 seed keywords, 50 
> ideas requested 0004DCC8168C64400ADA528528734D08 105
> 2013-05-15 16:03:27.263 100 TargetingIdeaService - 1 seed keywords, 100 
> ideas requested 0004DCC8161868D80ADA1E0A064CFE69 307
> 2013-05-15 16:03:13.453 50 TargetingIdeaService - 1 seed keywords, 50 
> ideas requested 0004DCC8154882300ADA20D40654B8EC 99
>
>
>     /// <summary>
>     /// Generates a list of keyword ideas from the specified list of seed 
> keywords.
>     /// </summary>
>     /// <param name="user">The AdWords user account</param>
>     /// <param name="count">The number of ideas to return</param>
>     /// <param name="keywords">The seed keywords to base the ideas off 
> of</param>
>     /// <returns>Returns the list of keyword ideas</returns>
>     public static List<KeywordIdea> GenerateKeywordIdeas(AdWordsUser user, 
> int count, List<string> keywords)
>     {
>         var keywordIdeas = new List<KeywordIdea>();
>         count = Math.Min(count, MaxKeywordIdeaPageSize);
>
>         var selector = new TargetingIdeaSelector
>             {
>                 requestType = RequestType.IDEAS,
>                 ideaType = IdeaType.KEYWORD,
>                 paging = new Paging { startIndex = 0, numberResults = 
> Math.Min(count, MaxKeywordIdeaPageSize) },
>                 requestedAttributeTypes = new[]
>                     {
>                         AttributeType.KEYWORD_TEXT,
>                         AttributeType.SEARCH_VOLUME,
>                         AttributeType.COMPETITION,
>                         AttributeType.AVERAGE_CPC
>                     },
>                 searchParameters = new SearchParameter[]
>                     {
>                         new RelatedToQuerySearchParameter {queries = 
> keywords.Take(MaxSeedKeywordsPerIdeasRequest).ToArray() },
>                         new LanguageSearchParameter {languages = new[] 
> {new Language {id = 1000}}}
>                     }
>             };
>        
>         TargetingIdeaService service = null;
>
>         try
>         {
>             service = (TargetingIdeaService) 
> user.GetService(AdWordsService.v201302.TargetingIdeaService);
>             var page = service.get(selector);
>             if (page.entries != null && page.entries.Length > 0)
>             {
>                 foreach (var entry in page.entries)
>                 {
>                     keywordIdeas.Add(new KeywordIdea(entry.data));
>                 }
>             }
>         }
>         catch (Exception ex)
>         {
>             Logger.Warn("Keyword idea retrieval failure.", ex);
>         }
>
>         if (service != null && service.ResponseHeader != null)
>         {
>             UpdateApiCallLog(string.Format("TargetingIdeaService - {0} 
> seed keywords, {1} ideas requested",
>                 keywords.Count, count), 
> (int)service.ResponseHeader.operations,
>                 service.ResponseHeader.requestId, 
> (int)service.ResponseHeader.responseTime);
>         }
>
>         return keywordIdeas;
>     }
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to