AdsApp.​AssetGroupUrls

Provides access to asset group URL fields.

Methods:

MemberTypeDescription
clearMobileFinalUrl void Clears the mobile final URL of the asset group.
clearPath1 void Clears the first field of the display path of the asset group.
clearPath2 void Clears the second field of the display path of the asset group.
getFinalUrl String Returns the final URL of the asset group or null if there is no final URL.
getMobileFinalUrl String Returns the mobile final URL of the asset group or null if there is no mobile final URL.
getPath1 String Returns the first field of the display path that appears with the asset group's ads' display URLs, or null if the asset group does not have a display path.
getPath2 String Returns the second field of the display path that appears with the asset group's ads' display URLs, or null if the asset group does not have a second display path field.
setFinalUrl void Sets the final URL of the asset group.
setMobileFinalUrl void Sets the mobile final URL of the asset group.
setPath1 void Sets the first field of the display path of the asset group.
setPath2 void Sets the second field of the display path of the asset group.

clearMobileFinalUrl()

Clears the mobile final URL of the asset group.

Clearing mobile final URL will cause the final URL to be used instead.

See Using Upgraded URLs for more information.

Returns nothing.

clearPath1()

Clears the first field of the display path of the asset group.

Clearing the first field of the display path will result in an error if the second field of the display path is not already cleared.

See Path for more information.

Returns nothing.

clearPath2()

Clears the second field of the display path of the asset group.

Clearing the first field of the display path will result in an error if the second field of the display path is not already cleared.

See Path for more information.

Returns nothing.

getFinalUrl()

Returns the final URL of the asset group or null if there is no final URL.

The final URL represents the actual landing page for your asset group. The final URL must be the URL of the page that the user ends up on after clicking on your ad, once all the redirects have taken place.

Final URLs follow the same override rules as destination URLs. For example, a final URL at the keyword level overrides a final URL at an ad level.

See Using Upgraded URLs for more information.

Return values:

TypeDescription
String The final URL of the asset group.

getMobileFinalUrl()

Returns the mobile final URL of the asset group or null if there is no mobile final URL.

The mobile final URL represents the actual landing page for your asset group on a mobile device. The final mobile URL must be the URL of the page that the user ends up on after clicking on your ad on a mobile device, once all the redirects have taken place.

Mobile final URLs follow the same override rules as destination URLs. For example, a mobile final URL at the keyword level overrides a mobile final URL at an ad level.

See Using Upgraded URLs for more information.

Return values:

TypeDescription
String The mobile final URL of the asset group.

getPath1()

Returns the first field of the display path that appears with the asset group's ads' display URLs, or null if the asset group does not have a display path.

See Path for more information.

Return values:

TypeDescription
String The first field of the display path that appears with the asset group's ads' display URLs, or null if the asset group does not have a display path.

getPath2()

Returns the second field of the display path that appears with the asset group's ads' display URLs, or null if the asset group does not have a second display path field.

Return values:

TypeDescription
String The second field of the display path that appears with the asset group's ads' display URLs, or null if the asset group does not have a second display path field.

setFinalUrl(finalUrl)

Sets the final URL of the asset group.

The final URL represents the actual landing page for your asset group. The final URL must be the URL of the page that the user ends up on after clicking on your ad, once all the redirects have taken place.

Final URLs follow the same override rules as destination URLs. For example, a final URL at the keyword level overrides a final URL at an ad level.

See Using Upgraded URLs for more information.

Returns nothing.

Arguments:

NameTypeDescription
finalUrl String The final URL of the asset group.

setMobileFinalUrl(mobileFinalUrl)

Sets the mobile final URL of the asset group.

The mobile final URL represents the actual landing page for your asset group on a mobile device. The final mobile URL must be the URL of the page that the user ends up on after clicking on your ad on a mobile device, once all the redirects have taken place.

Mobile final URLs follow the same override rules as destination URLs. For example, a mobile final URL at the keyword level overrides a mobile final URL at an ad level.

See Using Upgraded URLs for more information.

Returns nothing.

Arguments:

NameTypeDescription
mobileFinalUrl String The mobile final URL of the asset group.

setPath1(path1)

Sets the first field of the display path of the asset group.

See Path for more information.

Returns nothing.

Arguments:

NameTypeDescription
path1 String The first field of the display path of the asset group.

setPath2(path2)

Sets the second field of the display path of the asset group.

Setting the second field of the display path will result in an error if the first field of the display path is not already set.

See Path for more information.

Returns nothing.

Arguments:

NameTypeDescription
path2 String The second field of the display path of the asset group.