Tank you!
I tried both solutions, but i didn't get any result yet. I'm using pagination, but I'm checking if there is more pages when I call the API. This is my wrapper for get service API:
def get_from_adwords_account(adwords_client, service_name, fields,
predicates=None):
adwords_service = adwords_client.GetService(service_name,
version=settings.API_VERSION)
items = []
offset = 0
PAGE_SIZE = settings.PAGE_SIZE
selector = {
'fields': fields,
'paging': {
'startIndex': str(offset),
'numberResults': str(PAGE_SIZE)
}
}
if predicates:
selector['predicates'] = predicates
more_pages = True
while more_pages:
page = adwords_service.get(selector)
if 'entries' in page:
for entry in page['entries']:
items.append(entry)
offset += PAGE_SIZE
selector['paging']['startIndex'] = str(offset)
more_pages = offset < int(page['totalNumEntries'])
return items
However, I changed my PAGE_SIZE to 10000 to check if there is some problem in the pagination logic. I had the same result (with filter: The result is empty; without filter: The result does not contain any SITELINK).
Is there something that I can do to get the sitelink for this account? It is very strange, because this same code and logic works in others accounts in our MCC.
Best Regards.
Eduardo Cesar