Campaign Manager 360 API . cities

Instance Methods

close()

Close httplib2 connections.

list(profileId, regionDartIds=None, namePrefix=None, countryDartIds=None, dartIds=None, x__xgafv=None)

Retrieves a list of cities, possibly filtered.

Method Details

close()
Close httplib2 connections.
list(profileId, regionDartIds=None, namePrefix=None, countryDartIds=None, dartIds=None, x__xgafv=None)
Retrieves a list of cities, possibly filtered.

Args:
  profileId: string, User profile ID associated with this request. (required)
  regionDartIds: string, Select only cities from these regions. (repeated)
  namePrefix: string, Select only cities with names starting with this prefix.
  countryDartIds: string, Select only cities from these countries. (repeated)
  dartIds: string, Select only cities with these DART IDs. (repeated)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # City List Response
    "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#citiesListResponse".
    "cities": [ # City collection.
      { # Contains information about a city that can be targeted by ads.
        "countryCode": "A String", # Country code of the country to which this city belongs.
        "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs.
        "name": "A String", # Name of this city.
        "regionDartId": "A String", # DART ID of the region to which this city belongs.
        "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs.
        "regionCode": "A String", # Region code of the region to which this city belongs.
        "countryDartId": "A String", # DART ID of the country to which this city belongs.
        "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports.
        "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city".
      },
    ],
  }