Class AdReviewCenterAd.Builder (0.52.0)

public static final class AdReviewCenterAd.Builder extends GeneratedMessage.Builder<AdReviewCenterAd.Builder> implements AdReviewCenterAdOrBuilder

Represents an ad that can be acted on or viewed in the Ad Review Center. AdReviewCenterAd.

Protobuf type google.ads.admanager.v1.AdReviewCenterAd

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllManualReviewStatuses(Iterable<? extends ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus> values)

public AdReviewCenterAd.Builder addAllManualReviewStatuses(Iterable<? extends ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus> values)

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus>

The manualReviewStatuses to add.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

addAllManualReviewStatusesValue(Iterable<Integer> values)

public AdReviewCenterAd.Builder addAllManualReviewStatusesValue(Iterable<Integer> values)

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for manualReviewStatuses to add.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

addManualReviewStatuses(ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus value)

public AdReviewCenterAd.Builder addManualReviewStatuses(ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus value)

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus

The manualReviewStatuses to add.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

addManualReviewStatusesValue(int value)

public AdReviewCenterAd.Builder addManualReviewStatusesValue(int value)

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for manualReviewStatuses to add.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

build()

public AdReviewCenterAd build()
Returns
Type Description
AdReviewCenterAd

buildPartial()

public AdReviewCenterAd buildPartial()
Returns
Type Description
AdReviewCenterAd

clear()

public AdReviewCenterAd.Builder clear()
Returns
Type Description
AdReviewCenterAd.Builder
Overrides

clearAdReviewCenterAdId()

public AdReviewCenterAd.Builder clearAdReviewCenterAdId()

Output only. AdReviewCenterAd ID.

string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

clearManualReviewStatuses()

public AdReviewCenterAd.Builder clearManualReviewStatuses()

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

clearName()

public AdReviewCenterAd.Builder clearName()

Identifier. The resource name of the AdReviewCenterAd. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

clearPreviewUrl()

public AdReviewCenterAd.Builder clearPreviewUrl()

Output only. The preview URL that can be embedded or accessed directly which will present the rendered contents of the ad. (This URL expires 72 hours after being retrieved.).

optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

clearProductType()

public AdReviewCenterAd.Builder clearProductType()

Output only. Specifies the ExchangeSyndicationProduct for this AdReviewCenterAd.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

clearStatus()

public AdReviewCenterAd.Builder clearStatus()

The status of the AdReviewCenterAd.

.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4;

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

getAdReviewCenterAdId()

public String getAdReviewCenterAdId()

Output only. AdReviewCenterAd ID.

string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The adReviewCenterAdId.

getAdReviewCenterAdIdBytes()

public ByteString getAdReviewCenterAdIdBytes()

Output only. AdReviewCenterAd ID.

string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for adReviewCenterAdId.

getDefaultInstanceForType()

public AdReviewCenterAd getDefaultInstanceForType()
Returns
Type Description
AdReviewCenterAd

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getManualReviewStatuses(int index)

public ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus getManualReviewStatuses(int index)

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus

The manualReviewStatuses at the given index.

getManualReviewStatusesCount()

public int getManualReviewStatusesCount()

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of manualReviewStatuses.

getManualReviewStatusesList()

public List<ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus> getManualReviewStatusesList()

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ManualAdReviewCenterAdStatus>

A list containing the manualReviewStatuses.

getManualReviewStatusesValue(int index)

public int getManualReviewStatusesValue(int index)

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of manualReviewStatuses at the given index.

getManualReviewStatusesValueList()

public List<Integer> getManualReviewStatusesValueList()

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for manualReviewStatuses.

getName()

public String getName()

Identifier. The resource name of the AdReviewCenterAd. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the AdReviewCenterAd. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getPreviewUrl()

public String getPreviewUrl()

Output only. The preview URL that can be embedded or accessed directly which will present the rendered contents of the ad. (This URL expires 72 hours after being retrieved.).

optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The previewUrl.

getPreviewUrlBytes()

public ByteString getPreviewUrlBytes()

Output only. The preview URL that can be embedded or accessed directly which will present the rendered contents of the ad. (This URL expires 72 hours after being retrieved.).

optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for previewUrl.

getProductType()

public ExchangeSyndicationProductEnum.ExchangeSyndicationProduct getProductType()

Output only. Specifies the ExchangeSyndicationProduct for this AdReviewCenterAd.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExchangeSyndicationProductEnum.ExchangeSyndicationProduct

The productType.

getProductTypeValue()

public int getProductTypeValue()

Output only. Specifies the ExchangeSyndicationProduct for this AdReviewCenterAd.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for productType.

getStatus()

public AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus getStatus()

The status of the AdReviewCenterAd.

.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4;

Returns
Type Description
AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus

The status.

getStatusValue()

public int getStatusValue()

The status of the AdReviewCenterAd.

.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4;

Returns
Type Description
int

The enum numeric value on the wire for status.

hasPreviewUrl()

public boolean hasPreviewUrl()

Output only. The preview URL that can be embedded or accessed directly which will present the rendered contents of the ad. (This URL expires 72 hours after being retrieved.).

optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the previewUrl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdReviewCenterAd other)

public AdReviewCenterAd.Builder mergeFrom(AdReviewCenterAd other)
Parameter
Name Description
other AdReviewCenterAd
Returns
Type Description
AdReviewCenterAd.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AdReviewCenterAd.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdReviewCenterAd.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AdReviewCenterAd.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdReviewCenterAd.Builder
Overrides

setAdReviewCenterAdId(String value)

public AdReviewCenterAd.Builder setAdReviewCenterAdId(String value)

Output only. AdReviewCenterAd ID.

string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The adReviewCenterAdId to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setAdReviewCenterAdIdBytes(ByteString value)

public AdReviewCenterAd.Builder setAdReviewCenterAdIdBytes(ByteString value)

Output only. AdReviewCenterAd ID.

string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for adReviewCenterAdId to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setManualReviewStatuses(int index, ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus value)

public AdReviewCenterAd.Builder setManualReviewStatuses(int index, ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus value)

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus

The manualReviewStatuses to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setManualReviewStatusesValue(int index, int value)

public AdReviewCenterAd.Builder setManualReviewStatusesValue(int index, int value)

Output only. The manual review status of the AdReviewCenterAd (for web properties in MCR mode). For MCR mode, a single ad could have multiple statuses (for example, pending and serving at the same time, if the ad is affected by a protection in certain inventory only). This field is not set for the standard mode.

repeated .google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus manual_review_statuses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for manualReviewStatuses to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setName(String value)

public AdReviewCenterAd.Builder setName(String value)

Identifier. The resource name of the AdReviewCenterAd. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AdReviewCenterAd.Builder setNameBytes(ByteString value)

Identifier. The resource name of the AdReviewCenterAd. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setPreviewUrl(String value)

public AdReviewCenterAd.Builder setPreviewUrl(String value)

Output only. The preview URL that can be embedded or accessed directly which will present the rendered contents of the ad. (This URL expires 72 hours after being retrieved.).

optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The previewUrl to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setPreviewUrlBytes(ByteString value)

public AdReviewCenterAd.Builder setPreviewUrlBytes(ByteString value)

Output only. The preview URL that can be embedded or accessed directly which will present the rendered contents of the ad. (This URL expires 72 hours after being retrieved.).

optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for previewUrl to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setProductType(ExchangeSyndicationProductEnum.ExchangeSyndicationProduct value)

public AdReviewCenterAd.Builder setProductType(ExchangeSyndicationProductEnum.ExchangeSyndicationProduct value)

Output only. Specifies the ExchangeSyndicationProduct for this AdReviewCenterAd.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ExchangeSyndicationProductEnum.ExchangeSyndicationProduct

The productType to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setProductTypeValue(int value)

public AdReviewCenterAd.Builder setProductTypeValue(int value)

Output only. Specifies the ExchangeSyndicationProduct for this AdReviewCenterAd.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for productType to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setStatus(AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus value)

public AdReviewCenterAd.Builder setStatus(AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus value)

The status of the AdReviewCenterAd.

.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4;

Parameter
Name Description
value AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus

The status to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.

setStatusValue(int value)

public AdReviewCenterAd.Builder setStatusValue(int value)

The status of the AdReviewCenterAd.

.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
AdReviewCenterAd.Builder

This builder for chaining.