I could see where the not having the "-1" would be an issue, but the
code is not even getting to the point of trying to run the For loop.
I am getting a
NullReferenceException...  in the "For Loop" on the
Service.getAllAdWordsCampaigns(0).Length bit of code.  So I think the
issue is getting the data back / into the
Service.getAllAdwordsCampaigns(0).

I am trying to translate the code at this location from CS to VB.
http://code.google.com/p/adwords-api-dotnet-samples/source/browse/trunk/src/GetAllCampaigns.cs

Specifically this bit:
...
      // Get all campaigns.
      Campaign[] campaigns = service.getAllAdWordsCampaigns(0);

      // Display campaign info.
      for (int i = 0; i < campaigns.Length; i++) {
        Console.WriteLine("Campaign name is \"" + campaigns[i].name
            + "\" id is \"" + campaigns[i].id + "\".");
      }
    } catch (Exception e) {
      Console.WriteLine(e);
    }

Thanks!

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

Reply via email to