Store ad cost
documentedStores advertising cost data for a site, including cost, currency, dates, and campaign identifiers.
PUT /v1/{siteId}/adcost/uploadAd Costsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://rest.rulerapi.com/v1/{{$siteId}}/adcost/upload" \
-X PUT \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"CaptureDateIso": "{{$captureDateIso}}", "Cost": {{$cost}}, "CurrencyCode": "{{$currencyCode}}", "Impressions": {{$impressions}}, "Clicks": {{$clicks}}, "MarketingSource": "{{$marketingSource}}", "AdCostType": "{{$adCostType}}", "CampaignIdentifiers": [ { "IdentifierName": "{{$campaignIdentifierName}}", "IdentifierValue": "{{$campaignIdentifierValue}}", "Importance": {{$campaignIdentifierImportance}} } ], "AdditionalProperties": [ { "Name": "{{$additionalPropertyName1}}", "Value": "{{$additionalPropertyValue1}}" } ] }'