Validate Google Campaign Without Creating It
curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/validate-google-campaign \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"adAccountId": "<string>",
"payload": {
"budget": {
"name": "<string>",
"amountMicros": 1,
"explicitlyShared": true
},
"campaign": {
"name": "<string>",
"status": "PAUSED",
"advertisingChannelType": "SEARCH",
"geoTargetTypeSetting": {},
"networkSettings": {},
"containsEuPoliticalAdvertising": "<string>"
},
"adGroup": {
"name": "<string>",
"status": "PAUSED",
"type": "SEARCH_STANDARD"
},
"ad": {
"status": "PAUSED",
"type": "RESPONSIVE_SEARCH_AD",
"responsiveSearchAd": {
"headlines": [
{
"text": "<string>"
}
],
"descriptions": [
{
"text": "<string>"
}
]
},
"finalUrls": [
"<string>"
]
},
"keywords": [
{
"text": "<string>"
}
]
}
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adAccountId: '<string>',
payload: {
budget: {name: '<string>', amountMicros: 1, explicitlyShared: true},
campaign: {
name: '<string>',
status: 'PAUSED',
advertisingChannelType: 'SEARCH',
geoTargetTypeSetting: {},
networkSettings: {},
containsEuPoliticalAdvertising: '<string>'
},
adGroup: {name: '<string>', status: 'PAUSED', type: 'SEARCH_STANDARD'},
ad: {
status: 'PAUSED',
type: 'RESPONSIVE_SEARCH_AD',
responsiveSearchAd: {headlines: [{text: '<string>'}], descriptions: [{text: '<string>'}]},
finalUrls: ['<string>']
},
keywords: [{text: '<string>'}]
}
})
};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/validate-google-campaign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/validate-google-campaign"
payload = {
"adAccountId": "<string>",
"payload": {
"budget": {
"name": "<string>",
"amountMicros": 1,
"explicitlyShared": True
},
"campaign": {
"name": "<string>",
"status": "PAUSED",
"advertisingChannelType": "SEARCH",
"geoTargetTypeSetting": {},
"networkSettings": {},
"containsEuPoliticalAdvertising": "<string>"
},
"adGroup": {
"name": "<string>",
"status": "PAUSED",
"type": "SEARCH_STANDARD"
},
"ad": {
"status": "PAUSED",
"type": "RESPONSIVE_SEARCH_AD",
"responsiveSearchAd": {
"headlines": [{ "text": "<string>" }],
"descriptions": [{ "text": "<string>" }]
},
"finalUrls": ["<string>"]
},
"keywords": [{ "text": "<string>" }]
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}Campaign actions
Validate Google Campaign Without Creating It
Ask Google to validate the exact paused campaign payload and account eligibility before review. This fixed validation-only operation never creates campaign, budget or creative objects. Validation is not publication and does not guarantee later policy approval.
POST
/
platform
/
{resourceUrl}
/
actions
/
validate-google-campaign
Validate Google Campaign Without Creating It
curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/validate-google-campaign \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"adAccountId": "<string>",
"payload": {
"budget": {
"name": "<string>",
"amountMicros": 1,
"explicitlyShared": true
},
"campaign": {
"name": "<string>",
"status": "PAUSED",
"advertisingChannelType": "SEARCH",
"geoTargetTypeSetting": {},
"networkSettings": {},
"containsEuPoliticalAdvertising": "<string>"
},
"adGroup": {
"name": "<string>",
"status": "PAUSED",
"type": "SEARCH_STANDARD"
},
"ad": {
"status": "PAUSED",
"type": "RESPONSIVE_SEARCH_AD",
"responsiveSearchAd": {
"headlines": [
{
"text": "<string>"
}
],
"descriptions": [
{
"text": "<string>"
}
]
},
"finalUrls": [
"<string>"
]
},
"keywords": [
{
"text": "<string>"
}
]
}
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adAccountId: '<string>',
payload: {
budget: {name: '<string>', amountMicros: 1, explicitlyShared: true},
campaign: {
name: '<string>',
status: 'PAUSED',
advertisingChannelType: 'SEARCH',
geoTargetTypeSetting: {},
networkSettings: {},
containsEuPoliticalAdvertising: '<string>'
},
adGroup: {name: '<string>', status: 'PAUSED', type: 'SEARCH_STANDARD'},
ad: {
status: 'PAUSED',
type: 'RESPONSIVE_SEARCH_AD',
responsiveSearchAd: {headlines: [{text: '<string>'}], descriptions: [{text: '<string>'}]},
finalUrls: ['<string>']
},
keywords: [{text: '<string>'}]
}
})
};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/validate-google-campaign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/validate-google-campaign"
payload = {
"adAccountId": "<string>",
"payload": {
"budget": {
"name": "<string>",
"amountMicros": 1,
"explicitlyShared": True
},
"campaign": {
"name": "<string>",
"status": "PAUSED",
"advertisingChannelType": "SEARCH",
"geoTargetTypeSetting": {},
"networkSettings": {},
"containsEuPoliticalAdvertising": "<string>"
},
"adGroup": {
"name": "<string>",
"status": "PAUSED",
"type": "SEARCH_STANDARD"
},
"ad": {
"status": "PAUSED",
"type": "RESPONSIVE_SEARCH_AD",
"responsiveSearchAd": {
"headlines": [{ "text": "<string>" }],
"descriptions": [{ "text": "<string>" }]
},
"finalUrls": ["<string>"]
},
"keywords": [{ "text": "<string>" }]
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
A server-side Bily API key created under Settings > AI tools > Access keys. Select the intended workspace before creating it.
Headers
An organization ID returned by GET /context or GET /organizations. Omit it when a scoped key supplies the organization. Otherwise provide it when no organization is selected.
Example:
"org_01J8W7T9G3E6ZQ4M2K5N8P1R0S"
Path Parameters
Exact workspace URL returned by GET /context.
Body
application/json
Response
Request completed. Inspect the returned state and any verification fields.
The response is of type object.