Hi Peter,

Thanks for the reply, but I think you have misunderstood me :)

In the library there is GetKeywords.php example file which retrieves all 
keywords for specific Ad Group. The query used in this example is:

$query =
'SELECT ad_group.id, '
. 'ad_group_criterion.type, '
. 'ad_group_criterion.criterion_id, '
. 'ad_group_criterion.keyword.text, '
. 'ad_group_criterion.keyword.match_type '
. 'FROM ad_group_criterion '
. 'WHERE ad_group_criterion.type = KEYWORD';
if ($adGroupId !== null) {
$query .= " AND ad_group.id = $adGroupId";

As I don't have previous experience with GAQL, could you please advice how 
should i modify this query to get the ID of a certain word? I suppose the 
word should be used in the WHERE part but i am just unsure how to include 
it.

Thanks in advance!

Regards,
Filip


On Tuesday, November 16, 2021 at 4:35:53 AM UTC+1 adsapi wrote:

> Hi Filip,
>
> If you have enabled logging 
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>, 
> the complete resource name (including the ID of the keyword) of your 
> keyword that had just been created via the API should be returned in the 
> response 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  
> logs. Otherwise, you would need to use the change_event 
> <https://developers.google.com/google-ads/api/fields/v9/change_event> 
> service to retrieve details of the most recent changes you performed in 
> your account.
>
> Best regards,
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so>
>   
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2R9C3r:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/12c4aea7-8554-4d58-96b7-ce8b7182e276n%40googlegroups.com.
  • Ge... Filip Pećanac
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Filip Pećanac
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to