Just need to change how you do the user authentication.
- v200909
AuthToken authToken = new AuthToken(email, password);
string token = authToken.GetToken();
CampaignTargetService service = new
CampaignTargetService();
service.Url = xxx;
service.RequestHeader = new
com.google.api.adwords.RequestHeader();
service.RequestHeader.authToken = token;
service.RequestHeader.clientEmail = clientEmail;
service.RequestHeader.developerToken = xxx;
service.RequestHeader.applicationToken = xxx;
-v201109
Dictionary<string, string> headers = new
Dictionary<string, string>();
headers.Add("email", email);
headers.Add("password", password);
headers.Add("useragent", xxx);
headers.Add("developerToken", xxx);
AdWordsUser user = new AdWordsUser(headers);
CampaignCriterionService service =
(CampaignCriterionService)user.GetService(AdWordsService.v201109.CampaignCriterionService);
On Jan 12, 12:31 pm, Jared Barden <[email protected]> wrote:
> Just wondering if anyone out there has a suggestion. There must be
> something I'm missing.
>
> On Jan 12, 12:24 pm, Jared Barden <[email protected]> wrote:
>
>
>
>
>
>
>
> > I'm trying to upgrade my C# code to v201109. I have updated my
> > App.config to include the values given in the starter video.
>
> > However, I keep getting an "email cannot be null" error.
>
> > Suggestions?
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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