how do you loop through to get campaign names? I tried this code:
I can get the ids but I want the name.
AdWordsUser user = new AdWordsUser();
long retVal = -1;
// Get the CampaignService.
CampaignService campaignService =
(CampaignService)
user.GetService(AdWordsService.v200909.CampaignService);
//++++++++++++++++++++++++
CampaignSelector selector = new CampaignSelector();
CampaignPage campaignPage =
campaignService.get(selector);
Campaign c = new Campaign();
long[] campaignIds =
new long[(campaignPage.entries == null) ? 0 :
campaignPage.entries.Length];
for (int i = 0; i < campaignIds.Length; i++) {
campaignIds[i] = campaignPage.entries[i].id;
this.ListBox1.Items.Add(campaignIds[i].ToString()+
"-"+ c.name + "=" + c.startDate +" ..." + c.status.ToString());
}
}
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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