with Google Ad Manager and Ambient Weather?
Create a report in Google Ad Manager. See the documentation
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}`,
},
})
},
})
The Ambient Weather API provides real-time access to personal weather station data, enabling you to monitor and analyze environmental conditions. Through Pipedream's integration, you can automate actions based on this data, such as triggering alerts when specific weather thresholds are reached, logging climate trends for analysis, or controlling smart home devices to adapt to changing conditions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ambient_weather: {
type: "app",
app: "ambient_weather",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.ambient_weather.$auth.subdomain}.ambientweather.net/v1/devices`,
params: {
applicationKey: `${this.ambient_weather.$auth.application_key}`,
apiKey: `${this.ambient_weather.$auth.api_key}`,
},
})
},
})