Google AdsApp campaign selector filter by label name in the new experience - google-ads-script

Next month the new experience for Google Ads Script will be enabled and I have to adapt my script to work with it.
In my script I look for campaigns with an specific label name:
var selector = AdsApp
.campaigns()
.withCondition("LabelNames CONTAINS_ALL ['my-label']")
With the new experience it seems that the unique way to get all the campaigns filtered by a label has to be done using the label's resource name.
withCondition("campaign.labels CONTAINS ANY ('customers/1234567890/labels/123','customers/1234567890/labels/456')"). The value is a list of label resource names.
As I don't know that value, the unique way I found is to iterate the enabled campaigns, get the labels and check if the label I want exists. If exists I continue executing the code.
Is there a way I can get the campaigns filtered by the label name instead of the resource name?

Related

How can i make a "parameterized" JQL

Is there any possibility to create a JQL query that can be parameterized with a specific value that can be selected by a user for a dashboard? For example, I wanna show all issues that are linked to a certain issue via a specific link type.
The query I use for links looks like this:
project = Bar and issueFunction in linkedIssuesOfRecursive("project = Foo and key = Foo-123", "relates to")
As you can see, the query itself is not the problem, its rather simple, but the key is hardcoded. Is there any way of creating a dashboard / rich filter, where the user can simply enter a key and the query is executed with that key?

How to search Crashlytics custom keys

Using their handy guide, I'm able to set custom keys in crash data that appears in the Crashlytics dashboard for a particular crash. The docs (and placeholder text in the web site's TextBox) say you can search by key to find a crash like you can using other data like method name, line number etc. I can't get the search to ever find a crash by a key value. I've tried searching on both the custom key's name and value and it never finds it. I hard coded a simple key to the value "hello" just to make sure it wasn't a search case sensitivity type issue but no luck. Anyone ever able to successfully search by custom key?
In the text field that says Search issue title, subtitle or key, you need to put the search query in this format:
key:<key> value:<value>
eg
key:id value: b329e5d2-dd2a-4bfb-95e3-1e5ffc9153dc
Where in the code I've created a custom key named id
Apparently, you just have to wait. 15 minutes or so after the crash had appeared on the dashboard site, the search by key value worked fine. Must be their search index service had to cache/process the new data?

Does Google AdWords support automatically appending a different query string to a campaign's destination URLs for ads and sitelinks?

I have an existing Google ad campaign that geotargets a particular region. The destination URL of all the ads and sitelinks have the same query string appended to it ("area=astoria").
I now need to copy this campaign to 50 other campaigns, each of which will target a different region. Each campaign will have a different value for the area key, so for instance one campaign might use "area=manhattan" and another "area=bronx".
The campaign I'm cloning has many ads and sitelinks, all of which need to have the query string changed. I know how to manually change the destination urls, but it's an enormous amount of busy work...
As a workaround, is there a way to automatically append a different query string to all the destination URLs for ads and sitelinks in a particular campaign in Google AdWords?
To answer my own question, the answer is to use a Tracking Template on the Campaign level.
To do this, click into the Campaign you want to edit and click on the Settings tab. Then open the "Campaign URL options (advanced)" section and change the Tracking URL to something like this:
{lpurl}?area=whatever
You can click the TEST button to make sure your ads work. Your sitelinks should also have the same query string appended to it. (Note that a Campaign-level Tracking Template can be overridden at the Adgroup-, Ad-, or Sitelink-level, so those more specific Tracking Templates would have to not be used for a Campaign-level Tracking Template to be used.)

How do Adparams works in Google Adwords PHP api

I have 700 products to create ads each with different cost and year of make and i want to display this values in my ad and change them dynamically. so i have used adparams in the headline and in description1 as
$textAd->headline = 'Sale! productname {param1:2011}';
$textAd->description1 = 'For Just ${param2:25000}';
as descried in the forums. and i have created set the adparams to the keywords.
$adParam1 = new AdParam($adGroupId, $keywordId, $year, 1);
$adParam2 = new AdParam($adGroupId, $keywordId, $price, 2);
// Create operations.
$adParamOperation1 = new AdParamOperation();
$adParamOperation1->operand = $adParam1;
$adParamOperation1->operator = 'SET';
$adParamOperation2 = new AdParamOperation();
$adParamOperation2->operand = $adParam2;
$adParamOperation2->operator = 'SET';
since adparams is related to keywords and keywords related to adgroup and not ads, I have created adgroup for each ad(so that i have 700 adgroups). And each adgroup has a Ad with a related keyword. Now when i get the ads using the api.
I get something like this
........
[ad] => TextAd Object
(
[headline] => Sale! product {param1:2011}
[description1] => Just ${param2:25000}
.........
the param strings are shown as such, i could not determine whether the adparams, works correctly and also im not confident that i'm in the right path. Please help me in doing this.
Ad params are keyword level, and adverts are adgroups based.
If your Adwords account is structure correctly, there shouldn't Be any issues here.
The advert will always look like it does above (with {param1:default} etc) in editor and online, but the actual advert displayed on google search would contain the params you set on the keyword. If no pram is set, it would default to the value inside the bracket.
From my experience of using ad params, it was more complicated as our ppc staff couldn't change adverts through Adwords editor which caused more issues.
Another method, is to simply delete old adverts (which are never really deleted) and create new ones on any change.
The main benefit of ad params, is the data collection is consistent when changing the content of the params. Where as changing the actual adverts completely removes all historic data.
Hope that helps.

Sort by number of Customers Jira

We currently have a Jira instance and I have had another odd request to sort the posts by the number of customers affected. Is this at all possible or will this require some custom work on my part?
Simplest is to add a customer impact number to your configuration (a custom field of type number) and bump it each time a new customer is added to the company name field.
You might even add a simple javascript which automatically sets the field if the company name field is modified ...

Resources