The mobile_link
attribute lets you include a URL to a mobile-optimized version of your landing page. This mobile version will be shown to users on mobile devices, like phones or tablets. When using this attribute, you’ll also see additional reporting in Merchant Center for potential issues with your mobile-optimized landing pages.
Creating a mobile-optimized site helps ensure that your landing page looks right on mobile devices. These types of sites often load faster on mobile phones.
When to use
Optional for each product
mobile_link
attribute in addition to the link
attribute, all mobile device users are directed to the landing page specified in the mobile_link
attribute. Keep in mind that when you submit a tracking URL for the ads_redirect
attribute, users will be sent to that URL rather than the value that you submit for link
or mobile_link
attributes. Learn more about how link
, mobile_link
, and ads_redirect
work togetherFormat
Follow these formatting guidelines to make sure we understand the data you're submitting.
Type | URL (including http or https ), ASCII characters only, and RFC 3986 compliant |
---|---|
Limits | 1–2,000 characters |
Repeated field | No |
File format | Example value |
---|---|
Text feeds | https://www.m.example.com/writing/fiji-pens |
XML feeds | <g:mobile_link>https://www.m.example.com/writing/fiji-pens</g:mobile_link> |
To format your data for Content API, see the Content API for Shopping.
Minimum requirements
These are the requirements you'll need to meet to show your product. If you don't follow these requirements, we'll disapprove your product and let you know in the Diagnostics page in your Merchant Center account.
Best practices
These best practices can help you go beyond the basic requirements to optimize your product data for performance.
- Follow the best practices of the
link
attribute with the value that you submit formobile_link
. - Link to a landing page that renders properly on mobile devices. Some elements that you shouldn’t use on your landing page include Flash, Silverlight, ActiveX. Learn more about creating mobile-optimized websites.
Examples
When using mobile_link
, remember to also provide the link
attribute. Mobile users will be sent to the URL that you provide for mobile_link
, but desktop users will still be sent to the URL that you provide for link
.
Product | Google pens, black ink |
mobile_link |
https://mobile.example.com/writing/google-pens |
link |
https://example.com/writing/google-pens |
When including a URL for a product with variants, make sure that the variant is automatically selected based on the URL.
Product | Google pens, black ink |
mobile_link |
https://mobile.example.com/writing/google-pens?color=black |
link |
https://example.com/writing/google-pens?color=black |
Product | Google pens, red ink |
mobile_link |
https://mobile.example.com/writing/google-pens?color=red |
link |
https://example.com/writing/google-pens?color=red |