Hi,
I'm new to adwords. I try to run my first app with the following code
snippet :
try
{
user = new AdWordsUser();
(user.Config as AdWordsAppConfig).Email = "myemail";
(user.Config as AdWordsAppConfig).Password= "pwd";
(user.Config as AdWordsAppConfig).UserAgent=
"companyname";
(user.Config as AdWordsAppConfig).ClientCustomerId =
"111-111-1111";
(user.Config as AdWordsAppConfig).DeveloperToken =
"myemail++USD";
(user.Config as
AdWordsAppConfig).LegacyAdWordsApiServer = "https://
sandbox.google.com";
(user.Config as AdWordsAppConfig).AdWordsApiServer =
"https://adwords-sandbox.google.com";
CampaignService cs =
(CampaignService)user.GetService(AdWordsService.v201109.CampaignService);
//creat a selector
Selector s = new Selector();
s.fields = new string[] { "Id", "Name", "Status" };
//get all campaigns
CampaignPage page = cs.get(s);
//display campaigns
if (page != null && page.entries != null &&
page.entries.Length > 0)
{
foreach (Campaign campaign in page.entries)
{
......
}
}
}
catch (Exception ex)
{
.......
}
}
but i gave the fillowing error when it tries to run CampaignPage page
= cs.get(s) :
AuthenticationError.CUSTOMER_NOT_FOUND @ ; trigger:'292-505-0786'
Service[CampaignService.get]
Anyone knows whats the reason?
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