Password expired error even if I am using OAauth2

80 views
Skip to first unread message

Mahesh Nerlekar

unread,
Apr 30, 2014, 2:49:17 PM4/30/14
to adwor...@googlegroups.com
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.

Ray Tsang (AdWords API Team)

unread,
Apr 30, 2014, 4:02:06 PM4/30/14
to adwor...@googlegroups.com
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

Mahesh Nerlekar

unread,
Apr 30, 2014, 5:58:27 PM4/30/14
to adwordsapi...@google.com, adwor...@googlegroups.com
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("yyyy-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.



--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Mahesh Nerlekar
BI Development Manager
Brady Corporation

Mahesh Nerlekar

unread,
May 1, 2014, 12:53:38 PM5/1/14
to adwor...@googlegroups.com, adwordsapi...@google.com
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?

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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ray Tsang (AdWords API Team)

unread,
May 1, 2014, 2:13:31 PM5/1/14
to adwor...@googlegroups.com, adwordsapi...@google.com
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

Ray Tsang (AdWords API Team)

unread,
May 1, 2014, 6:43:32 PM5/1/14
to adwor...@googlegroups.com, adwordsapi...@google.com
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

Ray Tsang (AdWords API Team)

unread,
May 2, 2014, 11:11:52 AM5/2/14
to adwor...@googlegroups.com, adwordsapi...@google.com
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,

Mahesh Nerlekar

unread,
May 5, 2014, 6:51:41 PM5/5/14
to adwor...@googlegroups.com, adwordsapi...@google.com
I sent you the MCC Id and customerId. Please let me know if you can help. Any help will be really appreciated.
Ray


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...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ray Tsang (AdWords API Team)

unread,
May 6, 2014, 11:45:09 AM5/6/14
to adwor...@googlegroups.com, adwordsapi...@google.com
Mahesh,

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

Thanks,

Ray

Ray Tsang (AdWords API Team)

unread,
May 6, 2014, 12:05:36 PM5/6/14
to adwor...@googlegroups.com, adwordsapi...@google.com
Mahesh,

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

Thanks,

Ray
Reply all
Reply to author
Forward
0 new messages