Trait

com.google.appsscript.adwords

AdCustomizerSourceBuilder

Related Doc: package adwords

Permalink

trait AdCustomizerSourceBuilder extends Object with Builder[AdCustomizerSource]

Builder for AdCustomizerSource objects. For example, to create an ad customizer source with name "Inventory", and attributes "item" (of type text ), "numLeft" (of type number ), and "lowCost" (of type price ):

 var adCustomizerSourceBuilder = AdWordsApp.newAdCustomizerSourceBuilder();
 var adCustomizerSourceOperation = adCustomizerSourceBuilder
   .withName("Inventory")                                 // required
   .addAttribute("item", "text")                          // at least one attribute is required
   .addAttributes({numLeft: "number", lowCost: "price"})
   .build();                                              // create the ad customizer source

Annotations
@RawJSType()
Linear Supertypes
Builder[AdCustomizerSource], Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AdCustomizerSourceBuilder
  2. Builder
  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. def addAttribute(name: String, type: String): AdCustomizerSourceBuilder

    Permalink

    Adds an attribute of the given name and type to the new ad customizer source.

    Adds an attribute of the given name and type to the new ad customizer source. Existing attributes are not modified.

    Valid types are text, number, price, date.

    An error will be thrown if the additional attribute's name is one of start date, end date, device preference, scheduling, target campaign, target ad group, keyword text, match type, keyword, id, case insensitive.

    An attribute named custom id (case insensitive) will be interpreted as a special attribute, which has the additional requirement of each item in the data source having unique value for that attribute.

  5. def addAttributes(attributes: AnyRef): AdCustomizerSourceBuilder

    Permalink

    Adds a set of attributes to the new ad customizer source.

    Adds a set of attributes to the new ad customizer source. Existing attributes are not modified. The set of new attributes are specified by an object where the keys are the names and the values are the respective types of the attributes. For instance,

     var attributes = {item: "text", numLeft: "number", lowCost: "price"};
     var builder = AdWordsApp.newAdCustomizerSourceBuilder();
     var adCustomizerSource = builder
         .withName("Inventory")
         .addAttributes(attributes)
         .build();
    

    adds the attributes item (of type text ), numLeft (of type number ), and lowCost (of type price ) to the new ad customizer data source named "Inventory".

    Valid attribute types are text, number, price, date.

    An error will be thrown if an additional attribute's name is one of start date, end date, device preference, scheduling, target campaign, target ad group, keyword text, match type, keyword, id, case insensitive.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def build(): Operation[AdCustomizerSource]

    Permalink
    Definition Classes
    Builder
  8. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def withName(name: String): AdCustomizerSourceBuilder

    Permalink

    Sets the name of the new ad customizer source to the specified value.

    Sets the name of the new ad customizer source to the specified value. This field is required.

Inherited from Builder[AdCustomizerSource]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped