Hi,

I think I found the problem. 
I am fetching users without any ordering. And sometimes, once a day, api 
returns same users in different pages.
I will try it with ordering today, and if it is ok I will let you know.

Thanks

19 Ekim 2016 Çarşamba 11:53:45 UTC+3 tarihinde Mehmet yazdı:
>
> Hi,
>
> I am trying to get AccountHierachy with the code below. But sometimes 
> while adding to dictionary, I got "An item with the same key has already 
> been added" error.
> I think selector.paging.IncreaseOffset(); not work sometimes. Is it 
> possible or I do a mistake?
>
> Thanks
>
>
>                 do
>                 {
>                     page = managedCustomerService.get(selector);
>
>                     if (page.entries != null)
>                     {
>                         foreach (ManagedCustomer customer in page.entries)
>                         {
>                             ManagedCustomerTreeNode node = new 
> ManagedCustomerTreeNode();
>                             node.Account = customer;
>                             
> *customerIdToCustomerNode.Add(customer.customerId, 
> node);*
>                         }
>                     }
>                     selector.paging.IncreaseOffset();
>                 } while (selector.paging.startIndex < 
> page.totalNumEntries);
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a42c0daa-d236-4acf-92d2-39b9ebaf9216%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to