This API request stores and updates Bing ad cost data for a specific site using the HTTP method PUT. The request includes the following parameters:
SiteId
stringRequiredThe ID of the site for which to add or update ad cost data
Authorization
stringRequired The authorization token for accessing the API. The header value should be set to "Bearer {your-access-token}", where {your-access-token}
is the access token assigned to the user.
The data containing the ad cost information to store or update. The payload should include the following parameters:
TimePeriod
stringRequiredThe TimePeriod for the ad capture, must be in ISO 8601 format. yyyy-MM-ddTHH:mm:ssZ
AccountId
numberRequiredThe Account Id for bing.
CampaignId
numberRequiredThe Campaign Id associated with the bing ad.
CampaignName
stringRequiredThe Campaign Name associated with the bing ad.
CampaignStatus
stringRequiredThe Campaign Status.
Clicks
numberRequiredThe Clicks associated with the bing ad.
Spend
numberRequiredThe Spend associated with the bing ad.
Impressions
numberThe Impressions associated with the bing ad.
Keyword
stringThe Keyword associated with the bing ad.
The {siteId}
parameter in the URL endpoint should be replaced with the appropriate ID for the site being updated, and the {your-access-token}
parameter in the authorization header should be replaced with the appropriate access token.
curl -X PUT \ 'https://rest.rulerapi.com/v1/{siteId}/adcosts/bing' \ -H 'Authorization: Bearer {your-access-token}' \ -H 'Content-Type: application/json' \ -d '{ "TimePeriod": "{TimePeriod}", "AccountId": {AccountId}, "CampaignId": {CampaignId}, "CampaignName": "{CampaignName}", "CampaignStatus": "{CampaignStatus}", "Clicks": {Clicks}, "Spend": {Spend}, "Impressions": {Impressions}, "Keyword": "{Keyword}" }'