Home

CityGrid Advertising APIs

Skip to end of metadata
Go to start of metadata

Introduction

The CityGrid Places Status API is part of the Advertising API suite and is intended to help a partner or their advertisers understand if a local business, or Place, has been successfully added to or updated within the CityGrid Places dataset.  A new partner is only enabled to create listings after an internal review of their data quality.  Partners who cannot create listings must provide data that matches to an existing listing, or that place will not go live and will not generate connections.  There are multiple reasons a listing may not have matched and gone live; this is the information this API provides with the intent of providing transparency and a way for a partner and merchants to resolve these issues on their own.  Report information is available in both JSON or XML.

Contents

Endpoint

The operation is invoked via HTTPS GET to:

Request Parameters

Parameter

Description

Required

Type

Default

Example

place_id

Comma-separated list of place IDs. If specified, external_places_id must be left empty.

No

Long

 

4352,8473,242

external_place_id

Comma-separated list of external IDs of the place. If specified, place_ids must be left empty.

No

String

 

1,2,3,4

Request Header Values

Header

Description

Required

Valid Values

Accept

Requested format for the response

Yes

application/json
application/xml

authToken

Authentication Token from the Places Status API

Yes

Valid token

developerToken

The token received during registration

Yes

Valid token

Request Examples

Example 1: Get the status for place by place_ids that is owned by the authToken.
Example 2: Get the status of multiple places using external place IDs

Response Properties

Property

Type

Description

response

Response Metadata

(See complete response descriptions)

totalNumEntries

Integer

Total number of places in the response.

place_id

String

The place ID.

external_place_id

String

External place ID of the campaign.

status

{PENDING_BUSINESS_MATCH,

MATCHED,ENTITY_NOT_FOUND}

Status of the places in the system:

PENDING_BUSINESS_MATCH: Place is pending on matching process. If a place is in this state for more than a couple days then no match exists. Please verify accuracy of name, address and phone provided.

MATCHED: Place is matched and active.

ENTITY_NOT_FOUND: There are no places found given the id/external place id

create_date

String

When places is submitted. Returns empty if place not found

Response Examples

Success Response

The following shows success responses in JSON and XML format.

JSON
XML

Error Response

The following shows error responses (in JSON and XML format) when campaignId are not comma separated numbers.

JSON
XML


  • No labels