Doh, after a bit if side by side SOAP envelope review, I noticed the 
following differences:

GGL Client Library:
<soap:Body>
<get xmlns="https://adwords.google.com/api/adwords/mcm/v201309";>
<serviceSelector>
<fields 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>Login</fields>
<fields 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>CustomerId</fields>
<fields 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>Name</fields>
</serviceSelector>
</get>
</soap:Body>

My homegrown:

<soap:Body>
<get 
xmlns="https://adwords.google.com/api/adwords/mcm/v201309";><serviceSelector>
<fields 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>Login</fields>
<fields 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>CustomerId</fields>
<fields 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>Name</fields>
*<paging xmlns="https://adwords.google.com/api/adwords/cm/v201309"; />*
</serviceSelector>
</get>
</soap:Body>

So, for some reason the following code:

  'Size of result set
   selector.paging = New GoogleAccountAPI.Paging
   Dim offset As Integer = 0
   Dim pageSize As Integer = 10
   selector.paging.startIndex = offset
   selector.paging.numberResults = pageSize

Was causing this behavior via generating SOAP incorrectly: <paging 
xmlns="https://adwords.google.com/api/adwords/cm/v201309"; />
instead of: 
<paging><startIndex>0</startIndex>
<numberResults>500</numberResults></paging>

So once I killed the paging logic all worked as designed.  Whew!

One can also set the silly nnSpecified booleans to true to get working.  

  selector.paging.startIndex = offset
  selector.paging.startIndexSpecified = True
  selector.paging.numberResults = pageSize
  selector.paging.numberResultsSpecified = True


Now to get back to your regularly scheduled programming.

On Thursday, October 24, 2013 4:18:46 PM UTC-4, [email protected] wrote:
>
> If anyone can help with the following code, which is correctly showing the 
> page.totalNumEntries for my MCC, but not allowing me to reference the *
> page.entries* in order to get the actual ManagedCustomer objects I am 
> requesting.
>
>         ' Create the selector.
>         Dim oManagedCustomer As New ManagedCustomer
>         Dim selector As New GoogleAccountAPI.Selector
>         selector.fields = New String() {"CompanyName", "CustomerId", 
> "Name", "Login"}
>
>         'Size of result set
>         selector.paging = New GoogleAccountAPI.Paging
>         Dim offset As Integer = 0
>         Dim pageSize As Integer = 10
>
>         Dim page As New GoogleAccountAPI.ManagedCustomerPage
>         Dim oCst As New GoogleAccountAPI.ManagedCustomer
>
>         Try
>             Do
>                 selector.paging.startIndex = offset
>                 selector.paging.numberResults = pageSize
>
>                 ' Get the Accounts
>                 page = myService.get(selector)
>
>                 ' Display the results.
>                 If ((Not page Is Nothing) AndAlso (page.totalNumEntries > 
> 0)) Then
>                     Dim i As Integer = offset
>                     For Each oManCst As GoogleAccountAPI.ManagedCustomer 
> In page.entries
>                         Console.WriteLine("Customer ID = '{0}' and name =" 
> & " '{1}' .", oManCst.customerId, oManCst.companyName)
>                         MyArray.Add(oManCst)
>                         i += 1
>                     Next
>                 Else
>                     Console.WriteLine("No Accounts were found.")
>                 End If
>
>                 offset = offset + pageSize
>             Loop While (offset < page.totalNumEntries)
>             Console.WriteLine("Number of Accounts found: {0}", 
> page.totalNumEntries)
>
>
> I've attached my cleansed Soap request/response data with my MCC clientID, 
> Dev and Auth token cleansed.  
>
> I must be very close, just missing the Doh moment to properly get the 
> ManagedCustomer object with the fields I have requested in the selector.
>
> Thanks!
>
>

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