Trait

com.google.appsscript.adwords

Stats

Related Doc: package adwords

Permalink

trait Stats extends Object

Statistics common to various entity types.

Typical usage:

 var stats = campaign.getStatsFor("LAST_MONTH");
 var impressions = stats.getImpressions();
 var clicks = stats.getClicks();
 // etc.

Note that Analytics-related stats (Stats.getAveragePageviews(), Stats.getAverageTimeOnSite() and Stats.getBounceRate()) are only available for Campaigns, Ad groups, Keywords, and Ads. The method calls will return null for other entity types. Entities with stats:

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Stats
  2. Object
  3. Any
  4. AnyRef
  5. 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 getAverageCpc(): Double

    Permalink

    Returns the average cost per click.

  10. def getAverageCpm(): Double

    Permalink

    Returns the average cost per thousand impressions.

  11. def getAveragePageviews(): Double

    Permalink

    Returns the average number of pages viewed per visit.

    Returns the average number of pages viewed per visit. Returns null if the account is not linked to Analytics.

  12. def getAveragePosition(): Double

    Permalink

    Returns the average position.

    Returns the average position. Returns null if this is a Display entity that doesn't have an average position.

  13. def getAverageTimeOnSite(): Double

    Permalink

    Returns the average time a visitor spent on site, in seconds.

    Returns the average time a visitor spent on site, in seconds. Returns null if the account is not linked to Analytics.

  14. def getBounceRate(): Double

    Permalink

    Returns the bounce rate of the entity, in 0..1 range.

    Returns the bounce rate of the entity, in 0..1 range. When a visitor to your site sees only one page or triggers only one event, Analytics considers this visit a "bounce." Returns null if the account is not linked to Analytics.

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getClickConversionRate(): Double

    Permalink

    Returns the conversion rate for clicks, in 0..1 range.

    Returns the conversion rate for clicks, in 0..1 range.

  17. def getClicks(): Long

    Permalink

    Returns the number of clicks.

  18. def getConversionRate(): Double

    Permalink

    Returns the conversion rate, in 0..1 range.

    Returns the conversion rate, in 0..1 range. <aside class="warning"> Deprecated. This functionality has been deprecated. Please use Stats.getClickConversionRate() instead. </aside>

  19. def getConversions(): Long

    Permalink

    Returns the number of conversions.

    Returns the number of conversions. <aside class="warning"> Deprecated. This functionality has been deprecated. Please use Stats.getConvertedClicks() instead. </aside>

  20. def getConvertedClicks(): Long

    Permalink

    Returns the number of clicks that converted.

  21. def getCost(): Double

    Permalink

    Returns the cost in the default currency of the account.

  22. def getCtr(): Double

    Permalink

    Returns the click through rate of the entity, in 0..1 range.

    Returns the click through rate of the entity, in 0..1 range.

  23. def getImpressions(): Long

    Permalink

    Returns the number of impressions.

  24. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def isPrototypeOf(v: Object): Boolean

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

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

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

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

    Permalink
    Definition Classes
    Object
  32. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

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

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

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped