Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Campaign ACS API "No match in backends for the given tenant id"

Avatar

Avatar
Validate 1
Level 2
AditThom
Level 2

Likes

9 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
AditThom
Level 2

Likes

9 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
AditThom
Level 2

04-04-2019

Hello!

I am working, for a customer, on a server side proxy in C# for the Campaign APIs and after fighting my way through the JWT authentication using the Microsoft jwt libraries I was ready to try out my first test following the examples here Campaign Standard: use APIs to optimize your cross-channel campaigns

I have built out the call as noted in the documentation... and so I am calling https://mc.adobe.io/<instance>.adobe.com/campaign/profileAndServices/service  where <instance> is my instance name.   I have previously created the integration in Adobe IO console.

When I make the call, though, all I get back is {"headers":{"X-Request-Id":"ngx.var.requestId"},"http_status":400,"message":"No match in backends for the given tenant id."}

What am I missing?

Thanks,

Thom

Below is the code that makes the call

public async Task<SubscriptionServiceList> GetAvailableSubsriptionServicesAsync() {

            SubscriptionServiceList result = new SubscriptionServiceList();

            ApiAccessToken AccessToken = GetAccessToken();

            result.AsOfDate = DateTime.Now;

            HttpClient client = new HttpClient();

            var httpRequestMessage = new HttpRequestMessage {

                Method = HttpMethod.Get,

                RequestUri = new Uri(ServiceListingEndpoint),

                Headers = {

                    {HttpRequestHeader.ContentType.ToString(),"application/json" },

                    { HttpRequestHeader.Authorization.ToString(), AccessToken.HttpRequestHeaderText },

                    { HttpRequestHeader.CacheControl.ToString(), "no-cache" },

                    { "X-Api-Key", APIKey }

                }

            };

            Task<HttpResponseMessage> t = client.SendAsync(httpRequestMessage);

            t.Wait();

            HttpResponseMessage response = t.Result;

            using (HttpContent respContent = response.Content) {

                string toLoad = await respContent.ReadAsStringAsync();

                System.Diagnostics.Debug.WriteLine (toLoad)

                //TODO load string into JSON object for parsing and load response value

            }

            return result;

        }

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
ramon_bisswange
Employee

Likes

243 likes

Total Posts

353 posts

Correct Reply

182 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Employee
ramon_bisswange
Employee

Likes

243 likes

Total Posts

353 posts

Correct Reply

182 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
ramon_bisswange
Employee

04-04-2019

The tenant in the url is only the instance name and shall not contain the parrt ".adobe.com"

Answers (2)

Answers (2)

Avatar

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
pablo_rosero1
Level 10

05-04-2019

Forwarding this to the documentation team.

Thanks for the catch, Thom!

Avatar

Avatar
Validate 1
Level 2
AditThom
Level 2

Likes

9 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
AditThom
Level 2

Likes

9 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
AditThom
Level 2

04-04-2019

Thanks for the quick reply!  I could swear I had tried that before, but I removed the extra ".adobe.com" and it seems to be working now.   Notably, the documentation for lesson 5 at Campaign Standard: use APIs to optimize your cross-channel campaigns says it should be there.