Skip to content

Commit cc1faf1

Browse files
authored
Merge pull request #7245 from MicrosoftDocs/3013366
Note regarding Ad image attachments - 3013366
2 parents 7570a59 + a977bc4 commit cc1faf1

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

powerapps-docs/maker/portals/configure/create-run-advertisement.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: sandhangitmsft
55

66
ms.topic: conceptual
77
ms.custom:
8-
ms.date: 04/21/2021
8+
ms.date: 11/02/2022
99
ms.subservice: portals
1010
ms.author: sandhan
1111
ms.reviewer: ndoelman
@@ -16,7 +16,6 @@ contributors:
1616

1717
# Create and run advertisements on a portal
1818

19-
2019
[!INCLUDE[cc-pages-ga-banner](../../../includes/cc-pages-ga-banner.md)]
2120

2221
Create text or image-based ads and have them run in multiple placements throughout your site. Randomize ads or select specific ads for specific placements. You can choose release and expiration dates for time-sensitive, scheduled content. Ads can be hyperlinked to any destination and open in the current window or a new window. Advertisements are displayed in the portal via two tables: The Ad Placement table and associated Ad table. Ads can be surfaced in many ways: with pre-made Liquid Templates available within portals via Liquid Templating/example Web Templates, or within the.aspx page via MVC actions.
@@ -97,11 +96,14 @@ The Ad Table has the following attributes:
9796
| Open In New Window | Boolean. If set to true, the ad will open a new browser window when clicked. |
9897
| Title | A single line of text for the ad which can be displayed on the portal. Whether it is displayed is determined by a property on the AdPlacement control. This is primarily useful for text-based ads or simple one-line links that you want to place on the portal by using ad placements. If the title is displayed, by default it will be rendered as a hyperlink that points to the Redirect URL. This behavior may be altered by using a custom [web template](../liquid/store-content-web-templates.md). |
9998
| Copy | A multiple-line body of text or other web content that will be displayed in the ad placement. This allows the placement to be used in a similar way to content snippets, but it is best to avoid using them to serve simply as a bucket to hold content (use snippets for that). Instead, they are best used to display rotating image or textual content. |
100-
| Image URL | The URL of the image that will be displayed by the ad. Optional; Use this field if you want the ad to render a static resource or a web file. The Image will be clickable and link to the redirect URL, if one is given. If an ad has a note attached to it with an image file attachment, the ad will render that as its image. This is possibly the most convenient way to set up images for ads, and ties the image directly to the ad. In this case, using the Image URL field is not necessary. |
99+
| Image URL | The URL of the image that will be displayed by the ad. Optional; Use this field if you want the ad to render a static resource or a web file. The image will be clickable and link to the redirect URL, if one is given. If an ad has a note attached to it with an image file attachment, the ad will render that as its image. In this case, using the **Image URL** field is not necessary. See the note below regarding image attachments and the Power Platform CLI. |
101100
| Image width | Width of the image. This field is not required but is recommended to ensure that the rendered ad is valid and accessible HTML |
102101
| Image Height | Height of the image. This field is not required but is recommended to ensure that the rendered ad is valid and accessible HTML |
103102
| Image Alt Text | Alt Text for the image. This field is not required but is recommended to ensure that the rendered ad is valid and accessible HTML. |
104103

104+
> [!IMPORTANT]
105+
> Image file attachments to ad records are not downloaded using the [Power Platform CLI](../power-apps-cli.md). As a workaround, use the **Image URL** field, or by adding an HTML reference in the **Copy** field to a [web file](/web-files.md) record containing an image file.
106+
105107
### See also
106108

107109
[Configure a portal](configure-portal.md)

powerapps-docs/maker/portals/power-apps-cli.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: neerajnandwana-msft
55

66
ms.topic: conceptual
77
ms.custom:
8-
ms.date: 07/27/2022
8+
ms.date: 11/02/2022
99
ms.subservice: portals
1010
ms.author: nenandw
1111
ms.reviewer: ndoelman
@@ -234,9 +234,10 @@ Portals support for Microsoft Power Platform CLI is limited to the tables listed
234234
:::row-end:::
235235

236236
> [!IMPORTANT]
237-
> Custom tables and portal template-specific tables (such as
237+
> - Custom tables and portal template-specific tables (such as
238238
blog, community, or ideas portal) are not supported for customization using
239-
Microsoft Power Platform CLI .
239+
Microsoft Power Platform CLI.
240+
> - Image file attachments to ad (adx_ad) records are not downloaded using the Power Platform CLI. As a workaround, use the **Image URL** field, or by adding an HTML reference in the **Copy** field to a [web file](/configure/web-files.md) record containing an image file.
240241
241242
## Install and verify Microsoft Power Platform CLI for portals
242243

0 commit comments

Comments
 (0)