Skip to main content
POST
Accept a generated Google Ads asset

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

app_id
string
required

ID of the app whose Google Ads creative you want to generate or read.

session_asset_id
string
required

ID of the generated asset to attach, as returned in session_asset_id by Generate Google Ads assets or List Google Ads generated assets.

Body

application/json
session_id
string
required

The generation the asset came from, as returned in session_id by Generate Google Ads assets.

Example:

"9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f"

campaign_id
string
required

The Performance Max campaign to attach the asset to, as returned in id by List campaigns.

Example:

"68b1c0d4e7b91d003c45a1f2"

Response

The asset was attached to the campaign.

The outcome of attaching a generated asset to a campaign.

accepted
boolean
required

Always true on a success, so it carries no information beyond the status code. Read asset_group_count to see how far the attach reached.

Example:

true

session_asset_id
string
required

The asset that was attached, echoed from the path.

Example:

"b7f3a1c8-52d4-4a0e-9b31-2c6f0d8e4a19"

asset_field_type
string
required

Which slot on the ad this asset fills. Text assets are HEADLINE, LONG_HEADLINE or DESCRIPTION. Image assets are MARKETING_IMAGE, SQUARE_MARKETING_IMAGE, PORTRAIT_MARKETING_IMAGE or TALL_PORTRAIT_MARKETING_IMAGE.

Example:

"SQUARE_MARKETING_IMAGE"

kind
string
required

Whether the asset is copy (text) or a picture (image).

Example:

"image"

source
string
required

Which engine wrote it. The value is google for Google's own asset generation and inhouse for the Base44 model that covers languages Google does not generate for, and that stands in when Google's call fails.

Example:

"google"

asset_group_count
integer
required

How many of the campaign's asset groups the asset was linked to. The asset goes on every asset group the campaign has, so this is that count.

Example:

2

resource_name
string
required

Google Ads resource name of the asset that now holds this creative. Empty when Google's response carried no resource name, which does not mean the attach failed.

Example:

"customers/1234567890/assets/98765432"