with Alt Text Generator AI and Google Ad Manager?
Create a report in Google Ad Manager. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alt_text_generator_ai: {
type: "app",
app: "alt_text_generator_ai",
}
},
async run({steps, $}) {
const data = {
"image": `https://alttextgeneratorai.com/_next/image?url=%2Fhero1.jpg&w=1080&q=75`,
"wpkey": `${this.alt_text_generator_ai.$auth.api_key}`,
}
return await axios($, {
method: "post",
url: `https://alttextgeneratorai.com/api/wp`,
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_ad_manager: {
type: "app",
app: "google_ad_manager",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.google_ad_manager.$auth.oauth_access_token}`,
},
})
},
})