Translate PRODUCT_PARTITION_REPORT to new ADS API in php

72 views
Skip to first unread message

HH

unread,
Apr 22, 2022, 11:53:56 AM4/22/22
to Google Ads API and AdWords API Forum
Hi

Can anyone help me translate the PRODUCT_PARTITION_REPORT to the new Ads API in php? The old API returns this in my code: 

SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [adGroupID] => 1234
            [campaign] => Campaign name
            [adGroup] => Adgroup name
            [criterionID] => 123
            [productGroup] => * / product type = "typename" / custom label 1 = "custom label 1" / item id = "itemid"
            [partitionType] => Unit
            [parentCriterionID] => 12345678
            [maxCPC] => 260000
        )

)
How can I get the same values with the new API? 

Google Ads API Forum Advisor

unread,
Apr 25, 2022, 5:07:28 AM4/25/22
to 101o...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API team.

Moving forward, it appears that this concern is specifically about PRODUCT_PARTITION_REPORT. That said, please see this resource mapping document that shows the equivalent of the fields in the Google Ads API. 

Also, since you recently migrated to the Google Ads API, you can use this Query Migration Tool to translate AWQL queries into GAQL.

Regards,
Google Logo
Carmela
Google Ads API Team
 


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