AdsApp.​AdParam

  • Represents a Google Ads ad parameter and provides methods for managing it.

  • Allows retrieval of information like the ad group, base ad group, index, and insertion text associated with the ad parameter.

  • Enables modification of the ad parameter's insertion text and removal of the parameter itself.

  • Primarily interacts with AdsApp.AdGroup and AdsApp.Keyword objects for context and management.

Represents a Google Ads ad param.

Methods:

MemberTypeDescription
getAdGroup() AdsApp.AdGroup Returns the ad group to which this ad param belongs.
getBaseAdGroup() AdsApp.AdGroup Returns the base ad group to which this ad param belongs.
getEntityType() String Returns the type of this entity as a String, in this case, "AdParam".
getIndex() int Returns the index of the ad param.
getInsertionText() String Returns the insertion text of the ad param.
getKeyword() AdsApp.Keyword Returns the Keyword the ad param belongs to.
remove() void Removes the ad param.
setInsertionText(insertionText) void Sets the insertion text of the ad param to the specified value.

getAdGroup()

Returns the ad group to which this ad param belongs.

Return values:

TypeDescription
AdsApp.AdGroup The ad group to which this ad param belongs.

getBaseAdGroup()

Returns the base ad group to which this ad param belongs.

Return values:

TypeDescription
AdsApp.AdGroup The base ad group to which this ad param belongs.

getEntityType()

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

Return values:

TypeDescription
String Type of this entity: "AdParam".

getIndex()

Returns the index of the ad param.

Return values:

TypeDescription
int The index of the ad param.

getInsertionText()

Returns the insertion text of the ad param.

Return values:

TypeDescription
String The insertion text of the ad param.

getKeyword()

Returns the Keyword the ad param belongs to.

Return values:

TypeDescription
AdsApp.Keyword The Keyword the ad param belongs to.

remove()

Removes the ad param.

Returns nothing.

setInsertionText(insertionText)

Sets the insertion text of the ad param to the specified value.

Returns nothing.

Arguments:

NameTypeDescription
insertionText String Insertion text.