Error recived report AdWordsAPI

2016-04-25 Thread Владимир Шангеев
Hello, when I try to send request I got a error:
Account: 725-468-
error recived report:  Google.Api.Ads.Common.Lib.AdsOAuthException: Failed 
to refresh access token.
{
  "error" : "invalid_grant"
}

For Update refresh_tokien I have used 
"https://developers.google.com/oauthplayground;


I've generate new refresh_tokien, but my problem keep.

What I have to do? 

Thanks


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4857b21f-0161-4a88-a928-c5f0895223b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client information, FieldPath:

2014-12-25 Thread Владимир Шангеев
*1. Настройки:*
  AdWordsApi
add key=UserAgent value=AdWordsApi/
add key=DeveloperToken value=Х/
add key=ХХХ-ХХХ-/
add key='AuthorizationMethod' value='OAuth2' /
add key='OAuth2ClientId' 
value='ХХ-ХХХ-.apps.googleusercontent.com' /
add key='OAuth2ClientSecret' value='Х' /
add key='OAuth2RefreshToken' value='Х' 
/
  /AdWordsApi

*2. Выполняется:*

 private void Start_Click(object sender, EventArgs e)
 {
 AdWordsUser user = new AdWordsUser();
 msg.Text = msg.Text + user.Config.OAuth2RefreshToken.ToString() + 
 Environment.NewLine;
 //Запрос отчета
 try
 {
 string query = @SELECT AccountDescriptiveName, CampaignName, Clicks FROM 
 CAMPAIGN_PERFORMANCE_REPORT WHERE Date = '2014.12.24';
 ReportUtilities utilities = new ReportUtilities(user, v201409, query,
 DownloadFormat.GZIPPED_CSV.ToString());
 using (ReportResponse response = utilities.GetResponse())
 {
 response.Save(D:\\testReport.csv);
 }
 int a = 0;
 }
 catch (Exception ex)
 {
 msg.Text = msg.Text + ex.ToString() + Environment.NewLine;
 }
 }



* 3. ReportUtilities utilities = new ReportUtilities(user, v201409, 
query, DownloadFormat.GZIPPED_CSV.ToString());  Возвращает ошибку:*

 Error: ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client 
 information, FieldPath: 
  --- System.Net.WebException: Удаленный сервер возвратил ошибку: (400) 
 Недопустимый запрос.
в System.Net.HttpWebRequest.GetResponse()
в 
 Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReport(String 
 downloadUrl, String postBody)
--- Конец трассировки внутреннего стека исключений ---
в 
 Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReport(String 
 downloadUrl, String postBody)
в Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.GetReport()
в Google.Api.Ads.Common.Util.Reports.AdsReportUtilities.GetResponse()
в AdWordsApi.AdWordsApi.Start_Click(Object sender, EventArgs e) в 
 D:\Work\PR\AdWordsApi\AdWordsApi\AdWordsApi.cs:строка 37


В чем ошибка? Где-то должно быть прописано поле FieldPath?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/eb0783fb-a6ce-4200-9597-6cf2acccbbfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client information, FieldPath:

2014-12-25 Thread Владимир Шангеев


 Судя по всему, вы не указываете ClientCustomerId. Нужно указать ID 
 аккаунта, для которого запрашивается отчет.


Извините, пересмотрев настройки обнаружил, что не верно указал add 
key=ХХХ-ХХХ-/. 
Должно быть add key=ClientCustomerId value=ХХХ-ХХХ-/

Спасибо за ответ. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/89144057-f07d-43e0-af06-6ea84b36226c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.