Class CallAdInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.common.CallAdInfo
All Implemented Interfaces:
CallAdInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class CallAdInfo extends com.google.protobuf.GeneratedMessageV3 implements CallAdInfoOrBuilder
 A call ad.
 
Protobuf type google.ads.googleads.v18.common.CallAdInfo
See Also:
  • Field Details

    • COUNTRY_CODE_FIELD_NUMBER

      public static final int COUNTRY_CODE_FIELD_NUMBER
      See Also:
    • PHONE_NUMBER_FIELD_NUMBER

      public static final int PHONE_NUMBER_FIELD_NUMBER
      See Also:
    • BUSINESS_NAME_FIELD_NUMBER

      public static final int BUSINESS_NAME_FIELD_NUMBER
      See Also:
    • HEADLINE1_FIELD_NUMBER

      public static final int HEADLINE1_FIELD_NUMBER
      See Also:
    • HEADLINE2_FIELD_NUMBER

      public static final int HEADLINE2_FIELD_NUMBER
      See Also:
    • DESCRIPTION1_FIELD_NUMBER

      public static final int DESCRIPTION1_FIELD_NUMBER
      See Also:
    • DESCRIPTION2_FIELD_NUMBER

      public static final int DESCRIPTION2_FIELD_NUMBER
      See Also:
    • CALL_TRACKED_FIELD_NUMBER

      public static final int CALL_TRACKED_FIELD_NUMBER
      See Also:
    • DISABLE_CALL_CONVERSION_FIELD_NUMBER

      public static final int DISABLE_CALL_CONVERSION_FIELD_NUMBER
      See Also:
    • PHONE_NUMBER_VERIFICATION_URL_FIELD_NUMBER

      public static final int PHONE_NUMBER_VERIFICATION_URL_FIELD_NUMBER
      See Also:
    • CONVERSION_ACTION_FIELD_NUMBER

      public static final int CONVERSION_ACTION_FIELD_NUMBER
      See Also:
    • CONVERSION_REPORTING_STATE_FIELD_NUMBER

      public static final int CONVERSION_REPORTING_STATE_FIELD_NUMBER
      See Also:
    • PATH1_FIELD_NUMBER

      public static final int PATH1_FIELD_NUMBER
      See Also:
    • PATH2_FIELD_NUMBER

      public static final int PATH2_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getCountryCode

      public String getCountryCode()
       The country code in the ad.
       
      string country_code = 1;
      Specified by:
      getCountryCode in interface CallAdInfoOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       The country code in the ad.
       
      string country_code = 1;
      Specified by:
      getCountryCodeBytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for countryCode.
    • getPhoneNumber

      public String getPhoneNumber()
       The phone number in the ad.
       
      string phone_number = 2;
      Specified by:
      getPhoneNumber in interface CallAdInfoOrBuilder
      Returns:
      The phoneNumber.
    • getPhoneNumberBytes

      public com.google.protobuf.ByteString getPhoneNumberBytes()
       The phone number in the ad.
       
      string phone_number = 2;
      Specified by:
      getPhoneNumberBytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for phoneNumber.
    • getBusinessName

      public String getBusinessName()
       The business name in the ad.
       
      string business_name = 3;
      Specified by:
      getBusinessName in interface CallAdInfoOrBuilder
      Returns:
      The businessName.
    • getBusinessNameBytes

      public com.google.protobuf.ByteString getBusinessNameBytes()
       The business name in the ad.
       
      string business_name = 3;
      Specified by:
      getBusinessNameBytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for businessName.
    • getHeadline1

      public String getHeadline1()
       First headline in the ad.
       
      string headline1 = 11;
      Specified by:
      getHeadline1 in interface CallAdInfoOrBuilder
      Returns:
      The headline1.
    • getHeadline1Bytes

      public com.google.protobuf.ByteString getHeadline1Bytes()
       First headline in the ad.
       
      string headline1 = 11;
      Specified by:
      getHeadline1Bytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for headline1.
    • getHeadline2

      public String getHeadline2()
       Second headline in the ad.
       
      string headline2 = 12;
      Specified by:
      getHeadline2 in interface CallAdInfoOrBuilder
      Returns:
      The headline2.
    • getHeadline2Bytes

      public com.google.protobuf.ByteString getHeadline2Bytes()
       Second headline in the ad.
       
      string headline2 = 12;
      Specified by:
      getHeadline2Bytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for headline2.
    • getDescription1

      public String getDescription1()
       The first line of the ad's description.
       
      string description1 = 4;
      Specified by:
      getDescription1 in interface CallAdInfoOrBuilder
      Returns:
      The description1.
    • getDescription1Bytes

      public com.google.protobuf.ByteString getDescription1Bytes()
       The first line of the ad's description.
       
      string description1 = 4;
      Specified by:
      getDescription1Bytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for description1.
    • getDescription2

      public String getDescription2()
       The second line of the ad's description.
       
      string description2 = 5;
      Specified by:
      getDescription2 in interface CallAdInfoOrBuilder
      Returns:
      The description2.
    • getDescription2Bytes

      public com.google.protobuf.ByteString getDescription2Bytes()
       The second line of the ad's description.
       
      string description2 = 5;
      Specified by:
      getDescription2Bytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for description2.
    • getCallTracked

      public boolean getCallTracked()
       Whether to enable call tracking for the creative. Enabling call
       tracking also enables call conversions.
       
      bool call_tracked = 6;
      Specified by:
      getCallTracked in interface CallAdInfoOrBuilder
      Returns:
      The callTracked.
    • getDisableCallConversion

      public boolean getDisableCallConversion()
       Whether to disable call conversion for the creative.
       If set to `true`, disables call conversions even when `call_tracked` is
       `true`.
       If `call_tracked` is `false`, this field is ignored.
       
      bool disable_call_conversion = 7;
      Specified by:
      getDisableCallConversion in interface CallAdInfoOrBuilder
      Returns:
      The disableCallConversion.
    • getPhoneNumberVerificationUrl

      public String getPhoneNumberVerificationUrl()
       The URL to be used for phone number verification.
       
      string phone_number_verification_url = 8;
      Specified by:
      getPhoneNumberVerificationUrl in interface CallAdInfoOrBuilder
      Returns:
      The phoneNumberVerificationUrl.
    • getPhoneNumberVerificationUrlBytes

      public com.google.protobuf.ByteString getPhoneNumberVerificationUrlBytes()
       The URL to be used for phone number verification.
       
      string phone_number_verification_url = 8;
      Specified by:
      getPhoneNumberVerificationUrlBytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for phoneNumberVerificationUrl.
    • getConversionAction

      public String getConversionAction()
       The conversion action to attribute a call conversion to. If not set a
       default conversion action is used. This field only has effect if
       `call_tracked` is set to `true`. Otherwise this field is ignored.
       
      string conversion_action = 9;
      Specified by:
      getConversionAction in interface CallAdInfoOrBuilder
      Returns:
      The conversionAction.
    • getConversionActionBytes

      public com.google.protobuf.ByteString getConversionActionBytes()
       The conversion action to attribute a call conversion to. If not set a
       default conversion action is used. This field only has effect if
       `call_tracked` is set to `true`. Otherwise this field is ignored.
       
      string conversion_action = 9;
      Specified by:
      getConversionActionBytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for conversionAction.
    • getConversionReportingStateValue

      public int getConversionReportingStateValue()
       The call conversion behavior of this call ad. It can use its own call
       conversion setting, inherit the account level setting, or be disabled.
       
      .google.ads.googleads.v18.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10;
      Specified by:
      getConversionReportingStateValue in interface CallAdInfoOrBuilder
      Returns:
      The enum numeric value on the wire for conversionReportingState.
    • getConversionReportingState

       The call conversion behavior of this call ad. It can use its own call
       conversion setting, inherit the account level setting, or be disabled.
       
      .google.ads.googleads.v18.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10;
      Specified by:
      getConversionReportingState in interface CallAdInfoOrBuilder
      Returns:
      The conversionReportingState.
    • getPath1

      public String getPath1()
       First part of text that can be appended to the URL in the ad. Optional.
       
      string path1 = 13;
      Specified by:
      getPath1 in interface CallAdInfoOrBuilder
      Returns:
      The path1.
    • getPath1Bytes

      public com.google.protobuf.ByteString getPath1Bytes()
       First part of text that can be appended to the URL in the ad. Optional.
       
      string path1 = 13;
      Specified by:
      getPath1Bytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for path1.
    • getPath2

      public String getPath2()
       Second part of text that can be appended to the URL in the ad. This field
       can only be set when `path1` is also set. Optional.
       
      string path2 = 14;
      Specified by:
      getPath2 in interface CallAdInfoOrBuilder
      Returns:
      The path2.
    • getPath2Bytes

      public com.google.protobuf.ByteString getPath2Bytes()
       Second part of text that can be appended to the URL in the ad. This field
       can only be set when `path1` is also set. Optional.
       
      string path2 = 14;
      Specified by:
      getPath2Bytes in interface CallAdInfoOrBuilder
      Returns:
      The bytes for path2.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CallAdInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CallAdInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CallAdInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CallAdInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CallAdInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CallAdInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CallAdInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CallAdInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CallAdInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CallAdInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CallAdInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CallAdInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CallAdInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CallAdInfo.Builder newBuilder()
    • newBuilder

      public static CallAdInfo.Builder newBuilder(CallAdInfo prototype)
    • toBuilder

      public CallAdInfo.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CallAdInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static CallAdInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CallAdInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<CallAdInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public CallAdInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder