question

flquintero-2440 avatar image
0 Votes"
flquintero-2440 asked EricUrban-MSFT answered

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

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!

advertising-api
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

EricUrban-MSFT avatar image
0 Votes"
EricUrban-MSFT answered

@flquintero-2440 - 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!



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.