GoogleApi.AdSense.V2.Model.AdUnit (google_api_ad_sense v0.18.0)

View Source

Representation of an ad unit. An ad unit represents a saved ad unit with a specific set of ad settings that have been customized within an account.

Attributes

  • contentAdsSettings (type: GoogleApi.AdSense.V2.Model.ContentAdsSettings.t, default: nil) - Required. Settings specific to content ads (AFC).
  • displayName (type: String.t, default: nil) - Required. Display name of the ad unit, as provided when the ad unit was created.
  • name (type: String.t, default: nil) - Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
  • reportingDimensionId (type: String.t, default: nil) - Output only. Unique ID of the ad unit as used in the AD_UNIT_ID reporting dimension.
  • state (type: String.t, default: nil) - Required. State of the ad unit.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.AdSense.V2.Model.AdUnit{
  contentAdsSettings: GoogleApi.AdSense.V2.Model.ContentAdsSettings.t() | nil,
  displayName: String.t() | nil,
  name: String.t() | nil,
  reportingDimensionId: String.t() | nil,
  state: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.