Muokkaa

Jaa


KeywordBidding

Contains the methods for specifying the keyword's bid values.

Methods

Method Name Return Type Description
clearCpc void Removes the keyword's CPC bid.
getCpc double Gets the keyword's CPC bid.
setCpc(double cpc) void Sets the keyword's maximum CPC bid.

clearCpc

Removes the keyword's CPC bid.

Returns

Type Description
void Returns nothing.

getCpc

Gets the keyword's CPC bid.

Returns

Type Description
double The keyword's CPC bid. If the keyword doesn't specify a bid, this field contains the bid inherited from the ad group.

setCpc(double cpc)

Sets the keyword's maximum CPC bid.

Specifies the bid amount to use when the keyword matches the user's search term.

To use the bid amount specified at the ad group level, remove the keyword's CPC bid by calling the clearCpc() method.

For more information about bid amounts, see Bid and BiddingScheme.

If you specify a property value that's not valid, the call silently fails. To confirm whether the property was updated, get the object again and test whether the property's value equals the new value. For information, see Handling errors and warnings.

Arguments

Name Type Description
cpc double The keyword's maximum CPC bid. The account's currency determines the minimum and maximum bid values. For more information, see Bid and budget currencies.

Returns

Type Description
void Returns nothing.

See also

Keyword.bidding()