Google Ad-Words API - ad extention link for mobile

13 views
Skip to first unread message

di...@algomizer.com

unread,
Jun 8, 2015, 8:50:36 AM6/8/15
to adwor...@googlegroups.com

During adding site links to campaign feed, I would like to set device preference for mobile to be checked. How can I do it with ad words API ?


platformOperand.stringValue = "Mobile";//it also can be set for "Desktop"


I tried to do it like this:

    ConstantOperand platformOperand = new ConstantOperand();
    platformOperand.stringValue = "Mobile";//it also can be set for "Desktop"
    platformOperand.type = ConstantOperandConstantType.STRING;

    Function platformFunction = new Function();
    platformFunction.lhsOperand = new FunctionArgumentOperand[] { 
    platformRequestContextOperand };
    platformFunction.@operator = FunctionOperator.EQUALS;
    platformFunction.rhsOperand = new FunctionArgumentOperand[] { 
    platformOperand };


and then it combined in function with links ids from google service and mutated for campaign feed service. No exception and link added but when I enter to link edit, "Mobile" option remain unmarked. 

Please advise.

mobileextention.png

Josh Radcliff (AdWords API Team)

unread,
Jun 8, 2015, 11:51:25 AM6/8/15
to adwor...@googlegroups.com, di...@algomizer.com
Hi,

Setting the matching function will set the flag for that particular campaign to only show those feed items on mobile devices.


If you instead want a specific FeedItem to have a device preference, please set the FeedItem.devicePreference field.

Thanks,
Josh, AdWords API Team

Reply all
Reply to author
Forward
0 new messages