Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default banners to go to the Zesty DSIG relay #245

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/utils/networking.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const MOCK_IFRAME_SETUP2 = {
test.describe('fetchCampaignAd', () => {
test('fetchCampaignAd should return a default banner if no URI is given', () => {
return expect(fetchCampaignAd()).resolves.toMatchObject(
{ Ads: [{ asset_url: DEFAULT_BANNER, cta_url: 'https://www.zesty.xyz' }], CampaignId: 'DefaultCampaign'}
{ Ads: [{ asset_url: DEFAULT_BANNER, cta_url: 'https://relay.zesty.xyz' }], CampaignId: 'DefaultCampaign'}
)
});

Expand Down
2 changes: 1 addition & 1 deletion unity/Assets/ZestySDK/Scripts/Internal/API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static IEnumerator GetRequest(string url, string[] elmsKey, Action<Banner
if (isConnectionOrProtocolError(request)) {
Debug.Log("GET request error: " + request.error);
Debug.Log("Tried to retrieve: " + url);
List<Ad> Ads = new List<Ad> { new Ad() { asset_url = Formats.MediumRectangle.Images[0], cta_url = "www.zesty.xyz" } };
List<Ad> Ads = new List<Ad> { new Ad() { asset_url = Formats.MediumRectangle.Images[0], cta_url = "relay.zesty.xyz" } };
string CampaignId = "TestCampaign";
callback(new BannerInfo { Ads = Ads, CampaignId = CampaignId });
} else {
Expand Down
2 changes: 1 addition & 1 deletion unity/Assets/ZestySDK/Scripts/Internal/Utils/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Zesty {
public static class Constants {
// API
public const string ZESTY_URL = "https://www.zesty.xyz";
public const string ZESTY_URL = "https://relay.zesty.xyz";
public const string BEACON_URL = "https://beacon.zesty.market/api/v1";
public const string BEACON2_URL = "https://beacon2.zesty.market/zgraphql";
public const string AD_SERVER_URL = "https://api.zesty.xyz/api";
Expand Down
Binary file modified unity/zesty-unity-sdk.unitypackage
Binary file not shown.
2 changes: 1 addition & 1 deletion utils/networking.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const getOverrideUnitInfo = (adUnitId) => {
}

const getDefaultBanner = (format, style, shouldOverride = false, overrideFormat = null) => {
return { Ads: [{ asset_url: formats[shouldOverride ? overrideFormat : format].style[style], cta_url: 'https://www.zesty.xyz' }], CampaignId: 'DefaultCampaign' }
return { Ads: [{ asset_url: formats[shouldOverride ? overrideFormat : format].style[style], cta_url: 'https://relay.zesty.xyz' }], CampaignId: 'DefaultCampaign' }
}

const fetchCampaignAd = async (adUnitId, format = 'tall', style = 'standard') => {
Expand Down
Loading