type AdSenseSettings (v202405)

Contains the AdSense configuration for an AdUnit.


Namespace
https://www.google.com/apis/ads/publisher/v202405

Field

adSenseEnabled

xsd:boolean

Specifies whether or not the AdUnit is enabled for serving ads from the AdSense content network. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set adSenseEnabled, the attribute is defaulted to true.

borderColor

xsd:string

Specifies the Hexadecimal border color, from 000000 to FFFFFF. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set borderColor, the attribute is defaulted to FFFFFF.

titleColor

xsd:string

Specifies the Hexadecimal title color of an ad, from 000000 to FFFFFF. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set titleColor, the attribute is defaulted to 0000FF.

backgroundColor

xsd:string

Specifies the Hexadecimal background color of an ad, from 000000 to FFFFFF. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set backgroundColor, the attribute is defaulted to FFFFFF.

textColor

xsd:string

Specifies the Hexadecimal color of the text of an ad, from 000000 to FFFFFF. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set textColor, the attribute is defaulted to 000000.

urlColor

xsd:string

Specifies the Hexadecimal color of the URL of an ad, from 000000 to FFFFFF. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set urlColor, the attribute is defaulted to 008000 .

adType

AdSenseSettings.AdType

Specifies what kind of ad can be served by this AdUnit from the AdSense Content Network. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set adType, the attribute is defaulted to AdType.TEXT_AND_IMAGE.


Enumerations
TEXT
Allows text-only ads.
IMAGE
Allows image-only ads.
TEXT_AND_IMAGE
Allows both text and image ads.

borderStyle

AdSenseSettings.BorderStyle

Specifies the border-style of the AdUnit. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set borderStyle, the attribute is defaulted to BorderStyle.DEFAULT.


Enumerations
DEFAULT
Uses the default border-style of the browser.
NOT_ROUNDED
Uses a cornered border-style.
SLIGHTLY_ROUNDED
Uses a slightly rounded border-style.
VERY_ROUNDED
Uses a rounded border-style.

fontFamily

AdSenseSettings.FontFamily

Specifies the font family of the AdUnit. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set fontFamily, the attribute is defaulted to FontFamily.DEFAULT.


Enumerations
DEFAULT
ARIAL
TAHOMA
GEORGIA
TIMES
VERDANA

fontSize

AdSenseSettings.FontSize

Specifies the font size of the AdUnit. This attribute is optional and defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set fontSize, the attribute is defaulted to FontSize.DEFAULT.


Enumerations
DEFAULT
SMALL
MEDIUM
LARGE