Re: ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client information, FieldPath:
Да, необходимо сделать раздельный запросы к каждому из под-аккаунтов и объеденить результаты на вашей стороне. Активный CID можно поменять во время выполнения, без изменения app.config. Как именно, смотрите в документации на библиотеку (зависит от языка). -Даниил. On Friday, December 26, 2014 6:32:34 PM UTC+3, USS UNITEDSUPPORTSERVICES wrote: > > *Аккаунт Центра клиентов (MCC) *представляет собой зонтичный аккаунт > Google AdWords с несколькими управляемыми аккаунтами. Да у нас под одним > аккаунтом стоятся отчеты по подчиненным аккаунтам. > > Что мы можем сделать, чтобы через API строить такие-же отчеты по 21 > подчиненному аккаунту. Или для этого прийдется получить API на каждый из > подчиненных аккаунтов, в дальнейшем подменять app.config при формировании > отчета? > > пятница, 26 декабря 2014 г., 13:18:53 UTC+3 пользователь Danial Klimkin > написал: >> >> Убедитесь, что clientCustomerId который вы отправляете, не является MCC >> аккаунтом. Отчеты через API доступны только для не-MCC. >> >> >> -Даниил. >> >> >> On Thursday, December 25, 2014 8:22:44 PM UTC+3, USS >> UNITEDSUPPORTSERVICES wrote: >>> >>> А где можно получить примеры отчетов, ошибок сейчас нет, но отчет из >>> примеров приходит пустой. >>> >>> Данные получаю используя главный ClientCustomerId таким запросом, >>> пробовал в скриптах тоже отчет пустой. >>> 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 CampaignName, Clicks, Impressions, Cost FROM CAMPAIGN_PERFORMANCE_REPORT DURING THIS_MONTH"; ReportUtilities utilities = new ReportUtilities(user, "v201409", query, DownloadFormat.CSV.ToString()); using (ReportResponse response = utilities.GetResponse()) { response.Save("D:\\testReport.csv"); } } catch (Exception ex) { msg.Text = msg.Text + ex.ToString() + Environment.NewLine; } } >>> >>> >>> Через интерфейс отчет получаем с данными. Пример приложил. >>> >>> Почему любой отчет через API или скрипты пустой? >>> >>> >>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/5bc98b0f-8b72-4faa-bb21-884a5c047d5c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client information, FieldPath:
*Аккаунт Центра клиентов (MCC) *представляет собой зонтичный аккаунт Google AdWords с несколькими управляемыми аккаунтами. Да у нас под одним аккаунтом стоятся отчеты по подчиненным аккаунтам. Что мы можем сделать, чтобы через API строить такие-же отчеты по 21 подчиненному аккаунту. Или для этого прийдется получить API на каждый из подчиненных аккаунтов, в дальнейшем подменять app.config при формировании отчета? пятница, 26 декабря 2014 г., 13:18:53 UTC+3 пользователь Danial Klimkin написал: > > Убедитесь, что clientCustomerId который вы отправляете, не является MCC > аккаунтом. Отчеты через API доступны только для не-MCC. > > > -Даниил. > > > On Thursday, December 25, 2014 8:22:44 PM UTC+3, USS UNITEDSUPPORTSERVICES > wrote: >> >> А где можно получить примеры отчетов, ошибок сейчас нет, но отчет из >> примеров приходит пустой. >> >> Данные получаю используя главный ClientCustomerId таким запросом, >> пробовал в скриптах тоже отчет пустой. >> >>> 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 CampaignName, Clicks, Impressions, Cost >>> FROM CAMPAIGN_PERFORMANCE_REPORT >>> DURING THIS_MONTH"; >>> ReportUtilities utilities = new ReportUtilities(user, "v201409", query, >>> DownloadFormat.CSV.ToString()); >>> using (ReportResponse response = utilities.GetResponse()) >>> { >>> response.Save("D:\\testReport.csv"); >>> } >>> } >>> catch (Exception ex) >>> { >>> msg.Text = msg.Text + ex.ToString() + Environment.NewLine; >>> } >>> } >> >> >> Через интерфейс отчет получаем с данными. Пример приложил. >> >> Почему любой отчет через API или скрипты пустой? >> >> >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/d8835975-f4fc-48d1-8147-d624b835d8b0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client information, FieldPath:
Убедитесь, что clientCustomerId который вы отправляете, не является MCC аккаунтом. Отчеты через API доступны только для не-MCC. -Даниил. On Thursday, December 25, 2014 8:22:44 PM UTC+3, USS UNITEDSUPPORTSERVICES wrote: > > А где можно получить примеры отчетов, ошибок сейчас нет, но отчет из > примеров приходит пустой. > > Данные получаю используя главный ClientCustomerId таким запросом, > пробовал в скриптах тоже отчет пустой. > >> 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 CampaignName, Clicks, Impressions, Cost >> FROM CAMPAIGN_PERFORMANCE_REPORT >> DURING THIS_MONTH"; >> ReportUtilities utilities = new ReportUtilities(user, "v201409", query, >> DownloadFormat.CSV.ToString()); >> using (ReportResponse response = utilities.GetResponse()) >> { >> response.Save("D:\\testReport.csv"); >> } >> } >> catch (Exception ex) >> { >> msg.Text = msg.Text + ex.ToString() + Environment.NewLine; >> } >> } > > > Через интерфейс отчет получаем с данными. Пример приложил. > > Почему любой отчет через API или скрипты пустой? > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/71dcebf1-526d-4143-a462-646d631d8e25%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client information, FieldPath:
А где можно получить примеры отчетов, ошибок сейчас нет, но отчет из примеров приходит пустой. Данные получаю используя главный ClientCustomerId таким запросом, пробовал в скриптах тоже отчет пустой. > 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 CampaignName, Clicks, Impressions, Cost > FROM CAMPAIGN_PERFORMANCE_REPORT > DURING THIS_MONTH"; > ReportUtilities utilities = new ReportUtilities(user, "v201409", query, > DownloadFormat.CSV.ToString()); > using (ReportResponse response = utilities.GetResponse()) > { > response.Save("D:\\testReport.csv"); > } > } > catch (Exception ex) > { > msg.Text = msg.Text + ex.ToString() + Environment.NewLine; > } > } Через интерфейс отчет получаем с данными. Пример приложил. Почему любой отчет через API или скрипты пустой? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/b34b379e-6c99-42eb-a31c-10a3a744d8cd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. Имя тайм Тип Кампания Частота Один раз Диапазон дат Вчера Даты 24 дек. 2014 г. Аккаунт Кампания Идентификатор клиента Статус кампании Число показов Клики CTR Стоимость скрыто скрыто ХХХ-ХХХ- включено 82 1 1,22% 47,72 скрыто скрыто ХХХ-ХХХ- включено 28 1 3,57% 33,22 скрыто скрыто ХХХ-ХХХ- включено 61 1 1,64% 15,71 скрыто скрыто ХХХ-ХХХ- включено 27 0 0,00% 0 скрыто скрыто ХХХ-ХХХ- включено 583 48 8,23% 1 668,96 скрыто скрыто ХХХ-ХХХ- включено 947 79 8,34% 3 662,31 скрыто скрыто ХХХ-ХХХ- включено 1092 53 4,85% 3 447,04 скрыто скрыто ХХХ-ХХХ- включено 728 45 6,18% 2 371,72 скрыто скрыто ХХХ-ХХХ- включено 493 36 7,30% 2 283,86 скрыто скрыто ХХХ-ХХХ- включено 134 10 7,46% 627,7 скрыто скрыто ХХХ-ХХХ- включено 167 6 3,59% 169,34 скрыто скрыто ХХХ-ХХХ- включено 1 0 0,00% 0 скрыто скрыто ХХХ-ХХХ- включено 221 6 2,71% 309,17 скрыто скрыто ХХХ-ХХХ- включено 592 36 6,08% 1 311,83 скрыто скрыто ХХХ-ХХХ- включено 456 12 2,63% 955,53 скрыто скрыто ХХХ-ХХХ- включено 329 13 3,95% 248,99 скрыто скрыто ХХХ-ХХХ- включено 207 17 8,21% 1 036,45 скрыто скрыто ХХХ-ХХХ- включено 98 5 5,10% 218,99 скрыто скрыто ХХХ-ХХХ- включено 93 2 2,15% 23,68 скрыто скрыто ХХХ-ХХХ- включено 3 0 0,00% 0 скрыто скрыто ХХХ-ХХХ- включено 5 0 0,00% 0 скрыто скрыто ХХХ-ХХХ- включено 20 0 0,00% 0 скрыто скрыто ХХХ-ХХХ- включено 30 0 0,00% 0 скрыто скрыто ХХХ-ХХХ- включено 17 0 0,00% 0 скрыто скрыто ХХХ-ХХХ- включено 1 0 0,00% 0 Итого -- -- -- 6415 371 5,78% 18 432,22
Re: ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client information, FieldPath:
> > Судя по всему, вы не указываете ClientCustomerId. Нужно указать ID > аккаунта, для которого запрашивается отчет. > Извините, пересмотрев настройки обнаружил, что не верно указал . Должно быть Спасибо за ответ. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.
Re: ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client information, FieldPath:
Владимир, добрый день, Судя по всему, вы не указываете ClientCustomerId. Нужно указать ID аккаунта, для которого запрашивается отчет. -Даниил, команда AdWords API. On Wednesday, December 24, 2014 2:56:16 PM UTC+3, Владимир Шангеев wrote: > > *1. Настройки:* > > > > > > > > value='Х' /> > > > *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/17a1a88d-4948-4c60-a343-ae52f8df861d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
ReportDownloadError.INVALID_PARAMETER, Trigger: Missing client information, FieldPath:
*1. Настройки:* *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.