Szerkesztés

Megosztás a következőn keresztül:


AdGroupBidding

Contains the methods used to manage an ad group's bid values.

Methods

Method Name Return Type Description
getCpc double Gets the ad group's CPC bid.
setCpc(double cpc) void Sets the ad group's CPC bid.
getCpm double Gets the ad group's CPM bid.
setCpm(double cpm) void Sets the ad group's CPM bid.
getCpv double Gets the ad group's CPV bid.
setCpv(double cpv) void Sets the ad group's CPV bid.

getCpc

Gets the ad group's CPC bid amount.

Returns

Type Description
double The ad group's maximum CPC bid amount.

setCpc(double cpc)

Sets the ad group's CPC bid amount.

Specifies the bid amount to use when the keyword matches the user's search term. Microsoft uses this bid if a CPC bid is not specified at the keyword level.

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

getCpm

Gets the ad group's CPM bid amount.

Returns

Type Description
double The ad group's maximum CPM bid amount.

setCpm(double cpm)

Sets the ad group's CPM bid amount.

Specifies the bid amount to use per 1,000 viewed impressions. Microsoft Advertising uses these bids every time.

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

getCpv

Gets the ad group's CPV bid amount.

Returns

Type Description
double The ad group's maximum CPV bid amount.

setCpv(double cpv)

Sets the ad group's CPV bid amount.

Specifies the bid amount to use per view or per click on a video ad. Microsoft Advertising uses these bids every time.

If the bid value is not valid, the call silently fails. To confirm whether the bid 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 ad group's maximum CPC bid. The account's currency determines the minimum and maximum bid values. For more information, see Bid and budget currencies.
cpm double The ad group's maximum CPM bid. The account's currency determines the minimum and maximum bid values. For more information, see Bid and budget currencies.
cpv double The ad group's maximum CPV 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

AdGroup.bidding()