preview url type

503 views
Skip to first unread message

Avner Solomon

unread,
Feb 8, 2018, 2:25:03 AM2/8/18
to Google's DoubleClick for Publishers API Forum
I noticed there are 2 types of preview URLS:
A) where it's jsut the normal URL with a query string added
B) where it's a http://pubads.g.doubleclick.net url with redirect after setting a cookie.

Right now a big client of ours has a problem with some sites and we are curious which is the easiest way of switching from A to B?
Also would be really really helpful in the future to have an option parameter in the preivewUrl function to switch between these.
B helps avoiding many conflicts with local scripts.

Vincent Racaza (DFP API Team)

unread,
Feb 8, 2018, 3:22:13 AM2/8/18
to Google's DoubleClick for Publishers API Forum
Hi Avner,

There are two types of previewUrl in the DFP API. First is the previewUrl of the Creative object. The other previewUrl is the returned value of LineItemCreativeAssociationService.getPreviewUrl(). The difference of the two previewUrls is that the previewUrl of the Creative object is just based on the creative alone while the previewUrl of the LICAService is based on the combination of your line item, creative and the actual website URL that you want to preview your creative.

In regards to your question on switching from the previewUrl of Creative to the previewUrl of LICAService and vice versa, then this is not possible as they are entirely different. Depending on your use-case (getting previewUrl based on creative or getting previewUrl based on your actual website), you can retrieve the previewUrl from the two different services.

Thanks,
Vincent Racaza, DFP API Team

Avner Solomon

unread,
Feb 8, 2018, 3:28:15 AM2/8/18
to dfpapi-advi...@google.com, Google's DoubleClick for Publishers API Forum
We are clearly talking about 2 different things.
I am talking only about  LineItemCreativeAssociationService.getPreviewUrl()

this one generate 2 types of urls as seen bellow:

A)
https://[obfuscate client's name].co.uk/classifieds/horseboxes-and-trailers/w/?google_preview=vEop3_7sd0cYqfzt0wUwqZij2wWIAYCAgKDrjeLIvgE&iu=18711560&gdfp_req=1&lineItemId=4571889312&creativeId=138215796006

B)
http://pubads.g.doubleclick.net/gampad/preview_cookie?gct=XfRzWSfF-zwY6Mr80gUw6Oax2gWIAYCAgKDr5dLk-AE&op=set&redirect=https://www.[obfuscate client's name].com/%23zone%3Dindex-home%26adwallettype%3Dhomepage&redirect_hash=AJlzBa3FY7HtLmYK7PzgTLiUCVE_dtzUdQ&lineItemId=4543557821&creativeId=138222309277

They are both   LICAService preview URLS meant to be seen on site.
A) loads the site + query params to load creative in page (based on query params)
B) loads doubleclick, sets cookies redirects to site to load creative in page (based on cookies)

--
You received this message because you are subscribed to a topic in the Google Groups "Google's DoubleClick for Publishers API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-doubleclick-for-publishers-api/OEZmJ4rHyvc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-doubleclick-for-publishers-api+unsubscribe@googlegroups.com.
To post to this group, send email to google-doubleclick-for-publishers-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-doubleclick-for-publishers-api.
For more options, visit https://groups.google.com/d/optout.

Avner Solomon

unread,
Feb 8, 2018, 3:36:27 AM2/8/18
to Google's DoubleClick for Publishers API Forum
Sorry for the other reply (replied with the wrong email)


We are clearly talking about 2 different things.
I am talking only about  LineItemCreativeAssociationService.getPreviewUrl()

this one generate 2 types of urls as seen bellow:

A)
https://[obfuscate client's name].co.uk/classifieds/horseboxes-and-trailers/w/?google_preview=vEop3_7sd0cYqfzt0wUwqZij2wWIAYCAgKDrjeLIvgE&iu=18711560&gdfp_req=1&lineItemId=4571889312&creativeId=138215796006

B)
http://pubads.g.doubleclick.net/gampad/preview_cookie?gct=XfRzWSfF-zwY6Mr80gUw6Oax2gWIAYCAgKDr5dLk-AE&op=set&redirect=https://www.[obfuscate client's name].com/%23zone%3Dindex-home%26adwallettype%3Dhomepage&redirect_hash=AJlzBa3FY7HtLmYK7PzgTLiUCVE_dtzUdQ&lineItemId=4543557821&creativeId=138222309277

They are both   LICAService preview URLS meant to be seen on site.
A) loads the site + query params to load creative in page (based on query params)
B) loads doubleclick, sets cookies redirects to site to load creative in page (based on cookies)

The question was how do we switch between the 2 types of URLS generated by the LICAservice since both A and B are being generated. I can send you examples in private.

Vincent Racaza (DFP API Team)

unread,
Feb 8, 2018, 4:09:46 AM2/8/18
to Google's DoubleClick for Publishers API Forum
Hi Avner,

Thanks for the clarification.

In my testing for LineItemCreativeAssociationService.getPreviewUrl(), the returned value always starts with this URL : "http://pubads.g.doubleclick.net/gampad/preview_cookie?gct=uq...". This is the B) section in your previous reply. I have not seen a preview URL in my testing for this service that is somewhat the same in your A) section's returned value.

This said, can you provide to me the sample SOAP request and response logs for both of the scenarios so I can further check? You can use the Reply privately to author option when replying.

Glen wan

unread,
Feb 7, 2020, 4:10:36 AM2/7/20
to Google Ad Manager API Forum
Hi,

I seem to be getting the same issue where I can only see A) [site_url]?google_preview=NugSmRAtvk4YqNH08QUwqO2p-QWIAYCAgKDngLj0dw&iu=21702373716&gdfp_req=1&lineItemId=5122821971&creativeId=3232323122 from LineItemCreativeAssociationService.getPreviewUrl() . How do I get B) http://pubads.g.doubleclick.net/gampad/preview_cookie?gct=XfRzWSfF-zwY6Mr80gUw6Oax2gWIAYCAgKDr5dLk-AE&op=set&redirect=https://www.[obfuscate client's name].com/%23zone%3Dindex-home%26adwallettype%3Dhomepage&redirect_hash=AJlzBa3FY7HtLmYK7PzgTLiUCVE_dtzUdQ&lineItemId=4543557821&creativeId=138222309277 ?

And Would A) be able to track clicks?

Ad Manager API Forum Advisor Prod

unread,
Feb 7, 2020, 12:40:39 PM2/7/20
to gle...@gmail.com, google-doubleclick...@googlegroups.com
Hi Glen wan,

In order for me to further investigate, kindly provide the following information: 
  • Network code
  • Complete SOAP logs (enable logging) of the request and response made to the API
  • Email of the user authenticating the API call
When providing these details, please ensure you "Reply privately to author."

Thanks,
Danica Calusin, Ad Manager API Team 

ref:_00D1U1174p._5001UV08N3:ref

Alex Nuñez

unread,
Nov 19, 2020, 8:24:11 AM11/19/20
to Google Ad Manager API Forum
Hello Danica,

I didn't see the solution to this problem, if any.

I'm having the same problem from DFP when generating a preview url, I'm getting one which consists on my web url plus a query string like this:

A)
[myweburl]?google_preview=sgkqLC7Rc7sYs5jZ_QUws7SOhQaIAYCAgKDPyZrlTQ&iu=XXX&gdfp_req=1&lineItemId=XXX&creativeId=XXX

this fails since my web url already includes question marks and other special chars, so I have to manually edit it before sending it to our customer. Besides, the customer does not see the actual web url, but one with all the special querystring, which sometimes does not convince them.

Speaking with other partners, they get an URL like this
B)
 
this one creates a temporary cookie on the customer's browser and then redirects to the actual web url with no query string added.

How can I switch the way it generates to the second type (B)?

Thanks...Alejandro Núñez

Ad Manager API Forum Advisor Prod

unread,
Nov 19, 2020, 11:38:22 PM11/19/20
to nun...@gmail.com, google-doubleclick...@googlegroups.com

Hi Alex,

 

I suggest you reach out to the product experts in the Ad Manager community forum for further assistance since this is more in the product level. The API only reflects the information from the UI.

 

Regards,

Google Logo
Kevin Gil Soriano
Ad Manager API Team
 


ref:_00D1U1174p._5001UV08N3:ref
Reply all
Reply to author
Forward
0 new messages