Learn R Programming

fbRads (version 17.0.0)

fbad_copy_ad: Create a copy of an ad.

Description

Create a copy of an ad.

Usage

fbad_copy_ad(
  fbacc,
  ad_id,
  adset_id = NULL,
  status_option = NULL,
  rename_strategy = NULL,
  rename_prefix = NULL,
  rename_suffix = NULL,
  ...
)

Arguments

fbacc

(optional) FB_Ad_account object, which defaults to the last returned object of fbad_init.

ad_id

(numeric string or integer) id of the ad that you want to copy

adset_id

(numeric string or integer) id adset you want to create a copy of the ad into

status_option

(string) enum ACTIVE, PAUSED, INHERITED_FROM_SOURCE

rename_strategy

(string) enum DEEP_RENAME, ONLY_TOP_LEVEL_RENAME, NO_RENAME

rename_prefix

(string) a prefix to copy names. Defaults to null if not provided

rename_suffix

(string) a suffix to copy names. Defaults to null if not provided

...

further arguments passed to the API endpoint

References

https://developers.facebook.com/docs/marketing-api/reference/adgroup/copies#Creating