DataService::getDomainCategory - what is it good for?

55 views
Skip to first unread message

PR

unread,
Jul 13, 2016, 2:16:07 AM7/13/16
to AdWords API Forum
Hello, I have a question about getDomainCategory function in DataService. Do I understand it correctly that it's possible to get topic of given domain name or it's specific for shopping ads etc?
Sample code does not return anything:
<?php
$domain="youtube.com"
$service = $this->user->GetService ( 'DataService', ADWORDS_VERSION );
        // Create selector.
        $selector = new Selector ();
        $selector->fields = array (
                "IsoLanguage","RecommendedCpc",
                'Category',
                'CategoryRank',"Coverage","DomainName",
        );
        $selector->predicates [] = new Predicate ( 'DomainName', 'EQUALS', array ($domain) );
       
        $selector->paging = new Paging ( 0, 100);
        $camps=array();
        $page = $service->getDomainCategory ( $selector );
        var_dump($page);
        foreach ( $page->entries as $c ) {
            var_dump($c);
           
        }
        var_dump($page);
        foreach ( $page->entries as $campaign ) {
            var_dump($campaign);           
        }

I have searched before posting but even mighty Google return just WSDL spam sites.
Thank you for clarification!

Shwetha Vastrad (AdWords API Team)

unread,
Jul 13, 2016, 3:07:38 PM7/13/16
to AdWords API Forum
Hi,

The DataService.getDomainCategory operation can be used with other Campaign types, but it is most relevant to Shopping Campaigns. DataService returns results based on past performance. The code snippet provided here shows how to discover your sites categories which can then be used to create Webpage criterion.

I hope this helps. 

Regards,
Shwetha, AdWords API Team.

PR

unread,
Jul 15, 2016, 3:02:41 AM7/15/16
to AdWords API Forum
Hello, thank you for clarification. Could you give me a hint, how is it possible to do ,,reevaluation" of my site, when
1) my site is not categorized at all - is it due to low traffic volume, content that is not able to be categorized etc.. I mean concrete conditions
2) from the another point of view - I have seen websites even in AdSense network, that was categorized into totally different category than it should be (eg.. website about web hosting had category ,,health") - is there a way for website owner to manually change that category? I think that proper category should heavily help GDN and automatic placement targeting based on topic and interest level.

Thank you!

Dne středa 13. července 2016 21:07:38 UTC+2 Shwetha Vastrad (AdWords API Team) napsal(a):

Shwetha Vastrad (AdWords API Team)

unread,
Jul 15, 2016, 3:37:51 PM7/15/16
to AdWords API Forum
Hi,

Dynamic Search Ads use pages on your website that are discovered by Google's crawlers and automatically organize your website into categories that are customized to your products and services. This question could be better addressed by the AdWords Community Forum as the behavior of Dynamic Search Ads is something that is related to the AdWords product in general and is not specific to AdWords API. 
Reply all
Reply to author
Forward
0 new messages