Show / Hide Table of Contents

Class AdvertisersResource.AdGroupsResource

The "adGroups" collection of methods.

Inheritance
object
AdvertisersResource.AdGroupsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DisplayVideo.v4
Assembly: Google.Apis.DisplayVideo.v4.dll
Syntax
public class AdvertisersResource.AdGroupsResource

Constructors

AdGroupsResource(IClientService)

Constructs a new resource.

Declaration
public AdGroupsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

TargetingTypes

Gets the TargetingTypes resource.

Declaration
public virtual AdvertisersResource.AdGroupsResource.TargetingTypesResource TargetingTypes { get; }
Property Value
Type Description
AdvertisersResource.AdGroupsResource.TargetingTypesResource

YoutubeAssetTypes

Gets the YoutubeAssetTypes resource.

Declaration
public virtual AdvertisersResource.AdGroupsResource.YoutubeAssetTypesResource YoutubeAssetTypes { get; }
Property Value
Type Description
AdvertisersResource.AdGroupsResource.YoutubeAssetTypesResource

Methods

BulkEditAssignedTargetingOptions(BulkEditAdGroupAssignedTargetingOptionsRequest, long)

Bulk edits targeting options for multiple ad groups. The same set of delete and create requests will be applied to all specified ad groups. Specifically, the operation will delete the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.delete_requests from each ad group, and then create the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.create_requests. Only ad groups under a line item of line_item_type LINE_ITEM_TYPE_DEMAND_GEN are supported for this method.

Declaration
public virtual AdvertisersResource.AdGroupsResource.BulkEditAssignedTargetingOptionsRequest BulkEditAssignedTargetingOptions(BulkEditAdGroupAssignedTargetingOptionsRequest body, long advertiserId)
Parameters
Type Name Description
BulkEditAdGroupAssignedTargetingOptionsRequest body

The body of the request.

long advertiserId

Required. The ID of the advertiser the ad groups belong to.

Returns
Type Description
AdvertisersResource.AdGroupsResource.BulkEditAssignedTargetingOptionsRequest

BulkListAssignedTargetingOptions(long)

Lists assigned targeting options for multiple ad groups across targeting types. Inherited assigned targeting options are not included.

Declaration
public virtual AdvertisersResource.AdGroupsResource.BulkListAssignedTargetingOptionsRequest BulkListAssignedTargetingOptions(long advertiserId)
Parameters
Type Name Description
long advertiserId

Required. The ID of the advertiser the line items belongs to.

Returns
Type Description
AdvertisersResource.AdGroupsResource.BulkListAssignedTargetingOptionsRequest

Create(AdGroup, long)

Creates a new ad group. Returns the newly created ad group if successful.

Declaration
public virtual AdvertisersResource.AdGroupsResource.CreateRequest Create(AdGroup body, long advertiserId)
Parameters
Type Name Description
AdGroup body

The body of the request.

long advertiserId

Output only. The unique ID of the advertiser the ad group belongs to.

Returns
Type Description
AdvertisersResource.AdGroupsResource.CreateRequest

Delete(long, long)

Deletes a AdGroup. Returns error code NOT_FOUND if the ad group does not exist.

Declaration
public virtual AdvertisersResource.AdGroupsResource.DeleteRequest Delete(long advertiserId, long adGroupId)
Parameters
Type Name Description
long advertiserId

Required. The ID of the advertiser this ad group belongs to.

long adGroupId

Required. The ID of the ad group to delete.

Returns
Type Description
AdvertisersResource.AdGroupsResource.DeleteRequest

Get(long, long)

Gets an ad group.

Declaration
public virtual AdvertisersResource.AdGroupsResource.GetRequest Get(long advertiserId, long adGroupId)
Parameters
Type Name Description
long advertiserId

Required. The ID of the advertiser this ad group belongs to.

long adGroupId

Required. The ID of the ad group to fetch.

Returns
Type Description
AdvertisersResource.AdGroupsResource.GetRequest

List(long)

Lists ad groups.

Declaration
public virtual AdvertisersResource.AdGroupsResource.ListRequest List(long advertiserId)
Parameters
Type Name Description
long advertiserId

Required. The ID of the advertiser the ad groups belongs to.

Returns
Type Description
AdvertisersResource.AdGroupsResource.ListRequest

Patch(AdGroup, long, long)

Updates an existing ad group. Returns the updated ad group if successful.

Declaration
public virtual AdvertisersResource.AdGroupsResource.PatchRequest Patch(AdGroup body, long advertiserId, long adGroupId)
Parameters
Type Name Description
AdGroup body

The body of the request.

long advertiserId

Output only. The unique ID of the advertiser the ad group belongs to.

long adGroupId

Output only. The unique ID of the ad group. Assigned by the system.

Returns
Type Description
AdvertisersResource.AdGroupsResource.PatchRequest
In this article
Back to top Generated by DocFX