Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdWords.Examples.CSharp.v201809.ParallelReportDownload Class Reference

This code example runs a report for every advertiser account under a given manager account, using multiple parallel threads. This code example needs to be run against an AdWords manager account. More...

Inheritance diagram for Google.Api.Ads.AdWords.Examples.CSharp.v201809.ParallelReportDownload:
Google.Api.Ads.AdWords.Examples.CSharp.ExampleBase

Classes

class  FailedReportDownload
 Represents a report download that failed. More...
 
class  ReportDownloadData
 A data structure to hold data specific for a particular report download thread. More...
 
class  SuccessfulReportDownload
 Represents a report that was successfully downloaded. More...
 

Public Member Functions

void Run (AdWordsUser user, string downloadFolder)
 Runs the code example. More...
 

Static Public Member Functions

static void Main (string[] args)
 Main method, to run this code example as a standalone application. More...
 
static List< long > GetDescendantAdvertiserAccounts (AdWordsUser user)
 Gets the list of all descendant advertiser accounts under the manager account. More...
 

Properties

override string Description [get]
 Returns a description about the code example. More...
 
- Properties inherited from Google.Api.Ads.AdWords.Examples.CSharp.ExampleBase
abstract string Description [get]
 Returns a description about the code example. More...
 

Detailed Description

This code example runs a report for every advertiser account under a given manager account, using multiple parallel threads. This code example needs to be run against an AdWords manager account.

Member Function Documentation

static List<long> Google.Api.Ads.AdWords.Examples.CSharp.v201809.ParallelReportDownload.GetDescendantAdvertiserAccounts ( AdWordsUser  user)
inlinestatic

Gets the list of all descendant advertiser accounts under the manager account.

Parameters
userThe AdWords user.
Returns
A list of customer IDs for descendant advertiser accounts.

References Google.Api.Ads.AdWords.v201809.ManagedCustomerPage.entries, Google.Api.Ads.Common.Lib.AdsUser.GetService(), Google.Api.Ads.AdWords.v201809.Selector.paging, Google.Api.Ads.AdWords.v201809.Paging.startIndex, and Google.Api.Ads.AdWords.v201809.Page.totalNumEntries.

static void Google.Api.Ads.AdWords.Examples.CSharp.v201809.ParallelReportDownload.Main ( string[]  args)
inlinestatic

Main method, to run this code example as a standalone application.

Parameters
argsThe command line arguments.
void Google.Api.Ads.AdWords.Examples.CSharp.v201809.ParallelReportDownload.Run ( AdWordsUser  user,
string  downloadFolder 
)
inline

Runs the code example.

Parameters
userThe AdWords user.
downloadFolderThe file to which the report is downloaded.

References Google.Api.Ads.Common.Lib.AdsUser.Config.

Property Documentation

override string Google.Api.Ads.AdWords.Examples.CSharp.v201809.ParallelReportDownload.Description
get

Returns a description about the code example.


The documentation for this class was generated from the following file: