For mobile ads, the maximum length for the DestinationUrl element is 1,022 characters.
This element can be set to the same value as the Param1 element of the Keyword data object.
You can use destination URL dynamic text strings as shown in the following table to track information for the ad that was clicked.
|
Dynamic Text
|
Description
|
|---|
|
{MatchType}
|
Substitutes the following letters into the destination URL:
-
For search ads:
-
e – exact
-
p – phrase
-
b – broad
-
For content ads – c
|
|
{OrderItemId}
|
Substitutes the keyword ID into the destination URL.
|
|
{AdId}
|
Substitutes the ad ID into the destination URL.
|
|
{QueryString}
|
Substitutes the exact search term entered by the user into the destination URL.
|
Note: |
|---|
|
The previously shown dynamic text strings are case-insensitive and must include the braces. The destination URL dynamic text strings apply only to the destination URL. If you use them for the title, description, or display URL, they display as literal strings.
|
The dynamic text strings are replaced by the appropriate text. For example, {OrderItemId} is replaced by the keyword identifier. Likewise, {MatchType} is replaced with c for a content ad or e for an exact match type. You need to format the URL in a way that can be interpreted by the server; for example, the following is a destination URL.
http://www.northwindtraders.com/{MatchType}/default.aspx?keyword_id={OrderItemId}
If the user clicks an ad that has a keyword identifier of 12345 and a keyword that is an exact match to the query, the actual destination URL is formatted as follows.
http://www.northwindtraders.com/e/default.aspx?keyword_id=12345
The ad approval process doesn't resolve the parameters for the destination URL dynamic text. A destination URL that has the literal dynamic text strings must exist on your website. Otherwise, the ad will not be approved. For example, if the destination URL is as follows:
http://www.northwindtraders.com/default.aspx?query={QueryString}&AdId={AdId}
The following URL will be validated during the ad approval process:
http://www.northwindtraders.com/default.aspx?query={QueryString}&AdId={AdId}
If this URL doesn't exist, the ad is not approved.
In addition to the dynamic text strings previously shown, the DestinationUrl element supports the {Param1} and {Keyword} dynamic text strings. For more information, see Parameters and Automatic Keyword Insertion.