Google-Display network finder

139 views
Skip to first unread message

EladB

unread,
Jun 12, 2021, 8:21:53 PM6/12/21
to Google Ads Scripts Forum
Hi

I want to write a script that gets a "search term" and returns all the relevant GDN (Google Display Network) websites which are related to this search term.

Plan B would be calling google search engine global (not custom) search API. To go over the results and semi filter them according to their meta data.

I saw no GDN or G-search public API (see below site).
Can you think of any other solution to that issue matter?

see API explorer site:

Thanks

Google Ads Scripts Forum

unread,
Jun 23, 2021, 5:35:41 AM6/23/21
to Google Ads Scripts Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-scripts/c/Ily-EoiIMco) from the forum as it wasn't routed to our support queue.

Cheers,
Teejay Pimentel
Google Ads Scripts Team

Google Ads Scripts Forum Advisor

unread,
Jun 23, 2021, 11:33:01 PM6/23/21
to adwords...@googlegroups.com
Hi Elad,

Thanks for your patience. Harry here, from the Google Ads Scripts Team.

Have you tried retrieving a Search Query Performance Report through scripts? From there, you can filter the AdNetworkType1 field to CONTENT - Display Network and select also the other URL fields that may be of use to you (DestinationUrl, FinalUrl, etc).

On the other hand, I was only able to find the Custom Search JSON API that would much your plan b of calling the Programmable Search Engine

Thanks,
Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2Iy0IR:ref

Elad Ben-David

unread,
Jul 5, 2021, 3:43:00 PM7/5/21
to Google Ads Scripts Forum on behalf of adsscripts
Hello

1)  Is there any API explorer / a two row (mock) result set example you can provide me?
It would be easier for me to comprehend if that's what I'm looking for.

How are these related to the "search term"?
Say the ST is "dogs".

First level network type - How is that related to the search term? CONNECTED type mean the search result is a display site?
Final URL for the impression - Is a relevant (by what? how many?) display ad's target landing page?
Destination URL for the impression - Is the relevant (by what? how many?) display ad's url?


2) Plus, do we have the Google Ads API version for this report API?
"The AdWords API will sunset on April 27, 2022. Migrate to the Google Ads API to take advantage of the latest Google Ads features."


Thanks!

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/Ily-EoiIMco/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/UGPiA000000000000000000000000000000000000000000000QV6SIT00e8Rn-T4VTHSFVZ3C2-BxnQ%40sfdc.net.

Google Ads Scripts Forum Advisor

unread,
Jul 6, 2021, 3:38:12 AM7/6/21
to adwords...@googlegroups.com
Hi Elad,

Thanks for coming back. Please see answers to your questions below:
  1. Google Ads scripts is only accessed through the Google Ads UI; hence, an API explorer is not offered. You can try to create a test account to play around with the scripts interface and retrieve Google Ads reports. 
    • You can select the Query field to filter them by "dogs".
    • When you filter the AdNetworkType1 to CONTENT, it should filter the data in the Display Network. CONTENT is equal to Display Network. See predicate values of the field in this regard.
    • The relevancy of URL fields depends on your requirement and what you would like to retrieve. Please see each of the URL fields for a detailed description of what value they hold.
  2. The equivalent Google Ads API resource of the Search Query Performance Report from AdWords should be search_term_view. Please see AdWords API reports to Google Ads API resources for your reference.
Let me know if you how I can assist you further.

Elad Ben-David

unread,
Jul 7, 2021, 10:24:07 AM7/7/21
to Google Ads Scripts Forum on behalf of adsscripts
Thanks, 

1 ) I ran this code:

    var query = "SELECT  Query, Ctr, Cost, DestinationUrl, FinalUrl Impressions FROM SEARCH_QUERY_PERFORMANCE_REPORT " +
    "WHERE Query = 'dog' AND segments.AdNetworkType1 = CONTENT" +
    "DURING LAST_30_DAYS"

and got this exception:
Exception: Could not identify resource for search query "SELECT  Query, Ctr, Cost, DestinationUrl, FinalUrl Impressions FROM SEARCH_QUERY_PERFORMANCE_REPORT WHERE Query = 'dog' AND segments.AdNetworkType1 = CONTENTDURING LAST_30_DAYS". Double-check your FROM clause. (file Code.gs, line 69)

What's wrong?

2) To understand the logic of this report:
Search Query Performance Report
The Search Terms report includes all statistics aggregated at the search terms level, one row per combination of search terms. If other segment fields are used, you may get more than one row per combination of search terms. See segmentation for more information.

In other words, given the query "dog" what am I expecting to see in the report?
The GDN websites that were part of Google search for "dog" including ones which I don't advertise on yet?

3) If I were to use the GoogleAds API instead of the AdWords API. Would I still be able to run it from a web IDE? Do I have to add another layer of authentication + Developer Token which weren't needed with GoogleAds API?

Thanks


--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/Ily-EoiIMco/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.

Google Ads Scripts Forum Advisor

unread,
Jul 8, 2021, 4:32:57 AM7/8/21
to adwords...@googlegroups.com
Hi Elad,

Please see below:
  1. Kindly provide your CID and the script's name so that I can check this on our end and assist you further.  You may send them here or privately via the reply to author option. Note that you may need to join the Google Group for you to use this option. If this option is not available at your end still, you may send it through our email (googleadsscr...@google.com) instead.
  2. You should expect search terms that are associated with the string 'dog' when selecting the Query field.
  3. Yes, you should still be able to use the Google Ads Scripts interface when you using the GAQL for either the report or search method. You would only need to authorize your script. See Authorization for further information.
Reply all
Reply to author
Forward
0 new messages