Class SuggestedAdUnit
A read-only suggestion for a new ad unit based on an ad tag that has served 10+ times in the past week for an undefined ad unit.
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class SuggestedAdUnit : IMessage<SuggestedAdUnit>, IEquatable<SuggestedAdUnit>, IDeepCloneable<SuggestedAdUnit>, IBufferMessage, IMessage
Constructors
SuggestedAdUnit()
Declaration
public SuggestedAdUnit()
SuggestedAdUnit(SuggestedAdUnit)
Declaration
public SuggestedAdUnit(SuggestedAdUnit other)
Parameters
| Type | Name | Description |
|---|---|---|
| SuggestedAdUnit | other |
Properties
AdUnitSizes
Output only. Sizes associated with this suggested ad unit.
Declaration
public RepeatedField<AdUnitSize> AdUnitSizes { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<AdUnitSize> |
ExistingCodePath
Output only. Code path of ad units leading up to and including the parent
of the first suggested ad unit. Combined with the new_code_path field,
this represents the full path for the suggested ad unit if approved.
Example:
If a -> b -> c are existing ad units with parent-child relationships, and
the suggested ad unit x is a child of c, the existing_code_path is (a,
b, c). If x is the grandchild of c, the existing_code_path is also (a,
b, c).
Declaration
public RepeatedField<AdUnitParent> ExistingCodePath { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<AdUnitParent> |
HasTargetPlatform
Gets whether the "target_platform" field is set
Declaration
public bool HasTargetPlatform { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasTargetWindow
Gets whether the "target_window" field is set
Declaration
public bool HasTargetWindow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasWeeklyRequestCount
Gets whether the "weekly_request_count" field is set
Declaration
public bool HasWeeklyRequestCount { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Identifier. Resource name of the SuggestedAdUnit.
Format: networks/{network_code}/suggestedAdUnits/{suggested_ad_unit_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NewCodePath
Output only. Path of suggested ad unit codes from the closest existing ancestor ad unit that will all be created as ad units when the suggestion is approved.
Example:
If a -> b -> c are existing ad units with parent-child
relationships, and the suggested ad unit x is a child of c, the
new_code_path is (x).
If x is the grandchild of c, the new_code_path is (y, x)
where y is an ad unit that would be created as the parent ad unit of x (and
the child of c) if the suggestion is approved.
Declaration
public RepeatedField<string> NewCodePath { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<string> |
SuggestedAdUnitName
SuggestedAdUnitName-typed view over the Name resource name property.
Declaration
public SuggestedAdUnitName SuggestedAdUnitName { get; set; }
Property Value
| Type | Description |
|---|---|
| SuggestedAdUnitName |
TargetPlatform
Output only. Target platform for the browser that clicked the underlying ad tag.
Declaration
public TargetPlatformEnum.Types.TargetPlatform TargetPlatform { get; set; }
Property Value
| Type | Description |
|---|---|
| TargetPlatformEnum.Types.TargetPlatform |
TargetWindow
Output only. Target window of the underlying ad tag which will be used in the ad unit if the suggestion is approved.
Declaration
public TargetWindowEnum.Types.TargetWindow TargetWindow { get; set; }
Property Value
| Type | Description |
|---|---|
| TargetWindowEnum.Types.TargetWindow |
WeeklyRequestCount
Output only. Number of times the ad tag has been served in the past week.
Declaration
public long WeeklyRequestCount { get; set; }
Property Value
| Type | Description |
|---|---|
| long |