# SearchAdCreatives

Required Frends version: 5.1+

Required .NET version: 471, 6.0, standard2.0

Compatible Agents: Legacy, Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.LinkedIn/tree/main/Frends.LinkedIn.SearchAdCreatives>

{% tabs %}
{% tab title="Parameter: Filter" %}

| Name                             | Description                                                                                                                                                                |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AdAccountId : `String`           | <p>Ad Account Id. This is necessary for the search to work.</p><p><br>Default: <code>-</code><br>Example: <code>506333826</code></p>                                       |
| GetSingleCreative : `Boolean`    | <p>If enabled, search is done for singular AdCreative with AdCreativeUrn.</p><p><br>Default: <code>False</code><br>Example: <code>true</code></p>                          |
| AdCreativeUrn : `String`         | <p>Urn for the AdCreative to be searched.</p><p><br>Default: <code>-</code><br>Example: <code>-</code></p>                                                                 |
| AdCampaignUrns : `AdCampaign[]`  | <p>Searches for an creatives by campaign Urns.</p><p><br>Default: <code>-</code><br>Example: <code>\[ AdCampaign { urn:li:sponsoredCampaign:360035215 } ]</code></p>       |
| AdCreativesUrns : `AdCreative[]` | <p>Searches for an creatives by creative Urns.</p><p><br>Default: <code>-</code><br>Example: <code>\[ AdCreative { urn%3Ali%3AsponsoredCreative%3A119962155 } ]</code></p> |
| {% endtab %}                     |                                                                                                                                                                            |

{% tab title="Parameter: Options" %}

| Name                                               | Description                                                                                                                                                                                                                                                                                                                     |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| LinkedInAPIVersion : `String`                      | <p>Version of the API used in the request.</p><p>API versions should have date format as YYYYMM or YYYYMM.RR where RR is the revision.</p><p>More information: <https://learn.microsoft.com/en-us/linkedin/marketing/versioning?view=li-lms-2023-09></p><p><br>Default: <code>202309</code><br>Example: <code>202309</code></p> |
| 🗝Token : `String`                                 | <p>Bearer token to be used for requests. Token will be added as Authorization header.</p><p><br>Default: <code>-</code><br>Example: <code>xRqjX\_9QXZlvRL6HZHJvbrubhvceV4NFccANh6RwndmAJDkPfP...</code></p>                                                                                                                     |
| ConnectionTimeoutSeconds : `Int32`                 | <p>Timeout in seconds to be used for the connection and operation.</p><p><br>Default: <code>30</code><br>Example: <code>30</code></p>                                                                                                                                                                                           |
| FollowRedirects : `Boolean`                        | <p>If FollowRedirects is set to false, all responses with an HTTP status code from 300 to 399 is returned to the application.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p>                                                                                                                            |
| AllowInvalidCertificate : `Boolean`                | <p>Do not throw an exception on certificate error.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p>                                                                                                                                                                                                          |
| AllowInvalidResponseContentTypeCharSet : `Boolean` | <p>Some Api's return faulty content-type charset header. This setting overrides the returned charset.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p>                                                                                                                                                       |
| ThrowExceptionOnErrorResponse : `Boolean`          | <p>Throw exception if return code of request is not successfull.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p>                                                                                                                                                                                            |
| AutomaticCookieHandling : `Boolean`                | <p>If set to false, cookies must be handled manually. Defaults to true.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p>                                                                                                                                                                                  |
| {% endtab %}                                       |                                                                                                                                                                                                                                                                                                                                 |

{% tab title="Result: Result" %}

| Name                                   | Description                                                                                                                                                                                                       |
| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Body : `Object`                        | <p>Body of response. Response body contains two properties: paging and elements.<br>Example: <code>{"paging": {"start": 0, "count":10, "links": \[], "total": 1}, "elements": \[{"totalBudget": ...}]}</code></p> |
| Headers : `Dictionary<String, String>` | <p>Headers of response<br>Example: <code>{\[ "content-type": "application/json", ... ]}</code></p>                                                                                                                |
| StatusCode : `Int32`                   | <p>Statuscode of response<br>Example: <code>200</code></p>                                                                                                                                                        |
| {% endtab %}                           |                                                                                                                                                                                                                   |

{% tab title="Changelog" %}

## Changelog

### \[1.1.0] - 2025-03-18

#### Changed

* Update packages: Newtonsoft.Json 12.0.3 -> 13.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.Runtime.Caching 7.0.0 -> 9.0.3 coverlet.collector 3.1.2 -> 6.0.4 Microsoft.NET.Test.Sdk 16.6.1 -> 17.13.0 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0

### \[1.0.0] - 2023-10-31

#### Added

* Initial implementation
  {% endtab %}
  {% endtabs %}
