Thanks Stepanian.

Could you please tell me what's wrong with my code that I pasted
above?

On Jan 18, 6:30 pm, stepanian <rstepan...@espinneret.com> wrote:
> You need to do two things:
>
> 1) Make sure you are using the latest dotnet client library.
> 2) Add the developer token to both the report definition mutate
> operation and also to the report download operation.
>
> For the report download, I use the following code:
>
>                         string gZipPath = "path_to_gzip";
>                         WebClient wc = new WebClient();
>                         String url = 
> "https://adwords.google.com/api/adwords/reportdownload?
> __rd=" + id;
>                         wc.Headers.Add("Authorization", "GoogleLogin auth=" +
> service.RequestHeader.authToken);
>                         wc.Headers.Add("clientEmail", 
> service.RequestHeader.clientEmail);
>                         wc.Headers.Add("developerToken",
> "your_developer_token");
>                         wc.DownloadFile(url, gZipPath);
>
> On Jan 18, 4: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