What is the purpose of PageUrl in AdRequest class?

12 views
Skip to first unread message

Dennis

unread,
8:00 AM (9 hours ago) 8:00 AM
to Interactive Media Ads SDK

Hi everyone,

I'm a developer working on a project that involves ad integration, and I have a question about the AdRequest class.

I'm confused about the purpose of the PageUrl field. I understand it's related to the page where the ad will be displayed, but I'm not sure if it's required or what it's used for behind the scenes.

For example, if I'm building an Android app, should I always set this? What about for a mobile website?

Could someone please clarify the following:

  • What is the core function of PageUrl?

  • Is there any preparation(e.g need verified by google) need to do with the url that use in PageUrl?


IMA SDK

unread,
2:27 PM (2 hours ago) 2:27 PM
to st504...@gmail.com, ima...@googlegroups.com

Hi,

Thank you for reaching out to the IMA SDK Support team.

The pageUrl field is available only in the HTML5 IMA SDK for websites and is not supported on Android. This parameter is optional and it specifies the full url of the page that will be included in the Google ad request for targeting purposes.If specified, this value will be used for the [PAGEURL] VAST macro.

No special approval is required to use it but just make sure the URL is valid and properly formatted.


Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-09-23 18:27:00Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u7I6D:ref" (ADR-00333496)



Reply all
Reply to author
Forward
0 new messages