Re: Password expired error even if I am using OAauth2

2014-05-06 Thread Ray Tsang (AdWords API Team)
Mahesh,

Please send me the full request/response log for the failed request.

Thanks,

Ray

On Tuesday, May 6, 2014 11:45:09 AM UTC-4, Ray Tsang (AdWords API Team) 
wrote:
>
> Mahesh,
>
> Please make sure the OAuth 2.0 refresh token is indeed obtained by using 
> the MCC account user.
>
> Thanks,
>
> Ray
>
> On Monday, May 5, 2014 6:51:41 PM UTC-4, Mahesh Nerlekar wrote:
>>
>> I sent you the MCC Id and customerId. Please let me know if you can help. 
>> Any help will be really appreciated.
>>
>> On Friday, May 2, 2014 10:11:52 AM UTC-5, Ray Tsang (AdWords API Team) 
>> wrote:
>>>
>>> Mahesh,
>>>
>>> Thanks - please send me (in private) the MCC CID, and also the CID you 
>>> are trying to access.
>>> When getting the refresh token, please make sure you were logged in as 
>>> the MCC user, and the the CID is properly linked to the corresponding MCC.
>>>
>>> Thanks,
>>>
>>> On Thursday, May 1, 2014 6:43:32 PM UTC-4, Ray Tsang (AdWords API Team) 
>>> wrote:

 Mahesh,

 With respect to the error 
 "{Google.Api.Ads.AdWords.Util.Reports.ReportDownloadError[1]}" will you be 
 able to parse through the object and drill into the actual error and error 
 messages itself?

 Secondly, the trace log contains gzip contain.  Could I trouble you to 
 turn off gzip compression in the App.config?

 Thanks,

 Ray

 On Thursday, May 1, 2014 2:13:31 PM UTC-4, Ray Tsang (AdWords API Team) 
 wrote:
>
> Mahesh,
>
> I will need to see the errors field for more details - I need the full 
> request/response log.
> For proxy related settings, you may need to double check the 
> App.config file and proxy settings.
>
> Thanks,
>
> Ray
>
>
> On Thursday, May 1, 2014 12:53:38 PM UTC-4, Mahesh Nerlekar wrote:
>>
>> I am trying to use the new version 201309 or 201402 and now I am 
>> getting following error./..
>>
>> Error creating the Web Proxy specified in the '
>> system.net/defaultProxy' configuration section.
>>
>> I tried adding full trust in System.web in configuration section. but 
>> still no use... not sure whats wrong?
>>
>>
>> On Wednesday, April 30, 2014 4:58:27 PM UTC-5, Mahesh Nerlekar wrote:
>>>
>>> I think this is the error I am getting while downloading campaign 
>>> performance report or keyword performance report.
>>>
>>> Google.Api.Ads.AdWords.Util.Reports.ReportsException: Report 
>>> download errors occurred, see errors field for more details.
>>>at 
>>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
>>>  
>>> downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
>>> outputStream)
>>>at 
>>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
>>>  
>>> downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
>>>at 
>>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>>  
>>> reportDefinition, Boolean returnMoneyInMicros, String path)
>>>at 
>>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>>  
>>> reportDefinition, String path)
>>>at Adwords.GetAdwords.DownloadReportFromAdwords(AdWordsUser user, 
>>> AdsOAuthProviderForApplications oAuth2Provider) in 
>>> \\ghosn01b\nerlekma$\My 
>>> Documents\Visual Studio 
>>> 2012\Projects\Adwords\AdWords\GetAdwords.cs:line 178
>>>
>>>
>>>
>>> and here is the code I am using for it...
>>>
>>>
>>>
>>>  ReportDefinition definition = CreateReportDefinition();
>>>
>>> user.OAuthProvider = oAuth2Provider;
>>>
>>> //loop through all the accounts we got from database 
>>> ga_config and download a file for each account.
>>> for (int i = 0; i < NoOfAccounts; i++)
>>> {
>>> (user.Config as 
>>> AdWordsAppConfig).ClientCustomerId = AccountIds[i].ToString();  
>>> fileName = AccountIds[i].ToString(); //+ "_" + 
>>>  DateTime.Today.AddDays(Convert.ToInt16(-1)).ToString("-MM-dd");
>>> filePath = downloadFolderPath + "\\" + fileName;
>>> try
>>> {
>>> (user.Config as 
>>> AdWordsAppConfig).DeveloperToken = 
>>> Properties.Settings.Default.DeveloperToken;
>>> ReportUtilities utilities = new 
>>> ReportUtilities(user);
>>> utilities.User.OAuthProvider = 
>>> oAuth2Provider;
>>> utilities.ReportVersion = "v201306";
>>> utilities.DownloadClientReport(definition, 
>>> filePath);
>>> Console.WriteLine("Repo

Re: Password expired error even if I am using OAauth2

2014-05-06 Thread Ray Tsang (AdWords API Team)
Mahesh,

Please make sure the OAuth 2.0 refresh token is indeed obtained by using 
the MCC account user.

Thanks,

Ray

On Monday, May 5, 2014 6:51:41 PM UTC-4, Mahesh Nerlekar wrote:
>
> I sent you the MCC Id and customerId. Please let me know if you can help. 
> Any help will be really appreciated.
>
> On Friday, May 2, 2014 10:11:52 AM UTC-5, Ray Tsang (AdWords API Team) 
> wrote:
>>
>> Mahesh,
>>
>> Thanks - please send me (in private) the MCC CID, and also the CID you 
>> are trying to access.
>> When getting the refresh token, please make sure you were logged in as 
>> the MCC user, and the the CID is properly linked to the corresponding MCC.
>>
>> Thanks,
>>
>> On Thursday, May 1, 2014 6:43:32 PM UTC-4, Ray Tsang (AdWords API Team) 
>> wrote:
>>>
>>> Mahesh,
>>>
>>> With respect to the error 
>>> "{Google.Api.Ads.AdWords.Util.Reports.ReportDownloadError[1]}" will you be 
>>> able to parse through the object and drill into the actual error and error 
>>> messages itself?
>>>
>>> Secondly, the trace log contains gzip contain.  Could I trouble you to 
>>> turn off gzip compression in the App.config?
>>>
>>> Thanks,
>>>
>>> Ray
>>>
>>> On Thursday, May 1, 2014 2:13:31 PM UTC-4, Ray Tsang (AdWords API Team) 
>>> wrote:

 Mahesh,

 I will need to see the errors field for more details - I need the full 
 request/response log.
 For proxy related settings, you may need to double check the App.config 
 file and proxy settings.

 Thanks,

 Ray


 On Thursday, May 1, 2014 12:53:38 PM UTC-4, Mahesh Nerlekar wrote:
>
> I am trying to use the new version 201309 or 201402 and now I am 
> getting following error./..
>
> Error creating the Web Proxy specified in the 'system.net/defaultProxy' 
> configuration section.
>
> I tried adding full trust in System.web in configuration section. but 
> still no use... not sure whats wrong?
>
>
> On Wednesday, April 30, 2014 4:58:27 PM UTC-5, Mahesh Nerlekar wrote:
>>
>> I think this is the error I am getting while downloading campaign 
>> performance report or keyword performance report.
>>
>> Google.Api.Ads.AdWords.Util.Reports.ReportsException: Report download 
>> errors occurred, see errors field for more details.
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
>>  
>> downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
>> outputStream)
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
>>  
>> downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>  
>> reportDefinition, Boolean returnMoneyInMicros, String path)
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>  
>> reportDefinition, String path)
>>at Adwords.GetAdwords.DownloadReportFromAdwords(AdWordsUser user, 
>> AdsOAuthProviderForApplications oAuth2Provider) in 
>> \\ghosn01b\nerlekma$\My 
>> Documents\Visual Studio 2012\Projects\Adwords\AdWords\GetAdwords.cs:line 
>> 178
>>
>>
>>
>> and here is the code I am using for it...
>>
>>
>>
>>  ReportDefinition definition = CreateReportDefinition();
>>
>> user.OAuthProvider = oAuth2Provider;
>>
>> //loop through all the accounts we got from database 
>> ga_config and download a file for each account.
>> for (int i = 0; i < NoOfAccounts; i++)
>> {
>> (user.Config as 
>> AdWordsAppConfig).ClientCustomerId = AccountIds[i].ToString();  
>> fileName = AccountIds[i].ToString(); //+ "_" + 
>>  DateTime.Today.AddDays(Convert.ToInt16(-1)).ToString("-MM-dd");
>> filePath = downloadFolderPath + "\\" + fileName;
>> try
>> {
>> (user.Config as 
>> AdWordsAppConfig).DeveloperToken = 
>> Properties.Settings.Default.DeveloperToken;
>> ReportUtilities utilities = new 
>> ReportUtilities(user);
>> utilities.User.OAuthProvider = oAuth2Provider;
>> utilities.ReportVersion = "v201306";
>> utilities.DownloadClientReport(definition, 
>> filePath);
>> Console.WriteLine("Report was downloaded to 
>> '{0}'.", filePath);
>>
>>
>> }
>> catch (Exception ex)
>> {
>> Console.WriteLine("Error: Failed to download 
>> report. Account ID : {0}. Error: {1}", fileName, ex);
>>

Re: Password expired error even if I am using OAauth2

2014-05-05 Thread Mahesh Nerlekar
I sent you the MCC Id and customerId. Please let me know if you can help. 
Any help will be really appreciated.

On Friday, May 2, 2014 10:11:52 AM UTC-5, Ray Tsang (AdWords API Team) 
wrote:
>
> Mahesh,
>
> Thanks - please send me (in private) the MCC CID, and also the CID you are 
> trying to access.
> When getting the refresh token, please make sure you were logged in as the 
> MCC user, and the the CID is properly linked to the corresponding MCC.
>
> Thanks,
>
> On Thursday, May 1, 2014 6:43:32 PM UTC-4, Ray Tsang (AdWords API Team) 
> wrote:
>>
>> Mahesh,
>>
>> With respect to the error 
>> "{Google.Api.Ads.AdWords.Util.Reports.ReportDownloadError[1]}" will you be 
>> able to parse through the object and drill into the actual error and error 
>> messages itself?
>>
>> Secondly, the trace log contains gzip contain.  Could I trouble you to 
>> turn off gzip compression in the App.config?
>>
>> Thanks,
>>
>> Ray
>>
>> On Thursday, May 1, 2014 2:13:31 PM UTC-4, Ray Tsang (AdWords API Team) 
>> wrote:
>>>
>>> Mahesh,
>>>
>>> I will need to see the errors field for more details - I need the full 
>>> request/response log.
>>> For proxy related settings, you may need to double check the App.config 
>>> file and proxy settings.
>>>
>>> Thanks,
>>>
>>> Ray
>>>
>>>
>>> On Thursday, May 1, 2014 12:53:38 PM UTC-4, Mahesh Nerlekar wrote:

 I am trying to use the new version 201309 or 201402 and now I am 
 getting following error./..

 Error creating the Web Proxy specified in the 'system.net/defaultProxy' 
 configuration section.

 I tried adding full trust in System.web in configuration section. but 
 still no use... not sure whats wrong?


 On Wednesday, April 30, 2014 4:58:27 PM UTC-5, Mahesh Nerlekar wrote:
>
> I think this is the error I am getting while downloading campaign 
> performance report or keyword performance report.
>
> Google.Api.Ads.AdWords.Util.Reports.ReportsException: Report download 
> errors occurred, see errors field for more details.
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
>  
> downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
> outputStream)
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
>  
> downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>  
> reportDefinition, Boolean returnMoneyInMicros, String path)
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>  
> reportDefinition, String path)
>at Adwords.GetAdwords.DownloadReportFromAdwords(AdWordsUser user, 
> AdsOAuthProviderForApplications oAuth2Provider) in 
> \\ghosn01b\nerlekma$\My 
> Documents\Visual Studio 2012\Projects\Adwords\AdWords\GetAdwords.cs:line 
> 178
>
>
>
> and here is the code I am using for it...
>
>
>
>  ReportDefinition definition = CreateReportDefinition();
>
> user.OAuthProvider = oAuth2Provider;
>
> //loop through all the accounts we got from database 
> ga_config and download a file for each account.
> for (int i = 0; i < NoOfAccounts; i++)
> {
> (user.Config as AdWordsAppConfig).ClientCustomerId 
> = AccountIds[i].ToString();  
> fileName = AccountIds[i].ToString(); //+ "_" + 
>  DateTime.Today.AddDays(Convert.ToInt16(-1)).ToString("-MM-dd");
> filePath = downloadFolderPath + "\\" + fileName;
> try
> {
> (user.Config as 
> AdWordsAppConfig).DeveloperToken = 
> Properties.Settings.Default.DeveloperToken;
> ReportUtilities utilities = new 
> ReportUtilities(user);
> utilities.User.OAuthProvider = oAuth2Provider;
> utilities.ReportVersion = "v201306";
> utilities.DownloadClientReport(definition, 
> filePath);
> Console.WriteLine("Report was downloaded to 
> '{0}'.", filePath);
>
>
> }
> catch (Exception ex)
> {
> Console.WriteLine("Error: Failed to download 
> report. Account ID : {0}. Error: {1}", fileName, ex);
> }
>
> FileInfo fileToDecompress = new FileInfo(filePath);
>
> if (fileToDecompress.Exists)
> {
> Decompress(fileToDecompress);
> fileToDecompress.Delete();
> 

Re: Password expired error even if I am using OAauth2

2014-05-02 Thread Ray Tsang (AdWords API Team)
Mahesh,

Thanks - please send me (in private) the MCC CID, and also the CID you are 
trying to access.
When getting the refresh token, please make sure you were logged in as the 
MCC user, and the the CID is properly linked to the corresponding MCC.

Thanks,

On Thursday, May 1, 2014 6:43:32 PM UTC-4, Ray Tsang (AdWords API Team) 
wrote:
>
> Mahesh,
>
> With respect to the error 
> "{Google.Api.Ads.AdWords.Util.Reports.ReportDownloadError[1]}" will you be 
> able to parse through the object and drill into the actual error and error 
> messages itself?
>
> Secondly, the trace log contains gzip contain.  Could I trouble you to 
> turn off gzip compression in the App.config?
>
> Thanks,
>
> Ray
>
> On Thursday, May 1, 2014 2:13:31 PM UTC-4, Ray Tsang (AdWords API Team) 
> wrote:
>>
>> Mahesh,
>>
>> I will need to see the errors field for more details - I need the full 
>> request/response log.
>> For proxy related settings, you may need to double check the App.config 
>> file and proxy settings.
>>
>> Thanks,
>>
>> Ray
>>
>>
>> On Thursday, May 1, 2014 12:53:38 PM UTC-4, Mahesh Nerlekar wrote:
>>>
>>> I am trying to use the new version 201309 or 201402 and now I am getting 
>>> following error./..
>>>
>>> Error creating the Web Proxy specified in the 'system.net/defaultProxy' 
>>> configuration section.
>>>
>>> I tried adding full trust in System.web in configuration section. but 
>>> still no use... not sure whats wrong?
>>>
>>>
>>> On Wednesday, April 30, 2014 4:58:27 PM UTC-5, Mahesh Nerlekar wrote:

 I think this is the error I am getting while downloading campaign 
 performance report or keyword performance report.

 Google.Api.Ads.AdWords.Util.Reports.ReportsException: Report download 
 errors occurred, see errors field for more details.
at 
 Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
  
 downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
 outputStream)
at 
 Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
  
 downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
at 
 Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
  
 reportDefinition, Boolean returnMoneyInMicros, String path)
at 
 Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
  
 reportDefinition, String path)
at Adwords.GetAdwords.DownloadReportFromAdwords(AdWordsUser user, 
 AdsOAuthProviderForApplications oAuth2Provider) in \\ghosn01b\nerlekma$\My 
 Documents\Visual Studio 2012\Projects\Adwords\AdWords\GetAdwords.cs:line 
 178



 and here is the code I am using for it...



  ReportDefinition definition = CreateReportDefinition();

 user.OAuthProvider = oAuth2Provider;

 //loop through all the accounts we got from database 
 ga_config and download a file for each account.
 for (int i = 0; i < NoOfAccounts; i++)
 {
 (user.Config as AdWordsAppConfig).ClientCustomerId 
 = AccountIds[i].ToString();  
 fileName = AccountIds[i].ToString(); //+ "_" + 
  DateTime.Today.AddDays(Convert.ToInt16(-1)).ToString("-MM-dd");
 filePath = downloadFolderPath + "\\" + fileName;
 try
 {
 (user.Config as 
 AdWordsAppConfig).DeveloperToken = 
 Properties.Settings.Default.DeveloperToken;
 ReportUtilities utilities = new 
 ReportUtilities(user);
 utilities.User.OAuthProvider = oAuth2Provider;
 utilities.ReportVersion = "v201306";
 utilities.DownloadClientReport(definition, 
 filePath);
 Console.WriteLine("Report was downloaded to 
 '{0}'.", filePath);


 }
 catch (Exception ex)
 {
 Console.WriteLine("Error: Failed to download 
 report. Account ID : {0}. Error: {1}", fileName, ex);
 }

 FileInfo fileToDecompress = new FileInfo(filePath);

 if (fileToDecompress.Exists)
 {
 Decompress(fileToDecompress);
 fileToDecompress.Delete();
 }

 Let me know if you can help.



 On Wed, Apr 30, 2014 at 3:02 PM, Ray Tsang (AdWords API Team) <
 adwordsapiadvisor+...@google.com> wrote:

> Mahesh,
>
> Could I trouble you to use the reply to author function to send me the 
> full request/response logs?  Specifically, wher

Re: Password expired error even if I am using OAauth2

2014-05-01 Thread Ray Tsang (AdWords API Team)
Mahesh,

With respect to the error 
"{Google.Api.Ads.AdWords.Util.Reports.ReportDownloadError[1]}" will you be 
able to parse through the object and drill into the actual error and error 
messages itself?

Secondly, the trace log contains gzip contain.  Could I trouble you to turn 
off gzip compression in the App.config?

Thanks,

Ray

On Thursday, May 1, 2014 2:13:31 PM UTC-4, Ray Tsang (AdWords API Team) 
wrote:
>
> Mahesh,
>
> I will need to see the errors field for more details - I need the full 
> request/response log.
> For proxy related settings, you may need to double check the App.config 
> file and proxy settings.
>
> Thanks,
>
> Ray
>
>
> On Thursday, May 1, 2014 12:53:38 PM UTC-4, Mahesh Nerlekar wrote:
>>
>> I am trying to use the new version 201309 or 201402 and now I am getting 
>> following error./..
>>
>> Error creating the Web Proxy specified in the 'system.net/defaultProxy' 
>> configuration section.
>>
>> I tried adding full trust in System.web in configuration section. but 
>> still no use... not sure whats wrong?
>>
>>
>> On Wednesday, April 30, 2014 4:58:27 PM UTC-5, Mahesh Nerlekar wrote:
>>>
>>> I think this is the error I am getting while downloading campaign 
>>> performance report or keyword performance report.
>>>
>>> Google.Api.Ads.AdWords.Util.Reports.ReportsException: Report download 
>>> errors occurred, see errors field for more details.
>>>at 
>>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
>>>  
>>> downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
>>> outputStream)
>>>at 
>>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
>>>  
>>> downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
>>>at 
>>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>>  
>>> reportDefinition, Boolean returnMoneyInMicros, String path)
>>>at 
>>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>>  
>>> reportDefinition, String path)
>>>at Adwords.GetAdwords.DownloadReportFromAdwords(AdWordsUser user, 
>>> AdsOAuthProviderForApplications oAuth2Provider) in \\ghosn01b\nerlekma$\My 
>>> Documents\Visual Studio 2012\Projects\Adwords\AdWords\GetAdwords.cs:line 178
>>>
>>>
>>>
>>> and here is the code I am using for it...
>>>
>>>
>>>
>>>  ReportDefinition definition = CreateReportDefinition();
>>>
>>> user.OAuthProvider = oAuth2Provider;
>>>
>>> //loop through all the accounts we got from database 
>>> ga_config and download a file for each account.
>>> for (int i = 0; i < NoOfAccounts; i++)
>>> {
>>> (user.Config as AdWordsAppConfig).ClientCustomerId = 
>>> AccountIds[i].ToString();  
>>> fileName = AccountIds[i].ToString(); //+ "_" + 
>>>  DateTime.Today.AddDays(Convert.ToInt16(-1)).ToString("-MM-dd");
>>> filePath = downloadFolderPath + "\\" + fileName;
>>> try
>>> {
>>> (user.Config as AdWordsAppConfig).DeveloperToken 
>>> = Properties.Settings.Default.DeveloperToken;
>>> ReportUtilities utilities = new 
>>> ReportUtilities(user);
>>> utilities.User.OAuthProvider = oAuth2Provider;
>>> utilities.ReportVersion = "v201306";
>>> utilities.DownloadClientReport(definition, 
>>> filePath);
>>> Console.WriteLine("Report was downloaded to 
>>> '{0}'.", filePath);
>>>
>>>
>>> }
>>> catch (Exception ex)
>>> {
>>> Console.WriteLine("Error: Failed to download 
>>> report. Account ID : {0}. Error: {1}", fileName, ex);
>>> }
>>>
>>> FileInfo fileToDecompress = new FileInfo(filePath);
>>>
>>> if (fileToDecompress.Exists)
>>> {
>>> Decompress(fileToDecompress);
>>> fileToDecompress.Delete();
>>> }
>>>
>>> Let me know if you can help.
>>>
>>>
>>>
>>> On Wed, Apr 30, 2014 at 3:02 PM, Ray Tsang (AdWords API Team) <
>>> adwordsapiadvisor+...@google.com> wrote:
>>>
 Mahesh,

 Could I trouble you to use the reply to author function to send me the 
 full request/response logs?  Specifically, where exactly are you seeing 
 the 
 error message?

 Thanks,

 Ray


 On Wednesday, April 30, 2014 2:49:17 PM UTC-4, Mahesh Nerlekar wrote:
>
> HI,
>
> I was downloading the reports from Adwords for a few months. Suddenly 
> I am getting an error 
>
> "Logon Failure: the specified account password has expired. "  I 
> refreshed the token and tried again thinking need to refresh the token 
> but 
> still error persist

Re: Password expired error even if I am using OAauth2

2014-05-01 Thread Ray Tsang (AdWords API Team)
Mahesh,

I will need to see the errors field for more details - I need the full 
request/response log.
For proxy related settings, you may need to double check the App.config 
file and proxy settings.

Thanks,

Ray


On Thursday, May 1, 2014 12:53:38 PM UTC-4, Mahesh Nerlekar wrote:
>
> I am trying to use the new version 201309 or 201402 and now I am getting 
> following error./..
>
> Error creating the Web Proxy specified in the 'system.net/defaultProxy' 
> configuration section.
>
> I tried adding full trust in System.web in configuration section. but 
> still no use... not sure whats wrong?
>
>
> On Wednesday, April 30, 2014 4:58:27 PM UTC-5, Mahesh Nerlekar wrote:
>>
>> I think this is the error I am getting while downloading campaign 
>> performance report or keyword performance report.
>>
>> Google.Api.Ads.AdWords.Util.Reports.ReportsException: Report download 
>> errors occurred, see errors field for more details.
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
>>  
>> downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
>> outputStream)
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
>>  
>> downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>  
>> reportDefinition, Boolean returnMoneyInMicros, String path)
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>  
>> reportDefinition, String path)
>>at Adwords.GetAdwords.DownloadReportFromAdwords(AdWordsUser user, 
>> AdsOAuthProviderForApplications oAuth2Provider) in \\ghosn01b\nerlekma$\My 
>> Documents\Visual Studio 2012\Projects\Adwords\AdWords\GetAdwords.cs:line 178
>>
>>
>>
>> and here is the code I am using for it...
>>
>>
>>
>>  ReportDefinition definition = CreateReportDefinition();
>>
>> user.OAuthProvider = oAuth2Provider;
>>
>> //loop through all the accounts we got from database 
>> ga_config and download a file for each account.
>> for (int i = 0; i < NoOfAccounts; i++)
>> {
>> (user.Config as AdWordsAppConfig).ClientCustomerId = 
>> AccountIds[i].ToString();  
>> fileName = AccountIds[i].ToString(); //+ "_" + 
>>  DateTime.Today.AddDays(Convert.ToInt16(-1)).ToString("-MM-dd");
>> filePath = downloadFolderPath + "\\" + fileName;
>> try
>> {
>> (user.Config as AdWordsAppConfig).DeveloperToken 
>> = Properties.Settings.Default.DeveloperToken;
>> ReportUtilities utilities = new 
>> ReportUtilities(user);
>> utilities.User.OAuthProvider = oAuth2Provider;
>> utilities.ReportVersion = "v201306";
>> utilities.DownloadClientReport(definition, 
>> filePath);
>> Console.WriteLine("Report was downloaded to 
>> '{0}'.", filePath);
>>
>>
>> }
>> catch (Exception ex)
>> {
>> Console.WriteLine("Error: Failed to download 
>> report. Account ID : {0}. Error: {1}", fileName, ex);
>> }
>>
>> FileInfo fileToDecompress = new FileInfo(filePath);
>>
>> if (fileToDecompress.Exists)
>> {
>> Decompress(fileToDecompress);
>> fileToDecompress.Delete();
>> }
>>
>> Let me know if you can help.
>>
>>
>>
>> On Wed, Apr 30, 2014 at 3:02 PM, Ray Tsang (AdWords API Team) <
>> adwordsapiadvisor+...@google.com> wrote:
>>
>>> Mahesh,
>>>
>>> Could I trouble you to use the reply to author function to send me the 
>>> full request/response logs?  Specifically, where exactly are you seeing the 
>>> error message?
>>>
>>> Thanks,
>>>
>>> Ray
>>>
>>>
>>> On Wednesday, April 30, 2014 2:49:17 PM UTC-4, Mahesh Nerlekar wrote:

 HI,

 I was downloading the reports from Adwords for a few months. Suddenly I 
 am getting an error 

 "Logon Failure: the specified account password has expired. "  I 
 refreshed the token and tried again thinking need to refresh the token but 
 still error persists.

 Not sure what can be the issue, Any help in this is greatly appreciated.

 Thanks,
 Mahesh Nerlekar.

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

Re: Password expired error even if I am using OAauth2

2014-05-01 Thread Mahesh Nerlekar
I am trying to use the new version 201309 or 201402 and now I am getting 
following error./..

Error creating the Web Proxy specified in the 'system.net/defaultProxy' 
configuration section.

I tried adding full trust in System.web in configuration section. but still 
no use... not sure whats wrong?


On Wednesday, April 30, 2014 4:58:27 PM UTC-5, Mahesh Nerlekar wrote:
>
> I think this is the error I am getting while downloading campaign 
> performance report or keyword performance report.
>
> Google.Api.Ads.AdWords.Util.Reports.ReportsException: Report download 
> errors occurred, see errors field for more details.
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
>  
> downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
> outputStream)
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
>  
> downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T 
> reportDefinition, Boolean returnMoneyInMicros, String path)
>at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T 
> reportDefinition, String path)
>at Adwords.GetAdwords.DownloadReportFromAdwords(AdWordsUser user, 
> AdsOAuthProviderForApplications oAuth2Provider) in \\ghosn01b\nerlekma$\My 
> Documents\Visual Studio 2012\Projects\Adwords\AdWords\GetAdwords.cs:line 178
>
>
>
> and here is the code I am using for it...
>
>
>
>  ReportDefinition definition = CreateReportDefinition();
>
> user.OAuthProvider = oAuth2Provider;
>
> //loop through all the accounts we got from database 
> ga_config and download a file for each account.
> for (int i = 0; i < NoOfAccounts; i++)
> {
> (user.Config as AdWordsAppConfig).ClientCustomerId = 
> AccountIds[i].ToString();  
> fileName = AccountIds[i].ToString(); //+ "_" + 
>  DateTime.Today.AddDays(Convert.ToInt16(-1)).ToString("-MM-dd");
> filePath = downloadFolderPath + "\\" + fileName;
> try
> {
> (user.Config as AdWordsAppConfig).DeveloperToken = 
> Properties.Settings.Default.DeveloperToken;
> ReportUtilities utilities = new 
> ReportUtilities(user);
> utilities.User.OAuthProvider = oAuth2Provider;
> utilities.ReportVersion = "v201306";
> utilities.DownloadClientReport(definition, 
> filePath);
> Console.WriteLine("Report was downloaded to 
> '{0}'.", filePath);
>
>
> }
> catch (Exception ex)
> {
> Console.WriteLine("Error: Failed to download 
> report. Account ID : {0}. Error: {1}", fileName, ex);
> }
>
> FileInfo fileToDecompress = new FileInfo(filePath);
>
> if (fileToDecompress.Exists)
> {
> Decompress(fileToDecompress);
> fileToDecompress.Delete();
> }
>
> Let me know if you can help.
>
>
>
> On Wed, Apr 30, 2014 at 3:02 PM, Ray Tsang (AdWords API Team) <
> adwordsapiadvisor+...@google.com> wrote:
>
>> Mahesh,
>>
>> Could I trouble you to use the reply to author function to send me the 
>> full request/response logs?  Specifically, where exactly are you seeing the 
>> error message?
>>
>> Thanks,
>>
>> Ray
>>
>>
>> On Wednesday, April 30, 2014 2:49:17 PM UTC-4, Mahesh Nerlekar wrote:
>>>
>>> HI,
>>>
>>> I was downloading the reports from Adwords for a few months. Suddenly I 
>>> am getting an error 
>>>
>>> "Logon Failure: the specified account password has expired. "  I 
>>> refreshed the token and tried again thinking need to refresh the token but 
>>> still error persists.
>>>
>>> Not sure what can be the issue, Any help in this is greatly appreciated.
>>>
>>> Thanks,
>>> Mahesh Nerlekar.
>>>
>>  -- 
>> -- 
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>> 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 a topic in the 
>> Google Groups "AdWords API Forum" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/adwords-api/ZRv2dSH-5qE/un

Re: Password expired error even if I am using OAauth2

2014-04-30 Thread Mahesh Nerlekar
I think this is the error I am getting while downloading campaign
performance report or keyword performance report.

Google.Api.Ads.AdWords.Util.Reports.ReportsException: Report download
errors occurred, see errors field for more details.
   at
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream
outputStream)
   at
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
   at
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
reportDefinition, Boolean returnMoneyInMicros, String path)
   at
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
reportDefinition, String path)
   at Adwords.GetAdwords.DownloadReportFromAdwords(AdWordsUser user,
AdsOAuthProviderForApplications oAuth2Provider) in \\ghosn01b\nerlekma$\My
Documents\Visual Studio 2012\Projects\Adwords\AdWords\GetAdwords.cs:line 178



and here is the code I am using for it...



 ReportDefinition definition = CreateReportDefinition();

user.OAuthProvider = oAuth2Provider;

//loop through all the accounts we got from database
ga_config and download a file for each account.
for (int i = 0; i < NoOfAccounts; i++)
{
(user.Config as AdWordsAppConfig).ClientCustomerId =
AccountIds[i].ToString();
fileName = AccountIds[i].ToString(); //+ "_" +
 DateTime.Today.AddDays(Convert.ToInt16(-1)).ToString("-MM-dd");
filePath = downloadFolderPath + "\\" + fileName;
try
{
(user.Config as AdWordsAppConfig).DeveloperToken =
Properties.Settings.Default.DeveloperToken;
ReportUtilities utilities = new
ReportUtilities(user);
utilities.User.OAuthProvider = oAuth2Provider;
utilities.ReportVersion = "v201306";
utilities.DownloadClientReport(definition,
filePath);
Console.WriteLine("Report was downloaded to
'{0}'.", filePath);


}
catch (Exception ex)
{
Console.WriteLine("Error: Failed to download
report. Account ID : {0}. Error: {1}", fileName, ex);
}

FileInfo fileToDecompress = new FileInfo(filePath);

if (fileToDecompress.Exists)
{
Decompress(fileToDecompress);
fileToDecompress.Delete();
}

Let me know if you can help.



On Wed, Apr 30, 2014 at 3:02 PM, Ray Tsang (AdWords API Team) <
adwordsapiadvisor+...@google.com> wrote:

> Mahesh,
>
> Could I trouble you to use the reply to author function to send me the
> full request/response logs?  Specifically, where exactly are you seeing the
> error message?
>
> Thanks,
>
> Ray
>
>
> On Wednesday, April 30, 2014 2:49:17 PM UTC-4, Mahesh Nerlekar wrote:
>>
>> HI,
>>
>> I was downloading the reports from Adwords for a few months. Suddenly I
>> am getting an error
>>
>> "Logon Failure: the specified account password has expired. "  I
>> refreshed the token and tried again thinking need to refresh the token but
>> still error persists.
>>
>> Not sure what can be the issue, Any help in this is greatly appreciated.
>>
>> Thanks,
>> Mahesh Nerlekar.
>>
>  --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 a topic in the
> Google Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/adwords-api/ZRv2dSH-5qE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> adwords-api+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks,
Mahesh Nerlekar
BI Development Manager
Brady Corporation
262-416-7227

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

Re: Password expired error even if I am using OAauth2

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

Could I trouble you to use the reply to author function to send me the full 
request/response logs?  Specifically, where exactly are you seeing the 
error message?

Thanks,

Ray

On Wednesday, April 30, 2014 2:49:17 PM UTC-4, Mahesh Nerlekar wrote:
>
> HI,
>
> I was downloading the reports from Adwords for a few months. Suddenly I am 
> getting an error 
>
> "Logon Failure: the specified account password has expired. "  I refreshed 
> the token and tried again thinking need to refresh the token but still 
> error persists.
>
> Not sure what can be the issue, Any help in this is greatly appreciated.
>
> Thanks,
> Mahesh Nerlekar.
>

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