Is it possible to add a CTA to a single image ad through Marketing API?

fl_quintero 1 Reputation point
2021-10-19T05:41:36.337+00:00

Hi all,

I'm using the marketing API and was trying to create a single image ad. I was able to add everything to match the campaign manager fields except for call to action. I looked everywhere and can't find a reference to adding a call to action for a share in the share api so i can then use when creating the ad creative. I'm assuming it is possible because the campaign manager UI allows the user to do it, and since I'm able to match everything else I figured a CTA was possible too.

I used the structure below to create a share using the share api (to use as reference in the creative), I believe the property for CTA might be needed here somewhere. I tried adding it directly into where I create an Ad Creative referencing the share, but it seems CTAs there are only possible when creating Ad Gen creatives.

 {
      content: {
        contentEntities: [
          {
            entityLocation: {{destinationUrl}},
            thumbnails: [
              {
                resolvedUrl: {{url}},
              },
            ],
          },
        ],
        title: {{headline}},
        shareMediaCategory: 'ARTICLE',
      },
      distribution: {
        'linkedInDistributionTarget': {},
      },
      owner: {{urn:li:organization:#######}},
      agent: {{urn:li:sponsoredAccount:####}}
      subject: {{adName}}
      text: {
        text: {{introText}}
      },
  };

I make a post and hit https://api.linkedin.com/v2/shares

Any help would be greatly appreciated.

Thanks in advance!

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
416 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Eric Urban - MSFT 626 Reputation points Microsoft Employee
    2021-10-24T14:12:29.353+00:00

    @fl_quintero - Thanks for reaching out. Note, 'advertising-api' is geared towards Bing Ads API developers.

    For LinkedIn APIs please reach out to your partner technical support channel or https://developer.linkedin.com/support.

    I hope this helps!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.