Cmdlets for Snapchat Ads

Build 24.0.9060

Update-SnapchatAds Cmdlet

Parameters   Output Objects  

Updates Snapchat Ads data.

Syntax

Update-SnapchatAds [parameters]

Remarks

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

$conn = Connect-SnapchatAds -InitiateOAuth "GETANDREFRESH"
Update-SnapchatAds -Connection $conn -Table "Campaigns" -Columns @("Name") -Values @("Jon Doe") -Id "6"
The Where parameter can also be used to specify the primary key of the table:
Update-SnapchatAds -Connection $conn -Table "Campaigns" -Columns @("Name") -Values @("Jon Doe") -Where "Id = '6'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-SnapchatAds -Connection $conn -Table Campaigns -Where "Id = '123'" | Update-SnapchatAds -Columns @("Id") -Values @("123 2")

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