Dynamically change client id in adsapi_php.ini file of Googleads php library

258 views
Skip to first unread message

hemant dhote

unread,
Jul 22, 2020, 11:21:53 AM7/22/20
to AdWords API and Google Ads API Forum
Dynamically change client id in adsapi_php.ini file of Googleads php library  

Google Ads API Forum Advisor Prod

unread,
Jul 22, 2020, 1:57:41 PM7/22/20
to hdh...@gmail.com, adwor...@googlegroups.com
Hi Hemant,

Thank you for reaching out. You can find instructions here for how to dynamically set this value. Please let me know if you have any additional questions.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q22YEPv:ref

hemant dhote

unread,
Jul 22, 2020, 2:04:22 PM7/22/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
I saw this article but didn't really understand where I can get these details. If possible can you send me the screenshot where to look for it? 

Thanks for your help.


Google Ads API Forum Advisor Prod

unread,
Jul 23, 2020, 9:45:45 AM7/23/20
to hdh...@gmail.com, adwor...@googlegroups.com
Hi Hemant,

Please see attached screenshot. It is from the Java section of the instructions but should work for PHP as well.
dynamic_CID.png

hemant dhote

unread,
Oct 12, 2020, 11:18:20 AM10/12/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Hello Team, 

How can I fetch search impression share by keyword id or Ad group ID in php. 

image.png



Google Ads API Forum Advisor Prod

unread,
Oct 12, 2020, 4:58:27 PM10/12/20
to hdh...@gmail.com, adwor...@googlegroups.com

Hi Hemant,

Thank you for reaching out. You could query the SearchImpressionShare from Keywords Performance Report and SearchImpressionShare from the Adgroup Performance Report to fetch data for this field.

Thanks and regards,
Xiaoming, Google Ads API Team


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q22YEPv:ref

rodrig...@gmail.com

unread,
Oct 13, 2020, 7:25:03 AM10/13/20
to AdWords API and Google Ads API Forum
Depends on what would you like to achieve. If you have completely different credentials I would recommend adding another file and add a condition to check which one to be used. If credentials are the same just add the withClientCustomerId function. But if you're signing a different customer probably would change whole authentication process using only OAuth2 class.

Hope you find it helpful lol.

Google Ads API Forum Advisor Prod

unread,
Oct 13, 2020, 2:56:24 PM10/13/20
to rodrig...@gmail.com, adwor...@googlegroups.com

Hi,  

Thank you for sharing your thoughts. If it’s just the change of the clientCustomerId then it could be added with this code. For the OAuth2 credentials change, the values in the configuration file need to be changed. One possible way to achieve this is to have multiple configuration files and switch among them with the customized logic.



Thanks and regards,
Xiaoming, Google Ads API Team


hemant dhote

unread,
Oct 16, 2020, 10:29:45 AM10/16/20
to Google Ads API Forum Advisor Prod, rodrig...@gmail.com, adwor...@googlegroups.com, yogesh....@thedetmail.com
Hello Google Ad's Team. 

I want to fetch Search Top IS and Cureent CPC (Bid)  from my google account .  I did some research and found an option to get it downloaded and printed, but I didn't find any option to get that inot a form of array or json. 

I am using the following functions for it which you can find on this URL. 


So basically we need to print an array or json of those data not to save that in a file. Can you help me with this so I can achieve it.  

Regards
Bhaskar Dhote 

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/xhrLCIU_yNQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/JbkF3000000000000000000000000000000000000000000000QI5LXC00WQL_qUGoQ7-CvbWnF76RKA%40sfdc.net.

Google Ads API Forum Advisor Prod

unread,
Oct 16, 2020, 4:18:17 PM10/16/20
to hdh...@gmail.com, yogesh....@thedetmail.com, rodrig...@gmail.com, adwor...@googlegroups.com

Hi Bhaskar,

Thank you for reaching out. You could change the DownloadFormat::CSV to DownloadFormat::XML and then parse the object to JSON. You could see the available download formats here.



Thanks and regards,
Xiaoming, Google Ads API Team



hemant dhote

unread,
Oct 16, 2020, 7:15:07 PM10/16/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com, rodrig...@gmail.com, yogesh....@thedetmail.com

Thanks for your email 


But is there anyway I don’t have to use download function instead of just print on the page. 

hemant dhote

unread,
Oct 31, 2020, 9:05:11 AM10/31/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com, rodrig...@gmail.com, yogesh....@thedetmail.com
Hello Team, 

I want to update about 30000 keywords bit from the API's but it takes too much time to do so, is there any way I can do that in bulk and it will update fast at the moment it takes 2 sec to update 1 keyword bid. 

hemant dhote

unread,
Dec 9, 2020, 6:17:44 AM12/9/20
to Google Ads API Forum Advisor Prod, yogesh....@thedetmail.com, rodrig...@gmail.com, adwor...@googlegroups.com
Hello Team, 

I am getting this error when trying to update the BID but I am not able to find any solution to this. 

Fatal error: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: [BiddingErrors.BID_TOO_MANY_FRACTIONAL_DIGITS @ operations[0].operand.biddingStrategyConfiguration.bids[0].bid; trigger:'The bid of 4.179999 must be a whole multiple of 0.010000']

hemant dhote

unread,
Jan 19, 2021, 7:22:16 AM1/19/21
to Google Ads API Forum Advisor Prod, yogesh....@thedetmail.com, rodrig...@gmail.com, adwor...@googlegroups.com
Hello Team, 

Which API service I have to use if I have to update the labels on the keywords.  

I want to update certain labels on a keyword via AIP. 

hemant dhote

unread,
Jan 29, 2021, 8:22:08 AM1/29/21
to Google Ads API Forum Advisor Prod, yogesh....@thedetmail.com, rodrig...@gmail.com, adwor...@googlegroups.com
Hello Team, 

Is there any API available to fetch all the keywords details like CPC, Quality Score,  Search top is, Impression, etc directly, because at the moment we have to download the report and then take data from it. So it there is an API that we can access directly to get all this information at once. 

Google Ads API Forum Advisor Prod

unread,
Feb 1, 2021, 3:24:42 AM2/1/21
to hdh...@gmail.com, rodrig...@gmail.com, yogesh....@thedetmail.com, adwor...@googlegroups.com
Hi Hermant,

I am afraid that you need to download the report first using Google Ads API or AdWords API and create a post-process on your end to manage the downloaded data and to import it to another file or tool.

But to give you guidance on how to get these information, if you also want to use AdWords API, then you can use the Keywords Performance Report and you can include the SearchTopImpressionShareCpcBidQualityScore, and Labels fields. You may check all the available fields on this document that you can include in the report and you may read this document to know more information about AdWords API reporting.

As for Google Ads API, you can use the keyword_view and you may refer to this document to see the equivalent field of the fields that I've mentioned earlier. You can inspect this document to see all the available fields that you can include in the report, which will return specific details. To know more information about Google Ads API reporting, then you may read this document.

Let me know if you have further questions. 

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q22YEPv:ref

hemant dhote

unread,
Jul 13, 2021, 9:47:39 AM7/13/21
to Google Ads API Forum Advisor Prod, rodrig...@gmail.com, yogesh....@thedetmail.com, adwor...@googlegroups.com
Hello Google Ad's Team. 

I want to fetch the keyword last bid change date from my google account. I did some research but i didn't get anything like that.

Regards
Hemant Dhote

Google Ads API Forum Advisor

unread,
Jul 14, 2021, 6:12:39 AM7/14/21
to hdh...@gmail.com, rodrig...@gmail.com, yogesh....@thedetmail.com, adwor...@googlegroups.com
Hi Hemant,

If you want to the track the changes of one of the entities listed here, specifically the bidding of the keywords, then you can use the Change Event service on your use case.

Let me know if you have questions on the provided suggestion.

hemant dhote

unread,
Sep 29, 2021, 7:57:11 AM9/29/21
to ads...@forumsupport.google, rodrig...@gmail.com, yogesh....@thedetmail.com, adwor...@googlegroups.com
Hello Team ,

I need some help with the google ads API. 

We want to update the Label of a keyword, but we didn't find a way how to do it. Can you tell me which Operation/ API we can use to update the Label on a keyword? 

Regards
Hemant 

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/xhrLCIU_yNQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.

Google Ads API Forum Advisor

unread,
Sep 30, 2021, 1:17:52 AM9/30/21
to hdh...@gmail.com, rodrig...@gmail.com, yogesh....@thedetmail.com, adwor...@googlegroups.com

Hello Hemant,

Thanks for reaching out to us.

Adding labels on a keyword can be done using the AdGroupCriterionLabel. As per that guide, the fields for the AdGroupCriterionLabel are Immutable, thus updating keyword labels are not feasible. What you can do instead is to remove the said keyword label using the MutateAdGroupCriterionLabels of the AdGroupCriterionLabelService.

You can then create a new label using the LabelService then associate the new label to a keyword using once more the AdGroupCriterionLabelService.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q22YEPv:ref

hemant dhote

unread,
Mar 8, 2022, 11:51:22 AM3/8/22
to Google Ads API Forum Advisor, rodrig...@gmail.com, yogesh....@thedetmail.com, adwor...@googlegroups.com
Hello Team, 

I am doing the migration of the google ads API to the new version. But I am having trouble fetching the Campaign Type and Keywork Lable. Can you help me to know which parameter I can use to find these values? 


Google Ads API Forum Advisor

unread,
Mar 8, 2022, 11:00:11 PM3/8/22
to hdh...@gmail.com, rodrig...@gmail.com, yogesh....@thedetmail.com, adwor...@googlegroups.com
Hi Hemant,

Thank you for raising your concern to my team.

If you want to get the data of keyword related fields such as keyword text and the campaign where it is belong, then I would suggest using the keyword_view, and adding the campaign.name and the ad_group_criterion.keyword.text fields to this report.

Let me know if you have further questions.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XmYZw:ref

hemant dhote

unread,
Mar 8, 2022, 11:43:50 PM3/8/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com, rodrig...@gmail.com, yogesh....@thedetmail.com
Hello Erine,

Thanks for your reply, basically I want to get the parameter called Campaign Type how can i get that value, I am able to fetch campaign name, campaign ID but not the type of the campaign. 

Google Ads API Forum Advisor

unread,
Mar 9, 2022, 6:01:29 AM3/9/22
to hdh...@gmail.com, rodrig...@gmail.com, yogesh....@thedetmail.com, adwor...@googlegroups.com
Hi Hemant,

Thank you for the reply.

To answer your question, please note that the campaign has type and subtype and the equivalent fields of those information are provided below:
campaign.advertising_channel_type ​​​​​​​
campaign.advertising_channel_sub_type

With this, you can include those fields in the keyword_view report together with the ad_group_criterion.labelscampaign.name and the ad_group_criterion.keyword.text fields.

hemant dhote

unread,
Jul 29, 2022, 8:56:27 AM7/29/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com, rodrig...@gmail.com, yogesh....@thedetmail.com
Hello Team, 

I am trying to update the label on a keyword from google ad's api but its not working I am getting the following error. 


Error rendering 'customers/{customer_id=*}/adGroupCriterionLabels/{ad_group_id=*}~{criterion_id=*}~{label_id=*}': expected binding 'label_id' to match segment '{label_id=*}', instead got 'customers/8049110523/labels/3754164856' Provided bindings: 

Can someone help me? 


Google Ads API Forum Advisor

unread,
Jul 29, 2022, 10:39:33 AM7/29/22
to hdh...@gmail.com, rodrig...@gmail.com, yogesh....@thedetmail.com, adwor...@googlegroups.com

Hi Hermant,

Thank you for posting your concern.

Please that the AdGroupCriterionLabelOperation only has create and remove operations so it is not possible to update.. However, if you want to use different label names at ad group labels and you want to apply it on specific ad groups, then you can create an AdGroupCriterionOperation instead and set it on the labels[] field of AdGroup using update AdGroupCriterionOperation.

 

Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


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