Show / Hide Table of Contents

Class CreativeTemplateServiceClient

CreativeTemplateService client wrapper, for convenient use.

Inheritance
object
CreativeTemplateServiceClient
CreativeTemplateServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class CreativeTemplateServiceClient
Remarks

Provides methods for handling CreativeTemplate objects.

Properties

DefaultEndpoint

The default endpoint for the CreativeTemplateService service, which is a host of "admanager.googleapis.com" and a port of 443.

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default CreativeTemplateService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default CreativeTemplateService scopes are:

  • https://www.googleapis.com/auth/admanager

GrpcClient

The underlying gRPC CreativeTemplateService client

Declaration
public virtual CreativeTemplateService.CreativeTemplateServiceClient GrpcClient { get; }
Property Value
Type Description
CreativeTemplateService.CreativeTemplateServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

Create()

Synchronously creates a CreativeTemplateServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CreativeTemplateServiceClientBuilder.

Declaration
public static CreativeTemplateServiceClient Create()
Returns
Type Description
CreativeTemplateServiceClient

The created CreativeTemplateServiceClient.

CreateAsync(CancellationToken)

Asynchronously creates a CreativeTemplateServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CreativeTemplateServiceClientBuilder.

Declaration
public static Task<CreativeTemplateServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<CreativeTemplateServiceClient>

The task representing the created CreativeTemplateServiceClient.

GetCreativeTemplate(CreativeTemplateName, CallSettings)

API to retrieve a CreativeTemplate object.

Declaration
public virtual CreativeTemplate GetCreativeTemplate(CreativeTemplateName name, CallSettings callSettings = null)
Parameters
Type Name Description
CreativeTemplateName name

Required. The resource name of the CreativeTemplate. Format: networks/{network_code}/creativeTemplates/{creative_template_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CreativeTemplate

The RPC response.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = CreativeTemplateServiceClient.Create();
// Initialize request argument(s)
CreativeTemplateName name = CreativeTemplateName.FromNetworkCodeCreativeTemplate("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]");
// Make the request
CreativeTemplate response = creativeTemplateServiceClient.GetCreativeTemplate(name);

GetCreativeTemplate(GetCreativeTemplateRequest, CallSettings)

API to retrieve a CreativeTemplate object.

Declaration
public virtual CreativeTemplate GetCreativeTemplate(GetCreativeTemplateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCreativeTemplateRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CreativeTemplate

The RPC response.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = CreativeTemplateServiceClient.Create();
// Initialize request argument(s)
GetCreativeTemplateRequest request = new GetCreativeTemplateRequest
{
    CreativeTemplateName = CreativeTemplateName.FromNetworkCodeCreativeTemplate("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]"),
};
// Make the request
CreativeTemplate response = creativeTemplateServiceClient.GetCreativeTemplate(request);

GetCreativeTemplate(string, CallSettings)

API to retrieve a CreativeTemplate object.

Declaration
public virtual CreativeTemplate GetCreativeTemplate(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the CreativeTemplate. Format: networks/{network_code}/creativeTemplates/{creative_template_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CreativeTemplate

The RPC response.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = CreativeTemplateServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/creativeTemplates/[CREATIVE_TEMPLATE]";
// Make the request
CreativeTemplate response = creativeTemplateServiceClient.GetCreativeTemplate(name);

GetCreativeTemplateAsync(CreativeTemplateName, CallSettings)

API to retrieve a CreativeTemplate object.

Declaration
public virtual Task<CreativeTemplate> GetCreativeTemplateAsync(CreativeTemplateName name, CallSettings callSettings = null)
Parameters
Type Name Description
CreativeTemplateName name

Required. The resource name of the CreativeTemplate. Format: networks/{network_code}/creativeTemplates/{creative_template_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CreativeTemplate>

A Task containing the RPC response.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = await CreativeTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
CreativeTemplateName name = CreativeTemplateName.FromNetworkCodeCreativeTemplate("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]");
// Make the request
CreativeTemplate response = await creativeTemplateServiceClient.GetCreativeTemplateAsync(name);

GetCreativeTemplateAsync(CreativeTemplateName, CancellationToken)

API to retrieve a CreativeTemplate object.

Declaration
public virtual Task<CreativeTemplate> GetCreativeTemplateAsync(CreativeTemplateName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CreativeTemplateName name

Required. The resource name of the CreativeTemplate. Format: networks/{network_code}/creativeTemplates/{creative_template_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CreativeTemplate>

A Task containing the RPC response.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = await CreativeTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
CreativeTemplateName name = CreativeTemplateName.FromNetworkCodeCreativeTemplate("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]");
// Make the request
CreativeTemplate response = await creativeTemplateServiceClient.GetCreativeTemplateAsync(name);

GetCreativeTemplateAsync(GetCreativeTemplateRequest, CallSettings)

API to retrieve a CreativeTemplate object.

Declaration
public virtual Task<CreativeTemplate> GetCreativeTemplateAsync(GetCreativeTemplateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCreativeTemplateRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CreativeTemplate>

A Task containing the RPC response.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = await CreativeTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
GetCreativeTemplateRequest request = new GetCreativeTemplateRequest
{
    CreativeTemplateName = CreativeTemplateName.FromNetworkCodeCreativeTemplate("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]"),
};
// Make the request
CreativeTemplate response = await creativeTemplateServiceClient.GetCreativeTemplateAsync(request);

GetCreativeTemplateAsync(GetCreativeTemplateRequest, CancellationToken)

API to retrieve a CreativeTemplate object.

Declaration
public virtual Task<CreativeTemplate> GetCreativeTemplateAsync(GetCreativeTemplateRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetCreativeTemplateRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CreativeTemplate>

A Task containing the RPC response.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = await CreativeTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
GetCreativeTemplateRequest request = new GetCreativeTemplateRequest
{
    CreativeTemplateName = CreativeTemplateName.FromNetworkCodeCreativeTemplate("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]"),
};
// Make the request
CreativeTemplate response = await creativeTemplateServiceClient.GetCreativeTemplateAsync(request);

GetCreativeTemplateAsync(string, CallSettings)

API to retrieve a CreativeTemplate object.

Declaration
public virtual Task<CreativeTemplate> GetCreativeTemplateAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the CreativeTemplate. Format: networks/{network_code}/creativeTemplates/{creative_template_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CreativeTemplate>

A Task containing the RPC response.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = await CreativeTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/creativeTemplates/[CREATIVE_TEMPLATE]";
// Make the request
CreativeTemplate response = await creativeTemplateServiceClient.GetCreativeTemplateAsync(name);

GetCreativeTemplateAsync(string, CancellationToken)

API to retrieve a CreativeTemplate object.

Declaration
public virtual Task<CreativeTemplate> GetCreativeTemplateAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the CreativeTemplate. Format: networks/{network_code}/creativeTemplates/{creative_template_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CreativeTemplate>

A Task containing the RPC response.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = await CreativeTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/creativeTemplates/[CREATIVE_TEMPLATE]";
// Make the request
CreativeTemplate response = await creativeTemplateServiceClient.GetCreativeTemplateAsync(name);

ListCreativeTemplates(ListCreativeTemplatesRequest, CallSettings)

API to retrieve a list of CreativeTemplate objects.

Declaration
public virtual PagedEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> ListCreativeTemplates(ListCreativeTemplatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCreativeTemplatesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCreativeTemplatesResponse, CreativeTemplate>

A pageable sequence of CreativeTemplate resources.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = CreativeTemplateServiceClient.Create();
// Initialize request argument(s)
ListCreativeTemplatesRequest request = new ListCreativeTemplatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> response = creativeTemplateServiceClient.ListCreativeTemplates(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (CreativeTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCreativeTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CreativeTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CreativeTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCreativeTemplates(NetworkName, string, int?, CallSettings)

API to retrieve a list of CreativeTemplate objects.

Declaration
public virtual PagedEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> ListCreativeTemplates(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of CreativeTemplates. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCreativeTemplatesResponse, CreativeTemplate>

A pageable sequence of CreativeTemplate resources.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = CreativeTemplateServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> response = creativeTemplateServiceClient.ListCreativeTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CreativeTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCreativeTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CreativeTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CreativeTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCreativeTemplates(string, string, int?, CallSettings)

API to retrieve a list of CreativeTemplate objects.

Declaration
public virtual PagedEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> ListCreativeTemplates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of CreativeTemplates. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCreativeTemplatesResponse, CreativeTemplate>

A pageable sequence of CreativeTemplate resources.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = CreativeTemplateServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> response = creativeTemplateServiceClient.ListCreativeTemplates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CreativeTemplate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCreativeTemplatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CreativeTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CreativeTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCreativeTemplatesAsync(ListCreativeTemplatesRequest, CallSettings)

API to retrieve a list of CreativeTemplate objects.

Declaration
public virtual PagedAsyncEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> ListCreativeTemplatesAsync(ListCreativeTemplatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCreativeTemplatesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCreativeTemplatesResponse, CreativeTemplate>

A pageable asynchronous sequence of CreativeTemplate resources.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = await CreativeTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
ListCreativeTemplatesRequest request = new ListCreativeTemplatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> response = creativeTemplateServiceClient.ListCreativeTemplatesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CreativeTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCreativeTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CreativeTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CreativeTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCreativeTemplatesAsync(NetworkName, string, int?, CallSettings)

API to retrieve a list of CreativeTemplate objects.

Declaration
public virtual PagedAsyncEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> ListCreativeTemplatesAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of CreativeTemplates. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCreativeTemplatesResponse, CreativeTemplate>

A pageable asynchronous sequence of CreativeTemplate resources.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = await CreativeTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> response = creativeTemplateServiceClient.ListCreativeTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CreativeTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCreativeTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CreativeTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CreativeTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCreativeTemplatesAsync(string, string, int?, CallSettings)

API to retrieve a list of CreativeTemplate objects.

Declaration
public virtual PagedAsyncEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> ListCreativeTemplatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of CreativeTemplates. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCreativeTemplatesResponse, CreativeTemplate>

A pageable asynchronous sequence of CreativeTemplate resources.

Sample code
// Create client
CreativeTemplateServiceClient creativeTemplateServiceClient = await CreativeTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListCreativeTemplatesResponse, CreativeTemplate> response = creativeTemplateServiceClient.ListCreativeTemplatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CreativeTemplate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCreativeTemplatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeTemplate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CreativeTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CreativeTemplate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

In this article
Back to top Generated by DocFX