curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/manage-google-demand-gen-asset \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"adAccountId": "<string>",
"sourceAuthority": {
"dataSourceAdAccountId": "<string>",
"dataSourceConnectorId": "<string>"
},
"payload": {
"operation": "create-ad",
"campaignId": "<string>",
"adGroupId": "<string>",
"expectedFingerprint": "<string>",
"status": "PAUSED",
"creative": {
"format": "VIDEO",
"businessName": "<string>",
"finalUrl": "<string>",
"headlines": [
"<string>"
],
"longHeadlines": [
"<string>"
],
"descriptions": [
"<string>"
],
"videoAssetResourceNames": [
"<string>"
],
"logoAssetResourceNames": [
"<string>"
]
},
"name": "<string>"
}
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adAccountId: '<string>',
sourceAuthority: {dataSourceAdAccountId: '<string>', dataSourceConnectorId: '<string>'},
payload: {
operation: 'create-ad',
campaignId: '<string>',
adGroupId: '<string>',
expectedFingerprint: '<string>',
status: 'PAUSED',
creative: {
format: 'VIDEO',
businessName: '<string>',
finalUrl: '<string>',
headlines: ['<string>'],
longHeadlines: ['<string>'],
descriptions: ['<string>'],
videoAssetResourceNames: ['<string>'],
logoAssetResourceNames: ['<string>']
},
name: '<string>'
}
})
};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/manage-google-demand-gen-asset', 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/manage-google-demand-gen-asset"
payload = {
"adAccountId": "<string>",
"sourceAuthority": {
"dataSourceAdAccountId": "<string>",
"dataSourceConnectorId": "<string>"
},
"payload": {
"operation": "create-ad",
"campaignId": "<string>",
"adGroupId": "<string>",
"expectedFingerprint": "<string>",
"status": "PAUSED",
"creative": {
"format": "VIDEO",
"businessName": "<string>",
"finalUrl": "<string>",
"headlines": ["<string>"],
"longHeadlines": ["<string>"],
"descriptions": ["<string>"],
"videoAssetResourceNames": ["<string>"],
"logoAssetResourceNames": ["<string>"]
},
"name": "<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>"
}Create or Edit a Paused Demand Gen Video Ad
Add a video ad under an existing standard non-product-feed Demand Gen ad group or edit its reviewed video creative. Save through bily.actions.saveAdDraft, review, then publish the saved draft. Require the current parent/ad fingerprint and existing same-advertiser YouTube video plus square logo asset references. Edits atomically pause the ad and replace only reviewed creative fields; Google ad names are immutable. Validate before the write and independently read back the exact paused creative. No upload pipeline, product-feed variant, classic Video campaign mutation or automatic replay is supported. This is an execution endpoint. For a reviewed user change, save its supported capability/body as an immutable action draft, review it, and explicitly publish that draft. Check action-jobs/capabilities before staging; a catalog entry alone does not make it stageable.
curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/manage-google-demand-gen-asset \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"adAccountId": "<string>",
"sourceAuthority": {
"dataSourceAdAccountId": "<string>",
"dataSourceConnectorId": "<string>"
},
"payload": {
"operation": "create-ad",
"campaignId": "<string>",
"adGroupId": "<string>",
"expectedFingerprint": "<string>",
"status": "PAUSED",
"creative": {
"format": "VIDEO",
"businessName": "<string>",
"finalUrl": "<string>",
"headlines": [
"<string>"
],
"longHeadlines": [
"<string>"
],
"descriptions": [
"<string>"
],
"videoAssetResourceNames": [
"<string>"
],
"logoAssetResourceNames": [
"<string>"
]
},
"name": "<string>"
}
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adAccountId: '<string>',
sourceAuthority: {dataSourceAdAccountId: '<string>', dataSourceConnectorId: '<string>'},
payload: {
operation: 'create-ad',
campaignId: '<string>',
adGroupId: '<string>',
expectedFingerprint: '<string>',
status: 'PAUSED',
creative: {
format: 'VIDEO',
businessName: '<string>',
finalUrl: '<string>',
headlines: ['<string>'],
longHeadlines: ['<string>'],
descriptions: ['<string>'],
videoAssetResourceNames: ['<string>'],
logoAssetResourceNames: ['<string>']
},
name: '<string>'
}
})
};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/manage-google-demand-gen-asset', 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/manage-google-demand-gen-asset"
payload = {
"adAccountId": "<string>",
"sourceAuthority": {
"dataSourceAdAccountId": "<string>",
"dataSourceConnectorId": "<string>"
},
"payload": {
"operation": "create-ad",
"campaignId": "<string>",
"adGroupId": "<string>",
"expectedFingerprint": "<string>",
"status": "PAUSED",
"creative": {
"format": "VIDEO",
"businessName": "<string>",
"finalUrl": "<string>",
"headlines": ["<string>"],
"longHeadlines": ["<string>"],
"descriptions": ["<string>"],
"videoAssetResourceNames": ["<string>"],
"logoAssetResourceNames": ["<string>"]
},
"name": "<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
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.
"org_01J8W7T9G3E6ZQ4M2K5N8P1R0S"
Path Parameters
Exact workspace URL returned by GET /context.
Body
Response
Request completed. Inspect the returned state and any verification fields.
The response is of type object.