Re: How to change the status of a keyword (criterion)?

2017-10-24 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, You need to set the BiddableAdGroupCriterion.userStatus to PAUSED in the SET operation to pause a criterion. I'm afraid Kotlin is not one of the supported

Re: How to change the status of a keyword (criterion)?

2017-10-24 Thread abe
The Code example should look like this sorry: fun ChangeKeywordStatus(keywordId: Long, adGroupId: Long) { val keyword = Criterion() keyword.id = keywordId val biddableAdGroupCriterion = BiddableAdGroupCriterion() biddableAdGroupCriterion.adGroupId = adGroupId

Re: How to change the status of a keyword (criterion)?

2017-10-24 Thread abe
The code example should look like this sorry: fun ChangeKeywordStatus(keywordId: Long, adGroupId: Long) { val keyword = Criterion() keyword.id = keywordId val biddableAdGroupCriterion = BiddableAdGroupCriterion() biddableAdGroupCriterion.adGroupId =

How to change the status of a keyword (criterion)?

2017-10-24 Thread abe
I'm trying to create a function in a Kotlin application (which uses the Java API) that will update the status of the keyword. By looking over the documentation i've been able to get close, but I'm not clear on what exactly I need to do to set the status. This is what I have so far: fun