Trait

com.google.appsscript.adwords

CampaignPhoneNumber

Related Doc: package adwords

Permalink

trait CampaignPhoneNumber extends Object with HasStatistics

Represents a phone number that has been added to a campaign as an ad call extension. Visit our Ad Extensions page for more information on phone numbers and other types of ad extensions.

Annotations
@RawJSType()
Linear Supertypes
HasStatistics, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CampaignPhoneNumber
  2. HasStatistics
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def getCampaign(): Campaign

    Permalink

    Returns the campaign to which this campaign-level phone number belongs.

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getCountry(): String

    Permalink

    Returns the two character country code of the advertiser's phone number.

  12. def getEndDate(): AdWordsDate

    Permalink

    Returns the end date of the campaign-level phone number.

    Returns the end date of the campaign-level phone number. For instance, if the end date of the campaign-level phone number is May 3, 2013, this would return the following object: {year: 2013, month: 5, day: 3} .

  13. def getEntityType(): String

    Permalink

    Returns the type of this entity as a String , in this case, "CampaignPhoneNumber" .

    Returns the type of this entity as a String , in this case, "CampaignPhoneNumber" .

  14. def getId(): Long

    Permalink

    Returns the ID of the campaign-level phone number.

  15. def getPhoneNumber(): String

    Permalink

    Returns the advertiser's phone number that gets appended to the ad.

  16. def getSchedules(): Array[ExtensionSchedule]

    Permalink

    Returns the scheduling of the campaign-level phone number.

  17. def getStartDate(): AdWordsDate

    Permalink

    Returns the start date of the campaign-level phone number.

    Returns the start date of the campaign-level phone number. For instance, if the start date of the campaign-level phone number is May 3, 2013, this would return the following object: {year: 2013, month: 5, day: 3} .

  18. def getStatsFor(dateFrom: AnyRef, dateTo: AnyRef): Stats

    Permalink

    Returns stats for the specified custom date range.

    Returns stats for the specified custom date range. Both parameters can be either an object containing year, month, and day fields, or an 8-digit string in YYYYMMDD form. For instance, March 24th, 2013 is represented as either {year: 2013, month: 3, day: 24} or "20130324" . The date range is inclusive on both ends, so forDateRange("20130324", "20130324") defines a range of a single day.

    Definition Classes
    HasStatistics
  19. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. def isCallOnly(): Boolean

    Permalink

    Returns true if this campaign-level phone number is call only.

    Returns true if this campaign-level phone number is call only. If true , only the advertiser's phone number will get displayed. If false , the link to the advertiser's website will be shown alongside. <aside class="warning"> Deprecated. This functionality has been deprecated. Please see the announcement blog post for more information. </aside>

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isMobilePreferred(): Boolean

    Permalink

    Returns true if the campaign-level phone number specifies mobile device preference.

    Returns true if the campaign-level phone number specifies mobile device preference.

  24. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  29. def setCallOnly(callOnly: Boolean): Unit

    Permalink

    If set to true , only the advertiser's phone number will get displayed.

    If set to true , only the advertiser's phone number will get displayed. If set to false , the link to the advertiser's website will be shown as well. <aside class="warning"> Deprecated. This functionality has been deprecated. It will start throwing errors on June 24, 2015. Please see the announcement blog post for more information. </aside>

    Returns nothing.

  30. def setCountry(country: String): Unit

    Permalink

    Sets the two character country code of the advertiser's phone number.

    Sets the two character country code of the advertiser's phone number.

    Returns nothing.

  31. def setEndDate(date: AnyRef): Unit

    Permalink

    Sets the campaign-level phone number's end date from either an object containing year, month, and day fields, or an 8-digit string in YYYYMMDD format.

    Sets the campaign-level phone number's end date from either an object containing year, month, and day fields, or an 8-digit string in YYYYMMDD format. For instance, campaignPhoneNumber.setEndDate("20130503"); is equivalent to campaignPhoneNumber.setEndDate({year: 2013, month: 5, day: 3}); . The change will fail and report an error if:

    • the given date is invalid (e.g., {year: 2013, month: 5, day: 55}),
    • the start date now comes after the end date, or
    • it's a date in the past.

    Returns nothing.

  32. def setMobilePreferred(isMobilePreferred: Boolean): Unit

    Permalink

    Sets the campaign-level phone number's device preference.

    Sets the campaign-level phone number's device preference.

    Returns nothing.

  33. def setPhoneNumber(phoneNumber: String): Unit

    Permalink

    Sets the advertiser's phone number that gets appended to the ad.

    Sets the advertiser's phone number that gets appended to the ad.

    Returns nothing.

  34. def setSchedules(schedules: Array[ExtensionSchedule]): Unit

    Permalink

    Sets the campaign-level phone number scheduling.

    Sets the campaign-level phone number scheduling. Scheduling of a campaign-level phone number allows you to control the days of week and times of day during which the campaign-level phone number will show alongside your ads.

    Passing in an empty array clears the scheduling field, causing the campaign-level phone number to run at all times.

    The following example sets the campaign-level phone number to run on Mondays and Tuesday from 8:00 to 11:00.

     var mondayMorning = {
       dayOfWeek: "MONDAY",
       startHour: 8,
       startMinute: 0,
       endHour: 11,
       endMinute: 0
     };
     var tuesdayMorning = {
       dayOfWeek: "TUESDAY",
       startHour: 8,
       startMinute: 0,
       endHour: 11,
       endMinute: 0
     };
     campaignPhoneNumber.setSchedules([mondayMorning, tuesdayMorning]);
    

    Returns nothing.

  35. def setStartDate(date: AnyRef): Unit

    Permalink

    Sets the campaign-level phone number's start date from either an object containing year, month, and day fields, or an 8-digit string in YYYYMMDD format.

    Sets the campaign-level phone number's start date from either an object containing year, month, and day fields, or an 8-digit string in YYYYMMDD format. For instance, campaignPhoneNumber.setStartDate("20130503"); is equivalent to campaignPhoneNumber.setStartDate({year: 2013, month: 5, day: 3}); . The change will fail and report an error if:

    • the given date is invalid (e.g., {year: 2013, month: 5, day: 55}),
    • the given date is after the campaign-level phone number's end date.

    Returns nothing.

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HasStatistics

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped