Developers » API methods » Ads API » ads.updateTargetGroup
Ads APIads.updateTargetGroup
Edits a retarget group.
This method can be called with a user token. Access rights required: ads.
Parameters
account_idAdvertising account ID.
required parameter, int (number)
client_idOnly for advertising agencies.
ID of the client with the advertising account where the group will be created.
int (number)
target_group_idGroup ID.
required parameter, int (number)
nameNew name of the target group a string up to 64 characters long.
required parameter, string
domainDomain of the site where user accounting code will be placed.
string
lifetimeOnly for the groups that get audience from sites with user accounting code.
Time in days when users added to a retarget group will be automatically excluded from it.
0 automatic exclusion is off.
int (number), required parameter, minimum value 1, maximum value 720
target_pixel_id
int (number)
target_pixel_rules
JSON data
Result
In case of success returns 1.
Errors
601Permission denied. You have requested too many actions this day. Try later.
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
5.102
Story attachments are now available in the methods of the messages section.

Messages that do not fit into the Bots Long Poll API or Callback API will be cropped and tagged is_cropped. If cropping occurs, only one forwarded message or reply, and only one attachment will remain for each message.

For methods ads.createTargetGroup and ads.updateTargetGroup, the parameter lifetime is now required. The parameter can have values from 1 to 720.

Stories in stories.get from the same creator are received in chronological order. In the past, it was the other way around.

The parameter clickable_stickers was added to the methods stories.getPhotoUploadServer and stories.getVideoUploadServer