Skip to main content

adunits

Overview

Nameadunits
TypeResource
Idgoogleads.adsensehost.adunits

Fields

NameDatatypeDescription
idstringUnique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
namestringName of this ad unit.
contentAdsSettingsobjectSettings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
customStyleobject
kindstringKind of resource this is, in this case adsensehost#adUnit.
mobileContentAdsSettingsobjectSettings specific to WAP mobile content ads (AFMC - deprecated).
statusstringStatus of this ad unit. Possible values are:
NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.

ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.

INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
codestringIdentity code of this ad unit, not necessarily unique across ad clients.

Methods

NameAccessible byRequired ParamsDescription
accounts_adunits_getSELECTaccountId, adClientId, adUnitIdGet the specified host ad unit in this AdSense account.
accounts_adunits_listSELECTaccountId, adClientIdList all ad units in the specified publisher's AdSense account.
accounts_adunits_deleteDELETEaccountId, adClientId, adUnitIdDelete the specified ad unit from the specified publisher AdSense account.
accounts_adunits_insertEXECaccountId, adClientIdInsert the supplied ad unit into the specified publisher AdSense account.
accounts_adunits_patchEXECaccountId, adClientId, adUnitIdUpdate the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
accounts_adunits_updateEXECaccountId, adClientIdUpdate the supplied ad unit in the specified publisher AdSense account.