Hi J, The best way to debug this is to enable logging (described in the README) and then look at the SOAP XML request and response.
Best, - Eric Koleda, AdWords API Team On Jan 21, 5:38 am, jlbandeira <[email protected]> wrote: > I guys, > > I'm new to AdWords APi and I'm trying to get all the campaigns > associated with my google AdWords account but I'm not getting anything > from the API. For this I'm using .Net... Here's how my code is made: > > public void campaignsget(string ssAccountEmail, string > ssAccountSecret, string ssClientId, string ssUserAgent, string > ssDeveloperToken, string ssApplicationToken, , string ssServiceUrl, > out string ssErrorMsg) > { > ssErrorMsg = ""; > > Dictionary<string, string> headers = new Dictionary<string, string>(); > > headers.Add("email", ssAccountEmail); > headers.Add("password", ssAccountSecret); > headers.Add("useragent", ssUserAgent); > headers.Add("developerToken", ssDeveloperToken); > headers.Add("applicationToken", ssApplicationToken); > headers.Add("clientCustomerId", ssClientId); > > AdWordsUser user = new AdWordsUser(headers); > > com.google.api.adwords.v200909.CampaignService service = new > com.google.api.adwords.v200909.CampaignService(); > service = (com.google.api.adwords.v200909.CampaignService) > user.GetService(AdWordsService.v200909.CampaignService); > > service.Url = ssServiceUrl; > > com.google.api.adwords.v200909.CampaignPage campaignPage = new > CampaignPage(); > > campaignPage = service.get(new CampaignSelector()); > > if (campaignPage.entries != null) //Check if any companies are > returned. > { > ssErrorMsg = "Found Campaigns";}else{ > > ssErrorMsg = "Couldn't find campaigns"; > > } > } > > Can you help me with this? > Thanks > J. -- 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.
