Skip to main content
All CollectionsAPI
Update an offer link (Final destination URL) for Advertising Campaigns
Update an offer link (Final destination URL) for Advertising Campaigns

How to update an offer link (Final destination URL) for Advertising Campaigns by using API?

HilltopAds avatar
Written by HilltopAds
Updated over 9 months ago

Method: PATCH /advertiser/setDestinationUrl

Description: You can update the offer's Final Destination URL in the advertising campaign created in your HilltopAds account.

Please note that changing the URL may result in the campaign undergoing re-moderation. During the moderation process, traffic will continue to be directed to the old URL.

Parameters:

name

description

example

comment

key

A unique API key that you can generate in the API section of your HilltopAds account

nXzgO3Bc

This is a required parameter in the request.

campaignID

ID of the advertising campaign for which you need to update the offer link

123456

You can specify the ID of only one advertising campaign.

This is a required parameter in the request.

url

URL link to update the Final Destination URL of the advertising campaign

You can specify only one link.

This is a required parameter in the request.


Request Example:

To update the link to https://mywebsite.com/?token={{ctoken}}&zone={{zone_id}} for a specific campaign, whose ID is 123456, you need to write the following request:

https://hilltopads.com/api/advertiser/setDestinationUrl?key=nXzgO3Bc&campaignId=123456&url=https%3A%2F%2Fmywebsite.com%2F%3Ftoken%3D%26zone%3D%7B%7Bzone_id%7D%7


Please note that if your link contains the '&' symbol, you need to encode it to URL-encoded format. Otherwise, you may receive an error in the response to the link change request.


For example, the link

https://mywebsite.com/?token={{ctoken}}&zone={{zone_id}}

should be specified as

https%3A%2F%2Fmywebsite.com%2F%3Ftoken%3D%26zone%3D

To encode your link to URL-encoded format, you can use the tool.

Did this answer your question?