Campaign Manager 360 API . postalCodes

Instance Methods

close()

Close httplib2 connections.

get(profileId, code, x__xgafv=None)

Gets one postal code by ID.

list(profileId, x__xgafv=None)

Retrieves a list of postal codes.

Method Details

close()
Close httplib2 connections.
get(profileId, code, x__xgafv=None)
Gets one postal code by ID.

Args:
  profileId: string, User profile ID associated with this request. (required)
  code: string, Postal code ID. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Contains information about a postal code that can be targeted by ads.
  "code": "A String", # Postal code. This is equivalent to the id field.
  "countryCode": "A String", # Country code of the country to which this postal code belongs.
  "countryDartId": "A String", # DART ID of the country to which this postal code belongs.
  "id": "A String", # ID of this postal code.
  "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode".
}
list(profileId, x__xgafv=None)
Retrieves a list of postal codes.

Args:
  profileId: string, User profile ID associated with this request. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Postal Code List Response
  "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCodesListResponse".
  "postalCodes": [ # Postal code collection.
    { # Contains information about a postal code that can be targeted by ads.
      "code": "A String", # Postal code. This is equivalent to the id field.
      "countryCode": "A String", # Country code of the country to which this postal code belongs.
      "countryDartId": "A String", # DART ID of the country to which this postal code belongs.
      "id": "A String", # ID of this postal code.
      "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode".
    },
  ],
}