How to generate "GCW" meta tag for Google Web Designer HTML5 ads? - google-web-designer

I've got a script that is generating my Google Web Designer template populated with content. I have two files being created, one is the editable template as I would normally edit in GWD, the other is a populated copy of the index.html extracted from a Published ad.
My problem is that I can edit and publish the Editable version to a new zip file and that uploads successfully to Google Ads, but the "pre-published" version that I am generating and zipping causes an error when I upload to Google Ads.
I have isolated the problem to this meta tag:
<meta name="GCD" content="********"/>
When I copy the GCD tag from my manually published index.html file to the auto-generated one (and then re-zip) it uploads fine. That is the only line that changes between the two zip files.
Does anyone know how GWD generates the GCD meta tag? If I could figure this out it would save me a ton of time opening and manually publishing the Ad package each time so would love to hear any ideas!
Thanks :)

In case anyone comes across this looking for an answer, I didn't find an answer to the original issue, unfortunately, so I ended up making a JitBit macro that opens each file in GWD and exports it...
The downside is that JitBit has no variables so you have to create the list of your files manually or with a second script.
Here's the code, just need to save it as a .mcr file and have the macro program installed and it should run:
(Naturally you need to replace the PATH TO FILE parts with your own template filenames etc..)
OPEN FILE : C:\Program Files\Google\Google Web Designer\webdesigner.exe : : 0
WAIT FOR : Google Web Designer : appear : 0 : 0
DELAY : 15000
REPEAT : 3 : 0 : 0 : Enter the number of iterations: : 0 : 0
SWITCH TO WINDOW : Google Web Designer : 0
DELAY : 500
Keyboard : ControlLeft : KeyDown
Keyboard : O : KeyPress
Keyboard : ControlLeft : KeyUp
DELAY : 300
IF ITERATION EQUALS : 1 : 0
TYPE TEXT : C:\{***PATH TO FILE 1***}.html
ELSE
IF ITERATION EQUALS : 2 : 0
TYPE TEXT : C:\{***PATH TO FILE 2***}.html
ELSE
IF ITERATION EQUALS : 3 : 0
TYPE TEXT : C:\{***PATH TO FILE 3***}.html
ENDIF
ENDIF
ENDIF
DELAY : 300
Keyboard : Enter : KeyPress
DELAY : 3000
Keyboard : ControlLeft : KeyDown
Keyboard : ShiftLeft : KeyDown
Keyboard : P : KeyPress
Keyboard : ShiftLeft : KeyUp
Keyboard : ControlLeft : KeyUp
DELAY : 500
Keyboard : Enter : KeyPress
DELAY : 500
Keyboard : Tab : KeyPress
DELAY : 500
Keyboard : ControlLeft : KeyDown
Keyboard : A : KeyPress
Keyboard : ControlLeft : KeyUp
DELAY : 500
IF ITERATION EQUALS : 1 : 0
TYPE TEXT : {***ENTER NAME OF FILE 1***}
ELSE
IF ITERATION EQUALS : 2 : 0
TYPE TEXT : {***ENTER NAME OF FILE 2***}
ELSE
IF ITERATION EQUALS : 3 : 0
TYPE TEXT : {***ENTER NAME OF FILE 3***}
ENDIF
ENDIF
ENDIF
DELAY : 500
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
DELAY : 100
Keyboard : Enter : KeyPress
DELAY : 1000
ENDREPEAT

Related

Trying to stop APNS custom sound from finishing playing

We are playing a custom when we deliver a push notification like so.
{
"aps" : {
"alert" : {
"body" : "User 1 started a Meeting",
"title" : "User 1 in New Topic"
},
"sound" : "ringConferenceStarted.wav"
},
"data" : {
"messageType" : "conference_started"
}
}
The sound is about 26 seconds long.
Is there a way to end the sound early if we want to? We have looked into background pushes to send another one to stop it but it doesn't look like we end the playing with that method.
In the Apple documentation it says:
You can't modify silent notifications or those that only play a sound
or badge the app's icon.
It seems that you need to update your notification strategy.

ColorDialog - How can I check if cancel or X has been pressed

In this PowerShell code, the dialog opens but I cannot seem to find a way to know if the cancel or X button has been pressed.
If the user presses cancel then there's a returned value from the Color property.
How can I fix this so that it will return something different if the user presses cancel or X to close the dialog.
$colorDialog = new-object System.Windows.Forms.ColorDialog
[void]$colorDialog.ShowDialog()
# This will always return a value even when cancel is pressed.
$colorDialog.Color
It always returns this if cancel or the X button has been pressed:
R : 0
G : 0
B : 0
A : 255
IsKnownColor : True
IsEmpty : False
IsNamedColor : True
IsSystemColor : False
Name : Black
You need to inspect the result returned from ShowDialog():
$colorDialog = new-object System.Windows.Forms.ColorDialog
if($colorDialog.ShowDialog() -eq 'OK'){
$colorDialog.Color
}
else {
Write-Warning "No color was picked"
}

Flutter Razorpay not displaying image (logo) on checkout options

I am integrating Razorpay in Flutter, I have done all the things successfully but I am getting problem to show image (logo) on checkout dialog of Razorpay.
What I have done is:
var options = {
"key" : "rzp_test_123123123123",
"amount" : 100,
"name" : "Sample App",
"image" : "assets/logo.png",
"description" : "Payment for the some random product",
"prefill" : {
"contact" : "2323232323",
"email" : "shdjsdh#gmail.com"
},
"external" : {
"wallets" : ["paytm"]
}
};
try{
razorpay.open(options);
}catch(e){
print(e.toString());
}
The output that I am getting is:
Can anyone please tell me what will be the right string to give as a path in the image key?
I have pasted an image in the assets folder directly.
I tried hosting the image and then was able to load it.
"image" : "https://razorpay.com/assets/razorpay-glyph.svg"
I know this is a workaround but again if you wish to pass this image dynamically you won't be having this file saved in your app, rather would need to load it dynamically from a URL.
In case you wish to set up a fixed logo, u can do the same logging into razorpay.com -> setting -> Configurations.

Is it possible to use the created like button on this website (https://likebtn.com/en/) in an app being developed in Smartface App Studio?

Is it possible to use the created like button on this website (https://likebtn.com/en/) in an app being developed in Smartface App Studio?
I've tried adding the like button onto a website and it was very successful.
Thankyou☺💻📱
It is possible with image button.You can create a button like that using following codes:
var myImgBtn = new SMF.UI.ImageButton({
left : '10%',
top : '10%',
width : '20%',
height : '10%',
defaultImage : 'likebutton.png',
highlightedImage : 'buttonhighlighted.png',
inactiveImage : 'buttoninactive.png',
text : 'Like',
onPressed : function(e){
...
}
});
Pages.Page1.add(myImgBtn);

SAPUI5-How to create custom Split Page control

I want to create a custom split -like page control.This page should contain two areas left and right content with different width.How to create this type of page as a custom control?
Please help me with this.
Use a Splitter: https://openui5.netweaver.ondemand.com/#test-resources/sap/ui/commons/demokit/Splitter.html
the relevant parameters for you are:
new sap.ui.commons.Splitter("splitterId", {
splitterOrientation : sap.ui.commons.Orientation.Vertical,
splitterPosition : "50%",
minSizeFirstPane : "0%",
minSizeSecondPane : "0%",
firstPaneContent : yourLeftContents,
secondPaneContent : yourRightContents
})