Re: .net Oauth2 Report Download error

2014-04-30 Thread Ray Tsang (AdWords API Team)
Joshua,

Could I trouble you to send me the full request/response log by using 
"reply to author"?
I'm not aware of the "applicationToken" header, for example.  Please review 
Reporting 
Basics 
guidefor the 
HTTP headers that can be used.

Also, please see if using a newly generated refresh token would resolve 
this?

Thanks,

Ray

On Wednesday, April 30, 2014 9:16:07 AM UTC-4, Joshua Newman wrote:
>
> Recently migrated from clientLogin to Oauth2 and had no problem retrieving 
> the access token and refresh token. Now when I do report downloads using 
> Oauth2 I get this: 
>
>  Adwords error: Google.Api.Ads.AdWords.Util.Reports.ReportDownloadError
>
> ReportDownloadError.INVALID_PARAMETER
>
>  
>
> Missing client information
>
> 4/29/2014 8:57:03 PM:   stack trace   at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
>  
> downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
> outputStream) in c:\src\MyProjects\now\Common library 
> base\adwords\compile\Util\Reports\ReportUtilities.cs:line 302
>
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.GetClientReportInternal(String
>  
> downloadUrl, String postBody, Boolean returnMoneyInMicros) in 
> c:\src\MyProjects\now\Common library 
> base\adwords\compile\Util\Reports\ReportUtilities.cs:line 231
>
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.GetClientReport[T](T 
> reportDefinition, Boolean returnMoneyInMicros) in 
> c:\src\MyProjects\now\Common library 
> base\adwords\compile\Util\Reports\ReportUtilities.cs:line 153
>
>at AdwordsReconciler.AdwordsReconciler.GetClientReport(Logger l, 
> DateTime day, AdWordsUser u) in 
> c:\Users\Joshua.Newman\Documents\SiteWit\Local 
> Source\Services\Development\Adwords 
> Services\AdwordsReconciler\AdwordsReconciler.cs:line 127
>
> 4/29/2014 8:57:03 PM:  
>
> MessageReport download errors occurred, see errors field for more details.
>
> 4/29/2014 8:57:03 PM:  
>
> Source Google.AdWords
>
> 4/29/2014 8:57:03 PM:   stack trace   at 
> AdwordsReconciler.AdwordsReconciler.GetClientReport(Logger l, DateTime day, 
> AdWordsUser u) in c:\Users\Joshua.Newman\Documents\SiteWit\Local 
> Source\Services\Development\Adwords 
> Services\AdwordsReconciler\AdwordsReconciler.cs:line 141
>
>at AdwordsReconciler.AdwordsReconciler.GetReconciliationReport(Logger 
> l, DateTime day, AdWordsUser u, Int32 masterAccountId) in 
> c:\Users\Joshua.Newman\Documents\SiteWit\Local 
> Source\Services\Development\Adwords 
> Services\AdwordsReconciler\AdwordsReconciler.cs:line 63
>
>at 
> AdwordsReconcilerReportGenerator.ReportGenerator._svcTimer_Elapsed(Object 
> sender, ElapsedEventArgs e) in 
> c:\Users\Joshua.Newman\Documents\SiteWit\Local 
> Source\Services\Development\Adwords 
> Services\AdwordsReconcilerReportGenerator\ReportGenerator.cs:line 76
>
> 4/29/2014 8:57:03 PM:  
>
> MessageObject reference not set to an instance of an object.
>
>
> I set the following headers:
>
> "clientCustomerId": xx
>
> "Authorization": Bearer "client Oauth2 Token"
>
> "developerToken" : ConfigurationManager.AppSettings["AdwordsDevToken"]
>
> "applicationToken": ConfigurationManager.AppSettings["AdwordsAppToken"]
>
> "useragent" : "SiteWit v0.1"
>
>
> What client information am I missing?
>
>
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


.net Oauth2 Report Download error

2014-04-30 Thread Joshua Newman
Recently migrated from clientLogin to Oauth2 and had no problem retrieving 
the access token and refresh token. Now when I do report downloads using 
Oauth2 I get this: 

 Adwords error: Google.Api.Ads.AdWords.Util.Reports.ReportDownloadError

ReportDownloadError.INVALID_PARAMETER

 

Missing client information

4/29/2014 8:57:03 PM:   stack trace   at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
 
downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
outputStream) in c:\src\MyProjects\now\Common library 
base\adwords\compile\Util\Reports\ReportUtilities.cs:line 302

   at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.GetClientReportInternal(String
 
downloadUrl, String postBody, Boolean returnMoneyInMicros) in 
c:\src\MyProjects\now\Common library 
base\adwords\compile\Util\Reports\ReportUtilities.cs:line 231

   at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.GetClientReport[T](T 
reportDefinition, Boolean returnMoneyInMicros) in 
c:\src\MyProjects\now\Common library 
base\adwords\compile\Util\Reports\ReportUtilities.cs:line 153

   at AdwordsReconciler.AdwordsReconciler.GetClientReport(Logger l, 
DateTime day, AdWordsUser u) in 
c:\Users\Joshua.Newman\Documents\SiteWit\Local 
Source\Services\Development\Adwords 
Services\AdwordsReconciler\AdwordsReconciler.cs:line 127

4/29/2014 8:57:03 PM:  

MessageReport download errors occurred, see errors field for more details.

4/29/2014 8:57:03 PM:  

Source Google.AdWords

4/29/2014 8:57:03 PM:   stack trace   at 
AdwordsReconciler.AdwordsReconciler.GetClientReport(Logger l, DateTime day, 
AdWordsUser u) in c:\Users\Joshua.Newman\Documents\SiteWit\Local 
Source\Services\Development\Adwords 
Services\AdwordsReconciler\AdwordsReconciler.cs:line 141

   at AdwordsReconciler.AdwordsReconciler.GetReconciliationReport(Logger l, 
DateTime day, AdWordsUser u, Int32 masterAccountId) in 
c:\Users\Joshua.Newman\Documents\SiteWit\Local 
Source\Services\Development\Adwords 
Services\AdwordsReconciler\AdwordsReconciler.cs:line 63

   at 
AdwordsReconcilerReportGenerator.ReportGenerator._svcTimer_Elapsed(Object 
sender, ElapsedEventArgs e) in 
c:\Users\Joshua.Newman\Documents\SiteWit\Local 
Source\Services\Development\Adwords 
Services\AdwordsReconcilerReportGenerator\ReportGenerator.cs:line 76

4/29/2014 8:57:03 PM:  

MessageObject reference not set to an instance of an object.


I set the following headers:

"clientCustomerId": xx

"Authorization": Bearer "client Oauth2 Token"

"developerToken" : ConfigurationManager.AppSettings["AdwordsDevToken"]

"applicationToken": ConfigurationManager.AppSettings["AdwordsAppToken"]

"useragent" : "SiteWit v0.1"


What client information am I missing?





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.