public final class YieldAdSource extends GeneratedMessage implements YieldAdSourceOrBuilder
Represents an opportunity for a third party network to be mediated on a
segment of inventory described in a YieldGroup.
Protobuf type google.ads.admanager.v1.YieldAdSource
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
AD_SOURCE_ID_FIELD_NUMBER
public static final int AD_SOURCE_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
COMPANY_FIELD_NUMBER
public static final int COMPANY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MANUAL_CPM_FIELD_NUMBER
public static final int MANUAL_CPM_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
OPEN_BIDDING_SETTINGS_FIELD_NUMBER
public static final int OPEN_BIDDING_SETTINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
OVERRIDE_DYNAMIC_CPM_FIELD_NUMBER
public static final int OVERRIDE_DYNAMIC_CPM_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SDK_MEDIATION_SETTINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static YieldAdSource getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static YieldAdSource.Builder newBuilder()
newBuilder(YieldAdSource prototype)
public static YieldAdSource.Builder newBuilder(YieldAdSource prototype)
public static YieldAdSource parseDelimitedFrom(InputStream input)
public static YieldAdSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static YieldAdSource parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static YieldAdSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static YieldAdSource parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static YieldAdSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static YieldAdSource parseFrom(CodedInputStream input)
public static YieldAdSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static YieldAdSource parseFrom(InputStream input)
public static YieldAdSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static YieldAdSource parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static YieldAdSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<YieldAdSource> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAdSourceId()
public long getAdSourceId()
Optional. Non-empty default. The ID of the ad source. This field is
assigned by Google when the ad source is created. Provide this ID when
updating an existing ad source; omit it when adding a new ad source.
optional int64 ad_source_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];
| Returns |
| Type |
Description |
long |
The adSourceId.
|
getCompany()
public String getCompany()
Required. Immutable. The resource name of the Company.
Format: networks/{network_code}/companies/{company_id}
optional string company = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The company.
|
getCompanyBytes()
public ByteString getCompanyBytes()
Required. Immutable. The resource name of the Company.
Format: networks/{network_code}/companies/{company_id}
optional string company = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for company.
|
getDefaultInstanceForType()
public YieldAdSource getDefaultInstanceForType()
getDisplaySettingsCase()
public YieldAdSource.DisplaySettingsCase getDisplaySettingsCase()
getManualCpm()
public Money getManualCpm()
Optional. CPM manually assigned to this source.
optional .google.type.Money manual_cpm = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
com.google.type.Money |
The manualCpm.
|
getManualCpmOrBuilder()
public MoneyOrBuilder getManualCpmOrBuilder()
Optional. CPM manually assigned to this source.
optional .google.type.Money manual_cpm = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
com.google.type.MoneyOrBuilder |
|
getOpenBiddingSettings()
public YieldAdSource.OpenBiddingSettings getOpenBiddingSettings()
Settings for Open Bidding.
.google.ads.admanager.v1.YieldAdSource.OpenBiddingSettings open_bidding_settings = 6;
getOpenBiddingSettingsOrBuilder()
public YieldAdSource.OpenBiddingSettingsOrBuilder getOpenBiddingSettingsOrBuilder()
Settings for Open Bidding.
.google.ads.admanager.v1.YieldAdSource.OpenBiddingSettings open_bidding_settings = 6;
getOverrideDynamicCpm()
public boolean getOverrideDynamicCpm()
Optional. If true, then the automatically collected CPM is ignored in favor
of manualCpm.
optional bool override_dynamic_cpm = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The overrideDynamicCpm.
|
getParserForType()
public Parser<YieldAdSource> getParserForType()
Overrides
public YieldAdSource.SdkMediationSettings getSdkMediationSettings()
Settings for mobile app display.
.google.ads.admanager.v1.YieldAdSource.SdkMediationSettings sdk_mediation_settings = 7;
public YieldAdSource.SdkMediationSettingsOrBuilder getSdkMediationSettingsOrBuilder()
Settings for mobile app display.
.google.ads.admanager.v1.YieldAdSource.SdkMediationSettings sdk_mediation_settings = 7;
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getStatus()
public YieldEntityStatusEnum.YieldEntityStatus getStatus()
Optional. User-assigned status of the ad source.
optional .google.ads.admanager.v1.YieldEntityStatusEnum.YieldEntityStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];
getStatusValue()
public int getStatusValue()
Optional. User-assigned status of the ad source.
optional .google.ads.admanager.v1.YieldEntityStatusEnum.YieldEntityStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for status.
|
hasAdSourceId()
public boolean hasAdSourceId()
Optional. Non-empty default. The ID of the ad source. This field is
assigned by Google when the ad source is created. Provide this ID when
updating an existing ad source; omit it when adding a new ad source.
optional int64 ad_source_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];
| Returns |
| Type |
Description |
boolean |
Whether the adSourceId field is set.
|
hasCompany()
public boolean hasCompany()
Required. Immutable. The resource name of the Company.
Format: networks/{network_code}/companies/{company_id}
optional string company = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
boolean |
Whether the company field is set.
|
hasManualCpm()
public boolean hasManualCpm()
Optional. CPM manually assigned to this source.
optional .google.type.Money manual_cpm = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the manualCpm field is set.
|
hasOpenBiddingSettings()
public boolean hasOpenBiddingSettings()
Settings for Open Bidding.
.google.ads.admanager.v1.YieldAdSource.OpenBiddingSettings open_bidding_settings = 6;
| Returns |
| Type |
Description |
boolean |
Whether the openBiddingSettings field is set.
|
hasOverrideDynamicCpm()
public boolean hasOverrideDynamicCpm()
Optional. If true, then the automatically collected CPM is ignored in favor
of manualCpm.
optional bool override_dynamic_cpm = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the overrideDynamicCpm field is set.
|
public boolean hasSdkMediationSettings()
Settings for mobile app display.
.google.ads.admanager.v1.YieldAdSource.SdkMediationSettings sdk_mediation_settings = 7;
| Returns |
| Type |
Description |
boolean |
Whether the sdkMediationSettings field is set.
|
hasStatus()
public boolean hasStatus()
Optional. User-assigned status of the ad source.
optional .google.ads.admanager.v1.YieldEntityStatusEnum.YieldEntityStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the status field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public YieldAdSource.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected YieldAdSource.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public YieldAdSource.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides