Marketing API Version

ProductCatalog

Fields

id, name

ProductCatalog.add_external_event_sources (pixel_ids)

Add external event sources such as pixel to the product catalog.

Name Type Description Required

pixel_ids

array

An array of pixel IDs.

Yes

Sample Code

catalog = ProductCatalog('490042447847165')
response = catalog.add_external_event_sources(pixel_ids=[
    '417531085081002',
])
print response

ProductCatalog.get_external_event_sources (fields, params)

Returns iterator that lists event sources associated with the product catalog

Name Type Description Required

fields

array

A list of fields to read.

No

params

map

A mapping of request parameters where a key is the parameter name and its value is a string or an object which can be JSON-encoded.

No

Sample Code

catalog = ProductCatalog('490042447847165')
sources = catalog.get_external_event_sources()
print sources

ProductCatalog.get_product_feeds (fields, params)

Returns a iterator product feeds associated with the product catalog.

Name Type Description Required

fields

array

A list of fields to read.

No

params

map

A mapping of request parameters where a key is the parameter name and its value is a string or an object which can be JSON-encoded.

No

Sample Code

catalog = ProductCatalog('490042447847165')
feeds = catalog.get_product_feeds()
if feeds:
    print feeds[0]

ProductCatalog.remove_external_event_sources (pixel_ids)

Remove external event sources such as pixel from the product catalog.

Name Type Description Required

pixel_ids

array

An array of pixel IDs.

Yes

Sample Code

catalog = ProductCatalog('490042447847165')
response = catalog.remove_external_event_sources(pixel_ids=[
    '417531085081002',
])
print response