Cmdlets for Facebook Ads

Build 24.0.9060

Update-FacebookAds Cmdlet

Parameters   Output Objects  

Updates Facebook Ads data.

Syntax

Update-FacebookAds [parameters]

Remarks

The Update-FacebookAds cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Facebook Ads data.

$conn = Connect-FacebookAds
Update-FacebookAds -Connection $conn -Table "AdAccounts" -Columns @("Name") -Values @("Act Name") -Id "act_1111"
The Where parameter can also be used to specify the primary key of the table:
Update-FacebookAds -Connection $conn -Table "AdAccounts" -Columns @("Name") -Values @("Act Name") -Where "Id = 'act_1111'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-FacebookAds -Connection $conn -Table AdAccounts -Where "Name = 'Act Name'" | Update-FacebookAds -Columns @("Name") -Values @("Act Name 2")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060