Merchant Center helps businesses promote their products across Google.
Creates a product in your Google Merchant Center account. See the documentation
Updates an existing product in your Google Merchant Center account. See the documentation
The Google Merchant Center API allows for programmatic interaction with your Google Merchant account, enabling data uploads, fetching product status, and managing listings directly. By leveraging this API within Pipedream, you can automate numerous tasks, such as syncing inventory levels, updating pricing, or managing product information across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_merchant_center: {
type: "app",
app: "google_merchant_center",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.google_merchant_center.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})