Eric, below is the VB.NET code that is having the problem.  It is
using the .NET client library v 201008. Regardless of whether
returnMoneyInMicros is set to true or false, the file that comes back
has the cost-related fields in micros.

thanks
-reed

Public Sub DownloadReportDefinition(ByVal FileName As String, ByVal
FileDir As String, ByVal reportDefinitionId As Long, ByVal reportName
As String, ByVal authToken As String, ByVal clientEmail As String,
ByVal filePath As String, ByVal downloadInMicros As Boolean, ByVal
user As AdWordsUser, ByVal ReportId As Integer)
        '
        Dim downloadUrl As New Uri(String.Format("https://
adwords.google.com/api/adwords/reportdownload?__rd={0}",
reportDefinitionId))
        Dim request As WebRequest = HttpWebRequest.Create(downloadUrl)
        request.Headers.Add("clientEmail: " & clientEmail)
        request.Headers.Add("Authorization: GoogleLogin auth=" &
authToken)
        request.Headers.Add("returnMoneyInMicros:false")

        Try
            Dim response As WebResponse = request.GetResponse()
            DownloadReportToFile(FileName, FileDir, response,
reportName, user, ReportId)
        Catch ex As Exception

        End Try
    End Sub

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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