Class DynamicTargetingKeysResource
The "dynamicTargetingKeys" collection of methods.
Inherited Members
Namespace: Google.Apis.Dfareporting.v4
Assembly: Google.Apis.Dfareporting.v4.dll
Syntax
public class DynamicTargetingKeysResource
Constructors
DynamicTargetingKeysResource(IClientService)
Constructs a new resource.
Declaration
public DynamicTargetingKeysResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(long, long, string, ObjectTypeEnum)
Deletes an existing dynamic targeting key.
Declaration
public virtual DynamicTargetingKeysResource.DeleteRequest Delete(long profileId, long objectId, string name, DynamicTargetingKeysResource.DeleteRequest.ObjectTypeEnum objectType)
Parameters
Type | Name | Description |
---|---|---|
long | profileId | User profile ID associated with this request. |
long | objectId | ID of the object of this dynamic targeting key. This is a required field. |
string | name | Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase. |
DynamicTargetingKeysResource.DeleteRequest.ObjectTypeEnum | objectType | Required. Type of the object of this dynamic targeting key. This is a required field. |
Returns
Type | Description |
---|---|
DynamicTargetingKeysResource.DeleteRequest |
Insert(DynamicTargetingKey, long)
Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.
Declaration
public virtual DynamicTargetingKeysResource.InsertRequest Insert(DynamicTargetingKey body, long profileId)
Parameters
Type | Name | Description |
---|---|---|
DynamicTargetingKey | body | The body of the request. |
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
DynamicTargetingKeysResource.InsertRequest |
List(long)
Retrieves a list of dynamic targeting keys.
Declaration
public virtual DynamicTargetingKeysResource.ListRequest List(long profileId)
Parameters
Type | Name | Description |
---|---|---|
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
DynamicTargetingKeysResource.ListRequest |