Guys,

I need some assistance.

I am using the DownloadClientReport() method to download the
ClientReports in .net :
 new ReportUtilities(user).DownloadClientReport(reportDefinitionId,
false, filePath);

I created the user object by: AdWordsUser user =
SSAdWordsUser.CreateAdWordUser(account.GoogleId, token);

 public static AdWordsUser CreateAdWordUser(string customerId, string
token)
        {
            //Create a new AdWordsAppConfig object - part of the API
            AdWordsAppConfig config = new AdWordsAppConfig();

            //Create a Dictionary object which is what is passed to
the AdWordUser object
            Dictionary<string, string> headers = new
Dictionary<string, string>();

            //Get the values from the configuration file
            headers.Add("userAgent", config.UserAgent);
            headers.Add("email", config.Email);
            headers.Add("password", config.Password);
            headers.Add("developerToken", config.DeveloperToken);
            headers.Add("clientCustomerId", customerId);
            headers.Add("authToken", token);

            //Add the Dictionary object to and create a new AdWordUser
object
            return new AdWordsUser(headers);
        }

Where else am I supposed to add the developer token?


On Jan 18, 6:14 pm, Sunil <su...@sweetspotmarketing.com> wrote:
> Stepanian,
>
> How are you adding the developer token to the URL request? I am also
> using .Net library
>
> On Jan 18, 5:44 pm, stepanian <rstepan...@espinneret.com> wrote:
>
>
>
> > Never mind. It worked! I was adding it only to the report definition
> > not the URL request. Thanks.
>
> > On Jan 18, 3:42 pm, stepanian <rstepan...@espinneret.com> wrote:
>
> > > I am using the latest dotnet library (I just downloaded it) and it's
> > > still giving me the same error. I am adding the developer token
> > > header.
>
> > > On Jan 18, 3:39 pm, Eric Koleda <eric.kol...@google.com> wrote:
>
> > > > Hi Alexander,
>
> > > > The client library didn't start sending the developer token in the 
> > > > request
> > > > until 15.0.4:
>
> > > >http://code.google.com/p/google-api-ads-python/source/browse/trunk/ad...
>
> > > > For everyone else, please ensure you are using the latest version of the
> > > > client library.
>
> > > > Best,
> > > > - Eric

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to