Responsive display ad - Call to action text

791 views
Skip to first unread message

Amol Kawale

unread,
Nov 23, 2021, 4:44:02 AM11/23/21
to AdWords API and Google Ads API Forum
Hi team,

I'm using Google ads v8 php API. We have to set language of "call to action text" button to Arabic. But API not has any option to set language. Only option for "call_to_action_text". Pls let's know how we can set language to Arabic only.
call to action text.png
Also call_to_action_text has different options starts with "Automatic". How to set that Automatic option value from php API. If am passing Automatic, API not working throwing error  {"adError":"INVALID_CALL_TO_ACTION_TEXT"} but other option such as 'SHop now', 'learn more, etc.. working fine.

Pls help to fix both these issues. Your help is highly appreciated.

Regards,
Amol


call to action text.png

Google Ads API Forum Advisor

unread,
Nov 23, 2021, 2:03:55 PM11/23/21
to a.ka...@sweply.com, adwor...@googlegroups.com
Hi Amol,

Thanks for reaching out. Can you please privately provide us with your complete request and response logs so we can have a closer look?

Thanks,
Matt
Google Ads API Team


Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Matt
Google Ads API Team
 
 

ref:_00D1U1174p._5004Q2RvWvm:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Nov 24, 2021, 10:28:46 AM11/24/21
to a.ka...@sweply.com, adwor...@googlegroups.com

Hi Amol,

Thanks for getting back to us with the requested details.

I had to delete your post as it contained your logs. I am reposting below without the sensitive log information for reference :

“Hi Matt,

1. Pls find below request & response log:

"/google.ads.googleads.v8.services.AdGroupAdService/MutateAdGroupAds", CustomerId: ****, 

Method Name: /google.ads.googleads.v8.services.AdGroupAdService/MutateAdGroupAds

Host: googleads.googleapis.com

Headers: {

    "x-goog-api-client": "gl-php\/7.4.22 gapic\/ gax\/1.7.1 grpc\/1.39.0",

    "x-goog-request-params": "customer_id=***",

    "developer-token": "REDACTED",

    "login-customer-id": "****"

}

Request: 

{"customerId":"3845268791","operations":[{"create":{"status":"ENABLED","adGroup":"customers\/3845268791\/adGroups\/127955197897","ad":{"finalUrls":["https:\/\/sweply.com"],"responsiveDisplayAd":{"marketingImages":[{"asset":"customers\/3845268791\/assets\/18577980722"}],"squareMarketingImages":[{"asset":"customers\/3845268791\/assets\/18629114990"}],"headlines":[{"text":"h1"},{"text":"h2"},{"text":"h3"},{"text":"h4"},{"text":"h5"}],"longHeadline":{"text":"long here heading"},"descriptions":[{"text":"d1"},{"text":"d2"},{"text":"d3"},{"text":"d4"},{"text":"d5"}],"businessName":"unicom grp","callToActionText":"Automated"}}}}]}

 

Response

-------

Fault

-------

Status code: 3

Details: Request contains an invalid argument.

Failure: {"errors":[{"errorCode":{"adError":"INVALID_CALL_TO_ACTION_TEXT"},"message":"Invalid call to action text.","trigger":{"stringValue":"Automated"},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"ad"},{"fieldName":"responsive_display_ad"},{"fieldName":"call_to_action_text"}]}}],"requestId":"XZ3zFIs8aakowLDiRaVe9Q"}  


2. I have another query pls let me know how to change or set language for "Call to action text". I have to set only English & Arabic.”


1. Upon checking the log’s you’ve provided with us, it appears that you’ve added Automated as call_to_action_text. Could you replace it with “shop now” and retry your request? Let us know how this goes after.

2. Kindly note that Responsive display ads allow you to specify call-to-action text. You can set the text for callToActionText in the English and Arabic languages as mentioned in this guide. For more information, refer to this document.

Regards,


Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2RvWvm:ref

Amol Kawale

unread,
Nov 24, 2021, 11:39:07 PM11/24/21
to AdWords API and Google Ads API Forum
Hello Yasar,

Thanks for suggestion. 

1. It working if I set 'Shop now' or 'Learn more', etc words in call to action text. But Google Ads Web UI shows Automatic also as 1st option. How it can work through ads PHp API?

2. I have to set call to action text for 2 languages English & Arabic so Should I add 2 times 'call_to_action_text' => 'Shop Now' & 'call_to_action_text' =>  تسوق الآن
or is there any other way to pass both values?

3. In Responsive Display Ad, there are 2 more optional parameters as :
'price_prefix' => 'as low as', 'promo_text' => 'Free shipping!'
I tried them to pass API but it doesn't reflected after display ad created at Google ads web UI.

Regards,
Amol

Google Ads API Forum Advisor

unread,
Nov 25, 2021, 8:39:45 PM11/25/21
to a.ka...@sweply.com, adwor...@googlegroups.com
Hi Amol,

Thank you for the reply. I am also a member of the Google Ads API team and let me provide support to your concern.


1. It working if I set 'Shop now' or 'Learn more', etc words in call to action text. But Google Ads Web UI shows Automatic also as 1st option. How it can work through ads PHp API?
This seems to be the default value of that field so you may try not setting a value on this field. Also, if you will set a value here, then you may refer to this document to know the available values that you will set there.


2. I have to set call to action text for 2 languages English & Arabic so Should I add 2 times 'call_to_action_text' => 'Shop Now' & 'call_to_action_text' =>  تسوق الآن
or is there any other way to pass both values?

-I am afraid that it is not possible to set 2 languages for call_to_action_text to the API which is also the same in the UI. You will need to create 2 identical ads but with different languages in call_to_action_text field.


3. In Responsive Display Ad, there are 2 more optional parameters as :
            'price_prefix' => 'as low as',
            'promo_text' => 'Free shipping!'
I tried them to pass API but it doesn't reflected after display ad created at Google ads web UI.

-For this concern, could you provide complete request and response logs with request ID and request header generated on your end where we can see that you've set these fields but did not reflect in the UI? You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.


Regards,

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2RvWvm:ref
Reply all
Reply to author
Forward
0 new messages