Re: How to download named report C#

2017-12-19 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
Hello, 

That's right. Through the AdWords API, it is not possible to access the 
report generated through the web interface. You may refer to this guide 
 on how to 
generate reports through the API.

Regards,
Bharani, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0ad368b7-9b16-448c-922b-9e9cbb7b763f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to download named report C#

2017-12-19 Thread reprise . walmart
Is it still the case that If a report is made via UI that It wont be 
possible to access with the API ?

On Tuesday, July 17, 2012 at 7:16:07 AM UTC-4, Dorian Kind wrote:
>
> You probably know this, but if the reports were originally defined in the 
> UI, they will not be available via the API. Apart from that, I can't offer 
> any help but I'd recommend using ad hoc reports instead of the 
> ReportDefinitionService (which will be deprecated anyway).
>
> Cheers
>
> On Monday, July 16, 2012 8:48:00 PM UTC+2, road11 wrote:
>>
>> Using the C# v201109_1 code samples as a model, I'm trying to download 
>> one of our many previously defined and named reports. Here's the code that 
>> Google gave us to get our report definitions that isn't working (assuming a 
>> valid AdwordsUser object)...
>>
>>
>>   ReportDefinitionService reportDefinitionService = 
>> (ReportDefinitionService) user.GetService(
>>   AdWordsService.v201109_1.ReportDefinitionService);
>>  
>>   // Create the selector.
>>   ReportDefinitionSelector selector = new ReportDefinitionSelector();
>>  
>>   try {
>> // Get all report definitions.
>> ReportDefinitionPage page = reportDefinitionService.get(selector);
>>  
>> // Display report definitions.
>> if (page != null && page.entries != null && page.entries.Length > 0) 
>> {
>>   foreach (ReportDefinition reportDefinition in page.entries) {
>> writer.WriteLine("ReportDefinition with name \"{0}\" and id 
>> \"{1}\" was found.",
>> reportDefinition.reportName, reportDefinition.id);
>>   }
>> } else {
>>   writer.WriteLine("No report definitions were found.");
>> }
>>  
>>   } catch (Exception ex) {
>> throw new System.ApplicationException("Failed to retrieve report 
>> definitions.", ex);
>>   }
>>
>>
>> ...however, this code keeps telling me that page.entries is null. We've got 
>> at least 1400 named reports defined in this Google Adwords account. How is 
>> it possible that this code can find none of them? I thought the selector 
>> might be the problem, but the ReportDefinitionSelector doesn't even have a 
>> fields property, so that can't be the issue. 
>>
>>
>> I would be most grateful if someone could post a (working) C# example of how 
>> to get a list of available reports and how to download a single named report 
>> from an Adwords account.
>>
>>
>> Thank you in advance.
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a58d50fc-5cd6-4c48-b543-f441db997a8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to download named report C#

2012-08-07 Thread Kevin Winter
Hi Ro,
  Yes, the object has been removed from the WSDL, but all the client 
libraries have added support regardless.  Some are using a patched version 
from v201109_1, some are using the XSD directly (with generated classes). 
 If the example in the library does it that way, it should be safe to use.

- Kevin Winter
AdWords API Team

On Monday, August 6, 2012 4:20:46 PM UTC-4, Ro wrote:
>
> Hey Kevin,
>
> I saw in the example that there is a use of *ReportDefinition* - If I use 
> this object it still free (rate wise) as the adhoc reports?
>
> Isn't it a part of the *ReportDefinitionService*, which soon will be shut 
> off?  
>
> Looking forward for your reply!
>
> Best,
>
> Ro
>
>  
>  
>  
>
> On Tuesday, July 24, 2012 4:50:05 PM UTC-4, Kevin Winter wrote:
>
>> Hi Eric,
>>   Here's the DotNet client library example for downloading a Criteria 
>> Report via AdHoc reports: 
>> http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/examples/adwords/csharp/v201206/Reporting/DownloadCriteriaReport.cs
>>
>> Please note that you can optionally use AWQL to download reports now too 
>> (which is even easier): 
>> https://developers.google.com/adwords/api/docs/guides/awql
>> *
>> *
>> - Kevin Winter
>> AdWords API Team
>>
>> On Wednesday, July 18, 2012 6:05:16 AM UTC-4, Dorian Kind wrote:
>>>
>>> Hi Eric,
>>>
>>> I have absolutely zero knowledge of C#, but this link might help you to 
>>> get a general idea about ad hoc reports: <
>>> https://developers.google.com/adwords/api/docs/guides/reporting>
>>> It's basically a synchronous HTTP request with your report definition as 
>>> data, returning the desired report.
>>>
>>> Hope this helps,
>>> Dorian
>>>
>>> On Tuesday, July 17, 2012 2:11:04 PM UTC+2, road11 wrote:

 Thank you, Dorian. No, I didn't know that. I've been slinging Microsoft 
 code for nearly 20 years, but still relatively new to the Adwords API with 
 .Net. So I have to create an ad-hoc report with C# and then I can call it 
 by it's id? Might you know of some C# examples where I can see where you 
 do 
 this?

 Thanks in advance for your kind response.

 Eric

 On Tuesday, July 17, 2012 7:16:07 AM UTC-4, Dorian Kind wrote:
>
> You probably know this, but if the reports were originally defined in 
> the UI, they will not be available via the API. Apart from that, I can't 
> offer any help but I'd recommend using ad hoc reports instead of the 
> ReportDefinitionService (which will be deprecated anyway).
>
> Cheers
>
> On Monday, July 16, 2012 8:48:00 PM UTC+2, road11 wrote:
>>
>> Using the C# v201109_1 code samples as a model, I'm trying to 
>> download one of our many previously defined and named reports. Here's 
>> the 
>> code that Google gave us to get our report definitions that isn't 
>> working 
>> (assuming a valid AdwordsUser object)...
>>
>>
>>   ReportDefinitionService reportDefinitionService = 
>> (ReportDefinitionService) user.GetService(
>>   AdWordsService.v201109_1.ReportDefinitionService);
>>  
>>   // Create the selector.
>>   ReportDefinitionSelector selector = new ReportDefinitionSelector();
>>  
>>   try {
>> // Get all report definitions.
>> ReportDefinitionPage page = 
>> reportDefinitionService.get(selector);
>>  
>> // Display report definitions.
>> if (page != null && page.entries != null && page.entries.Length 
>> > 0) {
>>   foreach (ReportDefinition reportDefinition in page.entries) {
>> writer.WriteLine("ReportDefinition with name \"{0}\" and id 
>> \"{1}\" was found.",
>> reportDefinition.reportName, reportDefinition.id);
>>   }
>> } else {
>>   writer.WriteLine("No report definitions were found.");
>> }
>>  
>>   } catch (Exception ex) {
>> throw new System.ApplicationException("Failed to retrieve report 
>> definitions.", ex);
>>   }
>>
>>
>> ...however, this code keeps telling me that page.entries is null. We've 
>> got at least 1400 named reports defined in this Google Adwords account. 
>> How is it possible that this code can find none of them? I thought the 
>> selector might be the problem, but the ReportDefinitionSelector doesn't 
>> even have a fields property, so that can't be the issue. 
>>
>>
>> I would be most grateful if someone could post a (working) C# example of 
>> how to get a list of available reports and how to download a single 
>> named report from an Adwords account.
>>
>>
>> Thank you in advance.
>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=

Re: How to download named report C#

2012-08-06 Thread Ro
Hey Kevin,

I saw in the example that there is a use of *ReportDefinition* - If I use 
this object it still free (rate wise) as the adhoc reports?

Isn't it a part of the *ReportDefinitionService*, which soon will be shut 
off?  

Looking forward for your reply!

Best,

Ro

 
 
 

On Tuesday, July 24, 2012 4:50:05 PM UTC-4, Kevin Winter wrote:

> Hi Eric,
>   Here's the DotNet client library example for downloading a Criteria 
> Report via AdHoc reports: 
> http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/examples/adwords/csharp/v201206/Reporting/DownloadCriteriaReport.cs
>
> Please note that you can optionally use AWQL to download reports now too 
> (which is even easier): 
> https://developers.google.com/adwords/api/docs/guides/awql
> *
> *
> - Kevin Winter
> AdWords API Team
>
> On Wednesday, July 18, 2012 6:05:16 AM UTC-4, Dorian Kind wrote:
>>
>> Hi Eric,
>>
>> I have absolutely zero knowledge of C#, but this link might help you to 
>> get a general idea about ad hoc reports: <
>> https://developers.google.com/adwords/api/docs/guides/reporting>
>> It's basically a synchronous HTTP request with your report definition as 
>> data, returning the desired report.
>>
>> Hope this helps,
>> Dorian
>>
>> On Tuesday, July 17, 2012 2:11:04 PM UTC+2, road11 wrote:
>>>
>>> Thank you, Dorian. No, I didn't know that. I've been slinging Microsoft 
>>> code for nearly 20 years, but still relatively new to the Adwords API with 
>>> .Net. So I have to create an ad-hoc report with C# and then I can call it 
>>> by it's id? Might you know of some C# examples where I can see where you do 
>>> this?
>>>
>>> Thanks in advance for your kind response.
>>>
>>> Eric
>>>
>>> On Tuesday, July 17, 2012 7:16:07 AM UTC-4, Dorian Kind wrote:

 You probably know this, but if the reports were originally defined in 
 the UI, they will not be available via the API. Apart from that, I can't 
 offer any help but I'd recommend using ad hoc reports instead of the 
 ReportDefinitionService (which will be deprecated anyway).

 Cheers

 On Monday, July 16, 2012 8:48:00 PM UTC+2, road11 wrote:
>
> Using the C# v201109_1 code samples as a model, I'm trying to download 
> one of our many previously defined and named reports. Here's the code 
> that 
> Google gave us to get our report definitions that isn't working (assuming 
> a 
> valid AdwordsUser object)...
>
>
>   ReportDefinitionService reportDefinitionService = 
> (ReportDefinitionService) user.GetService(
>   AdWordsService.v201109_1.ReportDefinitionService);
>  
>   // Create the selector.
>   ReportDefinitionSelector selector = new ReportDefinitionSelector();
>  
>   try {
> // Get all report definitions.
> ReportDefinitionPage page = reportDefinitionService.get(selector);
>  
> // Display report definitions.
> if (page != null && page.entries != null && page.entries.Length > 
> 0) {
>   foreach (ReportDefinition reportDefinition in page.entries) {
> writer.WriteLine("ReportDefinition with name \"{0}\" and id 
> \"{1}\" was found.",
> reportDefinition.reportName, reportDefinition.id);
>   }
> } else {
>   writer.WriteLine("No report definitions were found.");
> }
>  
>   } catch (Exception ex) {
> throw new System.ApplicationException("Failed to retrieve report 
> definitions.", ex);
>   }
>
>
> ...however, this code keeps telling me that page.entries is null. We've 
> got at least 1400 named reports defined in this Google Adwords account. 
> How is it possible that this code can find none of them? I thought the 
> selector might be the problem, but the ReportDefinitionSelector doesn't 
> even have a fields property, so that can't be the issue. 
>
>
> I would be most grateful if someone could post a (working) C# example of 
> how to get a list of available reports and how to download a single named 
> report from an Adwords account.
>
>
> Thank you in advance.
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: How to download named report C#

2012-07-24 Thread Kevin Winter
Hi Eric,
  Here's the DotNet client library example for downloading a Criteria 
Report via AdHoc reports: 
http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/examples/adwords/csharp/v201206/Reporting/DownloadCriteriaReport.cs

Please note that you can optionally use AWQL to download reports now too 
(which is even easier): 
https://developers.google.com/adwords/api/docs/guides/awql
*
*
- Kevin Winter
AdWords API Team

On Wednesday, July 18, 2012 6:05:16 AM UTC-4, Dorian Kind wrote:
>
> Hi Eric,
>
> I have absolutely zero knowledge of C#, but this link might help you to 
> get a general idea about ad hoc reports: <
> https://developers.google.com/adwords/api/docs/guides/reporting>
> It's basically a synchronous HTTP request with your report definition as 
> data, returning the desired report.
>
> Hope this helps,
> Dorian
>
> On Tuesday, July 17, 2012 2:11:04 PM UTC+2, road11 wrote:
>>
>> Thank you, Dorian. No, I didn't know that. I've been slinging Microsoft 
>> code for nearly 20 years, but still relatively new to the Adwords API with 
>> .Net. So I have to create an ad-hoc report with C# and then I can call it 
>> by it's id? Might you know of some C# examples where I can see where you do 
>> this?
>>
>> Thanks in advance for your kind response.
>>
>> Eric
>>
>> On Tuesday, July 17, 2012 7:16:07 AM UTC-4, Dorian Kind wrote:
>>>
>>> You probably know this, but if the reports were originally defined in 
>>> the UI, they will not be available via the API. Apart from that, I can't 
>>> offer any help but I'd recommend using ad hoc reports instead of the 
>>> ReportDefinitionService (which will be deprecated anyway).
>>>
>>> Cheers
>>>
>>> On Monday, July 16, 2012 8:48:00 PM UTC+2, road11 wrote:

 Using the C# v201109_1 code samples as a model, I'm trying to download 
 one of our many previously defined and named reports. Here's the code that 
 Google gave us to get our report definitions that isn't working (assuming 
 a 
 valid AdwordsUser object)...


   ReportDefinitionService reportDefinitionService = 
 (ReportDefinitionService) user.GetService(
   AdWordsService.v201109_1.ReportDefinitionService);
  
   // Create the selector.
   ReportDefinitionSelector selector = new ReportDefinitionSelector();
  
   try {
 // Get all report definitions.
 ReportDefinitionPage page = reportDefinitionService.get(selector);
  
 // Display report definitions.
 if (page != null && page.entries != null && page.entries.Length > 
 0) {
   foreach (ReportDefinition reportDefinition in page.entries) {
 writer.WriteLine("ReportDefinition with name \"{0}\" and id 
 \"{1}\" was found.",
 reportDefinition.reportName, reportDefinition.id);
   }
 } else {
   writer.WriteLine("No report definitions were found.");
 }
  
   } catch (Exception ex) {
 throw new System.ApplicationException("Failed to retrieve report 
 definitions.", ex);
   }


 ...however, this code keeps telling me that page.entries is null. We've 
 got at least 1400 named reports defined in this Google Adwords account. 
 How is it possible that this code can find none of them? I thought the 
 selector might be the problem, but the ReportDefinitionSelector doesn't 
 even have a fields property, so that can't be the issue. 


 I would be most grateful if someone could post a (working) C# example of 
 how to get a list of available reports and how to download a single named 
 report from an Adwords account.


 Thank you in advance.



-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: How to download named report C#

2012-07-18 Thread Dorian Kind
Hi Eric,

I have absolutely zero knowledge of C#, but this link might help you to get 
a general idea about ad hoc reports: 

It's basically a synchronous HTTP request with your report definition as 
data, returning the desired report.

Hope this helps,
Dorian

On Tuesday, July 17, 2012 2:11:04 PM UTC+2, road11 wrote:
>
> Thank you, Dorian. No, I didn't know that. I've been slinging Microsoft 
> code for nearly 20 years, but still relatively new to the Adwords API with 
> .Net. So I have to create an ad-hoc report with C# and then I can call it 
> by it's id? Might you know of some C# examples where I can see where you do 
> this?
>
> Thanks in advance for your kind response.
>
> Eric
>
> On Tuesday, July 17, 2012 7:16:07 AM UTC-4, Dorian Kind wrote:
>>
>> You probably know this, but if the reports were originally defined in the 
>> UI, they will not be available via the API. Apart from that, I can't offer 
>> any help but I'd recommend using ad hoc reports instead of the 
>> ReportDefinitionService (which will be deprecated anyway).
>>
>> Cheers
>>
>> On Monday, July 16, 2012 8:48:00 PM UTC+2, road11 wrote:
>>>
>>> Using the C# v201109_1 code samples as a model, I'm trying to download 
>>> one of our many previously defined and named reports. Here's the code that 
>>> Google gave us to get our report definitions that isn't working (assuming a 
>>> valid AdwordsUser object)...
>>>
>>>
>>>   ReportDefinitionService reportDefinitionService = 
>>> (ReportDefinitionService) user.GetService(
>>>   AdWordsService.v201109_1.ReportDefinitionService);
>>>  
>>>   // Create the selector.
>>>   ReportDefinitionSelector selector = new ReportDefinitionSelector();
>>>  
>>>   try {
>>> // Get all report definitions.
>>> ReportDefinitionPage page = reportDefinitionService.get(selector);
>>>  
>>> // Display report definitions.
>>> if (page != null && page.entries != null && page.entries.Length > 
>>> 0) {
>>>   foreach (ReportDefinition reportDefinition in page.entries) {
>>> writer.WriteLine("ReportDefinition with name \"{0}\" and id 
>>> \"{1}\" was found.",
>>> reportDefinition.reportName, reportDefinition.id);
>>>   }
>>> } else {
>>>   writer.WriteLine("No report definitions were found.");
>>> }
>>>  
>>>   } catch (Exception ex) {
>>> throw new System.ApplicationException("Failed to retrieve report 
>>> definitions.", ex);
>>>   }
>>>
>>>
>>> ...however, this code keeps telling me that page.entries is null. We've got 
>>> at least 1400 named reports defined in this Google Adwords account. How is 
>>> it possible that this code can find none of them? I thought the selector 
>>> might be the problem, but the ReportDefinitionSelector doesn't even have a 
>>> fields property, so that can't be the issue. 
>>>
>>>
>>> I would be most grateful if someone could post a (working) C# example of 
>>> how to get a list of available reports and how to download a single named 
>>> report from an Adwords account.
>>>
>>>
>>> Thank you in advance.
>>>
>>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: How to download named report C#

2012-07-17 Thread road11
Thank you, Dorian. No, I didn't know that. I've been slinging Microsoft 
code for nearly 20 years, but still relatively new to the Adwords API with 
.Net. So I have to create an ad-hoc report with C# and then I can call it 
by it's id? Might you know of some C# examples where I can see where you do 
this?

Thanks in advance for your kind response.

Eric

On Tuesday, July 17, 2012 7:16:07 AM UTC-4, Dorian Kind wrote:
>
> You probably know this, but if the reports were originally defined in the 
> UI, they will not be available via the API. Apart from that, I can't offer 
> any help but I'd recommend using ad hoc reports instead of the 
> ReportDefinitionService (which will be deprecated anyway).
>
> Cheers
>
> On Monday, July 16, 2012 8:48:00 PM UTC+2, road11 wrote:
>>
>> Using the C# v201109_1 code samples as a model, I'm trying to download 
>> one of our many previously defined and named reports. Here's the code that 
>> Google gave us to get our report definitions that isn't working (assuming a 
>> valid AdwordsUser object)...
>>
>>
>>   ReportDefinitionService reportDefinitionService = 
>> (ReportDefinitionService) user.GetService(
>>   AdWordsService.v201109_1.ReportDefinitionService);
>>  
>>   // Create the selector.
>>   ReportDefinitionSelector selector = new ReportDefinitionSelector();
>>  
>>   try {
>> // Get all report definitions.
>> ReportDefinitionPage page = reportDefinitionService.get(selector);
>>  
>> // Display report definitions.
>> if (page != null && page.entries != null && page.entries.Length > 0) 
>> {
>>   foreach (ReportDefinition reportDefinition in page.entries) {
>> writer.WriteLine("ReportDefinition with name \"{0}\" and id 
>> \"{1}\" was found.",
>> reportDefinition.reportName, reportDefinition.id);
>>   }
>> } else {
>>   writer.WriteLine("No report definitions were found.");
>> }
>>  
>>   } catch (Exception ex) {
>> throw new System.ApplicationException("Failed to retrieve report 
>> definitions.", ex);
>>   }
>>
>>
>> ...however, this code keeps telling me that page.entries is null. We've got 
>> at least 1400 named reports defined in this Google Adwords account. How is 
>> it possible that this code can find none of them? I thought the selector 
>> might be the problem, but the ReportDefinitionSelector doesn't even have a 
>> fields property, so that can't be the issue. 
>>
>>
>> I would be most grateful if someone could post a (working) C# example of how 
>> to get a list of available reports and how to download a single named report 
>> from an Adwords account.
>>
>>
>> Thank you in advance.
>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: How to download named report C#

2012-07-17 Thread Dorian Kind
You probably know this, but if the reports were originally defined in the 
UI, they will not be available via the API. Apart from that, I can't offer 
any help but I'd recommend using ad hoc reports instead of the 
ReportDefinitionService (which will be deprecated anyway).

Cheers

On Monday, July 16, 2012 8:48:00 PM UTC+2, road11 wrote:
>
> Using the C# v201109_1 code samples as a model, I'm trying to download one 
> of our many previously defined and named reports. Here's the code that 
> Google gave us to get our report definitions that isn't working (assuming a 
> valid AdwordsUser object)...
>
>
>   ReportDefinitionService reportDefinitionService = 
> (ReportDefinitionService) user.GetService(
>   AdWordsService.v201109_1.ReportDefinitionService);
>  
>   // Create the selector.
>   ReportDefinitionSelector selector = new ReportDefinitionSelector();
>  
>   try {
> // Get all report definitions.
> ReportDefinitionPage page = reportDefinitionService.get(selector);
>  
> // Display report definitions.
> if (page != null && page.entries != null && page.entries.Length > 0) {
>   foreach (ReportDefinition reportDefinition in page.entries) {
> writer.WriteLine("ReportDefinition with name \"{0}\" and id 
> \"{1}\" was found.",
> reportDefinition.reportName, reportDefinition.id);
>   }
> } else {
>   writer.WriteLine("No report definitions were found.");
> }
>  
>   } catch (Exception ex) {
> throw new System.ApplicationException("Failed to retrieve report 
> definitions.", ex);
>   }
>
>
> ...however, this code keeps telling me that page.entries is null. We've got 
> at least 1400 named reports defined in this Google Adwords account. How is it 
> possible that this code can find none of them? I thought the selector might 
> be the problem, but the ReportDefinitionSelector doesn't even have a fields 
> property, so that can't be the issue. 
>
>
> I would be most grateful if someone could post a (working) C# example of how 
> to get a list of available reports and how to download a single named report 
> from an Adwords account.
>
>
> Thank you in advance.
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


How to download named report C#

2012-07-16 Thread road11
Using the C# v201109_1 code samples as a model, I'm trying to download one 
of our many previously defined and named reports. Here's the code that 
Google gave us to get our report definitions that isn't working (assuming a 
valid AdwordsUser object)...


  ReportDefinitionService reportDefinitionService = 
(ReportDefinitionService) user.GetService(
  AdWordsService.v201109_1.ReportDefinitionService);
 
  // Create the selector.
  ReportDefinitionSelector selector = new ReportDefinitionSelector();
 
  try {
// Get all report definitions.
ReportDefinitionPage page = reportDefinitionService.get(selector);
 
// Display report definitions.
if (page != null && page.entries != null && page.entries.Length > 0) {
  foreach (ReportDefinition reportDefinition in page.entries) {
writer.WriteLine("ReportDefinition with name \"{0}\" and id \"{1}\" 
was found.",
reportDefinition.reportName, reportDefinition.id);
  }
} else {
  writer.WriteLine("No report definitions were found.");
}
 
  } catch (Exception ex) {
throw new System.ApplicationException("Failed to retrieve report 
definitions.", ex);
  }


...however, this code keeps telling me that page.entries is null. We've got at 
least 1400 named reports defined in this Google Adwords account. How is it 
possible that this code can find none of them? I thought the selector might be 
the problem, but the ReportDefinitionSelector doesn't even have a fields 
property, so that can't be the issue. 


I would be most grateful if someone could post a (working) C# example of how to 
get a list of available reports and how to download a single named report from 
an Adwords account.


Thank you in advance.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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