Google Ads Data Manager V1 Client - Class AddressInfo (0.1.0)

Reference documentation and code samples for the Google Ads Data Manager V1 Client class AddressInfo.

Address information for the user.

Generated from protobuf message google.ads.datamanager.v1.AddressInfo

Namespace

Google \ Ads \ DataManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ given_name string

Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

↳ family_name string

Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

↳ region_code string

Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.

↳ postal_code string

Required. The postal code of the user's address.

getGivenName

Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

Returns
Type Description
string

setGivenName

Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

Parameter
Name Description
var string
Returns
Type Description
$this

getFamilyName

Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

Returns
Type Description
string

setFamilyName

Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

Parameter
Name Description
var string
Returns
Type Description
$this

getRegionCode

Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.

Returns
Type Description
string

setRegionCode

Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.

Parameter
Name Description
var string
Returns
Type Description
$this

getPostalCode

Required. The postal code of the user's address.

Returns
Type Description
string

setPostalCode

Required. The postal code of the user's address.

Parameter
Name Description
var string
Returns
Type Description
$this