Skip to content

Instantly share code, notes, and snippets.

@g-ads-org
Last active February 28, 2024 22:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save g-ads-org/128c5915fdc51a55d06af019c797dc54 to your computer and use it in GitHub Desktop.
Save g-ads-org/128c5915fdc51a55d06af019c797dc54 to your computer and use it in GitHub Desktop.
function main() {
// Create a phone number builder.
var phoneNumberBuilder = AdsApp.extensions().newPhoneNumberBuilder();
// Create a phone number operation.
var phoneNumberOperation = phoneNumberBuilder
.withCountry("IR") // required
.withPhoneNumber("02188888888") // required
.withMobilePreferred(true) // optional
.build();
// Optional: examine the outcome. The call to isSuccessful()
// will block until the operation completes.
if (phoneNumberOperation.isSuccessful()) {
// Get the result.
var phoneNumber = phoneNumberOperation.getResult();
} else {
// Handle the errors.
var errors = phoneNumberOperation.getErrors();
}
}
@hashemsh
Copy link

thanks for script , very useful for iranian ads on google

@rmchiphop
Copy link

how it work

@rmchiphop
Copy link

visit u :
insta: rmchiphop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment