Ensure a GAM advertiser exists
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/esa/{esaId}/gam/advertisers/ensure \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/esa/{esaId}/gam/advertisers/ensure"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.interchange.io/api/v2/storefront/esa/{esaId}/gam/advertisers/ensure', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"advertiser": {
"id": "<string>",
"name": "<string>",
"status": "<string>",
"currencyCode": "<string>"
},
"created": true,
"dryRun": true,
"permissionEvidence": {
"status": "verified",
"observedAt": "2023-11-07T05:31:56Z",
"evidenceMethod": "real_create"
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Storefront Ad Server Buyer Routing
Ensure a GAM advertiser exists
Create or find a Google Ad Manager advertiser by name for a Google Ad Manager-backed ad server source. The returned advertiser id can be used as the default advertiser or in buyer-specific mappings.
POST
/
esa
/
{esaId}
/
gam
/
advertisers
/
ensure
Ensure a GAM advertiser exists
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/esa/{esaId}/gam/advertisers/ensure \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/esa/{esaId}/gam/advertisers/ensure"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.interchange.io/api/v2/storefront/esa/{esaId}/gam/advertisers/ensure', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"advertiser": {
"id": "<string>",
"name": "<string>",
"status": "<string>",
"currencyCode": "<string>"
},
"created": true,
"dryRun": true,
"permissionEvidence": {
"status": "verified",
"observedAt": "2023-11-07T05:31:56Z",
"evidenceMethod": "real_create"
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Path Parameters
Ad server source connection id. The wire field remains esaId for API compatibility.
Required range:
0 < x <= 9007199254740991Example:
123
Response
Ensure a GAM advertiser exists
Show child attributes
Show child attributes
Effective credential authorization for one advertiser-capability operation. absent is a first-class 'no safe probe has run' observed fact — never defaulted from a read, never coerced to denied or verified.
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes