account | GadsAccountItem or object or array of object or string or integer | Yes | - | Select the Google Ads account. |
action | string or SelectableOption | Yes | - | Choose whether to attach or detach a label. Options: ‘attach’, ‘detach’. |
entity_type | string or SelectableOption | Yes | - | The type of entity to apply the label to. Options: ‘campaign’, ‘ad_group’, ‘ad’, ‘keyword’, ‘customer’. |
entity_ids | string or array of string | No | - | Entity IDs to attach/detach the label to/from. Comma or newline separated. For ads, you can provide either a plain ad ID (e.g. 662800495135) or composite format (ad_group_idad_id). For keywords, you can provide either a plain keyword ID (e.g. 2076981815) or composite format (ad_group_idcriterion_id). Not needed for ‘customer’ entity type. |
label_id | string or SelectItem | Yes | - | The label ID or name to attach or detach. If a name is provided, it will be looked up automatically. |