generative(default): Gravity makes the ads for the group from yourcontextandad_prompt. If you send authoredads, the response is422.manual: you write the ads in theadsarray or with the ads endpoints below. You cannot change generated ads. You can change or archive only manual ads.
GET /advertiser-dashboard/ad-groups
List your ad groups. Each group contains its ads, up to 100 for each group. ads_total gives the full count. Without campaign_id, the list has at most 2,000 ad groups.string
Show only one campaign.
boolean
default:"false"
Include archived groups.
Request
Response
POST /advertiser-dashboard/ad-groups
Create an ad group in one of your campaigns.string
required
The campaign for the group. Your account must own it.
string
required
The ad group name, at most 500 characters.
string
default:"generative"
generative or manual.string
default:"active"
active, paused, or archived.string
The target context. Gravity uses it to match conversations, and to make ads for generative groups.
string
The conversations to avoid.
string
A prompt that guides the ad generation (generative groups).
string
The default landing page for the ads of the group.
string
The brand that you advertise. Users see it. Gravity uses it as the title of an ad that has no
headline. Send the product or company that you advertise ("Acme"). Do not send an internal account, workspace, or person label ("Jane Doe on YourApp"). If you do not send it, Gravity uses the host name of landing_page. At most 500 characters.string
The default image for the ads of the group, for example the brand logo or a product image. An ad uses it when the ad has no
image_url. A generated ad copies the group image when Gravity generates the ad. So a later change to the group image_url does not replace an image that is already on a generated ad. The URL must point to a public PNG, JPEG, GIF, or WebP file (not a web page) of 10 MB or less. Some delivery networks need an image on each ad. See Ad images.integer
Legacy stored field. Set the delivery budget on the campaign.
number
The maximum cost per click for the group, in dollars. It applies on a click-billed (
cpc) campaign. Gravity ignores it on an impression-billed campaign. Gravity reads 0 as no value.array
The countries to target for this group.
array
The platforms to target for this group.
array
Authored ads (manual groups only). Each ad accepts
name, headline (at most 80 characters), copy (at most 500 characters), cta (at most 80 characters), description, landing_page, image_url, and status.201 with the new group and its ads, in the same shape as the list response. If you send authored ads to a generative group, the response is 422.Request
Ad images
Some delivery networks need an image on each ad. Gravity uses the first image of this list that has a value:- The
image_urlof the ad. An authored ad gets it from your request. A generated ad copies theimage_urlof the group when Gravity generates the ad. - The current
image_urlof the ad group. - The custom favicon of the campaign.
- A favicon that Gravity finds for the domain of the landing page. This lookup fails for many domains, so do not depend on it.
ad_image_required (and ad_sync_failed) in delivery_issues. The network_review.reason of the ad is: “The delivery network requires an image for this ad. Set image_url on the ad or its ad group to resubmit it.”
To fix it, do one of these steps:
- Set
image_urlon the ad group withPATCH /advertiser-dashboard/ad-groups/{ad_group_id}. - Set
image_urlon an authored ad withPATCH /advertiser-dashboard/ads/{ad_id}.
image_url of the group.
GET /advertiser-dashboard/ad-groups/{ad_group_id}
Get one ad group with its ads. If the ad group is not in your account, the response is 404.
PATCH /advertiser-dashboard/ad-groups/{ad_group_id}
Change the fields of an ad group. Send only the fields that you want to change. You cannot change a manual group to generative while it has manual ads that are not archived (422). When you set or change image_url, Gravity submits the failed ads of the group again.Request
DELETE /advertiser-dashboard/ad-groups/{ad_group_id}
Archive an ad group and its ads. The response is 204.
POST /advertiser-dashboard/ad-groups/{ad_group_id}/ads
Write an ad in a manual group. The response is 201 with the new ad. On a generative group, the response is 422.Request
Response 201
GET /advertiser-dashboard/ads/{ad_id}
Get one ad. If the ad is not in your account, the response is 404.
PATCH /advertiser-dashboard/ads/{ad_id}
Change a manual ad (headline, copy, cta, landing_page, status, and the other ad fields). You cannot change generated ads. For a generated ad, the response is 422.
DELETE /advertiser-dashboard/ads/{ad_id}
Archive a manual ad. The response is 204. For a generated ad, the response is 422.